From 6453fde400bf69198cdf265836307289525e9501 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 21 Oct 2016 18:44:13 -0700 Subject: [PATCH 01/35] Move emit helpers into related transformers --- src/compiler/checker.ts | 2 +- src/compiler/core.ts | 23 +- src/compiler/emitter.ts | 292 ++-------- src/compiler/factory.ts | 617 +++++++++++---------- src/compiler/transformers/es2015.ts | 39 +- src/compiler/transformers/es2017.ts | 137 +++-- src/compiler/transformers/generators.ts | 159 +++++- src/compiler/transformers/jsx.ts | 553 +++++++++--------- src/compiler/transformers/module/es2015.ts | 22 +- src/compiler/transformers/module/module.ts | 16 +- src/compiler/transformers/module/system.ts | 22 +- src/compiler/transformers/ts.ts | 158 ++++-- src/compiler/types.ts | 26 +- src/compiler/utilities.ts | 147 ----- 14 files changed, 1105 insertions(+), 1108 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 369d61ce484b7..762bf0f15a1e2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -18988,7 +18988,7 @@ namespace ts { function isNameOfModuleOrEnumDeclaration(node: Identifier) { const parent = node.parent; - return isModuleOrEnumDeclaration(parent) && node === parent.name; + return parent && isModuleOrEnumDeclaration(parent) && node === parent.name; } // When resolved as an expression identifier, if the given node references an exported entity, return the declaration diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 51bdb7c17cd44..181ec9c3a9330 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -500,7 +500,7 @@ namespace ts { */ export function append(to: T[] | undefined, value: T | undefined): T[] | undefined { if (value === undefined) return to; - if (to === undefined) to = []; + if (to === undefined) return [value]; to.push(value); return to; } @@ -521,6 +521,16 @@ namespace ts { return to; } + /** + * Stable sort of an array. Elements equal to each other maintain their relative position in the array. + */ + export function stableSort(array: T[], comparer: (x: T, y: T) => Comparison = compareValues) { + return array + .map((_, i) => i) // create array of indices + .sort((x, y) => comparer(array[x], array[y]) || compareValues(x, y)) // sort indices by value then position + .map(i => array[i]); // get sorted array + } + export function rangeEquals(array1: T[], array2: T[], pos: number, end: number) { while (pos < end) { if (array1[pos] !== array2[pos]) { @@ -1984,6 +1994,17 @@ namespace ts { } /** Remove an item from an array, moving everything to its right one space left. */ + export function orderedRemoveItem(array: T[], item: T): boolean { + for (let i = 0; i < array.length; i++) { + if (array[i] === item) { + orderedRemoveItemAt(array, i); + return true; + } + } + return false; + } + + /** Remove an item by index from an array, moving everything to its right one space left. */ export function orderedRemoveItemAt(array: T[], index: number): void { // This seems to be faster than either `array.splice(i, 1)` or `array.copyWithin(i, i+ 1)`. for (let i = index; i < array.length - 1; i++) { diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 1051c9adca961..ed16ec0615998 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -21,153 +21,6 @@ namespace ts { const delimiters = createDelimiterMap(); const brackets = createBracketsMap(); - // emit output for the __extends helper function - const extendsHelper = ` -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -};`; - - // Emit output for the __assign helper function. - // This is typically used for JSX spread attributes, - // and can be used for object literal spread properties. - const assignHelper = ` -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -};`; - - // emit output for the __decorate helper function - const decorateHelper = ` -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); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -};`; - - // emit output for the __metadata helper function - const metadataHelper = ` -var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -};`; - - // emit output for the __param helper function - const paramHelper = ` -var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -};`; - - // emit output for the __awaiter helper function - const awaiterHelper = ` -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); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments)).next()); - }); -};`; - - // The __generator helper is used by down-level transformations to emulate the runtime - // semantics of an ES2015 generator function. When called, this helper returns an - // object that implements the Iterator protocol, in that it has `next`, `return`, and - // `throw` methods that step through the generator when invoked. - // - // parameters: - // thisArg The value to use as the `this` binding for the transformed generator body. - // body A function that acts as the transformed generator body. - // - // variables: - // _ Persistent state for the generator that is shared between the helper and the - // generator body. The state object has the following members: - // sent() - A method that returns or throws the current completion value. - // label - The next point at which to resume evaluation of the generator body. - // trys - A stack of protected regions (try/catch/finally blocks). - // ops - A stack of pending instructions when inside of a finally block. - // f A value indicating whether the generator is executing. - // y An iterator to delegate for a yield*. - // t A temporary variable that holds one of the following values (note that these - // cases do not overlap): - // - The completion value when resuming from a `yield` or `yield*`. - // - The error value for a catch block. - // - The current protected region (array of try/catch/finally/end labels). - // - The verb (`next`, `throw`, or `return` method) to delegate to the expression - // of a `yield*`. - // - The result of evaluating the verb delegated to the expression of a `yield*`. - // - // functions: - // verb(n) Creates a bound callback to the `step` function for opcode `n`. - // step(op) Evaluates opcodes in a generator body until execution is suspended or - // completed. - // - // The __generator helper understands a limited set of instructions: - // 0: next(value?) - Start or resume the generator with the specified value. - // 1: throw(error) - Resume the generator with an exception. If the generator is - // suspended inside of one or more protected regions, evaluates - // any intervening finally blocks between the current label and - // the nearest catch block or function boundary. If uncaught, the - // exception is thrown to the caller. - // 2: return(value?) - Resume the generator as if with a return. If the generator is - // suspended inside of one or more protected regions, evaluates any - // intervening finally blocks. - // 3: break(label) - Jump to the specified label. If the label is outside of the - // current protected region, evaluates any intervening finally - // blocks. - // 4: yield(value?) - Yield execution to the caller with an optional value. When - // resumed, the generator will continue at the next label. - // 5: yield*(value) - Delegates evaluation to the supplied iterator. When - // delegation completes, the generator will continue at the next - // label. - // 6: catch(error) - Handles an exception thrown from within the generator body. If - // the current label is inside of one or more protected regions, - // evaluates any intervening finally blocks between the current - // label and the nearest catch block or function boundary. If - // uncaught, the exception is thrown to the caller. - // 7: endfinally - Ends a finally block, resuming the last instruction prior to - // entering a finally block. - // - // For examples of how these are used, see the comments in ./transformers/generators.ts - const generatorHelper = ` -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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -};`; - - // emit output for the __export helper function - const exportStarHelper = ` -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -}`; - // emit output for the UMD helper function. const umdHelper = ` (function (dependencies, factory) { @@ -179,15 +32,6 @@ function __export(m) { } })`; - const superHelper = ` -const _super = name => super[name];`; - - const advancedSuperHelper = ` -const _super = (function (geti, seti) { - const cache = Object.create(null); - return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); -})(name => super[name], (name, value) => super[name] = value);`; - const compilerOptions = host.getCompilerOptions(); const languageVersion = getEmitScriptTarget(compilerOptions); const moduleKind = getEmitModuleKind(compilerOptions); @@ -224,11 +68,7 @@ const _super = (function (geti, seti) { let currentSourceFile: SourceFile; let currentText: string; let currentFileIdentifiers: Map; - let extendsEmitted: boolean; - let assignEmitted: boolean; - let decorateEmitted: boolean; - let paramEmitted: boolean; - let awaiterEmitted: boolean; + let bundledHelpers: Map; let isOwnFileEmit: boolean; let emitSkipped = false; @@ -293,12 +133,13 @@ const _super = (function (geti, seti) { nodeIdToGeneratedName = []; autoGeneratedIdToGeneratedName = []; generatedNameSet = createMap(); + bundledHelpers = isBundledEmit ? createMap() : undefined; isOwnFileEmit = !isBundledEmit; // Emit helpers from all the files if (isBundledEmit && moduleKind) { for (const sourceFile of sourceFiles) { - emitEmitHelpers(sourceFile); + emitHelpers(sourceFile, /*isBundle*/ true); } } @@ -333,11 +174,6 @@ const _super = (function (geti, seti) { tempFlags = TempFlags.Auto; currentSourceFile = undefined; currentText = undefined; - extendsEmitted = false; - assignEmitted = false; - decorateEmitted = false; - paramEmitted = false; - awaiterEmitted = false; isOwnFileEmit = false; } @@ -2141,85 +1977,39 @@ const _super = (function (geti, seti) { return statements.length; } - function emitHelpers(node: Node) { - const emitFlags = getEmitFlags(node); - let helpersEmitted = false; - if (emitFlags & EmitFlags.EmitEmitHelpers) { - helpersEmitted = emitEmitHelpers(currentSourceFile); - } - - if (emitFlags & EmitFlags.EmitExportStar) { - writeLines(exportStarHelper); - helpersEmitted = true; - } - - if (emitFlags & EmitFlags.EmitSuperHelper) { - writeLines(superHelper); - helpersEmitted = true; - } - - if (emitFlags & EmitFlags.EmitAdvancedSuperHelper) { - writeLines(advancedSuperHelper); - helpersEmitted = true; - } - - return helpersEmitted; - } - - function emitEmitHelpers(node: SourceFile) { - // Only emit helpers if the user did not say otherwise. - if (compilerOptions.noEmitHelpers) { - return false; - } - - // Don't emit helpers if we can import them. - if (compilerOptions.importHelpers - && (isExternalModule(node) || compilerOptions.isolatedModules)) { - return false; - } + function emitHelpers(node: Node, isBundle?: boolean) { + const sourceFile = isSourceFile(node) ? node : currentSourceFile; + const shouldSkip = compilerOptions.noEmitHelpers || (sourceFile && getExternalHelpersModuleName(sourceFile) !== undefined); + const shouldBundle = isSourceFile(node) && !isOwnFileEmit; let helpersEmitted = false; + const helpers = getEmitHelpers(node); + if (helpers) { + for (const helper of stableSort(helpers, compareEmitHelpers)) { + if (!helper.scoped) { + // Skip the helper if it can be skipped and the noEmitHelpers compiler + // option is set, or if it can be imported and the importHelpers compiler + // option is set. + if (shouldSkip) continue; + + // Skip the helper if it can be bundled but hasn't already been emitted and we + // are emitting a bundled module. + if (shouldBundle) { + if (helper.name in bundledHelpers) { + continue; + } - // Only Emit __extends function when target ES5. - // For target ES6 and above, we can emit classDeclaration as is. - if ((languageVersion < ScriptTarget.ES2015) && (!extendsEmitted && node.flags & NodeFlags.HasClassExtends)) { - writeLines(extendsHelper); - extendsEmitted = true; - helpersEmitted = true; - } - - if (compilerOptions.jsx !== JsxEmit.Preserve && !assignEmitted && (node.flags & NodeFlags.HasJsxSpreadAttributes)) { - writeLines(assignHelper); - assignEmitted = true; - } - - if (!decorateEmitted && node.flags & NodeFlags.HasDecorators) { - writeLines(decorateHelper); - if (compilerOptions.emitDecoratorMetadata) { - writeLines(metadataHelper); - } - - decorateEmitted = true; - helpersEmitted = true; - } - - if (!paramEmitted && node.flags & NodeFlags.HasParamDecorators) { - writeLines(paramHelper); - paramEmitted = true; - helpersEmitted = true; - } + bundledHelpers[helper.name] = true; + } + } + else if (isBundle) { + // Skip the helper if it is scoped and we are emitting bundled helpers + continue; + } - // Only emit __awaiter function when target ES5/ES6. - // Only emit __generator function when target ES5. - // For target ES2017 and above, we can emit async/await as is. - if ((languageVersion < ScriptTarget.ES2017) && (!awaiterEmitted && node.flags & NodeFlags.HasAsyncFunctions)) { - writeLines(awaiterHelper); - if (languageVersion < ScriptTarget.ES2015) { - writeLines(generatorHelper); + writeLines(helper.text); + helpersEmitted = true; } - - awaiterEmitted = true; - helpersEmitted = true; } if (helpersEmitted) { @@ -2230,9 +2020,10 @@ const _super = (function (geti, seti) { } function writeLines(text: string): void { - const lines = text.split(/\r\n|\r|\n/g); + const lines = text.split(/\r\n?|\n/g); + const indentation = guessIndentation(lines); for (let i = 0; i < lines.length; i++) { - const line = lines[i]; + const line = indentation ? lines[i].slice(indentation) : lines[i]; if (line.length) { if (i > 0) { writeLine(); @@ -2242,6 +2033,21 @@ const _super = (function (geti, seti) { } } + function guessIndentation(lines: string[]) { + let indentation: number; + for (const line of lines) { + for (let i = 0; i < line.length && (indentation === undefined || i < indentation); i++) { + if (!isWhiteSpace(line.charCodeAt(i))) { + if (indentation === undefined || i < indentation) { + indentation = i; + break; + } + } + } + } + return indentation; + } + // // Helpers // diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 2b36afa297c2e..4400e8f2a830d 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -1440,7 +1440,6 @@ namespace ts { if (node.resolvedTypeReferenceDirectiveNames !== undefined) updated.resolvedTypeReferenceDirectiveNames = node.resolvedTypeReferenceDirectiveNames; if (node.imports !== undefined) updated.imports = node.imports; if (node.moduleAugmentations !== undefined) updated.moduleAugmentations = node.moduleAugmentations; - if (node.externalHelpersModuleName !== undefined) updated.externalHelpersModuleName = node.externalHelpersModuleName; return updateNode(updated, node); } @@ -1681,278 +1680,23 @@ namespace ts { // Helpers - export function createHelperName(externalHelpersModuleName: Identifier | undefined, name: string) { + export interface EmitHelperState { + currentSourceFile: SourceFile; + compilerOptions: CompilerOptions; + requestedHelpers?: EmitHelper[]; + } + + export function getHelperName(helperState: EmitHelperState, name: string) { + const externalHelpersModuleName = getOrCreateExternalHelpersModuleName(helperState.currentSourceFile, helperState.compilerOptions); return externalHelpersModuleName ? createPropertyAccess(externalHelpersModuleName, name) : createIdentifier(name); } - export function createExtendsHelper(externalHelpersModuleName: Identifier | undefined, name: Identifier) { - return createCall( - createHelperName(externalHelpersModuleName, "__extends"), - /*typeArguments*/ undefined, - [ - name, - createIdentifier("_super") - ] - ); - } - - export function createAssignHelper(externalHelpersModuleName: Identifier | undefined, attributesSegments: Expression[]) { - return createCall( - createHelperName(externalHelpersModuleName, "__assign"), - /*typeArguments*/ undefined, - attributesSegments - ); - } - - export function createParamHelper(externalHelpersModuleName: Identifier | undefined, expression: Expression, parameterOffset: number, location?: TextRange) { - return createCall( - createHelperName(externalHelpersModuleName, "__param"), - /*typeArguments*/ undefined, - [ - createLiteral(parameterOffset), - expression - ], - location - ); - } - - export function createMetadataHelper(externalHelpersModuleName: Identifier | undefined, metadataKey: string, metadataValue: Expression) { - return createCall( - createHelperName(externalHelpersModuleName, "__metadata"), - /*typeArguments*/ undefined, - [ - createLiteral(metadataKey), - metadataValue - ] - ); - } - - export function createDecorateHelper(externalHelpersModuleName: Identifier | undefined, decoratorExpressions: Expression[], target: Expression, memberName?: Expression, descriptor?: Expression, location?: TextRange) { - const argumentsArray: Expression[] = []; - argumentsArray.push(createArrayLiteral(decoratorExpressions, /*location*/ undefined, /*multiLine*/ true)); - argumentsArray.push(target); - if (memberName) { - argumentsArray.push(memberName); - if (descriptor) { - argumentsArray.push(descriptor); - } + export function requestEmitHelper(helperState: EmitHelperState, helper: EmitHelper) { + if (!contains(helperState.requestedHelpers, helper)) { + helperState.requestedHelpers = append(helperState.requestedHelpers, helper); } - - return createCall(createHelperName(externalHelpersModuleName, "__decorate"), /*typeArguments*/ undefined, argumentsArray, location); - } - - export function createAwaiterHelper(externalHelpersModuleName: Identifier | undefined, hasLexicalArguments: boolean, promiseConstructor: EntityName | Expression, body: Block) { - const generatorFunc = createFunctionExpression( - /*modifiers*/ undefined, - createToken(SyntaxKind.AsteriskToken), - /*name*/ undefined, - /*typeParameters*/ undefined, - /*parameters*/ [], - /*type*/ undefined, - body - ); - - // Mark this node as originally an async function - (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= EmitFlags.AsyncFunctionBody; - - return createCall( - createHelperName(externalHelpersModuleName, "__awaiter"), - /*typeArguments*/ undefined, - [ - createThis(), - hasLexicalArguments ? createIdentifier("arguments") : createVoidZero(), - promiseConstructor ? createExpressionFromEntityName(promiseConstructor) : createVoidZero(), - generatorFunc - ] - ); - } - - export function createHasOwnProperty(target: LeftHandSideExpression, propertyName: Expression) { - return createCall( - createPropertyAccess(target, "hasOwnProperty"), - /*typeArguments*/ undefined, - [propertyName] - ); - } - - function createObjectCreate(prototype: Expression) { - return createCall( - createPropertyAccess(createIdentifier("Object"), "create"), - /*typeArguments*/ undefined, - [prototype] - ); - } - - function createGeti(target: LeftHandSideExpression) { - // name => super[name] - return createArrowFunction( - /*modifiers*/ undefined, - /*typeParameters*/ undefined, - [createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "name")], - /*type*/ undefined, - createToken(SyntaxKind.EqualsGreaterThanToken), - createElementAccess(target, createIdentifier("name")) - ); - } - - function createSeti(target: LeftHandSideExpression) { - // (name, value) => super[name] = value - return createArrowFunction( - /*modifiers*/ undefined, - /*typeParameters*/ undefined, - [ - createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "name"), - createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "value") - ], - /*type*/ undefined, - createToken(SyntaxKind.EqualsGreaterThanToken), - createAssignment( - createElementAccess( - target, - createIdentifier("name") - ), - createIdentifier("value") - ) - ); - } - - export function createAdvancedAsyncSuperHelper() { - // const _super = (function (geti, seti) { - // const cache = Object.create(null); - // return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - // })(name => super[name], (name, value) => super[name] = value); - - // const cache = Object.create(null); - const createCache = createVariableStatement( - /*modifiers*/ undefined, - createConstDeclarationList([ - createVariableDeclaration( - "cache", - /*type*/ undefined, - createObjectCreate(createNull()) - ) - ]) - ); - - // get value() { return geti(name); } - const getter = createGetAccessor( - /*decorators*/ undefined, - /*modifiers*/ undefined, - "value", - /*parameters*/ [], - /*type*/ undefined, - createBlock([ - createReturn( - createCall( - createIdentifier("geti"), - /*typeArguments*/ undefined, - [createIdentifier("name")] - ) - ) - ]) - ); - - // set value(v) { seti(name, v); } - const setter = createSetAccessor( - /*decorators*/ undefined, - /*modifiers*/ undefined, - "value", - [createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "v")], - createBlock([ - createStatement( - createCall( - createIdentifier("seti"), - /*typeArguments*/ undefined, - [ - createIdentifier("name"), - createIdentifier("v") - ] - ) - ) - ]) - ); - - // return name => cache[name] || ... - const getOrCreateAccessorsForName = createReturn( - createArrowFunction( - /*modifiers*/ undefined, - /*typeParameters*/ undefined, - [createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "name")], - /*type*/ undefined, - createToken(SyntaxKind.EqualsGreaterThanToken), - createLogicalOr( - createElementAccess( - createIdentifier("cache"), - createIdentifier("name") - ), - createParen( - createAssignment( - createElementAccess( - createIdentifier("cache"), - createIdentifier("name") - ), - createObjectLiteral([ - getter, - setter - ]) - ) - ) - ) - ) - ); - - // const _super = (function (geti, seti) { - // const cache = Object.create(null); - // return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - // })(name => super[name], (name, value) => super[name] = value); - return createVariableStatement( - /*modifiers*/ undefined, - createConstDeclarationList([ - createVariableDeclaration( - "_super", - /*type*/ undefined, - createCall( - createParen( - createFunctionExpression( - /*modifiers*/ undefined, - /*asteriskToken*/ undefined, - /*name*/ undefined, - /*typeParameters*/ undefined, - [ - createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "geti"), - createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "seti") - ], - /*type*/ undefined, - createBlock([ - createCache, - getOrCreateAccessorsForName - ]) - ) - ), - /*typeArguments*/ undefined, - [ - createGeti(createSuper()), - createSeti(createSuper()) - ] - ) - ) - ]) - ); - } - - export function createSimpleAsyncSuperHelper() { - return createVariableStatement( - /*modifiers*/ undefined, - createConstDeclarationList([ - createVariableDeclaration( - "_super", - /*type*/ undefined, - createGeti(createSuper()) - ) - ]) - ); } export interface CallBinding { @@ -2354,11 +2098,11 @@ namespace ts { /** * Ensures "use strict" directive is added * - * @param node source file + * @param statements An array of statements */ - export function ensureUseStrict(node: SourceFile): SourceFile { + export function ensureUseStrict(statements: NodeArray): NodeArray { let foundUseStrict = false; - for (const statement of node.statements) { + for (const statement of statements) { if (isPrologueDirective(statement)) { if (isUseStrictPrologue(statement as ExpressionStatement)) { foundUseStrict = true; @@ -2369,13 +2113,15 @@ namespace ts { break; } } + if (!foundUseStrict) { - const statements: Statement[] = []; - statements.push(startOnNewLine(createStatement(createLiteral("use strict")))); - // add "use strict" as the first statement - return updateSourceFileNode(node, statements.concat(node.statements)); + return createNodeArray([ + startOnNewLine(createStatement(createLiteral("use strict"))), + ...statements + ], statements); } - return node; + + return statements; } /** @@ -2794,12 +2540,21 @@ namespace ts { } function mergeEmitNode(sourceEmitNode: EmitNode, destEmitNode: EmitNode) { - const { flags, commentRange, sourceMapRange, tokenSourceMapRanges } = sourceEmitNode; - if (!destEmitNode && (flags || commentRange || sourceMapRange || tokenSourceMapRanges)) destEmitNode = {}; + const { + flags, + commentRange, + sourceMapRange, + tokenSourceMapRanges, + constantValue, + helpers + } = sourceEmitNode; + if (!destEmitNode) destEmitNode = {}; if (flags) destEmitNode.flags = flags; if (commentRange) destEmitNode.commentRange = commentRange; if (sourceMapRange) destEmitNode.sourceMapRange = sourceMapRange; if (tokenSourceMapRanges) destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); + if (constantValue !== undefined) destEmitNode.constantValue = constantValue; + if (helpers) destEmitNode.helpers = addRange(destEmitNode.helpers, helpers); return destEmitNode; } @@ -2877,6 +2632,16 @@ namespace ts { return node; } + /** + * Gets a custom text range to use when emitting source maps. + * + * @param node The node. + */ + export function getSourceMapRange(node: Node) { + const emitNode = node.emitNode; + return (emitNode && emitNode.sourceMapRange) || node; + } + /** * Sets a custom text range to use when emitting source maps. * @@ -2888,6 +2653,18 @@ namespace ts { return node; } + /** + * Gets the TextRange to use for source maps for a token of a node. + * + * @param node The node. + * @param token The token. + */ + export function getTokenSourceMapRange(node: Node, token: SyntaxKind) { + const emitNode = node.emitNode; + const tokenSourceMapRanges = emitNode && emitNode.tokenSourceMapRanges; + return tokenSourceMapRanges && tokenSourceMapRanges[token]; + } + /** * Sets the TextRange to use for source maps for a token of a node. * @@ -2902,14 +2679,6 @@ namespace ts { return node; } - /** - * Sets a custom text range to use when emitting comments. - */ - export function setCommentRange(node: T, range: TextRange) { - getOrCreateEmitNode(node).commentRange = range; - return node; - } - /** * Gets a custom text range to use when emitting comments. * @@ -2921,25 +2690,11 @@ namespace ts { } /** - * Gets a custom text range to use when emitting source maps. - * - * @param node The node. - */ - export function getSourceMapRange(node: Node) { - const emitNode = node.emitNode; - return (emitNode && emitNode.sourceMapRange) || node; - } - - /** - * Gets the TextRange to use for source maps for a token of a node. - * - * @param node The node. - * @param token The token. + * Sets a custom text range to use when emitting comments. */ - export function getTokenSourceMapRange(node: Node, token: SyntaxKind) { - const emitNode = node.emitNode; - const tokenSourceMapRanges = emitNode && emitNode.tokenSourceMapRanges; - return tokenSourceMapRanges && tokenSourceMapRanges[token]; + export function setCommentRange(node: T, range: TextRange) { + getOrCreateEmitNode(node).commentRange = range; + return node; } /** @@ -2959,6 +2714,102 @@ namespace ts { return node; } + export function getExternalHelpersModuleName(node: SourceFile) { + const parseNode = getOriginalNode(node, isSourceFile); + const emitNode = parseNode && parseNode.emitNode; + return emitNode && emitNode.externalHelpersModuleName; + } + + export function getOrCreateExternalHelpersModuleName(node: SourceFile, compilerOptions: CompilerOptions) { + if (compilerOptions.importHelpers && (isExternalModule(node) || compilerOptions.isolatedModules)) { + const parseNode = getOriginalNode(node, isSourceFile); + const emitNode = getOrCreateEmitNode(parseNode); + return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = createUniqueName(externalHelpersModuleNameText)); + } + } + + /** + * Adds an EmitHelper to a node. + */ + export function addEmitHelper(node: T, helper: EmitHelper): T { + const emitNode = getOrCreateEmitNode(node); + emitNode.helpers = append(emitNode.helpers, helper); + return node; + } + + /** + * Adds an EmitHelper to a node. + */ + export function addEmitHelpers(node: T, helpers: EmitHelper[] | undefined): T { + if (some(helpers)) { + const emitNode = getOrCreateEmitNode(node); + for (const helper of helpers) { + if (!contains(emitNode.helpers, helper)) { + emitNode.helpers = append(emitNode.helpers, helper); + } + } + } + return node; + } + + /** + * Removes an EmitHelper from a node. + */ + export function removeEmitHelper(node: Node, helper: EmitHelper): boolean { + const emitNode = node.emitNode; + if (emitNode) { + const helpers = emitNode.helpers; + if (helpers) { + return orderedRemoveItem(helpers, helper); + } + } + return false; + } + + /** + * Gets the EmitHelpers of a node. + */ + export function getEmitHelpers(node: Node): EmitHelper[] | undefined { + const emitNode = node.emitNode; + return emitNode && emitNode.helpers; + } + + /** + * Moves matching emit helpers from a source node to a target node. + */ + export function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean) { + const sourceEmitNode = source.emitNode; + const sourceEmitHelpers = sourceEmitNode && sourceEmitNode.helpers; + if (!some(sourceEmitHelpers)) return; + + const targetEmitNode = getOrCreateEmitNode(target); + let helpersRemoved = 0; + for (let i = 0; i < sourceEmitHelpers.length; i++) { + const helper = sourceEmitHelpers[i]; + if (predicate(helper)) { + helpersRemoved++; + if (!contains(targetEmitNode.helpers, helper)) { + targetEmitNode.helpers = append(targetEmitNode.helpers, helper); + } + } + else if (helpersRemoved > 0) { + sourceEmitHelpers[i - helpersRemoved] = helper; + } + } + + if (helpersRemoved > 0) { + sourceEmitHelpers.length -= helpersRemoved; + } + } + + export function compareEmitHelpers(x: EmitHelper, y: EmitHelper) { + if (x === y) return Comparison.EqualTo; + if (x.priority === y.priority) return Comparison.EqualTo; + if (x.priority === undefined) return Comparison.GreaterThan; + if (y.priority === undefined) return Comparison.LessThan; + return compareValues(x.priority, y.priority); + } + export function setTextRange(node: T, location: TextRange): T { if (location) { node.pos = location.pos; @@ -3053,4 +2904,164 @@ namespace ts { function tryGetModuleNameFromDeclaration(declaration: ImportEqualsDeclaration | ImportDeclaration | ExportDeclaration, host: EmitHost, resolver: EmitResolver, compilerOptions: CompilerOptions) { return tryGetModuleNameFromFile(resolver.getExternalModuleFileFromDeclaration(declaration), host, compilerOptions); } + + export interface ExternalModuleInfo { + externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[]; // imports of other external modules + externalHelpersImportDeclaration: ImportDeclaration | undefined; // import of external helpers + exportSpecifiers: Map; // export specifiers by name + exportedBindings: Map; // exported names of local declarations + exportedNames: Identifier[]; // all exported names local to module + exportEquals: ExportAssignment | undefined; // an export= declaration if one was present + hasExportStarsToExportValues: boolean; // whether this module contains export* + } + + export function collectExternalModuleInfo(sourceFile: SourceFile, resolver: EmitResolver): ExternalModuleInfo { + const externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[] = []; + const exportSpecifiers = createMap(); + const exportedBindings = createMap(); + const uniqueExports = createMap(); + let hasExportDefault = false; + let exportEquals: ExportAssignment = undefined; + let hasExportStarsToExportValues = false; + + const externalHelpersModuleName = getExternalHelpersModuleName(sourceFile); + const externalHelpersImportDeclaration = externalHelpersModuleName && createImportDeclaration( + /*decorators*/ undefined, + /*modifiers*/ undefined, + createImportClause(/*name*/ undefined, createNamespaceImport(externalHelpersModuleName)), + createLiteral(externalHelpersModuleNameText)); + + if (externalHelpersImportDeclaration) { + externalImports.push(externalHelpersImportDeclaration); + } + + for (const node of sourceFile.statements) { + switch (node.kind) { + case SyntaxKind.ImportDeclaration: + // import "mod" + // import x from "mod" + // import * as x from "mod" + // import { x, y } from "mod" + externalImports.push(node); + break; + + case SyntaxKind.ImportEqualsDeclaration: + if ((node).moduleReference.kind === SyntaxKind.ExternalModuleReference) { + // import x = require("mod") + externalImports.push(node); + } + + break; + + case SyntaxKind.ExportDeclaration: + if ((node).moduleSpecifier) { + if (!(node).exportClause) { + // export * from "mod" + externalImports.push(node); + hasExportStarsToExportValues = true; + } + else { + // export { x, y } from "mod" + externalImports.push(node); + } + } + else { + // export { x, y } + for (const specifier of (node).exportClause.elements) { + if (!uniqueExports[specifier.name.text]) { + const name = specifier.propertyName || specifier.name; + multiMapAdd(exportSpecifiers, name.text, specifier); + + const decl = resolver.getReferencedImportDeclaration(name) + || resolver.getReferencedValueDeclaration(name); + + if (decl) { + multiMapAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); + } + + uniqueExports[specifier.name.text] = specifier.name; + } + } + } + break; + + case SyntaxKind.ExportAssignment: + if ((node).isExportEquals && !exportEquals) { + // export = x + exportEquals = node; + } + break; + + case SyntaxKind.VariableStatement: + if (hasModifier(node, ModifierFlags.Export)) { + for (const decl of (node).declarationList.declarations) { + collectExportedVariableInfo(decl, uniqueExports); + } + } + break; + + case SyntaxKind.FunctionDeclaration: + if (hasModifier(node, ModifierFlags.Export)) { + if (hasModifier(node, ModifierFlags.Default)) { + // export default function() { } + if (!hasExportDefault) { + multiMapAdd(exportedBindings, getOriginalNodeId(node), getDeclarationName(node)); + hasExportDefault = true; + } + } + else { + // export function x() { } + const name = (node).name; + if (!uniqueExports[name.text]) { + multiMapAdd(exportedBindings, getOriginalNodeId(node), name); + uniqueExports[name.text] = name; + } + } + } + break; + + case SyntaxKind.ClassDeclaration: + if (hasModifier(node, ModifierFlags.Export)) { + if (hasModifier(node, ModifierFlags.Default)) { + // export default class { } + if (!hasExportDefault) { + multiMapAdd(exportedBindings, getOriginalNodeId(node), getDeclarationName(node)); + hasExportDefault = true; + } + } + else { + // export class x { } + const name = (node).name; + if (!uniqueExports[name.text]) { + multiMapAdd(exportedBindings, getOriginalNodeId(node), name); + uniqueExports[name.text] = name; + } + } + } + break; + } + } + + let exportedNames: Identifier[]; + for (const key in uniqueExports) { + exportedNames = ts.append(exportedNames, uniqueExports[key]); + } + + return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration }; + } + + function collectExportedVariableInfo(decl: VariableDeclaration | BindingElement, uniqueExports: Map) { + if (isBindingPattern(decl.name)) { + for (const element of decl.name.elements) { + if (!isOmittedExpression(element)) { + collectExportedVariableInfo(element, uniqueExports); + } + } + } + else if (!isGeneratedIdentifier(decl.name)) { + if (!uniqueExports[decl.name.text]) { + uniqueExports[decl.name.text] = decl.name; + } + } + } } diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 7d1efdc4584ee..608a246696479 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -3,7 +3,6 @@ /*@internal*/ namespace ts { - const enum ES2015SubstitutionFlags { /** Enables substitutions for captured `this` */ CapturedThis = 1 << 0, @@ -170,6 +169,7 @@ namespace ts { hoistVariableDeclaration, } = context; + const compilerOptions = context.getCompilerOptions(); const resolver = context.getEmitResolver(); const previousOnSubstituteNode = context.onSubstituteNode; const previousOnEmitNode = context.onEmitNode; @@ -186,6 +186,7 @@ namespace ts { let enclosingFunction: FunctionLikeDeclaration; let enclosingNonArrowFunction: FunctionLikeDeclaration; let enclosingNonAsyncFunctionBody: FunctionLikeDeclaration | ClassElement; + let helperState: EmitHelperState; /** * Used to track if we are emitting body of the converted loop @@ -208,7 +209,15 @@ namespace ts { currentSourceFile = node; currentText = node.text; - return visitNode(node, visitor, isSourceFile); + helperState = { currentSourceFile, compilerOptions }; + + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, helperState.requestedHelpers); + + currentSourceFile = undefined; + currentText = undefined; + helperState = undefined; + return visited; } function visitor(node: Node): VisitResult { @@ -756,7 +765,7 @@ namespace ts { if (extendsClauseElement) { statements.push( createStatement( - createExtendsHelper(currentSourceFile.externalHelpersModuleName, getLocalName(node)), + createExtendsHelper(helperState, getLocalName(node)), /*location*/ extendsClauseElement ) ); @@ -3231,4 +3240,28 @@ namespace ts { return isIdentifier(expression) && expression === parameter.name; } } + + function createExtendsHelper(helperState: EmitHelperState, name: Identifier) { + requestEmitHelper(helperState, extendsHelper); + return createCall( + getHelperName(helperState, "__extends"), + /*typeArguments*/ undefined, + [ + name, + createIdentifier("_super") + ] + ); + } + + const extendsHelper: EmitHelper = { + name: "typescript:extends", + scoped: false, + priority: 0, + text: ` + var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + };` + }; } diff --git a/src/compiler/transformers/es2017.ts b/src/compiler/transformers/es2017.ts index 7800a41e147a3..14d97ade2ac3f 100644 --- a/src/compiler/transformers/es2017.ts +++ b/src/compiler/transformers/es2017.ts @@ -5,13 +5,12 @@ namespace ts { type SuperContainer = ClassDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration; - export function transformES2017(context: TransformationContext) { - - const enum ES2017SubstitutionFlags { - /** Enables substitutions for async methods with `super` calls. */ - AsyncMethodsWithSuper = 1 << 0 - } + const enum ES2017SubstitutionFlags { + /** Enables substitutions for async methods with `super` calls. */ + AsyncMethodsWithSuper = 1 << 0 + } + export function transformES2017(context: TransformationContext) { const { startLexicalEnvironment, endLexicalEnvironment, @@ -22,7 +21,9 @@ namespace ts { const languageVersion = getEmitScriptTarget(compilerOptions); // These variables contain state that changes as we descend into the tree. - let currentSourceFileExternalHelpersModuleName: Identifier; + let currentSourceFile: SourceFile; + let helperState: EmitHelperState; + /** * Keeps track of whether expression substitution has been enabled for specific edge cases. * They are persisted between each SourceFile transformation and should not be reset. @@ -58,9 +59,16 @@ namespace ts { return node; } - currentSourceFileExternalHelpersModuleName = node.externalHelpersModuleName; + currentSourceFile = node; + helperState = { currentSourceFile, compilerOptions }; + + const visited = visitEachChild(node, visitor, context); - return visitEachChild(node, visitor, context); + addEmitHelpers(visited, helperState.requestedHelpers); + + currentSourceFile = undefined; + helperState = undefined; + return visited; } function visitor(node: Node): VisitResult { @@ -107,11 +115,11 @@ namespace ts { } /** - * Visits an await expression. + * Visits an AwaitExpression node. * * This function will be called any time a ES2017 await expression is encountered. * - * @param node The await expression node. + * @param node The node to visit. */ function visitAwaitExpression(node: AwaitExpression): Expression { return setOriginalNode( @@ -125,17 +133,15 @@ namespace ts { } /** - * Visits a method declaration of a class. + * Visits a MethodDeclaration node. * * This function will be called when one of the following conditions are met: * - The node is marked as async * - * @param node The method node. + * @param node The node to visit. */ function visitMethodDeclaration(node: MethodDeclaration) { - if (!isAsyncFunctionLike(node)) { - return node; - } + Debug.assert(hasModifier(node, ModifierFlags.Async)); const method = createMethod( /*decorators*/ undefined, visitNodes(node.modifiers, visitor, isModifier), @@ -150,25 +156,20 @@ namespace ts { // While we emit the source map for the node after skipping decorators and modifiers, // we need to emit the comments for the original range. - setCommentRange(method, node); - setSourceMapRange(method, moveRangePastDecorators(node)); setOriginalNode(method, node); - return method; } /** - * Visits a function declaration. + * Visits a FunctionDeclaration node. * * This function will be called when one of the following conditions are met: * - The node is marked async * - * @param node The function node. + * @param node The node to visit. */ function visitFunctionDeclaration(node: FunctionDeclaration): VisitResult { - if (!isAsyncFunctionLike(node)) { - return node; - } + Debug.assert(hasModifier(node, ModifierFlags.Async)); const func = createFunctionDeclaration( /*decorators*/ undefined, visitNodes(node.modifiers, visitor, isModifier), @@ -180,23 +181,21 @@ namespace ts { transformFunctionBody(node), /*location*/ node ); - setOriginalNode(func, node); + setOriginalNode(func, node); return func; } /** - * Visits a function expression node. + * Visits a FunctionExpression node. * * This function will be called when one of the following conditions are met: * - The node is marked async * - * @param node The function expression node. + * @param node The node to visit. */ function visitFunctionExpression(node: FunctionExpression): Expression { - if (!isAsyncFunctionLike(node)) { - return node; - } + Debug.assert(hasModifier(node, ModifierFlags.Async)); if (nodeIsMissing(node.body)) { return createOmittedExpression(); } @@ -213,19 +212,19 @@ namespace ts { ); setOriginalNode(func, node); - return func; } /** - * @remarks + * Visits an ArrowFunction. + * * This function will be called when one of the following conditions are met: * - The node is marked async + * + * @param node The node to visit. */ function visitArrowFunction(node: ArrowFunction) { - if (!isAsyncFunctionLike(node)) { - return node; - } + Debug.assert(hasModifier(node, ModifierFlags.Async)); const func = createArrowFunction( visitNodes(node.modifiers, visitor, isModifier), /*typeParameters*/ undefined, @@ -237,7 +236,6 @@ namespace ts { ); setOriginalNode(func, node); - return func; } @@ -280,7 +278,7 @@ namespace ts { statements.push( createReturn( createAwaiterHelper( - currentSourceFileExternalHelpersModuleName, + helperState, hasLexicalArguments, promiseConstructor, transformFunctionBodyWorker(node.body, statementOffset) @@ -295,11 +293,11 @@ namespace ts { if (languageVersion >= ScriptTarget.ES2015) { if (resolver.getNodeCheckFlags(node) & NodeCheckFlags.AsyncMethodWithSuperBinding) { enableSubstitutionForAsyncMethodsWithSuper(); - setEmitFlags(block, EmitFlags.EmitAdvancedSuperHelper); + addEmitHelper(block, advancedAsyncSuperHelper); } else if (resolver.getNodeCheckFlags(node) & NodeCheckFlags.AsyncMethodWithSuper) { enableSubstitutionForAsyncMethodsWithSuper(); - setEmitFlags(block, EmitFlags.EmitSuperHelper); + addEmitHelper(block, asyncSuperHelper); } } @@ -307,7 +305,7 @@ namespace ts { } else { return createAwaiterHelper( - currentSourceFileExternalHelpersModuleName, + helperState, hasLexicalArguments, promiseConstructor, transformConciseBodyWorker(node.body, /*forceBlockFunctionBody*/ true) @@ -507,4 +505,63 @@ namespace ts { && resolver.getNodeCheckFlags(currentSuperContainer) & (NodeCheckFlags.AsyncMethodWithSuper | NodeCheckFlags.AsyncMethodWithSuperBinding); } } + + function createAwaiterHelper(helperState: EmitHelperState, hasLexicalArguments: boolean, promiseConstructor: EntityName | Expression, body: Block) { + const generatorFunc = createFunctionExpression( + /*modifiers*/ undefined, + createToken(SyntaxKind.AsteriskToken), + /*name*/ undefined, + /*typeParameters*/ undefined, + /*parameters*/ [], + /*type*/ undefined, + body + ); + + // Mark this node as originally an async function + (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= EmitFlags.AsyncFunctionBody; + + requestEmitHelper(helperState, awaiterHelper); + return createCall( + getHelperName(helperState, "__awaiter"), + /*typeArguments*/ undefined, + [ + createThis(), + hasLexicalArguments ? createIdentifier("arguments") : createVoidZero(), + promiseConstructor ? createExpressionFromEntityName(promiseConstructor) : createVoidZero(), + generatorFunc + ] + ); + } + + const awaiterHelper: EmitHelper = { + name: "typescript:awaiter", + scoped: false, + priority: 5, + text: ` + 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); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments)).next()); + }); + };` + }; + + const asyncSuperHelper: EmitHelper = { + name: "typescript:async-super", + scoped: true, + text: ` + const _super = name => super[name];` + }; + + const advancedAsyncSuperHelper: EmitHelper = { + name: "typescript:advanced-async-super", + scoped: true, + text: ` + const _super = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);` + }; } diff --git a/src/compiler/transformers/generators.ts b/src/compiler/transformers/generators.ts index 7c9cde59fde74..78c9e42c1bfc3 100644 --- a/src/compiler/transformers/generators.ts +++ b/src/compiler/transformers/generators.ts @@ -242,6 +242,7 @@ namespace ts { let currentSourceFile: SourceFile; let renamedCatchVariables: Map; let renamedCatchVariableDeclarations: Map; + let helperState: EmitHelperState; let inGeneratorFunctionBody: boolean; let inStatementContainingYield: boolean; @@ -291,17 +292,20 @@ namespace ts { return transformSourceFile; function transformSourceFile(node: SourceFile) { - if (isDeclarationFile(node)) { + if (isDeclarationFile(node) + || (node.transformFlags & TransformFlags.ContainsGenerator) === 0) { return node; } - if (node.transformFlags & TransformFlags.ContainsGenerator) { - currentSourceFile = node; - node = visitEachChild(node, visitor, context); - currentSourceFile = undefined; - } + currentSourceFile = node; + helperState = { currentSourceFile, compilerOptions }; - return node; + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, helperState.requestedHelpers); + + currentSourceFile = undefined; + helperState = undefined; + return visited; } /** @@ -2585,28 +2589,24 @@ namespace ts { withBlockStack = undefined; const buildResult = buildStatements(); - return createCall( - createHelperName(currentSourceFile.externalHelpersModuleName, "__generator"), - /*typeArguments*/ undefined, - [ - createThis(), - setEmitFlags( - createFunctionExpression( - /*modifiers*/ undefined, - /*asteriskToken*/ undefined, - /*name*/ undefined, - /*typeParameters*/ undefined, - [createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, state)], - /*type*/ undefined, - createBlock( - buildResult, - /*location*/ undefined, - /*multiLine*/ buildResult.length > 0 - ) - ), - EmitFlags.ReuseTempVariableScope - ) - ] + return createGeneratorHelper( + helperState, + setEmitFlags( + createFunctionExpression( + /*modifiers*/ undefined, + /*asteriskToken*/ undefined, + /*name*/ undefined, + /*typeParameters*/ undefined, + [createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, state)], + /*type*/ undefined, + createBlock( + buildResult, + /*location*/ undefined, + /*multiLine*/ buildResult.length > 0 + ) + ), + EmitFlags.ReuseTempVariableScope + ) ); } @@ -3082,4 +3082,105 @@ namespace ts { ); } } + + function createGeneratorHelper(helperState: EmitHelperState, body: FunctionExpression) { + requestEmitHelper(helperState, generatorHelper); + return createCall( + getHelperName(helperState, "__generator"), + /*typeArguments*/ undefined, + [createThis(), body]); + } + + // The __generator helper is used by down-level transformations to emulate the runtime + // semantics of an ES2015 generator function. When called, this helper returns an + // object that implements the Iterator protocol, in that it has `next`, `return`, and + // `throw` methods that step through the generator when invoked. + // + // parameters: + // thisArg The value to use as the `this` binding for the transformed generator body. + // body A function that acts as the transformed generator body. + // + // variables: + // _ Persistent state for the generator that is shared between the helper and the + // generator body. The state object has the following members: + // sent() - A method that returns or throws the current completion value. + // label - The next point at which to resume evaluation of the generator body. + // trys - A stack of protected regions (try/catch/finally blocks). + // ops - A stack of pending instructions when inside of a finally block. + // f A value indicating whether the generator is executing. + // y An iterator to delegate for a yield*. + // t A temporary variable that holds one of the following values (note that these + // cases do not overlap): + // - The completion value when resuming from a `yield` or `yield*`. + // - The error value for a catch block. + // - The current protected region (array of try/catch/finally/end labels). + // - The verb (`next`, `throw`, or `return` method) to delegate to the expression + // of a `yield*`. + // - The result of evaluating the verb delegated to the expression of a `yield*`. + // + // functions: + // verb(n) Creates a bound callback to the `step` function for opcode `n`. + // step(op) Evaluates opcodes in a generator body until execution is suspended or + // completed. + // + // The __generator helper understands a limited set of instructions: + // 0: next(value?) - Start or resume the generator with the specified value. + // 1: throw(error) - Resume the generator with an exception. If the generator is + // suspended inside of one or more protected regions, evaluates + // any intervening finally blocks between the current label and + // the nearest catch block or function boundary. If uncaught, the + // exception is thrown to the caller. + // 2: return(value?) - Resume the generator as if with a return. If the generator is + // suspended inside of one or more protected regions, evaluates any + // intervening finally blocks. + // 3: break(label) - Jump to the specified label. If the label is outside of the + // current protected region, evaluates any intervening finally + // blocks. + // 4: yield(value?) - Yield execution to the caller with an optional value. When + // resumed, the generator will continue at the next label. + // 5: yield*(value) - Delegates evaluation to the supplied iterator. When + // delegation completes, the generator will continue at the next + // label. + // 6: catch(error) - Handles an exception thrown from within the generator body. If + // the current label is inside of one or more protected regions, + // evaluates any intervening finally blocks between the current + // label and the nearest catch block or function boundary. If + // uncaught, the exception is thrown to the caller. + // 7: endfinally - Ends a finally block, resuming the last instruction prior to + // entering a finally block. + // + // For examples of how these are used, see the comments in ./transformers/generators.ts + const generatorHelper: EmitHelper = { + name: "typescript:generator", + scoped: false, + priority: 6, + text: ` + 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; + return { next: verb(0), "throw": verb(1), "return": verb(2) }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };` + }; } diff --git a/src/compiler/transformers/jsx.ts b/src/compiler/transformers/jsx.ts index 95a4016bb0aeb..8867896e51eb8 100644 --- a/src/compiler/transformers/jsx.ts +++ b/src/compiler/transformers/jsx.ts @@ -3,11 +3,11 @@ /*@internal*/ namespace ts { - const entities: Map = createEntitiesMap(); - export function transformJsx(context: TransformationContext) { const compilerOptions = context.getCompilerOptions(); let currentSourceFile: SourceFile; + let helperState: EmitHelperState; + return transformSourceFile; /** @@ -21,9 +21,14 @@ namespace ts { } currentSourceFile = node; - node = visitEachChild(node, visitor, context); + helperState = { currentSourceFile, compilerOptions }; + + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, helperState.requestedHelpers); + currentSourceFile = undefined; - return node; + helperState = undefined; + return visited; } function visitor(node: Node): VisitResult { @@ -109,8 +114,10 @@ namespace ts { // Either emit one big object literal (no spread attribs), or // a call to the __assign helper. - objectProperties = singleOrUndefined(segments) - || createAssignHelper(currentSourceFile.externalHelpersModuleName, segments); + objectProperties = singleOrUndefined(segments); + if (!objectProperties) { + objectProperties = createAssignHelper(helperState, segments); + } } const element = createReactCreateElement( @@ -275,261 +282,283 @@ namespace ts { } } - function createEntitiesMap(): Map { - return createMap({ - "quot": 0x0022, - "amp": 0x0026, - "apos": 0x0027, - "lt": 0x003C, - "gt": 0x003E, - "nbsp": 0x00A0, - "iexcl": 0x00A1, - "cent": 0x00A2, - "pound": 0x00A3, - "curren": 0x00A4, - "yen": 0x00A5, - "brvbar": 0x00A6, - "sect": 0x00A7, - "uml": 0x00A8, - "copy": 0x00A9, - "ordf": 0x00AA, - "laquo": 0x00AB, - "not": 0x00AC, - "shy": 0x00AD, - "reg": 0x00AE, - "macr": 0x00AF, - "deg": 0x00B0, - "plusmn": 0x00B1, - "sup2": 0x00B2, - "sup3": 0x00B3, - "acute": 0x00B4, - "micro": 0x00B5, - "para": 0x00B6, - "middot": 0x00B7, - "cedil": 0x00B8, - "sup1": 0x00B9, - "ordm": 0x00BA, - "raquo": 0x00BB, - "frac14": 0x00BC, - "frac12": 0x00BD, - "frac34": 0x00BE, - "iquest": 0x00BF, - "Agrave": 0x00C0, - "Aacute": 0x00C1, - "Acirc": 0x00C2, - "Atilde": 0x00C3, - "Auml": 0x00C4, - "Aring": 0x00C5, - "AElig": 0x00C6, - "Ccedil": 0x00C7, - "Egrave": 0x00C8, - "Eacute": 0x00C9, - "Ecirc": 0x00CA, - "Euml": 0x00CB, - "Igrave": 0x00CC, - "Iacute": 0x00CD, - "Icirc": 0x00CE, - "Iuml": 0x00CF, - "ETH": 0x00D0, - "Ntilde": 0x00D1, - "Ograve": 0x00D2, - "Oacute": 0x00D3, - "Ocirc": 0x00D4, - "Otilde": 0x00D5, - "Ouml": 0x00D6, - "times": 0x00D7, - "Oslash": 0x00D8, - "Ugrave": 0x00D9, - "Uacute": 0x00DA, - "Ucirc": 0x00DB, - "Uuml": 0x00DC, - "Yacute": 0x00DD, - "THORN": 0x00DE, - "szlig": 0x00DF, - "agrave": 0x00E0, - "aacute": 0x00E1, - "acirc": 0x00E2, - "atilde": 0x00E3, - "auml": 0x00E4, - "aring": 0x00E5, - "aelig": 0x00E6, - "ccedil": 0x00E7, - "egrave": 0x00E8, - "eacute": 0x00E9, - "ecirc": 0x00EA, - "euml": 0x00EB, - "igrave": 0x00EC, - "iacute": 0x00ED, - "icirc": 0x00EE, - "iuml": 0x00EF, - "eth": 0x00F0, - "ntilde": 0x00F1, - "ograve": 0x00F2, - "oacute": 0x00F3, - "ocirc": 0x00F4, - "otilde": 0x00F5, - "ouml": 0x00F6, - "divide": 0x00F7, - "oslash": 0x00F8, - "ugrave": 0x00F9, - "uacute": 0x00FA, - "ucirc": 0x00FB, - "uuml": 0x00FC, - "yacute": 0x00FD, - "thorn": 0x00FE, - "yuml": 0x00FF, - "OElig": 0x0152, - "oelig": 0x0153, - "Scaron": 0x0160, - "scaron": 0x0161, - "Yuml": 0x0178, - "fnof": 0x0192, - "circ": 0x02C6, - "tilde": 0x02DC, - "Alpha": 0x0391, - "Beta": 0x0392, - "Gamma": 0x0393, - "Delta": 0x0394, - "Epsilon": 0x0395, - "Zeta": 0x0396, - "Eta": 0x0397, - "Theta": 0x0398, - "Iota": 0x0399, - "Kappa": 0x039A, - "Lambda": 0x039B, - "Mu": 0x039C, - "Nu": 0x039D, - "Xi": 0x039E, - "Omicron": 0x039F, - "Pi": 0x03A0, - "Rho": 0x03A1, - "Sigma": 0x03A3, - "Tau": 0x03A4, - "Upsilon": 0x03A5, - "Phi": 0x03A6, - "Chi": 0x03A7, - "Psi": 0x03A8, - "Omega": 0x03A9, - "alpha": 0x03B1, - "beta": 0x03B2, - "gamma": 0x03B3, - "delta": 0x03B4, - "epsilon": 0x03B5, - "zeta": 0x03B6, - "eta": 0x03B7, - "theta": 0x03B8, - "iota": 0x03B9, - "kappa": 0x03BA, - "lambda": 0x03BB, - "mu": 0x03BC, - "nu": 0x03BD, - "xi": 0x03BE, - "omicron": 0x03BF, - "pi": 0x03C0, - "rho": 0x03C1, - "sigmaf": 0x03C2, - "sigma": 0x03C3, - "tau": 0x03C4, - "upsilon": 0x03C5, - "phi": 0x03C6, - "chi": 0x03C7, - "psi": 0x03C8, - "omega": 0x03C9, - "thetasym": 0x03D1, - "upsih": 0x03D2, - "piv": 0x03D6, - "ensp": 0x2002, - "emsp": 0x2003, - "thinsp": 0x2009, - "zwnj": 0x200C, - "zwj": 0x200D, - "lrm": 0x200E, - "rlm": 0x200F, - "ndash": 0x2013, - "mdash": 0x2014, - "lsquo": 0x2018, - "rsquo": 0x2019, - "sbquo": 0x201A, - "ldquo": 0x201C, - "rdquo": 0x201D, - "bdquo": 0x201E, - "dagger": 0x2020, - "Dagger": 0x2021, - "bull": 0x2022, - "hellip": 0x2026, - "permil": 0x2030, - "prime": 0x2032, - "Prime": 0x2033, - "lsaquo": 0x2039, - "rsaquo": 0x203A, - "oline": 0x203E, - "frasl": 0x2044, - "euro": 0x20AC, - "image": 0x2111, - "weierp": 0x2118, - "real": 0x211C, - "trade": 0x2122, - "alefsym": 0x2135, - "larr": 0x2190, - "uarr": 0x2191, - "rarr": 0x2192, - "darr": 0x2193, - "harr": 0x2194, - "crarr": 0x21B5, - "lArr": 0x21D0, - "uArr": 0x21D1, - "rArr": 0x21D2, - "dArr": 0x21D3, - "hArr": 0x21D4, - "forall": 0x2200, - "part": 0x2202, - "exist": 0x2203, - "empty": 0x2205, - "nabla": 0x2207, - "isin": 0x2208, - "notin": 0x2209, - "ni": 0x220B, - "prod": 0x220F, - "sum": 0x2211, - "minus": 0x2212, - "lowast": 0x2217, - "radic": 0x221A, - "prop": 0x221D, - "infin": 0x221E, - "ang": 0x2220, - "and": 0x2227, - "or": 0x2228, - "cap": 0x2229, - "cup": 0x222A, - "int": 0x222B, - "there4": 0x2234, - "sim": 0x223C, - "cong": 0x2245, - "asymp": 0x2248, - "ne": 0x2260, - "equiv": 0x2261, - "le": 0x2264, - "ge": 0x2265, - "sub": 0x2282, - "sup": 0x2283, - "nsub": 0x2284, - "sube": 0x2286, - "supe": 0x2287, - "oplus": 0x2295, - "otimes": 0x2297, - "perp": 0x22A5, - "sdot": 0x22C5, - "lceil": 0x2308, - "rceil": 0x2309, - "lfloor": 0x230A, - "rfloor": 0x230B, - "lang": 0x2329, - "rang": 0x232A, - "loz": 0x25CA, - "spades": 0x2660, - "clubs": 0x2663, - "hearts": 0x2665, - "diams": 0x2666 - }); + const entities = createMap({ + "quot": 0x0022, + "amp": 0x0026, + "apos": 0x0027, + "lt": 0x003C, + "gt": 0x003E, + "nbsp": 0x00A0, + "iexcl": 0x00A1, + "cent": 0x00A2, + "pound": 0x00A3, + "curren": 0x00A4, + "yen": 0x00A5, + "brvbar": 0x00A6, + "sect": 0x00A7, + "uml": 0x00A8, + "copy": 0x00A9, + "ordf": 0x00AA, + "laquo": 0x00AB, + "not": 0x00AC, + "shy": 0x00AD, + "reg": 0x00AE, + "macr": 0x00AF, + "deg": 0x00B0, + "plusmn": 0x00B1, + "sup2": 0x00B2, + "sup3": 0x00B3, + "acute": 0x00B4, + "micro": 0x00B5, + "para": 0x00B6, + "middot": 0x00B7, + "cedil": 0x00B8, + "sup1": 0x00B9, + "ordm": 0x00BA, + "raquo": 0x00BB, + "frac14": 0x00BC, + "frac12": 0x00BD, + "frac34": 0x00BE, + "iquest": 0x00BF, + "Agrave": 0x00C0, + "Aacute": 0x00C1, + "Acirc": 0x00C2, + "Atilde": 0x00C3, + "Auml": 0x00C4, + "Aring": 0x00C5, + "AElig": 0x00C6, + "Ccedil": 0x00C7, + "Egrave": 0x00C8, + "Eacute": 0x00C9, + "Ecirc": 0x00CA, + "Euml": 0x00CB, + "Igrave": 0x00CC, + "Iacute": 0x00CD, + "Icirc": 0x00CE, + "Iuml": 0x00CF, + "ETH": 0x00D0, + "Ntilde": 0x00D1, + "Ograve": 0x00D2, + "Oacute": 0x00D3, + "Ocirc": 0x00D4, + "Otilde": 0x00D5, + "Ouml": 0x00D6, + "times": 0x00D7, + "Oslash": 0x00D8, + "Ugrave": 0x00D9, + "Uacute": 0x00DA, + "Ucirc": 0x00DB, + "Uuml": 0x00DC, + "Yacute": 0x00DD, + "THORN": 0x00DE, + "szlig": 0x00DF, + "agrave": 0x00E0, + "aacute": 0x00E1, + "acirc": 0x00E2, + "atilde": 0x00E3, + "auml": 0x00E4, + "aring": 0x00E5, + "aelig": 0x00E6, + "ccedil": 0x00E7, + "egrave": 0x00E8, + "eacute": 0x00E9, + "ecirc": 0x00EA, + "euml": 0x00EB, + "igrave": 0x00EC, + "iacute": 0x00ED, + "icirc": 0x00EE, + "iuml": 0x00EF, + "eth": 0x00F0, + "ntilde": 0x00F1, + "ograve": 0x00F2, + "oacute": 0x00F3, + "ocirc": 0x00F4, + "otilde": 0x00F5, + "ouml": 0x00F6, + "divide": 0x00F7, + "oslash": 0x00F8, + "ugrave": 0x00F9, + "uacute": 0x00FA, + "ucirc": 0x00FB, + "uuml": 0x00FC, + "yacute": 0x00FD, + "thorn": 0x00FE, + "yuml": 0x00FF, + "OElig": 0x0152, + "oelig": 0x0153, + "Scaron": 0x0160, + "scaron": 0x0161, + "Yuml": 0x0178, + "fnof": 0x0192, + "circ": 0x02C6, + "tilde": 0x02DC, + "Alpha": 0x0391, + "Beta": 0x0392, + "Gamma": 0x0393, + "Delta": 0x0394, + "Epsilon": 0x0395, + "Zeta": 0x0396, + "Eta": 0x0397, + "Theta": 0x0398, + "Iota": 0x0399, + "Kappa": 0x039A, + "Lambda": 0x039B, + "Mu": 0x039C, + "Nu": 0x039D, + "Xi": 0x039E, + "Omicron": 0x039F, + "Pi": 0x03A0, + "Rho": 0x03A1, + "Sigma": 0x03A3, + "Tau": 0x03A4, + "Upsilon": 0x03A5, + "Phi": 0x03A6, + "Chi": 0x03A7, + "Psi": 0x03A8, + "Omega": 0x03A9, + "alpha": 0x03B1, + "beta": 0x03B2, + "gamma": 0x03B3, + "delta": 0x03B4, + "epsilon": 0x03B5, + "zeta": 0x03B6, + "eta": 0x03B7, + "theta": 0x03B8, + "iota": 0x03B9, + "kappa": 0x03BA, + "lambda": 0x03BB, + "mu": 0x03BC, + "nu": 0x03BD, + "xi": 0x03BE, + "omicron": 0x03BF, + "pi": 0x03C0, + "rho": 0x03C1, + "sigmaf": 0x03C2, + "sigma": 0x03C3, + "tau": 0x03C4, + "upsilon": 0x03C5, + "phi": 0x03C6, + "chi": 0x03C7, + "psi": 0x03C8, + "omega": 0x03C9, + "thetasym": 0x03D1, + "upsih": 0x03D2, + "piv": 0x03D6, + "ensp": 0x2002, + "emsp": 0x2003, + "thinsp": 0x2009, + "zwnj": 0x200C, + "zwj": 0x200D, + "lrm": 0x200E, + "rlm": 0x200F, + "ndash": 0x2013, + "mdash": 0x2014, + "lsquo": 0x2018, + "rsquo": 0x2019, + "sbquo": 0x201A, + "ldquo": 0x201C, + "rdquo": 0x201D, + "bdquo": 0x201E, + "dagger": 0x2020, + "Dagger": 0x2021, + "bull": 0x2022, + "hellip": 0x2026, + "permil": 0x2030, + "prime": 0x2032, + "Prime": 0x2033, + "lsaquo": 0x2039, + "rsaquo": 0x203A, + "oline": 0x203E, + "frasl": 0x2044, + "euro": 0x20AC, + "image": 0x2111, + "weierp": 0x2118, + "real": 0x211C, + "trade": 0x2122, + "alefsym": 0x2135, + "larr": 0x2190, + "uarr": 0x2191, + "rarr": 0x2192, + "darr": 0x2193, + "harr": 0x2194, + "crarr": 0x21B5, + "lArr": 0x21D0, + "uArr": 0x21D1, + "rArr": 0x21D2, + "dArr": 0x21D3, + "hArr": 0x21D4, + "forall": 0x2200, + "part": 0x2202, + "exist": 0x2203, + "empty": 0x2205, + "nabla": 0x2207, + "isin": 0x2208, + "notin": 0x2209, + "ni": 0x220B, + "prod": 0x220F, + "sum": 0x2211, + "minus": 0x2212, + "lowast": 0x2217, + "radic": 0x221A, + "prop": 0x221D, + "infin": 0x221E, + "ang": 0x2220, + "and": 0x2227, + "or": 0x2228, + "cap": 0x2229, + "cup": 0x222A, + "int": 0x222B, + "there4": 0x2234, + "sim": 0x223C, + "cong": 0x2245, + "asymp": 0x2248, + "ne": 0x2260, + "equiv": 0x2261, + "le": 0x2264, + "ge": 0x2265, + "sub": 0x2282, + "sup": 0x2283, + "nsub": 0x2284, + "sube": 0x2286, + "supe": 0x2287, + "oplus": 0x2295, + "otimes": 0x2297, + "perp": 0x22A5, + "sdot": 0x22C5, + "lceil": 0x2308, + "rceil": 0x2309, + "lfloor": 0x230A, + "rfloor": 0x230B, + "lang": 0x2329, + "rang": 0x232A, + "loz": 0x25CA, + "spades": 0x2660, + "clubs": 0x2663, + "hearts": 0x2665, + "diams": 0x2666 + }); + + function createAssignHelper(helperState: EmitHelperState, attributesSegments: Expression[]) { + requestEmitHelper(helperState, assignHelper); + return createCall( + getHelperName(helperState, "__assign"), + /*typeArguments*/ undefined, + attributesSegments + ); } + + const assignHelper: EmitHelper = { + name: "typescript:assign", + scoped: false, + priority: 1, + text: ` + var __assign = (this && this.__assign) || Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + };` + }; } \ No newline at end of file diff --git a/src/compiler/transformers/module/es2015.ts b/src/compiler/transformers/module/es2015.ts index 93aa108617a5b..daef9cb5a4dec 100644 --- a/src/compiler/transformers/module/es2015.ts +++ b/src/compiler/transformers/module/es2015.ts @@ -13,7 +13,27 @@ namespace ts { } if (isExternalModule(node) || compilerOptions.isolatedModules) { - return visitEachChild(node, visitor, context); + const externalHelpersModuleName = getExternalHelpersModuleName(node); + if (externalHelpersModuleName) { + const statements: Statement[] = []; + const statementOffset = addPrologueDirectives(statements, node.statements); + append(statements, + createImportDeclaration( + /*decorators*/ undefined, + /*modifiers*/ undefined, + createImportClause(/*name*/ undefined, createNamespaceImport(externalHelpersModuleName)), + createLiteral(externalHelpersModuleNameText) + ) + ); + + addRange(statements, visitNodes(node.statements, visitor, isStatement, statementOffset)); + return updateSourceFileNode( + node, + createNodeArray(statements, node.statements)); + } + else { + return visitEachChild(node, visitor, context); + } } return node; diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index 87d02b4402548..b946d93f32dee 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -82,13 +82,14 @@ namespace ts { const statements: Statement[] = []; const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor); + append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true)); addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset)); addRange(statements, endLexicalEnvironment()); addExportEqualsIfNeeded(statements, /*emitAsReturn*/ false); const updated = updateSourceFileNode(node, createNodeArray(statements, node.statements)); if (currentModuleInfo.hasExportStarsToExportValues) { - setEmitFlags(updated, EmitFlags.EmitExportStar | getEmitFlags(node)); + addEmitHelper(updated, exportStarHelper); } return updated; @@ -257,6 +258,7 @@ namespace ts { const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor); // Visit each statement of the module body. + append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true)); addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset)); // End the lexical environment for the module body @@ -270,7 +272,7 @@ namespace ts { if (currentModuleInfo.hasExportStarsToExportValues) { // If we have any `export * from ...` declarations // we need to inform the emitter to add the __export helper. - setEmitFlags(body, EmitFlags.EmitExportStar); + addEmitHelper(body, exportStarHelper); } return body; @@ -1312,4 +1314,14 @@ namespace ts { } } } + + // emit output for the __export helper function + const exportStarHelper: EmitHelper = { + name: "typescript:export-star", + scoped: true, + text: ` + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + }` + }; } diff --git a/src/compiler/transformers/module/system.ts b/src/compiler/transformers/module/system.ts index adc9385935b0b..4b24d5c164166 100644 --- a/src/compiler/transformers/module/system.ts +++ b/src/compiler/transformers/module/system.ts @@ -82,6 +82,7 @@ namespace ts { // Add the body of the module. const dependencyGroups = collectDependencyGroups(moduleInfo.externalImports); + const moduleBodyBlock = createSystemModuleBody(node, dependencyGroups); const moduleBodyFunction = createFunctionExpression( /*modifiers*/ undefined, /*asteriskToken*/ undefined, @@ -92,7 +93,7 @@ namespace ts { createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, contextObject) ], /*type*/ undefined, - createSystemModuleBody(node, dependencyGroups) + moduleBodyBlock ); // Write the call to `System.register` @@ -115,7 +116,9 @@ namespace ts { ], node.statements) ); - setEmitFlags(updated, getEmitFlags(node) & ~EmitFlags.EmitEmitHelpers); + if (!(compilerOptions.outFile || compilerOptions.out)) { + moveEmitHelpers(updated, moduleBodyBlock, helper => !helper.scoped); + } if (noSubstitution) { noSubstitutionMap[id] = noSubstitution; @@ -236,6 +239,9 @@ namespace ts { ) ); + // Visit the synthetic external helpers import declaration if present + visitNode(moduleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true); + // Visit the statements of the source file, emitting any transformations into // the `executeStatements` array. We do this *before* we fill the `setters` array // as we both emit transformations as well as aggregate some data used when creating @@ -280,9 +286,7 @@ namespace ts { ) ); - const body = createBlock(statements, /*location*/ undefined, /*multiLine*/ true); - setEmitFlags(body, EmitFlags.EmitEmitHelpers); - return body; + return createBlock(statements, /*location*/ undefined, /*multiLine*/ true); } /** @@ -394,7 +398,13 @@ namespace ts { if (localNames) { condition = createLogicalAnd( condition, - createLogicalNot(createHasOwnProperty(localNames, n)) + createLogicalNot( + createCall( + createPropertyAccess(localNames, "hasOwnProperty"), + /*typeArguments*/ undefined, + [n] + ) + ) ); } diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index fe264876b2581..02c7b107b256e 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -48,7 +48,7 @@ namespace ts { let currentNamespaceContainerName: Identifier; let currentScope: SourceFile | Block | ModuleBlock | CaseBlock; let currentScopeFirstDeclarationsOfName: Map; - let currentExternalHelpersModuleName: Identifier; + let helperState: EmitHelperState; /** * Keeps track of whether expression substitution has been enabled for specific edge cases. @@ -80,7 +80,23 @@ namespace ts { return node; } - return visitNode(node, visitor, isSourceFile); + currentSourceFile = node; + currentScope = node; + currentScopeFirstDeclarationsOfName = createMap(); + helperState = { currentSourceFile, compilerOptions }; + + let visited = visitEachChild(node, sourceElementVisitor, context); + if (compilerOptions.alwaysStrict) { + visited = updateSourceFileNode(visited, ensureUseStrict(visited.statements)); + } + + addEmitHelpers(visited, helperState.requestedHelpers); + + currentSourceFile = undefined; + currentScope = undefined; + currentScopeFirstDeclarationsOfName = undefined; + helperState = undefined; + return visited; } /** @@ -122,10 +138,7 @@ namespace ts { * @param node The node to visit. */ function visitorWorker(node: Node): VisitResult { - if (node.kind === SyntaxKind.SourceFile) { - return visitSourceFile(node); - } - else if (node.transformFlags & TransformFlags.TypeScript) { + if (node.transformFlags & TransformFlags.TypeScript) { // This node is explicitly marked as TypeScript, so we should transform the node. return visitTypeScript(node); } @@ -252,7 +265,6 @@ namespace ts { return node; } - /** * Branching visitor, visits a TypeScript syntax node. * @@ -446,7 +458,6 @@ namespace ts { */ function onBeforeVisitNode(node: Node) { switch (node.kind) { - case SyntaxKind.SourceFile: case SyntaxKind.CaseBlock: case SyntaxKind.ModuleBlock: case SyntaxKind.Block: @@ -465,50 +476,6 @@ namespace ts { } } - function visitSourceFile(node: SourceFile) { - currentSourceFile = node; - - // ensure "use strict" is emitted in all scenarios in alwaysStrict mode - if (compilerOptions.alwaysStrict) { - node = ensureUseStrict(node); - } - - // If the source file requires any helpers and is an external module, and - // the importHelpers compiler option is enabled, emit a synthesized import - // statement for the helpers library. - if (node.flags & NodeFlags.EmitHelperFlags - && compilerOptions.importHelpers - && (isExternalModule(node) || compilerOptions.isolatedModules)) { - startLexicalEnvironment(); - const statements: Statement[] = []; - const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ false, visitor); - const externalHelpersModuleName = createUniqueName(externalHelpersModuleNameText); - const externalHelpersModuleImport = createImportDeclaration( - /*decorators*/ undefined, - /*modifiers*/ undefined, - createImportClause(/*name*/ undefined, createNamespaceImport(externalHelpersModuleName)), - createLiteral(externalHelpersModuleNameText)); - - externalHelpersModuleImport.parent = node; - externalHelpersModuleImport.flags &= ~NodeFlags.Synthesized; - statements.push(externalHelpersModuleImport); - - currentExternalHelpersModuleName = externalHelpersModuleName; - addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset)); - addRange(statements, endLexicalEnvironment()); - currentExternalHelpersModuleName = undefined; - - node = updateSourceFileNode(node, createNodeArray(statements, node.statements)); - node.externalHelpersModuleName = externalHelpersModuleName; - } - else { - node = visitEachChild(node, sourceElementVisitor, context); - } - - setEmitFlags(node, EmitFlags.EmitEmitHelpers | getEmitFlags(node)); - return node; - } - /** * Tests whether we should emit a __decorate call for a class declaration. */ @@ -1418,7 +1385,7 @@ namespace ts { : undefined; const helper = createDecorateHelper( - currentExternalHelpersModuleName, + helperState, decoratorExpressions, prefix, memberName, @@ -1456,7 +1423,7 @@ namespace ts { const classAlias = classAliases && classAliases[getOriginalNodeId(node)]; const localName = getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true); - const decorate = createDecorateHelper(currentExternalHelpersModuleName, decoratorExpressions, localName); + const decorate = createDecorateHelper(helperState, decoratorExpressions, localName); const expression = createAssignment(localName, classAlias ? createAssignment(classAlias, decorate) : decorate); setEmitFlags(expression, EmitFlags.NoComments); setSourceMapRange(expression, moveRangePastDecorators(node)); @@ -1484,7 +1451,7 @@ namespace ts { expressions = []; for (const decorator of decorators) { const helper = createParamHelper( - currentExternalHelpersModuleName, + helperState, transformDecorator(decorator), parameterOffset, /*location*/ decorator.expression); @@ -1514,13 +1481,13 @@ namespace ts { function addOldTypeMetadata(node: Declaration, decoratorExpressions: Expression[]) { if (compilerOptions.emitDecoratorMetadata) { if (shouldAddTypeMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(currentExternalHelpersModuleName, "design:type", serializeTypeOfNode(node))); + decoratorExpressions.push(createMetadataHelper(helperState, "design:type", serializeTypeOfNode(node))); } if (shouldAddParamTypesMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(currentExternalHelpersModuleName, "design:paramtypes", serializeParameterTypesOfNode(node))); + decoratorExpressions.push(createMetadataHelper(helperState, "design:paramtypes", serializeParameterTypesOfNode(node))); } if (shouldAddReturnTypeMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(currentExternalHelpersModuleName, "design:returntype", serializeReturnTypeOfNode(node))); + decoratorExpressions.push(createMetadataHelper(helperState, "design:returntype", serializeReturnTypeOfNode(node))); } } } @@ -1538,7 +1505,7 @@ namespace ts { (properties || (properties = [])).push(createPropertyAssignment("returnType", createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, createToken(SyntaxKind.EqualsGreaterThanToken), serializeReturnTypeOfNode(node)))); } if (properties) { - decoratorExpressions.push(createMetadataHelper(currentExternalHelpersModuleName, "design:typeinfo", createObjectLiteral(properties, /*location*/ undefined, /*multiLine*/ true))); + decoratorExpressions.push(createMetadataHelper(helperState, "design:typeinfo", createObjectLiteral(properties, /*location*/ undefined, /*multiLine*/ true))); } } } @@ -3404,4 +3371,77 @@ namespace ts { : undefined; } } + + function createParamHelper(helperState: EmitHelperState, expression: Expression, parameterOffset: number, location?: TextRange) { + requestEmitHelper(helperState, paramHelper); + return createCall( + getHelperName(helperState, "__param"), + /*typeArguments*/ undefined, + [ + createLiteral(parameterOffset), + expression + ], + location + ); + } + + function createMetadataHelper(helperState: EmitHelperState, metadataKey: string, metadataValue: Expression) { + requestEmitHelper(helperState, metadataHelper); + return createCall( + getHelperName(helperState, "__metadata"), + /*typeArguments*/ undefined, + [ + createLiteral(metadataKey), + metadataValue + ] + ); + } + + function createDecorateHelper(helperState: EmitHelperState, decoratorExpressions: Expression[], target: Expression, memberName?: Expression, descriptor?: Expression, location?: TextRange) { + const argumentsArray: Expression[] = []; + argumentsArray.push(createArrayLiteral(decoratorExpressions, /*location*/ undefined, /*multiLine*/ true)); + argumentsArray.push(target); + if (memberName) { + argumentsArray.push(memberName); + if (descriptor) { + argumentsArray.push(descriptor); + } + } + + requestEmitHelper(helperState, decorateHelper); + return createCall(getHelperName(helperState, "__decorate"), /*typeArguments*/ undefined, argumentsArray, location); + } + + const decorateHelper: EmitHelper = { + name: "typescript:decorate", + scoped: false, + priority: 2, + text: ` + 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); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };` + }; + + const metadataHelper: EmitHelper = { + name: "typescript:metadata", + scoped: false, + priority: 3, + text: ` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };` + }; + + const paramHelper: EmitHelper = { + name: "typescript:param", + scoped: false, + priority: 4, + text: ` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };` + }; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 36162d96bf2d4..80c5d475ddec0 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2081,8 +2081,6 @@ namespace ts { /* @internal */ imports: LiteralExpression[]; /* @internal */ moduleAugmentations: LiteralExpression[]; /* @internal */ patternAmbientModules?: PatternAmbientModule[]; - // The synthesized identifier for an imported external helpers module. - /* @internal */ externalHelpersModuleName?: Identifier; } export interface ScriptReferenceHost { @@ -3458,20 +3456,18 @@ namespace ts { /* @internal */ export interface EmitNode { - flags?: EmitFlags; - commentRange?: TextRange; - sourceMapRange?: TextRange; - tokenSourceMapRanges?: Map; annotatedNodes?: Node[]; // Tracks Parse-tree nodes with EmitNodes for eventual cleanup. - constantValue?: number; + flags?: EmitFlags; // Flags that customize emit + commentRange?: TextRange; // The text range to use when emitting leading or trailing comments + sourceMapRange?: TextRange; // The text range to use when emitting leading or trailing source mappings + tokenSourceMapRanges?: Map; // The text range to use when emitting source mappings for tokens + constantValue?: number; // The constant value of an expression + externalHelpersModuleName?: Identifier; // The local name for an imported helpers module + helpers?: EmitHelper[]; // Emit helpers for the node } /* @internal */ export const enum EmitFlags { - EmitEmitHelpers = 1 << 0, // Any emit helpers should be written to this node. - EmitExportStar = 1 << 1, // The export * helper should be written to this node. - EmitSuperHelper = 1 << 2, // Emit the basic _super helper for async methods. - EmitAdvancedSuperHelper = 1 << 3, // Emit the advanced _super helper for async methods. UMDDefine = 1 << 4, // This node should be replaced with the UMD define helper. SingleLine = 1 << 5, // The contents of this node should be emitted on a single line. AdviseOnEmitNode = 1 << 6, // The printer should invoke the onEmitNode callback when printing this node. @@ -3499,6 +3495,14 @@ namespace ts { HasEndOfDeclarationMarker = 1 << 25, // Declaration has an associated NotEmittedStatement to mark the end of the declaration } + /* @internal */ + export interface EmitHelper { + readonly name: string; // A unique name for this helper. + readonly scoped: boolean; // Indicates whether ther helper MUST be emitted in the current scope. + readonly text: string; // ES3-compatible raw script text. + readonly priority?: number; // Helpers with a higher priority are emitted earlier than other helpers on the node. + } + /* @internal */ export const enum EmitContext { SourceFile, // Emitting a SourceFile diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index f8d546b3284d2..e06913e1c0a7f 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3514,153 +3514,6 @@ namespace ts { return positionIsSynthesized(range.pos) ? -1 : skipTrivia(sourceFile.text, range.pos); } - export interface ExternalModuleInfo { - externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[]; // imports of other external modules - exportSpecifiers: Map; // export specifiers by name - exportedBindings: Map; // exported names of local declarations - exportedNames: Identifier[]; // all exported names local to module - exportEquals: ExportAssignment | undefined; // an export= declaration if one was present - hasExportStarsToExportValues: boolean; // whether this module contains export* - } - - export function collectExternalModuleInfo(sourceFile: SourceFile, resolver: EmitResolver): ExternalModuleInfo { - const externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[] = []; - const exportSpecifiers = createMap(); - const exportedBindings = createMap(); - const uniqueExports = createMap(); - let hasExportDefault = false; - let exportEquals: ExportAssignment = undefined; - let hasExportStarsToExportValues = false; - for (const node of sourceFile.statements) { - switch (node.kind) { - case SyntaxKind.ImportDeclaration: - // import "mod" - // import x from "mod" - // import * as x from "mod" - // import { x, y } from "mod" - externalImports.push(node); - break; - - case SyntaxKind.ImportEqualsDeclaration: - if ((node).moduleReference.kind === SyntaxKind.ExternalModuleReference) { - // import x = require("mod") - externalImports.push(node); - } - - break; - - case SyntaxKind.ExportDeclaration: - if ((node).moduleSpecifier) { - if (!(node).exportClause) { - // export * from "mod" - externalImports.push(node); - hasExportStarsToExportValues = true; - } - else { - // export { x, y } from "mod" - externalImports.push(node); - } - } - else { - // export { x, y } - for (const specifier of (node).exportClause.elements) { - if (!uniqueExports[specifier.name.text]) { - const name = specifier.propertyName || specifier.name; - multiMapAdd(exportSpecifiers, name.text, specifier); - - const decl = resolver.getReferencedImportDeclaration(name) - || resolver.getReferencedValueDeclaration(name); - - if (decl) { - multiMapAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); - } - - uniqueExports[specifier.name.text] = specifier.name; - } - } - } - break; - - case SyntaxKind.ExportAssignment: - if ((node).isExportEquals && !exportEquals) { - // export = x - exportEquals = node; - } - break; - - case SyntaxKind.VariableStatement: - if (hasModifier(node, ModifierFlags.Export)) { - for (const decl of (node).declarationList.declarations) { - collectExportedVariableInfo(decl, uniqueExports); - } - } - break; - - case SyntaxKind.FunctionDeclaration: - if (hasModifier(node, ModifierFlags.Export)) { - if (hasModifier(node, ModifierFlags.Default)) { - // export default function() { } - if (!hasExportDefault) { - multiMapAdd(exportedBindings, getOriginalNodeId(node), getDeclarationName(node)); - hasExportDefault = true; - } - } - else { - // export function x() { } - const name = (node).name; - if (!uniqueExports[name.text]) { - multiMapAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports[name.text] = name; - } - } - } - break; - - case SyntaxKind.ClassDeclaration: - if (hasModifier(node, ModifierFlags.Export)) { - if (hasModifier(node, ModifierFlags.Default)) { - // export default class { } - if (!hasExportDefault) { - multiMapAdd(exportedBindings, getOriginalNodeId(node), getDeclarationName(node)); - hasExportDefault = true; - } - } - else { - // export class x { } - const name = (node).name; - if (!uniqueExports[name.text]) { - multiMapAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports[name.text] = name; - } - } - } - break; - } - } - - let exportedNames: Identifier[]; - for (const key in uniqueExports) { - exportedNames = ts.append(exportedNames, uniqueExports[key]); - } - - return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames }; - } - - function collectExportedVariableInfo(decl: VariableDeclaration | BindingElement, uniqueExports: Map) { - if (isBindingPattern(decl.name)) { - for (const element of decl.name.elements) { - if (!isOmittedExpression(element)) { - collectExportedVariableInfo(element, uniqueExports); - } - } - } - else if (!isGeneratedIdentifier(decl.name)) { - if (!uniqueExports[decl.name.text]) { - uniqueExports[decl.name.text] = decl.name; - } - } - } - /** * Determines whether a name was originally the declaration name of an enum or namespace * declaration. From 86091d7217162bab577e3ab182712fe3c7b3849f Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 25 Oct 2016 17:25:28 -0700 Subject: [PATCH 02/35] Clean up and consolidate destructuring transform --- src/compiler/binder.ts | 4 +- src/compiler/emitter.ts | 4 +- src/compiler/factory.ts | 6 +- src/compiler/transformers/destructuring.ts | 741 ++++++++++-------- src/compiler/transformers/es2015.ts | 55 +- src/compiler/transformers/module/module.ts | 10 +- src/compiler/transformers/module/system.ts | 11 +- src/compiler/transformers/ts.ts | 7 +- src/compiler/types.ts | 22 +- src/compiler/utilities.ts | 18 +- src/compiler/visitor.ts | 8 +- .../reference/assignmentTypeNarrowing.js | 10 +- .../reference/asyncMethodWithSuper_es5.js | 8 +- .../computedPropertiesInDestructuring1.js | 16 +- .../reference/declarationsAndAssignments.js | 6 +- .../destructuringAssignmentWithDefault.js | 2 +- .../emptyAssignmentPatterns02_ES5.js | 4 +- .../emptyAssignmentPatterns04_ES5.js | 5 +- .../initializePropertiesWithRenamedLet.js | 5 +- .../reference/missingAndExcessProperties.js | 16 +- ...thandPropertyAssignmentsInDestructuring.js | 40 +- 21 files changed, 572 insertions(+), 426 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index f5f4b231ad1d6..26463ca939a1d 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1007,7 +1007,7 @@ namespace ts { currentFlow = finishFlowLabel(preFinallyLabel); bind(node.finallyBlock); // if flow after finally is unreachable - keep it - // otherwise check if flows after try and after catch are unreachable + // otherwise check if flows after try and after catch are unreachable // if yes - convert current flow to unreachable // i.e. // try { return "1" } finally { console.log(1); } @@ -3077,7 +3077,7 @@ namespace ts { case SyntaxKind.SpreadElementExpression: // This node is ES6 syntax, but is handled by a containing node. - transformFlags |= TransformFlags.ContainsSpreadElementExpression; + transformFlags |= TransformFlags.AssertES2015 | TransformFlags.ContainsSpreadElementExpression; break; case SyntaxKind.SuperKeyword: diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index ed16ec0615998..5be5ae9a71d63 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2025,9 +2025,7 @@ namespace ts { for (let i = 0; i < lines.length; i++) { const line = indentation ? lines[i].slice(indentation) : lines[i]; if (line.length) { - if (i > 0) { - writeLine(); - } + writeLine(); write(line); } } diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 4400e8f2a830d..7791923be3f2b 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -1699,6 +1699,8 @@ namespace ts { } } + // Utilities + export interface CallBinding { target: LeftHandSideExpression; thisArg: Expression; @@ -2733,7 +2735,9 @@ namespace ts { */ export function addEmitHelper(node: T, helper: EmitHelper): T { const emitNode = getOrCreateEmitNode(node); - emitNode.helpers = append(emitNode.helpers, helper); + if (!contains(emitNode.helpers, helper)) { + emitNode.helpers = append(emitNode.helpers, helper); + } return node; } diff --git a/src/compiler/transformers/destructuring.ts b/src/compiler/transformers/destructuring.ts index ab5c4629e95e5..837c6c57bb79b 100644 --- a/src/compiler/transformers/destructuring.ts +++ b/src/compiler/transformers/destructuring.ts @@ -3,137 +3,146 @@ /*@internal*/ namespace ts { + type EffectiveBindingElement + = VariableDeclaration + | ParameterDeclaration + | BindingElement + | ObjectLiteralElementLike + | Expression + ; + + type EffectiveObjectBindingPattern + = ObjectBindingPattern + | ObjectLiteralExpression + ; + + type EffectiveArrayBindingPattern + = ArrayBindingPattern + | ArrayLiteralExpression + ; + + type EffectiveBindingPattern + = EffectiveObjectBindingPattern + | EffectiveArrayBindingPattern + ; + + type EffectiveBindingTarget + = EffectiveBindingPattern + | Expression + ; + /** - * Flattens a destructuring assignment expression. + * Flattens a DestructuringAssignment or a VariableDeclaration to an expression. * - * @param root The destructuring assignment expression. + * @param node The node to flatten. * @param needsValue Indicates whether the value from the right-hand-side of the - * destructuring assignment is needed as part of a larger expression. + * destructuring assignment is needed as part of a larger expression. + * @param createAssignmentCallback A callback used to create an assignment expression. * @param recordTempVariable A callback used to record new temporary variables. - * @param visitor An optional visitor to use to visit expressions. + * @param visitor An optional visitor used to visit default value initializers of binding patterns. */ - export function flattenDestructuringAssignment( - context: TransformationContext, - node: BinaryExpression, + export function flattenDestructuringToExpression( + node: VariableDeclaration | DestructuringAssignment, needsValue: boolean, + createAssignmentCallback: (target: Expression, value: Expression, location?: TextRange) => Expression, recordTempVariable: (node: Identifier) => void, visitor?: (node: Node) => VisitResult): Expression { - if (isEmptyObjectLiteralOrArrayLiteral(node.left)) { - const right = node.right; - if (isDestructuringAssignment(right)) { - return flattenDestructuringAssignment(context, right, needsValue, recordTempVariable, visitor); - } - else { - return node.right; + let location: TextRange = node; + let value: Expression; + if (isDestructuringAssignment(node)) { + value = node.right; + while (isEmptyObjectLiteralOrArrayLiteral(node.left)) { + if (isDestructuringAssignment(value)) { + location = node = value; + value = node.right; + } + else { + return value; + } } } - let location: TextRange = node; - let value = node.right; const expressions: Expression[] = []; - if (needsValue) { - // If the right-hand value of the destructuring assignment needs to be preserved (as - // is the case when the destructuring assignmen) is part of a larger expression), - // then we need to cache the right-hand value. - // - // The source map location for the assignment should point to the entire binary - // expression. - value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, location, emitTempVariableAssignment, visitor); - } - else if (nodeIsSynthesized(node)) { - // Generally, the source map location for a destructuring assignment is the root - // expression. - // - // However, if the root expression is synthesized (as in the case - // of the initializer when transforming a ForOfStatement), then the source map - // location should point to the right-hand value of the expression. - location = value; - } - - flattenDestructuring(node, value, location, emitAssignment, emitTempVariableAssignment, visitor); - - if (needsValue) { - expressions.push(value); + + if (value) { + value = visitNode(value, visitor, isExpression); + if (needsValue) { + // If the right-hand value of the destructuring assignment needs to be preserved (as + // is the case when the destructuring assignment is part of a larger expression), + // then we need to cache the right-hand value. + // + // The source map location for the assignment should point to the entire binary + // expression. + value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, emitTempVariableAssignment, location); + } + else if (nodeIsSynthesized(node)) { + // Generally, the source map location for a destructuring assignment is the root + // expression. + // + // However, if the root expression is synthesized (as in the case + // of the initializer when transforming a ForOfStatement), then the source map + // location should point to the right-hand value of the expression. + location = value; + } } - const expression = inlineExpressions(expressions); - aggregateTransformFlags(expression); - return expression; + flattenEffectiveBindingElement(node, value, isDestructuringAssignment(node), emitAssignment, emitTempVariableAssignment, visitor, location); - function emitAssignment(name: Identifier, value: Expression, location: TextRange) { - const expression = createAssignment(name, value, location); + if (value && needsValue) { + expressions.push(value); + } + return aggregateTransformFlags(inlineExpressions(expressions)); + + function emitAssignment(target: Expression, value: Expression, location: TextRange, original: Node) { + const expression = createAssignmentCallback(target, value, location); + expression.original = original; // NOTE: this completely disables source maps, but aligns with the behavior of // `emitAssignment` in the old emitter. setEmitFlags(expression, EmitFlags.NoNestedSourceMaps); - aggregateTransformFlags(expression); expressions.push(expression); } function emitTempVariableAssignment(value: Expression, location: TextRange) { const name = createTempVariable(recordTempVariable); - emitAssignment(name, value, location); - return name; - } - } - - /** - * Flattens binding patterns in a parameter declaration. - * - * @param node The ParameterDeclaration to flatten. - * @param value The rhs value for the binding pattern. - * @param visitor An optional visitor to use to visit expressions. - */ - export function flattenParameterDestructuring( - node: ParameterDeclaration, - value: Expression, - visitor?: (node: Node) => VisitResult) { - const declarations: VariableDeclaration[] = []; - - flattenDestructuring(node, value, node, emitAssignment, emitTempVariableAssignment, visitor); - - return declarations; - - function emitAssignment(name: Identifier, value: Expression, location: TextRange) { - const declaration = createVariableDeclaration(name, /*type*/ undefined, value, location); - + const expression = createAssignment(name, value, location); // NOTE: this completely disables source maps, but aligns with the behavior of // `emitAssignment` in the old emitter. - setEmitFlags(declaration, EmitFlags.NoNestedSourceMaps); - - aggregateTransformFlags(declaration); - declarations.push(declaration); - } - - function emitTempVariableAssignment(value: Expression, location: TextRange) { - const name = createTempVariable(/*recordTempVariable*/ undefined); - emitAssignment(name, value, location); + setEmitFlags(expression, EmitFlags.NoNestedSourceMaps); + aggregateTransformFlags(expression); + expressions.push(expression); return name; } } /** - * Flattens binding patterns in a variable declaration. + * Flattens binding patterns in a VariableDeclaration or a ParameterDeclaration to a VariableDeclaration list. * - * @param node The VariableDeclaration to flatten. - * @param value An optional rhs value for the binding pattern. + * @param node The node to flatten. + * @param boundValue An optional rhs value for the binding pattern. This value is *not* visited during flattening. * @param visitor An optional visitor to use to visit expressions. + * @param recordTempVariable An optional callback used to hoist temporary variables rather than + * declaring them inline. */ - export function flattenVariableDestructuring( - node: VariableDeclaration, - value?: Expression, - visitor?: (node: Node) => VisitResult, - recordTempVariable?: (node: Identifier) => void) { - const declarations: VariableDeclaration[] = []; + export function flattenDestructuring( + node: VariableDeclaration | ParameterDeclaration, + boundValue?: Expression, + recordTempVariable?: (node: Identifier) => void, + visitor?: (node: Node) => VisitResult) { let pendingAssignments: Expression[]; - flattenDestructuring(node, value, node, emitAssignment, emitTempVariableAssignment, visitor); - + const declarations: VariableDeclaration[] = []; + flattenEffectiveBindingElement(node, boundValue, /*skipInitializer*/ false, emitAssignment, emitTempVariableAssignment, visitor, /*location*/ node); return declarations; - function emitAssignment(name: Identifier, value: Expression, location: TextRange, original: Node) { + function emitAssignment(name: Expression, value: Expression, location: TextRange, original: Node) { + if (!isIdentifier(name)) { + Debug.failBadSyntaxKind(name, "Identifier expected."); + return; + } + if (pendingAssignments) { pendingAssignments.push(value); value = inlineExpressions(pendingAssignments); @@ -145,22 +154,13 @@ namespace ts { // NOTE: this completely disables source maps, but aligns with the behavior of // `emitAssignment` in the old emitter. - setEmitFlags(declaration, EmitFlags.NoNestedSourceMaps); - - declarations.push(declaration); - aggregateTransformFlags(declaration); + declarations.push(aggregateTransformFlags(setEmitFlags(declaration, EmitFlags.NoNestedSourceMaps))); } function emitTempVariableAssignment(value: Expression, location: TextRange) { const name = createTempVariable(recordTempVariable); if (recordTempVariable) { - const assignment = createAssignment(name, value, location); - if (pendingAssignments) { - pendingAssignments.push(assignment); - } - else { - pendingAssignments = [assignment]; - } + pendingAssignments = append(pendingAssignments, createAssignment(name, value, location)); } else { emitAssignment(name, value, location, /*original*/ undefined); @@ -169,244 +169,365 @@ namespace ts { } } + function flattenEffectiveBindingElement( + bindingElement: EffectiveBindingElement, + boundValue: Expression | undefined, + skipInitializer: boolean, + emitAssignment: (target: Expression, value: Expression, location: TextRange, original: Node) => void, + emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier, + visitor: ((node: Node) => VisitResult) | undefined, + location: TextRange) { + + if (!skipInitializer) { + const initializer = visitNode(getInitializerOfEffectiveBindingElement(bindingElement), visitor, isExpression); + if (initializer) { + // Combine value and initializer + boundValue = boundValue ? createDefaultValueCheck(boundValue, initializer, location, emitTempVariableAssignment) : initializer; + } + else if (!boundValue) { + // Use 'void 0' in absence of value and initializer + boundValue = createVoidZero(); + } + } + + const bindingTarget = getTargetOfEffectiveBindingElement(bindingElement); + if (isEffectiveBindingPattern(bindingTarget)) { + const elements = getElementsOfEffectiveBindingPattern(bindingTarget); + const numElements = elements.length; + if (numElements !== 1) { + // For anything other than a single-element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. Additionally, if we have zero elements + // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, + // so in that case, we'll intentionally create that temporary. + const reuseIdentifierExpressions = !isDeclarationBindingElement(bindingElement) || numElements !== 0; + boundValue = ensureIdentifier(boundValue, reuseIdentifierExpressions, emitTempVariableAssignment, location); + } + + if (isEffectiveObjectBindingPattern(bindingTarget)) { + for (const element of elements) { + // Rewrite element to a declaration with an initializer that fetches property + flattenEffectiveBindingElement( + element, + createDestructuringPropertyAccess( + boundValue, + getEffectivePropertyNameOfEffectiveBindingElement(element), + emitTempVariableAssignment), + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + visitor, + /*location*/ element); + } + } + else { + for (let i = 0; i < numElements; i++) { + const element = elements[i]; + if (!isOmittedExpression(element)) { + if (!isEffectiveBindingElementWithRest(element)) { + // Rewrite element to a declaration that accesses array element at index i + flattenEffectiveBindingElement( + element, + createElementAccess(boundValue, i), + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + visitor, + /*location*/ element); + } + else if (i === numElements - 1) { + flattenEffectiveBindingElement( + element, + createArraySlice(boundValue, i), + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + visitor, + /*location*/ element); + } + } + } + } + } + else { + emitAssignment(bindingTarget, boundValue, location, /*original*/ bindingElement); + } + } + /** - * Flattens binding patterns in a variable declaration and transforms them into an expression. - * - * @param node The VariableDeclaration to flatten. - * @param recordTempVariable A callback used to record new temporary variables. - * @param createAssignmentCallback An optional callback used to create assignment expressions - * for non-temporary variables. - * @param visitor An optional visitor to use to visit expressions. + * Determines whether the BindingElement-like is a declaration */ - export function flattenVariableDestructuringToExpression( - node: VariableDeclaration, - recordTempVariable: (name: Identifier) => void, - createAssignmentCallback?: (name: Identifier, value: Expression, location?: TextRange) => Expression, - visitor?: (node: Node) => VisitResult) { + function isDeclarationBindingElement(bindingElement: EffectiveBindingElement): bindingElement is VariableDeclaration | ParameterDeclaration | BindingElement { + switch (bindingElement.kind) { + case SyntaxKind.VariableDeclaration: + case SyntaxKind.Parameter: + case SyntaxKind.BindingElement: + return true; + } - const pendingAssignments: Expression[] = []; + return false; + } - flattenDestructuring(node, /*value*/ undefined, node, emitAssignment, emitTempVariableAssignment, visitor); + /** + * Gets the initializer of a BindingElement-like element + */ + function getInitializerOfEffectiveBindingElement(bindingElement: EffectiveBindingElement): Expression | undefined { + if (isDeclarationBindingElement(bindingElement)) { + // `1` in `let { a = 1 } = ...` + // `1` in `let { a: b = 1 } = ...` + // `1` in `let { a: {b} = 1 } = ...` + // `1` in `let { a: [b] = 1 } = ...` + // `1` in `let [a = 1] = ...` + // `1` in `let [{a} = 1] = ...` + // `1` in `let [[a] = 1] = ...` + return bindingElement.initializer; + } - const expression = inlineExpressions(pendingAssignments); - aggregateTransformFlags(expression); - return expression; + if (isPropertyAssignment(bindingElement)) { + // `1` in `({ a: b = 1 } = ...)` + // `1` in `({ a: {b} = 1 } = ...)` + // `1` in `({ a: [b] = 1 } = ...)` + return isAssignmentExpression(bindingElement.initializer, /*excludeCompoundAssignment*/ true) + ? bindingElement.initializer.right + : undefined; + } - function emitAssignment(name: Identifier, value: Expression, location: TextRange, original: Node) { - const expression = createAssignmentCallback - ? createAssignmentCallback(name, value, location) - : createAssignment(name, value, location); + if (isShorthandPropertyAssignment(bindingElement)) { + // `1` in `({ a = 1 } = ...)` + return bindingElement.objectAssignmentInitializer; + } - emitPendingAssignment(expression, original); + if (isAssignmentExpression(bindingElement, /*excludeCompoundAssignment*/ true)) { + // `1` in `[a = 1] = ...` + // `1` in `[{a} = 1] = ...` + // `1` in `[[a] = 1] = ...` + return bindingElement.right; } - function emitTempVariableAssignment(value: Expression, location: TextRange) { - const name = createTempVariable(recordTempVariable); - emitPendingAssignment(createAssignment(name, value, location), /*original*/ undefined); - return name; + if (isSpreadElementExpression(bindingElement) || isPartiallyEmittedExpression(bindingElement)) { + // Recovery consistent with existing emit. + return getInitializerOfEffectiveBindingElement(bindingElement.expression); } + } - function emitPendingAssignment(expression: Expression, original: Node) { - expression.original = original; + /** + * Gets the name of a BindingElement-like element + */ + function getTargetOfEffectiveBindingElement(bindingElement: EffectiveBindingElement): EffectiveBindingTarget { + if (isDeclarationBindingElement(bindingElement)) { + // `a` in `let { a } = ...` + // `a` in `let { a = 1 } = ...` + // `b` in `let { a: b } = ...` + // `b` in `let { a: b = 1 } = ...` + // `{b}` in `let { a: {b} } = ...` + // `{b}` in `let { a: {b} = 1 } = ...` + // `[b]` in `let { a: [b] } = ...` + // `[b]` in `let { a: [b] = 1 } = ...` + // `a` in `let [a] = ...` + // `a` in `let [a = 1] = ...` + // `a` in `let [...a] = ...` + // `{a}` in `let [{a}] = ...` + // `{a}` in `let [{a} = 1] = ...` + // `[a]` in `let [[a]] = ...` + // `[a]` in `let [[a] = 1] = ...` + return bindingElement.name; + } - // NOTE: this completely disables source maps, but aligns with the behavior of - // `emitAssignment` in the old emitter. - setEmitFlags(expression, EmitFlags.NoNestedSourceMaps); + if (isObjectLiteralElementLike(bindingElement)) { + switch (bindingElement.kind) { + case SyntaxKind.PropertyAssignment: + // `b` in `({ a: b } = ...)` + // `b` in `({ a: b = 1 } = ...)` + // `{b}` in `({ a: {b} } = ...)` + // `{b}` in `({ a: {b} = 1 } = ...)` + // `[b]` in `({ a: [b] } = ...)` + // `[b]` in `({ a: [b] = 1 } = ...)` + // `b.c` in `({ a: b.c } = ...)` + // `b.c` in `({ a: b.c = 1 } = ...)` + // `b[0]` in `({ a: b[0] } = ...)` + // `b[0]` in `({ a: b[0] = 1 } = ...)` + return getTargetOfEffectiveBindingElement(bindingElement.initializer); + + case SyntaxKind.ShorthandPropertyAssignment: + // `a` in `({ a } = ...)` + // `a` in `({ a = 1 } = ...)` + return bindingElement.name; + } - pendingAssignments.push(expression); + // no target + return undefined; } - } - function flattenDestructuring( - root: VariableDeclaration | ParameterDeclaration | BindingElement | BinaryExpression, - value: Expression, - location: TextRange, - emitAssignment: (name: Identifier, value: Expression, location: TextRange, original: Node) => void, - emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier, - visitor?: (node: Node) => VisitResult) { - if (value && visitor) { - value = visitNode(value, visitor, isExpression); + if (isAssignmentExpression(bindingElement, /*excludeCompoundAssignment*/ true)) { + // `a` in `[a = 1] = ...` + // `{a}` in `[{a} = 1] = ...` + // `[a]` in `[[a] = 1] = ...` + // `a.b` in `[a.b = 1] = ...` + // `a[0]` in `[a[0] = 1] = ...` + return getTargetOfEffectiveBindingElement(bindingElement.left); } - if (isBinaryExpression(root)) { - emitDestructuringAssignment(root.left, value, location); + if (isSpreadElementExpression(bindingElement) || isPartiallyEmittedExpression(bindingElement)) { + // `a` in `[...a] = ...` + return getTargetOfEffectiveBindingElement(bindingElement.expression); } - else { - emitBindingElement(root, value); + + // `a` in `[a] = ...` + // `{a}` in `[{a}] = ...` + // `[a]` in `[[a]] = ...` + // `a.b` in `[a.b] = ...` + // `a[0]` in `[a[0]] = ...` + return bindingElement; + } + + /** + * Determines whether a BindingElement-like element is a rest element. + */ + function isEffectiveBindingElementWithRest(bindingElement: EffectiveBindingElement) { + switch (bindingElement.kind) { + case SyntaxKind.Parameter: + case SyntaxKind.BindingElement: + // `...` in `let [...a] = ...` + return (bindingElement).dotDotDotToken !== undefined; + + case SyntaxKind.SpreadElementExpression: + // `...` in `[...a] = ...` + return true; } - function emitDestructuringAssignment(bindingTarget: Expression | ShorthandPropertyAssignment, value: Expression, location: TextRange) { - // When emitting target = value use source map node to highlight, including any temporary assignments needed for this - let target: Expression; - if (isShorthandPropertyAssignment(bindingTarget)) { - const initializer = visitor - ? visitNode(bindingTarget.objectAssignmentInitializer, visitor, isExpression) - : bindingTarget.objectAssignmentInitializer; + return false; + } - if (initializer) { - value = createDefaultValueCheck(value, initializer, location); + /** + * Gets the property name of a BindingElement-like element + */ + function getEffectivePropertyNameOfEffectiveBindingElement(bindingElement: EffectiveBindingElement) { + switch (bindingElement.kind) { + case SyntaxKind.BindingElement: + // `a` in `let { a: b } = ...` + // `[a]` in `let { [a]: b } = ...` + // `"a"` in `let { "a": b } = ...` + // `1` in `let { 1: b } = ...` + if ((bindingElement).propertyName) { + return (bindingElement).propertyName; } - target = bindingTarget.name; - } - else if (isBinaryExpression(bindingTarget) && bindingTarget.operatorToken.kind === SyntaxKind.EqualsToken) { - const initializer = visitor - ? visitNode(bindingTarget.right, visitor, isExpression) - : bindingTarget.right; + break; - value = createDefaultValueCheck(value, initializer, location); - target = bindingTarget.left; - } - else { - target = bindingTarget; - } + case SyntaxKind.PropertyAssignment: + // `a` in `({ a: b } = ...)` + // `[a]` in `({ [a]: b } = ...)` + // `"a"` in `({ "a": b } = ...)` + // `1` in `({ 1: b } = ...)` + if ((bindingElement).name) { + return (bindingElement).name; + } - if (target.kind === SyntaxKind.ObjectLiteralExpression) { - emitObjectLiteralAssignment(target, value, location); - } - else if (target.kind === SyntaxKind.ArrayLiteralExpression) { - emitArrayLiteralAssignment(target, value, location); - } - else { - const name = getMutableClone(target); - setSourceMapRange(name, target); - setCommentRange(name, target); - emitAssignment(name, value, location, /*original*/ undefined); - } + break; } - function emitObjectLiteralAssignment(target: ObjectLiteralExpression, value: Expression, location: TextRange) { - const properties = target.properties; - if (properties.length !== 1) { - // For anything but a single element destructuring we need to generate a temporary - // to ensure value is evaluated exactly once. - // When doing so we want to hightlight the passed in source map node since thats the one needing this temp assignment - value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, location, emitTempVariableAssignment); - } + const target = getTargetOfEffectiveBindingElement(bindingElement); + if (target && isPropertyName(target)) { + return target; + } - for (const p of properties) { - if (p.kind === SyntaxKind.PropertyAssignment || p.kind === SyntaxKind.ShorthandPropertyAssignment) { - const propName = (p).name; - const target = p.kind === SyntaxKind.ShorthandPropertyAssignment ? p : (p).initializer || propName; - // Assignment for target = value.propName should highligh whole property, hence use p as source map node - emitDestructuringAssignment(target, createDestructuringPropertyAccess(value, propName), p); - } - } + Debug.fail("Invalid property name for binding element."); + } + + /** + * Determines whether a node is BindingPattern-like + */ + function isEffectiveBindingPattern(node: EffectiveBindingTarget): node is EffectiveBindingPattern { + return isEffectiveObjectBindingPattern(node) + || isEffectiveArrayBindingPattern(node); + } + + /** + * Determines whether a node is ObjectBindingPattern-like + */ + function isEffectiveObjectBindingPattern(node: EffectiveBindingTarget): node is EffectiveObjectBindingPattern { + switch (node.kind) { + case SyntaxKind.ObjectBindingPattern: + case SyntaxKind.ObjectLiteralExpression: + return true; } - function emitArrayLiteralAssignment(target: ArrayLiteralExpression, value: Expression, location: TextRange) { - const elements = target.elements; - const numElements = elements.length; - if (numElements !== 1) { - // For anything but a single element destructuring we need to generate a temporary - // to ensure value is evaluated exactly once. - // When doing so we want to hightlight the passed in source map node since thats the one needing this temp assignment - value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, location, emitTempVariableAssignment); - } + return false; + } - for (let i = 0; i < numElements; i++) { - const e = elements[i]; - if (e.kind !== SyntaxKind.OmittedExpression) { - // Assignment for target = value.propName should highligh whole property, hence use e as source map node - if (e.kind !== SyntaxKind.SpreadElementExpression) { - emitDestructuringAssignment(e, createElementAccess(value, createLiteral(i)), e); - } - else if (i === numElements - 1) { - emitDestructuringAssignment((e).expression, createArraySlice(value, i), e); - } - } - } + /** + * Determines whether a node is ArrayBindingPattern-like + */ + function isEffectiveArrayBindingPattern(node: EffectiveBindingTarget): node is EffectiveArrayBindingPattern { + switch (node.kind) { + case SyntaxKind.ArrayBindingPattern: + case SyntaxKind.ArrayLiteralExpression: + return true; } - function emitBindingElement(target: VariableDeclaration | ParameterDeclaration | BindingElement, value: Expression) { - // Any temporary assignments needed to emit target = value should point to target - const initializer = visitor ? visitNode(target.initializer, visitor, isExpression) : target.initializer; - if (initializer) { - // Combine value and initializer - value = value ? createDefaultValueCheck(value, initializer, target) : initializer; - } - else if (!value) { - // Use 'void 0' in absence of value and initializer - value = createVoidZero(); - } + return false; + } - const name = target.name; - if (isBindingPattern(name)) { - const elements = name.elements; - const numElements = elements.length; - if (numElements !== 1) { - // For anything other than a single-element destructuring we need to generate a temporary - // to ensure value is evaluated exactly once. Additionally, if we have zero elements - // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, - // so in that case, we'll intentionally create that temporary. - value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ numElements !== 0, target, emitTempVariableAssignment); - } - for (let i = 0; i < numElements; i++) { - const element = elements[i]; - if (isOmittedExpression(element)) { - continue; - } - else if (name.kind === SyntaxKind.ObjectBindingPattern) { - // Rewrite element to a declaration with an initializer that fetches property - const propName = element.propertyName || element.name; - emitBindingElement(element, createDestructuringPropertyAccess(value, propName)); - } - else { - if (!element.dotDotDotToken) { - // Rewrite element to a declaration that accesses array element at index i - emitBindingElement(element, createElementAccess(value, i)); - } - else if (i === numElements - 1) { - emitBindingElement(element, createArraySlice(value, i)); - } - } - } - } - else { - emitAssignment(name, value, target, target); - } + /** + * Gets the elements of a BindingPattern-like name + */ + function getElementsOfEffectiveBindingPattern(name: EffectiveBindingPattern): EffectiveBindingElement[] { + switch (name.kind) { + case SyntaxKind.ObjectBindingPattern: + case SyntaxKind.ArrayBindingPattern: + // `a` in `{a}` + // `a` in `[a]` + return name.elements; + + case SyntaxKind.ObjectLiteralExpression: + // `a` in `{a}` + return name.properties; + + case SyntaxKind.ArrayLiteralExpression: + // `a` in `[a]` + return name.elements; } + } - function createDefaultValueCheck(value: Expression, defaultValue: Expression, location: TextRange): Expression { - value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, location, emitTempVariableAssignment); - return createConditional( - createStrictEquality(value, createVoidZero()), - createToken(SyntaxKind.QuestionToken), - defaultValue, - createToken(SyntaxKind.ColonToken), - value - ); - } - - /** - * Creates either a PropertyAccessExpression or an ElementAccessExpression for the - * right-hand side of a transformed destructuring assignment. - * - * @param expression The right-hand expression that is the source of the property. - * @param propertyName The destructuring property name. - */ - function createDestructuringPropertyAccess(expression: Expression, propertyName: PropertyName): LeftHandSideExpression { - if (isComputedPropertyName(propertyName)) { - return createElementAccess( - expression, - ensureIdentifier(propertyName.expression, /*reuseIdentifierExpressions*/ false, /*location*/ propertyName, emitTempVariableAssignment) - ); - } - else if (isLiteralExpression(propertyName)) { - const clone = getSynthesizedClone(propertyName); - clone.text = unescapeIdentifier(clone.text); - return createElementAccess(expression, clone); - } - else { - if (isGeneratedIdentifier(propertyName)) { - const clone = getSynthesizedClone(propertyName); - clone.text = unescapeIdentifier(clone.text); - return createPropertyAccess(expression, clone); - } - else { - return createPropertyAccess(expression, createIdentifier(unescapeIdentifier(propertyName.text))); - } - } + /** + * Creates an expression used to provide a default value if a value is `undefined` at runtime. + */ + function createDefaultValueCheck(value: Expression, defaultValue: Expression, location: TextRange, emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier): Expression { + value = ensureIdentifier(value, /*reuseIdentifierExpressions*/ true, emitTempVariableAssignment, location); + return createConditional( + createStrictEquality(value, createVoidZero()), + createToken(SyntaxKind.QuestionToken), + defaultValue, + createToken(SyntaxKind.ColonToken), + value + ); + } + + /** + * Creates either a PropertyAccessExpression or an ElementAccessExpression for the + * right-hand side of a transformed destructuring assignment. + * + * @param expression The right-hand expression that is the source of the property. + * @param propertyName The destructuring property name. + * @param emitTempVariableAssignment A callback used to emit a temporary variable. + */ + function createDestructuringPropertyAccess(expression: Expression, propertyName: PropertyName, emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier): LeftHandSideExpression { + if (isComputedPropertyName(propertyName)) { + const argumentExpression = ensureIdentifier(propertyName.expression, /*reuseIdentifierExpressions*/ false, emitTempVariableAssignment, /*location*/ propertyName); + return createElementAccess(expression, argumentExpression); + } + else if (isLiteralExpression(propertyName)) { + const argumentExpression = getSynthesizedClone(propertyName); + argumentExpression.text = unescapeIdentifier(argumentExpression.text); + return createElementAccess(expression, argumentExpression); + } + else if (isGeneratedIdentifier(propertyName)) { + const name = getSynthesizedClone(propertyName); + name.text = unescapeIdentifier(name.text); + return createPropertyAccess(expression, name); + } + else { + const name = createIdentifier(unescapeIdentifier(propertyName.text)); + return createPropertyAccess(expression, name); } } @@ -417,26 +538,20 @@ namespace ts { * * @param value the expression whose value needs to be bound. * @param reuseIdentifierExpressions true if identifier expressions can simply be returned; - * false if it is necessary to always emit an identifier. - * @param location The location to use for source maps and comments. + * false if it is necessary to always emit an identifier. * @param emitTempVariableAssignment A callback used to emit a temporary variable. - * @param visitor An optional callback used to visit the value. + * @param location The location to use for source maps and comments. */ function ensureIdentifier( value: Expression, reuseIdentifierExpressions: boolean, - location: TextRange, emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier, - visitor?: (node: Node) => VisitResult) { + location: TextRange) { if (isIdentifier(value) && reuseIdentifierExpressions) { return value; } else { - if (visitor) { - value = visitNode(value, visitor, isExpression); - } - return emitTempVariableAssignment(value, location); } } diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 608a246696479..1e8ab4f971ee8 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -1,5 +1,6 @@ /// /// +/// /*@internal*/ namespace ts { @@ -404,6 +405,9 @@ namespace ts { case SyntaxKind.YieldExpression: return visitYieldExpression(node); + case SyntaxKind.SpreadElementExpression: + return visitSpreadElementExpression(node); + case SyntaxKind.SuperKeyword: return visitSuperKeyword(); @@ -1129,7 +1133,7 @@ namespace ts { createVariableStatement( /*modifiers*/ undefined, createVariableDeclarationList( - flattenParameterDestructuring(parameter, temp, visitor) + flattenDestructuring(parameter, temp, /*recordTempVariable*/ undefined, visitor) ) ), EmitFlags.CustomPrologue @@ -1660,18 +1664,21 @@ namespace ts { */ function visitParenthesizedExpression(node: ParenthesizedExpression, needsDestructuringValue: boolean): ParenthesizedExpression { // If we are here it is most likely because our expression is a destructuring assignment. - if (needsDestructuringValue) { + if (!needsDestructuringValue) { + // By default we always emit the RHS at the end of a flattened destructuring + // expression. If we are in a state where we do not need the destructuring value, + // we pass that information along to the children that care about it. switch (node.expression.kind) { case SyntaxKind.ParenthesizedExpression: - return createParen( - visitParenthesizedExpression(node.expression, /*needsDestructuringValue*/ true), - /*location*/ node + return updateParen( + node, + visitParenthesizedExpression(node.expression, /*needsDestructuringValue*/ false) ); case SyntaxKind.BinaryExpression: - return createParen( - visitBinaryExpression(node.expression, /*needsDestructuringValue*/ true), - /*location*/ node + return updateParen( + node, + visitBinaryExpression(node.expression, /*needsDestructuringValue*/ false) ); } } @@ -1689,7 +1696,13 @@ namespace ts { function visitBinaryExpression(node: BinaryExpression, needsDestructuringValue: boolean): Expression { // If we are here it is because this is a destructuring assignment. Debug.assert(isDestructuringAssignment(node)); - return flattenDestructuringAssignment(context, node, needsDestructuringValue, hoistVariableDeclaration, visitor); + return flattenDestructuringToExpression( + node, + needsDestructuringValue, + createAssignment, + hoistVariableDeclaration, + visitor + ); } function visitVariableStatement(node: VariableStatement): Statement { @@ -1701,15 +1714,17 @@ namespace ts { if (decl.initializer) { let assignment: Expression; if (isBindingPattern(decl.name)) { - assignment = flattenVariableDestructuringToExpression(decl, hoistVariableDeclaration, /*createAssignmentCallback*/ undefined, visitor); + assignment = flattenDestructuringToExpression(decl, /*needsValue*/ false, createAssignment, hoistVariableDeclaration, visitor); } else { assignment = createBinary(decl.name, SyntaxKind.EqualsToken, visitNode(decl.initializer, visitor, isExpression)); } - (assignments || (assignments = [])).push(assignment); + + assignments = append(assignments, assignment); } } if (assignments) { + // TODO(rbuckton): use inlineExpressions. return createStatement(reduceLeft(assignments, (acc, v) => createBinary(v, SyntaxKind.CommaToken, acc)), node); } else { @@ -1854,8 +1869,11 @@ namespace ts { if (isBindingPattern(node.name)) { const recordTempVariablesInLine = !enclosingVariableStatement || !hasModifier(enclosingVariableStatement, ModifierFlags.Export); - return flattenVariableDestructuring(node, /*value*/ undefined, visitor, - recordTempVariablesInLine ? undefined : hoistVariableDeclaration); + return flattenDestructuring( + node, + /*value*/ undefined, + recordTempVariablesInLine ? undefined : hoistVariableDeclaration, + visitor); } return visitEachChild(node, visitor, context); @@ -1956,9 +1974,10 @@ namespace ts { if (firstOriginalDeclaration && isBindingPattern(firstOriginalDeclaration.name)) { // This works whether the declaration is a var, let, or const. // It will use rhsIterationValue _a[_i] as the initializer. - const declarations = flattenVariableDestructuring( + const declarations = flattenDestructuring( firstOriginalDeclaration, createElementAccess(rhsReference, counter), + /*recordTempVariable*/ undefined, visitor ); @@ -2007,10 +2026,10 @@ namespace ts { // This is a destructuring pattern, so we flatten the destructuring instead. statements.push( createStatement( - flattenDestructuringAssignment( - context, + flattenDestructuringToExpression( assignment, /*needsValue*/ false, + createAssignment, hoistVariableDeclaration, visitor ) @@ -2840,7 +2859,7 @@ namespace ts { } function visitSpanOfSpreadElements(chunk: Expression[]): VisitResult { - return map(chunk, visitExpressionOfSpreadElement); + return map(chunk, visitSpreadElementExpression); } function visitSpanOfNonSpreadElements(chunk: Expression[], multiLine: boolean, hasTrailingComma: boolean): VisitResult { @@ -2856,7 +2875,7 @@ namespace ts { * * @param node A SpreadElementExpression node. */ - function visitExpressionOfSpreadElement(node: SpreadElementExpression) { + function visitSpreadElementExpression(node: SpreadElementExpression) { return visitNode(node.expression, visitor, isExpression); } diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index b946d93f32dee..b3c2178e99c17 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -1,5 +1,6 @@ /// /// +/// /*@internal*/ namespace ts { @@ -45,6 +46,7 @@ namespace ts { let currentSourceFile: SourceFile; // The current file. let currentModuleInfo: ExternalModuleInfo; // The ExternalModuleInfo for the current file. let noSubstitution: Map; // Set of nodes for which substitution rules should be ignored. + let helperState: EmitHelperState; return transformSourceFile; @@ -62,6 +64,7 @@ namespace ts { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(node)] = collectExternalModuleInfo(node, resolver); + helperState = { currentSourceFile, compilerOptions }; // Perform the transformation. const transformModule = transformModuleDelegates[moduleKind] || transformModuleDelegates[ModuleKind.None]; @@ -69,6 +72,7 @@ namespace ts { currentSourceFile = undefined; currentModuleInfo = undefined; + helperState = undefined; return aggregateTransformFlags(updated); } @@ -759,10 +763,12 @@ namespace ts { */ function transformInitializedVariable(node: VariableDeclaration): Expression { if (isBindingPattern(node.name)) { - return flattenVariableDestructuringToExpression( + return flattenDestructuringToExpression( node, + /*needsValue*/ false, + createExportExpression, hoistVariableDeclaration, - createExportExpression + /*visitor*/ undefined ); } else { diff --git a/src/compiler/transformers/module/system.ts b/src/compiler/transformers/module/system.ts index 4b24d5c164166..f6d051d25efef 100644 --- a/src/compiler/transformers/module/system.ts +++ b/src/compiler/transformers/module/system.ts @@ -1,5 +1,6 @@ /// /// +/// /*@internal*/ namespace ts { @@ -40,6 +41,7 @@ namespace ts { let hoistedStatements: Statement[]; let enclosingBlockScopedContainer: Node; let noSubstitution: Map; // Set of nodes for which substitution rules should be ignored. + let helperState: EmitHelperState; return transformSourceFile; @@ -58,6 +60,7 @@ namespace ts { const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; + helperState = { currentSourceFile, compilerOptions }; // System modules have the following shape: // @@ -131,6 +134,7 @@ namespace ts { contextObject = undefined; hoistedStatements = undefined; enclosingBlockScopedContainer = undefined; + helperState = undefined; return aggregateTransformFlags(updated); } @@ -818,7 +822,7 @@ namespace ts { function transformInitializedVariable(node: VariableDeclaration, isExportedDeclaration: boolean): Expression { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; return isBindingPattern(node.name) - ? flattenVariableDestructuringToExpression(node, hoistVariableDeclaration, createAssignment, destructuringVisitor) + ? flattenDestructuringToExpression(node, /*needsValue*/ false, createAssignment, hoistVariableDeclaration, destructuringVisitor) : createAssignment(node.name, visitNode(node.initializer, destructuringVisitor, isExpression)); } @@ -1469,9 +1473,8 @@ namespace ts { */ function visitDestructuringAssignment(node: DestructuringAssignment): VisitResult { if (hasExportedReferenceInDestructuringTarget(node.left)) { - return flattenDestructuringAssignment(context, node, /*needsValue*/ true, hoistVariableDeclaration, destructuringVisitor); + return flattenDestructuringToExpression(node, /*needsValue*/ true, createAssignment, hoistVariableDeclaration, destructuringVisitor); } - return visitEachChild(node, destructuringVisitor, context); } @@ -1481,7 +1484,7 @@ namespace ts { * @param node The destructuring target. */ function hasExportedReferenceInDestructuringTarget(node: Expression | ObjectLiteralElementLike): boolean { - if (isAssignmentExpression(node)) { + if (isAssignmentExpression(node, /*excludeCompoundAssignment*/ true)) { return hasExportedReferenceInDestructuringTarget(node.left); } else if (isSpreadElementExpression(node)) { diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 02c7b107b256e..bf0a7a4b27e60 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -2312,12 +2312,7 @@ namespace ts { function transformInitializedVariable(node: VariableDeclaration): Expression { const name = node.name; if (isBindingPattern(name)) { - return flattenVariableDestructuringToExpression( - node, - hoistVariableDeclaration, - createNamespaceExportExpression, - visitor - ); + return flattenDestructuringToExpression(node, /*needsValue*/ false, createNamespaceExportExpression, hoistVariableDeclaration, visitor); } else { return createAssignment( diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 80c5d475ddec0..562e6cef26aff 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -635,9 +635,9 @@ namespace ts { export interface ParameterDeclaration extends Declaration { kind: SyntaxKind.Parameter; - dotDotDotToken?: DotDotDotToken; // Present on rest parameter + dotDotDotToken?: DotDotDotToken; // Present on rest parameter name: BindingName; // Declared parameter name - questionToken?: QuestionToken; // Present on optional parameter + questionToken?: QuestionToken; // Present on optional parameter type?: TypeNode; // Optional type annotation initializer?: Expression; // Optional initializer } @@ -645,7 +645,7 @@ namespace ts { export interface BindingElement extends Declaration { kind: SyntaxKind.BindingElement; propertyName?: PropertyName; // Binding property name (in object binding pattern) - dotDotDotToken?: DotDotDotToken; // Present on rest binding element + dotDotDotToken?: DotDotDotToken; // Present on rest binding element name: BindingName; // Declared binding element name initializer?: Expression; // Optional initializer } @@ -671,7 +671,12 @@ namespace ts { name?: PropertyName; } - export type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | MethodDeclaration | AccessorDeclaration; + export type ObjectLiteralElementLike + = PropertyAssignment + | ShorthandPropertyAssignment + | MethodDeclaration + | AccessorDeclaration + ; export interface PropertyAssignment extends ObjectLiteralElement { kind: SyntaxKind.PropertyAssignment; @@ -712,6 +717,7 @@ namespace ts { } export interface BindingPattern extends Node { + kind: SyntaxKind.ObjectBindingPattern | SyntaxKind.ArrayBindingPattern; elements: NodeArray; } @@ -1157,16 +1163,16 @@ namespace ts { right: Expression; } - export interface AssignmentExpression extends BinaryExpression { + export interface AssignmentExpression extends BinaryExpression { left: LeftHandSideExpression; - operatorToken: Token; + operatorToken: Token; } - export interface ObjectDestructuringAssignment extends AssignmentExpression { + export interface ObjectDestructuringAssignment extends AssignmentExpression { left: ObjectLiteralExpression; } - export interface ArrayDestructuringAssignment extends AssignmentExpression { + export interface ArrayDestructuringAssignment extends AssignmentExpression { left: ArrayLiteralExpression; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index e06913e1c0a7f..46b91c1d656f5 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3084,19 +3084,21 @@ namespace ts { } } - export function isAssignmentExpression(node: Node): node is AssignmentExpression { + export function isAssignmentExpression(node: Node, excludeCompoundAssignment: true): node is AssignmentExpression; + export function isAssignmentExpression(node: Node, excludeCompoundAssignment?: false): node is AssignmentExpression; + export function isAssignmentExpression(node: Node, excludeCompoundAssignment?: boolean): node is AssignmentExpression { return isBinaryExpression(node) - && isAssignmentOperator(node.operatorToken.kind) + && (excludeCompoundAssignment + ? node.operatorToken.kind === SyntaxKind.EqualsToken + : isAssignmentOperator(node.operatorToken.kind)) && isLeftHandSideExpression(node.left); } export function isDestructuringAssignment(node: Node): node is DestructuringAssignment { - if (isBinaryExpression(node)) { - if (node.operatorToken.kind === SyntaxKind.EqualsToken) { - const kind = node.left.kind; - return kind === SyntaxKind.ObjectLiteralExpression - || kind === SyntaxKind.ArrayLiteralExpression; - } + if (isAssignmentExpression(node, /*excludeCompoundAssignment*/ true)) { + const kind = node.left.kind; + return kind === SyntaxKind.ObjectLiteralExpression + || kind === SyntaxKind.ArrayLiteralExpression; } return false; diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index 609031a82215a..e30132b05f541 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -549,11 +549,11 @@ namespace ts { export function visitNode(node: T, visitor: (node: Node) => VisitResult, test: (node: Node) => boolean, optional?: boolean, lift?: (node: NodeArray) => T): T; export function visitNode(node: T, visitor: (node: Node) => VisitResult, test: (node: Node) => boolean, optional: boolean, lift: (node: NodeArray) => T, parenthesize: (node: Node, parentNode: Node) => Node, parentNode: Node): T; export function visitNode(node: Node, visitor: (node: Node) => VisitResult, test: (node: Node) => boolean, optional?: boolean, lift?: (node: Node[]) => Node, parenthesize?: (node: Node, parentNode: Node) => Node, parentNode?: Node): Node { - if (node === undefined) { - return undefined; + if (node === undefined || visitor === undefined) { + return node; } - const visited = visitor(node); + const visited = visitor(aggregateTransformFlags(node)); if (visited === node) { return node; } @@ -621,7 +621,7 @@ namespace ts { // Visit each original node. for (let i = 0; i < count; i++) { const node = nodes[i + start]; - const visited = node !== undefined ? visitor(node) : undefined; + const visited = node !== undefined ? visitor(aggregateTransformFlags(node)) : undefined; if (updated !== undefined || visited === undefined || visited !== node) { if (updated === undefined) { // Ensure we have a copy of `nodes`, up to the current index. diff --git a/tests/baselines/reference/assignmentTypeNarrowing.js b/tests/baselines/reference/assignmentTypeNarrowing.js index 7c10dde65ccac..92fd49d99418d 100644 --- a/tests/baselines/reference/assignmentTypeNarrowing.js +++ b/tests/baselines/reference/assignmentTypeNarrowing.js @@ -37,17 +37,17 @@ x = [true][0]; x; // boolean _a = [1][0], x = _a === void 0 ? "" : _a; x; // string | number -(_b = { x: true }, x = _b.x, _b); +(x = { x: true }.x); x; // boolean -(_c = { y: 1 }, x = _c.y, _c); +(x = { y: 1 }.y); x; // number -(_d = { x: true }, _e = _d.x, x = _e === void 0 ? "" : _e, _d); +(_b = { x: true }.x, x = _b === void 0 ? "" : _b); x; // string | boolean -(_f = { y: 1 }, _g = _f.y, x = _g === void 0 ? /a/ : _g, _f); +(_c = { y: 1 }.y, x = _c === void 0 ? /a/ : _c); x; // number | RegExp var a; for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { x = a_1[_i]; x; // string } -var _a, _b, _c, _d, _e, _f, _g; +var _a, _b, _c; diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.js b/tests/baselines/reference/asyncMethodWithSuper_es5.js index 9ceff6bab4e4a..c4c61fc8f9bce 100644 --- a/tests/baselines/reference/asyncMethodWithSuper_es5.js +++ b/tests/baselines/reference/asyncMethodWithSuper_es5.js @@ -81,8 +81,8 @@ var B = (function (_super) { // async method with assignment/destructuring on 'super' requires a binding B.prototype.advanced = function () { return __awaiter(this, void 0, void 0, function () { - var f, a, b, _a, _b; - return __generator(this, function (_c) { + var f, a, b; + return __generator(this, function (_a) { f = function () { }; // call with property access _super.prototype.x.call(this); @@ -95,9 +95,9 @@ var B = (function (_super) { // element access (assign) _super.prototype["x"] = f; // destructuring assign with property access - (_a = { f: f }, super.x = _a.f, _a); + (super.x = { f: f }.f); // destructuring assign with element access - (_b = { f: f }, super["x"] = _b.f, _b); + (super["x"] = { f: f }.f); return [2 /*return*/]; }); }); diff --git a/tests/baselines/reference/computedPropertiesInDestructuring1.js b/tests/baselines/reference/computedPropertiesInDestructuring1.js index 0bc4286ed7b79..b0dc33a4b4e75 100644 --- a/tests/baselines/reference/computedPropertiesInDestructuring1.js +++ b/tests/baselines/reference/computedPropertiesInDestructuring1.js @@ -65,11 +65,11 @@ function f5(_a) { var _f = foo(), bar6 = [{ bar: "bar" }][0][_f]; var _g = foo.toExponential(), bar7 = [{ bar: "bar" }][0][_g]; // destructuring assignment -(_h = { bar: "bar" }, _j = foo, bar = _h[_j], _h); -(_k = { bar: "bar" }, _l = "bar", bar2 = _k[_l], _k); -(_m = { bar: "bar" }, _o = foo2(), bar3 = _m[_o], _m); -_p = foo, bar4 = [{ bar: "bar" }][0][_p]; -_q = foo2(), bar5 = [{ bar: "bar" }][0][_q]; -_r = foo(), bar4 = [{ bar: "bar" }][0][_r]; -_s = (1 + {}), bar4 = [{ bar: "bar" }][0][_s]; -var _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; +(_h = foo, bar = { bar: "bar" }[_h]); +(_j = "bar", bar2 = { bar: "bar" }[_j]); +(_k = foo2(), bar3 = { bar: "bar" }[_k]); +_l = foo, bar4 = [{ bar: "bar" }][0][_l]; +_m = foo2(), bar5 = [{ bar: "bar" }][0][_m]; +_o = foo(), bar4 = [{ bar: "bar" }][0][_o]; +_p = (1 + {}), bar4 = [{ bar: "bar" }][0][_p]; +var _h, _j, _k, _l, _m, _o, _p; diff --git a/tests/baselines/reference/declarationsAndAssignments.js b/tests/baselines/reference/declarationsAndAssignments.js index 018aa5522cacb..3a2f9ef3b4e02 100644 --- a/tests/baselines/reference/declarationsAndAssignments.js +++ b/tests/baselines/reference/declarationsAndAssignments.js @@ -300,8 +300,8 @@ function f18() { var a; var b; var aa; - (_a = { a: a, b: b }, a = _a.a, b = _a.b, _a); - (_b = { b: b, a: a }, a = _b.a, b = _b.b, _b); + (_a = { a: a, b: b }, a = _a.a, b = _a.b); + (_b = { b: b, a: a }, a = _b.a, b = _b.b); _c = [a, b], aa[0] = _c[0], b = _c[1]; _d = [b, a], a = _d[0], b = _d[1]; // Error _e = [2, "def"], _f = _e[0], a = _f === void 0 ? 1 : _f, _g = _e[1], b = _g === void 0 ? "abc" : _g; @@ -311,7 +311,7 @@ function f19() { var a, b; _a = [1, 2], a = _a[0], b = _a[1]; _b = [b, a], a = _b[0], b = _b[1]; - (_c = { b: b, a: a }, a = _c.a, b = _c.b, _c); + (_c = { b: b, a: a }, a = _c.a, b = _c.b); _d = [[2, 3]][0], _e = _d === void 0 ? [1, 2] : _d, a = _e[0], b = _e[1]; var x = (_f = [1, 2], a = _f[0], b = _f[1], _f); var _a, _b, _c, _d, _e, _f; diff --git a/tests/baselines/reference/destructuringAssignmentWithDefault.js b/tests/baselines/reference/destructuringAssignmentWithDefault.js index ce3837e1162d9..fe3ccdcee5335 100644 --- a/tests/baselines/reference/destructuringAssignmentWithDefault.js +++ b/tests/baselines/reference/destructuringAssignmentWithDefault.js @@ -7,5 +7,5 @@ let x = 0; //// [destructuringAssignmentWithDefault.js] var a = {}; var x = 0; -(_a = a.x, x = _a === void 0 ? 1 : _a, a); +(_a = a.x, x = _a === void 0 ? 1 : _a); var _a; diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js index 370e019104f41..f5434d4a1c344 100644 --- a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js @@ -9,8 +9,8 @@ let x, y, z, a1, a2, a3; //// [emptyAssignmentPatterns02_ES5.js] var a; var x, y, z, a1, a2, a3; -(x = a.x, y = a.y, z = a.z, a); -(a1 = a[0], a2 = a[1], a3 = a[2], a); +(x = a.x, y = a.y, z = a.z); +(a1 = a[0], a2 = a[1], a3 = a[2]); //// [emptyAssignmentPatterns02_ES5.d.ts] diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js index e6b3cc7e3f2de..91559d18252eb 100644 --- a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js @@ -9,9 +9,8 @@ let x, y, z, a1, a2, a3; //// [emptyAssignmentPatterns04_ES5.js] var a; var x, y, z, a1, a2, a3; -(_a = a, x = _a.x, y = _a.y, z = _a.z, _a); -(_b = a, a1 = _b[0], a2 = _b[1], a3 = _b[2], _b); -var _a, _b; +(x = a.x, y = a.y, z = a.z); +(a1 = a[0], a2 = a[1], a3 = a[2]); //// [emptyAssignmentPatterns04_ES5.d.ts] diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet.js b/tests/baselines/reference/initializePropertiesWithRenamedLet.js index d53fed8c0f738..4abe488aa0899 100644 --- a/tests/baselines/reference/initializePropertiesWithRenamedLet.js +++ b/tests/baselines/reference/initializePropertiesWithRenamedLet.js @@ -28,7 +28,6 @@ if (true) { var x_1 = { x: 0 }.x; var y_1 = { y: 0 }.y; var z_1; - (_a = { z: 0 }, z_1 = _a.z, _a); - (_b = { z: 0 }, z_1 = _b.z, _b); + (z_1 = { z: 0 }.z); + (z_1 = { z: 0 }.z); } -var _a, _b; diff --git a/tests/baselines/reference/missingAndExcessProperties.js b/tests/baselines/reference/missingAndExcessProperties.js index b9fcadd9519ea..daefe18eed794 100644 --- a/tests/baselines/reference/missingAndExcessProperties.js +++ b/tests/baselines/reference/missingAndExcessProperties.js @@ -45,10 +45,10 @@ function f1() { // Missing properties function f2() { var x, y; - (_a = {}, x = _a.x, y = _a.y, _a); - (_b = {}, _c = _b.x, x = _c === void 0 ? 1 : _c, y = _b.y, _b); - (_d = {}, x = _d.x, _e = _d.y, y = _e === void 0 ? 1 : _e, _d); - (_f = {}, _g = _f.x, x = _g === void 0 ? 1 : _g, _h = _f.y, y = _h === void 0 ? 1 : _h, _f); + (_a = {}, x = _a.x, y = _a.y); + (_b = {}, _c = _b.x, x = _c === void 0 ? 1 : _c, y = _b.y); + (_d = {}, x = _d.x, _e = _d.y, y = _e === void 0 ? 1 : _e); + (_f = {}, _g = _f.x, x = _g === void 0 ? 1 : _g, _h = _f.y, y = _h === void 0 ? 1 : _h); var _a, _b, _c, _d, _e, _f, _g, _h; } // Excess properties @@ -62,8 +62,8 @@ function f3() { function f4() { var x, y; ({ x: 0, y: 0 }); - (_a = { x: 0, y: 0 }, x = _a.x, _a); - (_b = { x: 0, y: 0 }, y = _b.y, _b); - (_c = { x: 0, y: 0 }, x = _c.x, y = _c.y, _c); - var _a, _b, _c; + (x = { x: 0, y: 0 }.x); + (y = { x: 0, y: 0 }.y); + (_a = { x: 0, y: 0 }, x = _a.x, y = _a.y); + var _a; } diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js index 981ee08e20c6a..6be02246e3937 100644 --- a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js +++ b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js @@ -176,63 +176,63 @@ function foo({a = 4, b = { x: 5 }}) { }); (function () { var y; - (_a = { y: 1 }, _b = _a.y, y = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = { y: 1 }.y, y = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y; - (_a = { y: 1 }, _b = _a.y, y = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = { y: 1 }.y, y = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y0; - (_a = { y0: 1 }, _b = _a.y0, y0 = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = { y0: 1 }.y0, y0 = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y0; - (_a = { y0: 1 }, _b = _a.y0, y0 = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = { y0: 1 }.y0, y0 = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y1; - (_a = {}, _b = _a.y1, y1 = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = {}.y1, y1 = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y1; - (_a = {}, _b = _a.y1, y1 = _b === void 0 ? 5 : _b, _a); - var _a, _b; + (_a = {}.y1, y1 = _a === void 0 ? 5 : _a); + var _a; }); (function () { var y2, y3; - (_a = {}, _b = _a.y2, y2 = _b === void 0 ? 5 : _b, _c = _a.y3, y3 = _c === void 0 ? { x: 1 } : _c, _a); + (_a = {}, _b = _a.y2, y2 = _b === void 0 ? 5 : _b, _c = _a.y3, y3 = _c === void 0 ? { x: 1 } : _c); var _a, _b, _c; }); (function () { var y2, y3; - (_a = {}, _b = _a.y2, y2 = _b === void 0 ? 5 : _b, _c = _a.y3, y3 = _c === void 0 ? { x: 1 } : _c, _a); + (_a = {}, _b = _a.y2, y2 = _b === void 0 ? 5 : _b, _c = _a.y3, y3 = _c === void 0 ? { x: 1 } : _c); var _a, _b, _c; }); (function () { var y4, y5; - (_a = {}, _b = _a.y4, y4 = _b === void 0 ? 5 : _b, _c = _a.y5, y5 = _c === void 0 ? { x: 1 } : _c, _a); + (_a = {}, _b = _a.y4, y4 = _b === void 0 ? 5 : _b, _c = _a.y5, y5 = _c === void 0 ? { x: 1 } : _c); var _a, _b, _c; }); (function () { var y4, y5; - (_a = {}, _b = _a.y4, y4 = _b === void 0 ? 5 : _b, _c = _a.y5, y5 = _c === void 0 ? { x: 1 } : _c, _a); + (_a = {}, _b = _a.y4, y4 = _b === void 0 ? 5 : _b, _c = _a.y5, y5 = _c === void 0 ? { x: 1 } : _c); var _a, _b, _c; }); (function () { var z; - (_a = { z: { x: 1 } }, _b = _a.z, z = _b === void 0 ? { x: 5 } : _b, _a); - var _a, _b; + (_a = { z: { x: 1 } }.z, z = _a === void 0 ? { x: 5 } : _a); + var _a; }); (function () { var z; - (_a = { z: { x: 1 } }, _b = _a.z, z = _b === void 0 ? { x: 5 } : _b, _a); - var _a, _b; + (_a = { z: { x: 1 } }.z, z = _a === void 0 ? { x: 5 } : _a); + var _a; }); (function () { var a = { s: s }; From a2e0b19a94ecfbba3f05de5f7325acf946560876 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 25 Oct 2016 18:55:54 -0700 Subject: [PATCH 03/35] Emit for full down-level generators --- src/compiler/binder.ts | 6 +- src/compiler/comments.ts | 12 +- src/compiler/emitter.ts | 42 +- src/compiler/factory.ts | 284 ++++++--- src/compiler/transformer.ts | 183 +++--- src/compiler/transformers/destructuring.ts | 194 ++++-- src/compiler/transformers/es2015.ts | 665 ++++++++++++++------- src/compiler/transformers/es2017.ts | 97 ++- src/compiler/transformers/generators.ts | 24 +- src/compiler/transformers/jsx.ts | 18 +- src/compiler/transformers/module/es2015.ts | 58 ++ src/compiler/transformers/module/module.ts | 34 +- src/compiler/transformers/module/system.ts | 33 +- src/compiler/transformers/ts.ts | 362 +++++------ src/compiler/types.ts | 123 +++- src/compiler/utilities.ts | 30 +- src/compiler/visitor.ts | 137 +++-- 17 files changed, 1422 insertions(+), 880 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 26463ca939a1d..adb0d2642294e 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -2698,7 +2698,7 @@ namespace ts { } // Currently, we only support generators that were originally async function bodies. - if (node.asteriskToken && getEmitFlags(node) & EmitFlags.AsyncFunctionBody) { + if (node.asteriskToken) { transformFlags |= TransformFlags.AssertGenerator; } @@ -2774,7 +2774,7 @@ namespace ts { // down-level generator. // Currently we do not support transforming any other generator fucntions // down level. - if (node.asteriskToken && getEmitFlags(node) & EmitFlags.AsyncFunctionBody) { + if (node.asteriskToken) { transformFlags |= TransformFlags.AssertGenerator; } } @@ -2811,7 +2811,7 @@ namespace ts { // down-level generator. // Currently we do not support transforming any other generator fucntions // down level. - if (node.asteriskToken && getEmitFlags(node) & EmitFlags.AsyncFunctionBody) { + if (node.asteriskToken) { transformFlags |= TransformFlags.AssertGenerator; } diff --git a/src/compiler/comments.ts b/src/compiler/comments.ts index cd96981c09303..dac8791770029 100644 --- a/src/compiler/comments.ts +++ b/src/compiler/comments.ts @@ -25,6 +25,8 @@ namespace ts { let detachedCommentsInfo: { nodePos: number, detachedCommentEndPos: number}[]; let hasWrittenComment = false; let disabled: boolean = compilerOptions.removeComments; + // let leadingCommentPositions: Map; + // let trailingCommentPositions: Map; return { reset, @@ -259,7 +261,8 @@ namespace ts { function forEachLeadingCommentToEmit(pos: number, cb: (commentPos: number, commentEnd: number, kind: SyntaxKind, hasTrailingNewLine: boolean, rangePos: number) => void) { // Emit the leading comments only if the container's pos doesn't match because the container should take care of emitting these comments - if (containerPos === -1 || pos !== containerPos) { + if ((containerPos === -1 || pos !== containerPos) /* && !leadingCommentPositions[pos] */) { + // leadingCommentPositions[pos] = true; if (hasDetachedComments(pos)) { forEachLeadingCommentWithoutDetachedComments(cb); } @@ -271,7 +274,8 @@ namespace ts { function forEachTrailingCommentToEmit(end: number, cb: (commentPos: number, commentEnd: number, kind: SyntaxKind, hasTrailingNewLine: boolean) => void) { // Emit the trailing comments only if the container's end doesn't match because the container should take care of emitting these comments - if (containerEnd === -1 || (end !== containerEnd && end !== declarationListContainerEnd)) { + if ((containerEnd === -1 || (end !== containerEnd && end !== declarationListContainerEnd)) /*&& !trailingCommentPositions[end] */) { + // trailingCommentPositions[end] = true; forEachTrailingCommentRange(currentText, end, cb); } } @@ -281,6 +285,8 @@ namespace ts { currentText = undefined; currentLineMap = undefined; detachedCommentsInfo = undefined; + // leadingCommentPositions = undefined; + // trailingCommentPositions = undefined; } function setSourceFile(sourceFile: SourceFile) { @@ -288,6 +294,8 @@ namespace ts { currentText = currentSourceFile.text; currentLineMap = getLineStarts(currentSourceFile); detachedCommentsInfo = undefined; + // leadingCommentPositions = createMap(); + // trailingCommentPositions = createMap(); } function hasDetachedComments(pos: number) { diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 5be5ae9a71d63..dc8a0525c3532 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1276,28 +1276,28 @@ namespace ts { writeToken(SyntaxKind.OpenParenToken, openParenPos, node); emitExpression(node.expression); writeToken(SyntaxKind.CloseParenToken, node.expression.end, node); - emitEmbeddedStatement(node.thenStatement); + emitEmbeddedStatement(node, node.thenStatement); if (node.elseStatement) { - writeLine(); + writeLineOrSpace(node); writeToken(SyntaxKind.ElseKeyword, node.thenStatement.end, node); if (node.elseStatement.kind === SyntaxKind.IfStatement) { write(" "); emit(node.elseStatement); } else { - emitEmbeddedStatement(node.elseStatement); + emitEmbeddedStatement(node, node.elseStatement); } } } function emitDoStatement(node: DoStatement) { write("do"); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); if (isBlock(node.statement)) { write(" "); } else { - writeLine(); + writeLineOrSpace(node); } write("while ("); @@ -1309,7 +1309,7 @@ namespace ts { write("while ("); emitExpression(node.expression); write(")"); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); } function emitForStatement(node: ForStatement) { @@ -1322,7 +1322,7 @@ namespace ts { write(";"); emitExpressionWithPrefix(" ", node.incrementor); write(")"); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); } function emitForInStatement(node: ForInStatement) { @@ -1333,7 +1333,7 @@ namespace ts { write(" in "); emitExpression(node.expression); writeToken(SyntaxKind.CloseParenToken, node.expression.end); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); } function emitForOfStatement(node: ForOfStatement) { @@ -1344,7 +1344,7 @@ namespace ts { write(" of "); emitExpression(node.expression); writeToken(SyntaxKind.CloseParenToken, node.expression.end); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); } function emitForBinding(node: VariableDeclarationList | Expression) { @@ -1380,7 +1380,7 @@ namespace ts { write("with ("); emitExpression(node.expression); write(")"); - emitEmbeddedStatement(node.statement); + emitEmbeddedStatement(node, node.statement); } function emitSwitchStatement(node: SwitchStatement) { @@ -1408,9 +1408,13 @@ namespace ts { function emitTryStatement(node: TryStatement) { write("try "); emit(node.tryBlock); - emit(node.catchClause); + if (node.catchClause) { + writeLineOrSpace(node); + emit(node.catchClause); + } + if (node.finallyBlock) { - writeLine(); + writeLineOrSpace(node); write("finally "); emit(node.finallyBlock); } @@ -1880,7 +1884,6 @@ namespace ts { } function emitCatchClause(node: CatchClause) { - writeLine(); const openParenPos = writeToken(SyntaxKind.CatchKeyword, node.pos); write(" "); writeToken(SyntaxKind.OpenParenToken, openParenPos); @@ -2087,8 +2090,8 @@ namespace ts { } } - function emitEmbeddedStatement(node: Statement) { - if (isBlock(node)) { + function emitEmbeddedStatement(parent: Node, node: Statement) { + if (isBlock(node) || getEmitFlags(parent) & EmitFlags.SingleLine) { write(" "); emit(node); } @@ -2253,6 +2256,15 @@ namespace ts { } } + function writeLineOrSpace(node: Node) { + if (getEmitFlags(node) & EmitFlags.SingleLine) { + write(" "); + } + else { + writeLine(); + } + } + function writeIfAny(nodes: NodeArray, text: string) { if (nodes && nodes.length > 0) { write(text); diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 7791923be3f2b..a6a66cddafd4a 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -6,7 +6,7 @@ namespace ts { let NodeConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node; let SourceFileConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node; - function createNode(kind: SyntaxKind, location?: TextRange, flags?: NodeFlags): Node { + function createNode(kind: SyntaxKind, location?: TextRange): Node { const ConstructorForKind = kind === SyntaxKind.SourceFile ? (SourceFileConstructor || (SourceFileConstructor = objectAllocator.getSourceFileConstructor())) : (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor())); @@ -15,7 +15,7 @@ namespace ts { ? new ConstructorForKind(kind, location.pos, location.end) : new ConstructorForKind(kind, /*pos*/ -1, /*end*/ -1); - node.flags = flags | NodeFlags.Synthesized; + node.flags |= NodeFlags.Synthesized; return node; } @@ -65,7 +65,7 @@ namespace ts { } export function createSynthesizedNodeArray(elements?: T[]): NodeArray { - return createNodeArray(elements, /*location*/ undefined); + return createNodeArray(isNodeArray(elements) ? elements.slice(0) : elements, /*location*/ undefined); } /** @@ -75,7 +75,8 @@ namespace ts { // We don't use "clone" from core.ts here, as we need to preserve the prototype chain of // the original node. We also need to exclude specific properties and only include own- // properties (to skip members already defined on the shared prototype). - const clone = createNode(node.kind, /*location*/ undefined, node.flags); + const clone = createNode(node.kind, /*location*/ undefined); + clone.flags |= node.flags; setOriginalNode(clone, node); for (const key in node) { @@ -109,20 +110,20 @@ namespace ts { export function createLiteral(value: string | number | boolean, location?: TextRange): PrimaryExpression; export function createLiteral(value: string | number | boolean | StringLiteral | Identifier, location?: TextRange): PrimaryExpression { if (typeof value === "number") { - const node = createNode(SyntaxKind.NumericLiteral, location, /*flags*/ undefined); + const node = createNode(SyntaxKind.NumericLiteral, location); node.text = value.toString(); return node; } else if (typeof value === "boolean") { - return createNode(value ? SyntaxKind.TrueKeyword : SyntaxKind.FalseKeyword, location, /*flags*/ undefined); + return createNode(value ? SyntaxKind.TrueKeyword : SyntaxKind.FalseKeyword, location); } else if (typeof value === "string") { - const node = createNode(SyntaxKind.StringLiteral, location, /*flags*/ undefined); + const node = createNode(SyntaxKind.StringLiteral, location); node.text = value; return node; } else if (value) { - const node = createNode(SyntaxKind.StringLiteral, location, /*flags*/ undefined); + const node = createNode(SyntaxKind.StringLiteral, location); node.textSourceNode = value; node.text = value.text; return node; @@ -226,8 +227,8 @@ namespace ts { // Signature elements - export function createParameter(decorators: Decorator[], modifiers: Modifier[], dotDotDotToken: DotDotDotToken, name: string | Identifier | BindingPattern, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.Parameter, location, flags); + export function createParameter(decorators: Decorator[], modifiers: Modifier[], dotDotDotToken: DotDotDotToken, name: string | Identifier | BindingPattern, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression, location?: TextRange) { + const node = createNode(SyntaxKind.Parameter, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.dotDotDotToken = dotDotDotToken; @@ -240,7 +241,7 @@ namespace ts { export function updateParameter(node: ParameterDeclaration, decorators: Decorator[], modifiers: Modifier[], name: BindingName, type: TypeNode, initializer: Expression) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.name !== name || node.type !== type || node.initializer !== initializer) { - return updateNode(createParameter(decorators, modifiers, node.dotDotDotToken, name, node.questionToken, type, initializer, /*location*/ node, /*flags*/ node.flags), node); + return updateNode(createParameter(decorators, modifiers, node.dotDotDotToken, name, node.questionToken, type, initializer, /*location*/ node), node); } return node; @@ -266,8 +267,8 @@ namespace ts { return node; } - export function createMethod(decorators: Decorator[], modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | PropertyName, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.MethodDeclaration, location, flags); + export function createMethod(decorators: Decorator[], modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | PropertyName, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.MethodDeclaration, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.asteriskToken = asteriskToken; @@ -281,13 +282,13 @@ namespace ts { export function updateMethod(node: MethodDeclaration, decorators: Decorator[], modifiers: Modifier[], name: PropertyName, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body) { - return updateNode(createMethod(decorators, modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node, node.flags), node); + return updateNode(createMethod(decorators, modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node), node); } return node; } - export function createConstructor(decorators: Decorator[], modifiers: Modifier[], parameters: ParameterDeclaration[], body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.Constructor, location, flags); + export function createConstructor(decorators: Decorator[], modifiers: Modifier[], parameters: ParameterDeclaration[], body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.Constructor, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.typeParameters = undefined; @@ -299,13 +300,13 @@ namespace ts { export function updateConstructor(node: ConstructorDeclaration, decorators: Decorator[], modifiers: Modifier[], parameters: ParameterDeclaration[], body: Block) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.parameters !== parameters || node.body !== body) { - return updateNode(createConstructor(decorators, modifiers, parameters, body, /*location*/ node, node.flags), node); + return updateNode(createConstructor(decorators, modifiers, parameters, body, /*location*/ node), node); } return node; } - export function createGetAccessor(decorators: Decorator[], modifiers: Modifier[], name: string | PropertyName, parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.GetAccessor, location, flags); + export function createGetAccessor(decorators: Decorator[], modifiers: Modifier[], name: string | PropertyName, parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.GetAccessor, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.name = typeof name === "string" ? createIdentifier(name) : name; @@ -318,13 +319,13 @@ namespace ts { export function updateGetAccessor(node: GetAccessorDeclaration, decorators: Decorator[], modifiers: Modifier[], name: PropertyName, parameters: ParameterDeclaration[], type: TypeNode, body: Block) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.type !== type || node.body !== body) { - return updateNode(createGetAccessor(decorators, modifiers, name, parameters, type, body, /*location*/ node, node.flags), node); + return updateNode(createGetAccessor(decorators, modifiers, name, parameters, type, body, /*location*/ node), node); } return node; } - export function createSetAccessor(decorators: Decorator[], modifiers: Modifier[], name: string | PropertyName, parameters: ParameterDeclaration[], body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.SetAccessor, location, flags); + export function createSetAccessor(decorators: Decorator[], modifiers: Modifier[], name: string | PropertyName, parameters: ParameterDeclaration[], body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.SetAccessor, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.name = typeof name === "string" ? createIdentifier(name) : name; @@ -336,7 +337,7 @@ namespace ts { export function updateSetAccessor(node: SetAccessorDeclaration, decorators: Decorator[], modifiers: Modifier[], name: PropertyName, parameters: ParameterDeclaration[], body: Block) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.body !== body) { - return updateNode(createSetAccessor(decorators, modifiers, name, parameters, body, /*location*/ node, node.flags), node); + return updateNode(createSetAccessor(decorators, modifiers, name, parameters, body, /*location*/ node), node); } return node; } @@ -420,8 +421,8 @@ namespace ts { return node; } - export function createPropertyAccess(expression: Expression, name: string | Identifier, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.PropertyAccessExpression, location, flags); + export function createPropertyAccess(expression: Expression, name: string | Identifier, location?: TextRange) { + const node = createNode(SyntaxKind.PropertyAccessExpression, location); node.expression = parenthesizeForAccess(expression); (node.emitNode || (node.emitNode = {})).flags |= EmitFlags.NoIndentation; node.name = typeof name === "string" ? createIdentifier(name) : name; @@ -430,7 +431,7 @@ namespace ts { export function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier) { if (node.expression !== expression || node.name !== name) { - const propertyAccess = createPropertyAccess(expression, name, /*location*/ node, node.flags); + const propertyAccess = createPropertyAccess(expression, name, /*location*/ node); // Because we are updating existed propertyAccess we want to inherit its emitFlags instead of using default from createPropertyAccess (propertyAccess.emitNode || (propertyAccess.emitNode = {})).flags = getEmitFlags(node); return updateNode(propertyAccess, node); @@ -452,8 +453,8 @@ namespace ts { return node; } - export function createCall(expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[], location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.CallExpression, location, flags); + export function createCall(expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[], location?: TextRange) { + const node = createNode(SyntaxKind.CallExpression, location); node.expression = parenthesizeForAccess(expression); if (typeArguments) { node.typeArguments = createNodeArray(typeArguments); @@ -465,13 +466,13 @@ namespace ts { export function updateCall(node: CallExpression, expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[]) { if (expression !== node.expression || typeArguments !== node.typeArguments || argumentsArray !== node.arguments) { - return updateNode(createCall(expression, typeArguments, argumentsArray, /*location*/ node, node.flags), node); + return updateNode(createCall(expression, typeArguments, argumentsArray, /*location*/ node), node); } return node; } - export function createNew(expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[], location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.NewExpression, location, flags); + export function createNew(expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[], location?: TextRange) { + const node = createNode(SyntaxKind.NewExpression, location); node.expression = parenthesizeForNew(expression); node.typeArguments = typeArguments ? createNodeArray(typeArguments) : undefined; node.arguments = argumentsArray ? parenthesizeListElements(createNodeArray(argumentsArray)) : undefined; @@ -480,7 +481,7 @@ namespace ts { export function updateNew(node: NewExpression, expression: Expression, typeArguments: TypeNode[], argumentsArray: Expression[]) { if (node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray) { - return updateNode(createNew(expression, typeArguments, argumentsArray, /*location*/ node, node.flags), node); + return updateNode(createNew(expression, typeArguments, argumentsArray, /*location*/ node), node); } return node; } @@ -512,8 +513,8 @@ namespace ts { return node; } - export function createFunctionExpression(modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.FunctionExpression, location, flags); + export function createFunctionExpression(modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.FunctionExpression, location); node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.asteriskToken = asteriskToken; node.name = typeof name === "string" ? createIdentifier(name) : name; @@ -526,13 +527,13 @@ namespace ts { export function updateFunctionExpression(node: FunctionExpression, modifiers: Modifier[], name: Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block) { if (node.name !== name || node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body) { - return updateNode(createFunctionExpression(modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node, node.flags), node); + return updateNode(createFunctionExpression(modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node), node); } return node; } - export function createArrowFunction(modifiers: Modifier[], typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, equalsGreaterThanToken: EqualsGreaterThanToken, body: ConciseBody, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.ArrowFunction, location, flags); + export function createArrowFunction(modifiers: Modifier[], typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, equalsGreaterThanToken: EqualsGreaterThanToken, body: ConciseBody, location?: TextRange) { + const node = createNode(SyntaxKind.ArrowFunction, location); node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.typeParameters = typeParameters ? createNodeArray(typeParameters) : undefined; node.parameters = createNodeArray(parameters); @@ -544,7 +545,7 @@ namespace ts { export function updateArrowFunction(node: ArrowFunction, modifiers: Modifier[], typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: ConciseBody) { if (node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body) { - return updateNode(createArrowFunction(modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, body, /*location*/ node, node.flags), node); + return updateNode(createArrowFunction(modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, body, /*location*/ node), node); } return node; } @@ -648,7 +649,7 @@ namespace ts { export function createConditional(condition: Expression, questionToken: QuestionToken, whenTrue: Expression, colonToken: ColonToken, whenFalse: Expression, location?: TextRange) { const node = createNode(SyntaxKind.ConditionalExpression, location); - node.condition = condition; + node.condition = parenthesizeConditionalHead(condition); node.questionToken = questionToken; node.whenTrue = whenTrue; node.colonToken = colonToken; @@ -760,8 +761,8 @@ namespace ts { // Element - export function createBlock(statements: Statement[], location?: TextRange, multiLine?: boolean, flags?: NodeFlags): Block { - const block = createNode(SyntaxKind.Block, location, flags); + export function createBlock(statements: Statement[], location?: TextRange, multiLine?: boolean): Block { + const block = createNode(SyntaxKind.Block, location); block.statements = createNodeArray(statements); if (multiLine) { block.multiLine = true; @@ -771,14 +772,14 @@ namespace ts { export function updateBlock(node: Block, statements: Statement[]) { if (statements !== node.statements) { - return updateNode(createBlock(statements, /*location*/ node, node.multiLine, node.flags), node); + return updateNode(createBlock(statements, /*location*/ node, node.multiLine), node); } return node; } - export function createVariableStatement(modifiers: Modifier[], declarationList: VariableDeclarationList | VariableDeclaration[], location?: TextRange, flags?: NodeFlags): VariableStatement { - const node = createNode(SyntaxKind.VariableStatement, location, flags); + export function createVariableStatement(modifiers: Modifier[], declarationList: VariableDeclarationList | VariableDeclaration[], location?: TextRange): VariableStatement { + const node = createNode(SyntaxKind.VariableStatement, location); node.decorators = undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; @@ -787,13 +788,14 @@ namespace ts { export function updateVariableStatement(node: VariableStatement, modifiers: Modifier[], declarationList: VariableDeclarationList): VariableStatement { if (node.modifiers !== modifiers || node.declarationList !== declarationList) { - return updateNode(createVariableStatement(modifiers, declarationList, /*location*/ node, node.flags), node); + return updateNode(createVariableStatement(modifiers, declarationList, /*location*/ node), node); } return node; } export function createVariableDeclarationList(declarations: VariableDeclaration[], location?: TextRange, flags?: NodeFlags): VariableDeclarationList { - const node = createNode(SyntaxKind.VariableDeclarationList, location, flags); + const node = createNode(SyntaxKind.VariableDeclarationList, location); + node.flags |= flags; node.declarations = createNodeArray(declarations); return node; } @@ -805,8 +807,8 @@ namespace ts { return node; } - export function createVariableDeclaration(name: string | BindingPattern | Identifier, type?: TypeNode, initializer?: Expression, location?: TextRange, flags?: NodeFlags): VariableDeclaration { - const node = createNode(SyntaxKind.VariableDeclaration, location, flags); + export function createVariableDeclaration(name: string | BindingPattern | Identifier, type?: TypeNode, initializer?: Expression, location?: TextRange): VariableDeclaration { + const node = createNode(SyntaxKind.VariableDeclaration, location); node.name = typeof name === "string" ? createIdentifier(name) : name; node.type = type; node.initializer = initializer !== undefined ? parenthesizeExpressionForList(initializer) : undefined; @@ -815,7 +817,7 @@ namespace ts { export function updateVariableDeclaration(node: VariableDeclaration, name: BindingName, type: TypeNode, initializer: Expression) { if (node.name !== name || node.type !== type || node.initializer !== initializer) { - return updateNode(createVariableDeclaration(name, type, initializer, /*location*/ node, node.flags), node); + return updateNode(createVariableDeclaration(name, type, initializer, /*location*/ node), node); } return node; } @@ -824,15 +826,15 @@ namespace ts { return createNode(SyntaxKind.EmptyStatement, location); } - export function createStatement(expression: Expression, location?: TextRange, flags?: NodeFlags): ExpressionStatement { - const node = createNode(SyntaxKind.ExpressionStatement, location, flags); + export function createStatement(expression: Expression, location?: TextRange): ExpressionStatement { + const node = createNode(SyntaxKind.ExpressionStatement, location); node.expression = parenthesizeExpressionForExpressionStatement(expression); return node; } export function updateStatement(node: ExpressionStatement, expression: Expression) { if (node.expression !== expression) { - return updateNode(createStatement(expression, /*location*/ node, node.flags), node); + return updateNode(createStatement(expression, /*location*/ node), node); } return node; @@ -882,7 +884,7 @@ namespace ts { } export function createFor(initializer: ForInitializer, condition: Expression, incrementor: Expression, statement: Statement, location?: TextRange) { - const node = createNode(SyntaxKind.ForStatement, location, /*flags*/ undefined); + const node = createNode(SyntaxKind.ForStatement, location); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -1053,8 +1055,8 @@ namespace ts { return node; } - export function createFunctionDeclaration(decorators: Decorator[], modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange, flags?: NodeFlags) { - const node = createNode(SyntaxKind.FunctionDeclaration, location, flags); + export function createFunctionDeclaration(decorators: Decorator[], modifiers: Modifier[], asteriskToken: AsteriskToken, name: string | Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block, location?: TextRange) { + const node = createNode(SyntaxKind.FunctionDeclaration, location); node.decorators = decorators ? createNodeArray(decorators) : undefined; node.modifiers = modifiers ? createNodeArray(modifiers) : undefined; node.asteriskToken = asteriskToken; @@ -1068,7 +1070,7 @@ namespace ts { export function updateFunctionDeclaration(node: FunctionDeclaration, decorators: Decorator[], modifiers: Modifier[], name: Identifier, typeParameters: TypeParameterDeclaration[], parameters: ParameterDeclaration[], type: TypeNode, body: Block) { if (node.decorators !== decorators || node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body) { - return updateNode(createFunctionDeclaration(decorators, modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node, node.flags), node); + return updateNode(createFunctionDeclaration(decorators, modifiers, node.asteriskToken, name, typeParameters, parameters, type, body, /*location*/ node), node); } return node; } @@ -1361,9 +1363,11 @@ namespace ts { return node; } - export function createCatchClause(variableDeclaration: string | VariableDeclaration, block: Block, location?: TextRange) { + export function createCatchClause(variableDeclaration: string | Identifier | VariableDeclaration, block: Block, location?: TextRange) { const node = createNode(SyntaxKind.CatchClause, location); - node.variableDeclaration = typeof variableDeclaration === "string" ? createVariableDeclaration(variableDeclaration) : variableDeclaration; + node.variableDeclaration = typeof variableDeclaration === "string" || isIdentifier(variableDeclaration) + ? createVariableDeclaration(variableDeclaration) + : variableDeclaration; node.block = block; return node; } @@ -1410,7 +1414,8 @@ namespace ts { export function updateSourceFileNode(node: SourceFile, statements: Statement[]) { if (node.statements !== statements) { - const updated = createNode(SyntaxKind.SourceFile, /*location*/ node, node.flags); + const updated = createNode(SyntaxKind.SourceFile, /*location*/ node); + updated.flags |= node.flags; updated.statements = createNodeArray(statements); updated.endOfFileToken = node.endOfFileToken; updated.fileName = node.fileName; @@ -1680,27 +1685,125 @@ namespace ts { // Helpers - export interface EmitHelperState { - currentSourceFile: SourceFile; - compilerOptions: CompilerOptions; - requestedHelpers?: EmitHelper[]; + export function getHelperName(name: string) { + return setEmitFlags(createIdentifier(name), EmitFlags.HelperName | EmitFlags.AdviseOnEmitNode); } - export function getHelperName(helperState: EmitHelperState, name: string) { - const externalHelpersModuleName = getOrCreateExternalHelpersModuleName(helperState.currentSourceFile, helperState.compilerOptions); - return externalHelpersModuleName - ? createPropertyAccess(externalHelpersModuleName, name) - : createIdentifier(name); + const valuesHelper: EmitHelper = { + name: "typescript:values", + scoped: false, + text: ` + var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; + };` + }; + + export function createValuesHelper(context: TransformationContext, expression: Expression, location?: TextRange) { + context.requestEmitHelper(valuesHelper); + return createCall( + getHelperName("__values"), + /*typeArguments*/ undefined, + [expression], + location + ); } - export function requestEmitHelper(helperState: EmitHelperState, helper: EmitHelper) { - if (!contains(helperState.requestedHelpers, helper)) { - helperState.requestedHelpers = append(helperState.requestedHelpers, helper); - } + const stepHelper: EmitHelper = { + name: "typescript:step", + scoped: false, + text: ` + var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); + };` + }; + + export function createStepHelper(context: TransformationContext, iteratorRecord: Expression, location?: TextRange) { + context.requestEmitHelper(stepHelper); + return createCall( + getHelperName("__step"), + /*typeArguments*/ undefined, + [iteratorRecord], + location + ); + } + + const closeHelper: EmitHelper = { + name: "typescript:close", + scoped: false, + text: ` + var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) m.call(r.iterator); + };` + }; + + export function createCloseHelper(context: TransformationContext, iteratorRecord: Expression, location?: TextRange) { + context.requestEmitHelper(closeHelper); + return createCall( + getHelperName("__close"), + /*typeArguments*/ undefined, + [iteratorRecord], + location + ); + } + + const readHelper: EmitHelper = { + name: "typescript:read", + scoped: false, + text: ` + var __read = (this && this.__read) || function (o, n) { + var m = o.__iterator__; + if (!m) return o; + var r = { iterator: m.call(o) }, ar = [], e; + try { while ((n === void 0 || n-- > 0) && __step(r)) ar.push(r.result.value); } + catch (error) { e = { error: error }; } + finally { try { __close(r); } finally { if (e) throw e.error; } } + return ar; + };` + }; + + export function createReadHelper(context: TransformationContext, iteratorRecord: Expression, count: number | undefined, location?: TextRange) { + context.requestEmitHelper(stepHelper); + context.requestEmitHelper(readHelper); + context.requestEmitHelper(closeHelper); + return createCall( + getHelperName("__read"), + /*typeArguments*/ undefined, + count !== undefined + ? [iteratorRecord, createLiteral(count)] + : [iteratorRecord], + location + ); + } + + const spreadHelper: EmitHelper = { + name: "typescript:spread", + scoped: false, + text: ` + var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; + };` + }; + + export function createSpreadHelper(context: TransformationContext, argumentList: Expression[], location?: TextRange) { + context.requestEmitHelper(readHelper); + context.requestEmitHelper(spreadHelper); + return createCall( + getHelperName("__spread"), + /*typeArguments*/ undefined, + argumentList, + location + ); } // Utilities + export function toFunctionBody(node: ConciseBody) { + return isBlock(node) ? node : createBlock([createReturn(node, /*location*/ node)], /*location*/ node); + } + export interface CallBinding { target: LeftHandSideExpression; thisArg: Expression; @@ -2063,7 +2166,7 @@ namespace ts { * @param ensureUseStrict: boolean determining whether the function need to add prologue-directives * @param visitor: Optional callback used to visit any custom prologue directives. */ - export function addPrologueDirectives(target: Statement[], source: Statement[], ensureUseStrict?: boolean, visitor?: (node: Node) => VisitResult): number { + export function addPrologueDirectives(target: Statement[], source: Statement[], ensureUseStrict?: boolean, ignoreCustomPrologue?: boolean, visitor?: (node: Node) => VisitResult): number { Debug.assert(target.length === 0, "Prologue directives should be at the first statement in the target statements array"); let foundUseStrict = false; let statementOffset = 0; @@ -2084,19 +2187,28 @@ namespace ts { if (ensureUseStrict && !foundUseStrict) { target.push(startOnNewLine(createStatement(createLiteral("use strict")))); } - while (statementOffset < numStatements) { - const statement = source[statementOffset]; - if (getEmitFlags(statement) & EmitFlags.CustomPrologue) { - target.push(visitor ? visitNode(statement, visitor, isStatement) : statement); - } - else { - break; + if (!ignoreCustomPrologue) { + while (statementOffset < numStatements) { + const statement = source[statementOffset]; + if (getEmitFlags(statement) & EmitFlags.CustomPrologue) { + target.push(visitor ? visitNode(statement, visitor, isStatement) : statement); + } + else { + break; + } + statementOffset++; } - statementOffset++; } return statementOffset; } + export function startsWithUseStrict(statements: Statement[]) { + const firstStatement = firstOrUndefined(statements); + return firstStatement !== undefined + && isPrologueDirective(firstStatement) + && isUseStrictPrologue(firstStatement); + } + /** * Ensures "use strict" directive is added * @@ -2126,6 +2238,16 @@ namespace ts { return statements; } + export function parenthesizeConditionalHead(condition: Expression) { + const conditionalPrecedence = getOperatorPrecedence(SyntaxKind.ConditionalExpression, SyntaxKind.QuestionToken); + const emittedCondition = skipPartiallyEmittedExpressions(condition); + const conditionPrecedence = getExpressionPrecedence(emittedCondition); + if (compareValues(conditionPrecedence, conditionalPrecedence) === Comparison.LessThan) { + return createParen(condition); + } + return condition; + } + /** * Wraps the operand to a BinaryExpression in parentheses if they are needed to preserve the intended * order of operations. diff --git a/src/compiler/transformer.ts b/src/compiler/transformer.ts index ee9c081e6ebd8..f0d39d3bd6806 100644 --- a/src/compiler/transformer.ts +++ b/src/compiler/transformer.ts @@ -26,84 +26,6 @@ namespace ts { EmitNotifications = 1 << 1, } - export interface TransformationResult { - /** - * Gets the transformed source files. - */ - transformed: SourceFile[]; - - /** - * Emits the substitute for a node, if one is available; otherwise, emits the node. - * - * @param emitContext The current emit context. - * @param node The node to substitute. - * @param emitCallback A callback used to emit the node or its substitute. - */ - emitNodeWithSubstitution(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void; - - /** - * Emits a node with possible notification. - * - * @param emitContext The current emit context. - * @param node The node to emit. - * @param emitCallback A callback used to emit the node. - */ - emitNodeWithNotification(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void; - } - - export interface TransformationContext extends LexicalEnvironment { - getCompilerOptions(): CompilerOptions; - getEmitResolver(): EmitResolver; - getEmitHost(): EmitHost; - - /** - * Hoists a function declaration to the containing scope. - */ - hoistFunctionDeclaration(node: FunctionDeclaration): void; - - /** - * Hoists a variable declaration to the containing scope. - */ - hoistVariableDeclaration(node: Identifier): void; - - /** - * Enables expression substitutions in the pretty printer for the provided SyntaxKind. - */ - enableSubstitution(kind: SyntaxKind): void; - - /** - * Determines whether expression substitutions are enabled for the provided node. - */ - isSubstitutionEnabled(node: Node): boolean; - - /** - * Hook used by transformers to substitute expressions just before they - * are emitted by the pretty printer. - */ - onSubstituteNode?: (emitContext: EmitContext, node: Node) => Node; - - /** - * Enables before/after emit notifications in the pretty printer for the provided - * SyntaxKind. - */ - enableEmitNotification(kind: SyntaxKind): void; - - /** - * Determines whether before/after emit notifications should be raised in the pretty - * printer when it emits a node. - */ - isEmitNotificationEnabled(node: Node): boolean; - - /** - * Hook used to allow transformers to capture state before or after - * the printer emits a node. - */ - onEmitNode?: (emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void) => void; - } - - /* @internal */ - export type Transformer = (context: TransformationContext) => (node: SourceFile) => SourceFile; - export function getTransformers(compilerOptions: CompilerOptions) { const jsx = compilerOptions.jsx; const languageVersion = getEmitScriptTarget(compilerOptions); @@ -149,14 +71,19 @@ namespace ts { * @param transforms An array of Transformers. */ export function transformFiles(resolver: EmitResolver, host: EmitHost, sourceFiles: SourceFile[], transformers: Transformer[]): TransformationResult { - const lexicalEnvironmentVariableDeclarationsStack: VariableDeclaration[][] = []; - const lexicalEnvironmentFunctionDeclarationsStack: FunctionDeclaration[][] = []; const enabledSyntaxKindFeatures = new Array(SyntaxKind.Count); + let scopeModificationDisabled: boolean; + + let lexicalEnvironmentVariableDeclarations: VariableDeclaration[]; + let lexicalEnvironmentFunctionDeclarations: FunctionDeclaration[]; + let lexicalEnvironmentVariableDeclarationsStack: VariableDeclaration[][] = []; + let lexicalEnvironmentFunctionDeclarationsStack: FunctionDeclaration[][] = []; let lexicalEnvironmentStackOffset = 0; - let hoistedVariableDeclarations: VariableDeclaration[]; - let hoistedFunctionDeclarations: FunctionDeclaration[]; - let lexicalEnvironmentDisabled: boolean; + let lexicalEnvironmentSuspended = false; + + let nonScopedEmitHelpers: EmitHelper[]; + let scopedEmitHelpers: EmitHelper[]; // The transformation context is provided to each transformer as part of transformer // initialization. @@ -167,7 +94,11 @@ namespace ts { hoistVariableDeclaration, hoistFunctionDeclaration, startLexicalEnvironment, + suspendLexicalEnvironment, + resumeLexicalEnvironment, endLexicalEnvironment, + requestEmitHelper, + readEmitHelpers, onSubstituteNode: (_emitContext, node) => node, enableSubstitution, isSubstitutionEnabled, @@ -183,7 +114,7 @@ namespace ts { const transformed = map(sourceFiles, transformSourceFile); // Disable modification of the lexical environment. - lexicalEnvironmentDisabled = true; + scopeModificationDisabled = true; return { transformed, @@ -278,13 +209,13 @@ namespace ts { * Records a hoisted variable declaration for the provided name within a lexical environment. */ function hoistVariableDeclaration(name: Identifier): void { - Debug.assert(!lexicalEnvironmentDisabled, "Cannot modify the lexical environment during the print phase."); + Debug.assert(!scopeModificationDisabled, "Cannot modify the lexical environment during the print phase."); const decl = createVariableDeclaration(name); - if (!hoistedVariableDeclarations) { - hoistedVariableDeclarations = [decl]; + if (!lexicalEnvironmentVariableDeclarations) { + lexicalEnvironmentVariableDeclarations = [decl]; } else { - hoistedVariableDeclarations.push(decl); + lexicalEnvironmentVariableDeclarations.push(decl); } } @@ -292,12 +223,12 @@ namespace ts { * Records a hoisted function declaration within a lexical environment. */ function hoistFunctionDeclaration(func: FunctionDeclaration): void { - Debug.assert(!lexicalEnvironmentDisabled, "Cannot modify the lexical environment during the print phase."); - if (!hoistedFunctionDeclarations) { - hoistedFunctionDeclarations = [func]; + Debug.assert(!scopeModificationDisabled, "Cannot modify the lexical environment during the print phase."); + if (!lexicalEnvironmentFunctionDeclarations) { + lexicalEnvironmentFunctionDeclarations = [func]; } else { - hoistedFunctionDeclarations.push(func); + lexicalEnvironmentFunctionDeclarations.push(func); } } @@ -306,17 +237,29 @@ namespace ts { * are pushed onto a stack, and the related storage variables are reset. */ function startLexicalEnvironment(): void { - Debug.assert(!lexicalEnvironmentDisabled, "Cannot start a lexical environment during the print phase."); + Debug.assert(!scopeModificationDisabled, "Cannot start a lexical environment during the print phase."); + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); + // Save the current lexical environment. Rather than resizing the array we adjust the // stack size variable. This allows us to reuse existing array slots we've // already allocated between transformations to avoid allocation and GC overhead during // transformation. - lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = hoistedVariableDeclarations; - lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = hoistedFunctionDeclarations; + lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentVariableDeclarations; + lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFunctionDeclarations; lexicalEnvironmentStackOffset++; - hoistedVariableDeclarations = undefined; - hoistedFunctionDeclarations = undefined; + lexicalEnvironmentVariableDeclarations = undefined; + lexicalEnvironmentFunctionDeclarations = undefined; + } + + function suspendLexicalEnvironment(): void { + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is already suspended."); + lexicalEnvironmentSuspended = true; + } + + function resumeLexicalEnvironment(): void { + Debug.assert(lexicalEnvironmentSuspended, "Lexical environment was not previously suspended."); + lexicalEnvironmentSuspended = false; } /** @@ -324,18 +267,19 @@ namespace ts { * any hoisted declarations added in this environment are returned. */ function endLexicalEnvironment(): Statement[] { - Debug.assert(!lexicalEnvironmentDisabled, "Cannot end a lexical environment during the print phase."); + Debug.assert(!scopeModificationDisabled, "Cannot end a lexical environment during the print phase."); + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); let statements: Statement[]; - if (hoistedVariableDeclarations || hoistedFunctionDeclarations) { - if (hoistedFunctionDeclarations) { - statements = [...hoistedFunctionDeclarations]; + if (lexicalEnvironmentVariableDeclarations || lexicalEnvironmentFunctionDeclarations) { + if (lexicalEnvironmentFunctionDeclarations) { + statements = [...lexicalEnvironmentFunctionDeclarations]; } - if (hoistedVariableDeclarations) { + if (lexicalEnvironmentVariableDeclarations) { const statement = createVariableStatement( /*modifiers*/ undefined, - createVariableDeclarationList(hoistedVariableDeclarations) + createVariableDeclarationList(lexicalEnvironmentVariableDeclarations) ); if (!statements) { @@ -349,9 +293,38 @@ namespace ts { // Restore the previous lexical environment. lexicalEnvironmentStackOffset--; - hoistedVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset]; - hoistedFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset]; + lexicalEnvironmentVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset]; + lexicalEnvironmentFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset]; + if (lexicalEnvironmentStackOffset === 0) { + lexicalEnvironmentVariableDeclarations = []; + lexicalEnvironmentFunctionDeclarations = []; + } return statements; } + + function requestEmitHelper(helper: EmitHelper): void { + Debug.assert(!scopeModificationDisabled, "Cannot modify the lexical environment during the print phase."); + if (helper.scoped) { + scopedEmitHelpers = append(scopedEmitHelpers, helper); + } + else { + nonScopedEmitHelpers = append(nonScopedEmitHelpers, helper); + } + } + + function readEmitHelpers(onlyScoped: boolean): EmitHelper[] { + Debug.assert(!scopeModificationDisabled, "Cannot modify the lexical environment during the print phase."); + if (onlyScoped) { + const helpers = scopedEmitHelpers; + scopedEmitHelpers = undefined; + return helpers; + } + else { + const helpers = concatenate(nonScopedEmitHelpers, scopedEmitHelpers); + scopedEmitHelpers = undefined; + nonScopedEmitHelpers = undefined; + return helpers; + } + } } } diff --git a/src/compiler/transformers/destructuring.ts b/src/compiler/transformers/destructuring.ts index 837c6c57bb79b..ba3f97f0d4d8a 100644 --- a/src/compiler/transformers/destructuring.ts +++ b/src/compiler/transformers/destructuring.ts @@ -42,10 +42,10 @@ namespace ts { * @param visitor An optional visitor used to visit default value initializers of binding patterns. */ export function flattenDestructuringToExpression( + context: TransformationContext, node: VariableDeclaration | DestructuringAssignment, needsValue: boolean, createAssignmentCallback: (target: Expression, value: Expression, location?: TextRange) => Expression, - recordTempVariable: (node: Identifier) => void, visitor?: (node: Node) => VisitResult): Expression { let location: TextRange = node; @@ -87,7 +87,16 @@ namespace ts { } } - flattenEffectiveBindingElement(node, value, isDestructuringAssignment(node), emitAssignment, emitTempVariableAssignment, visitor, location); + flattenEffectiveBindingElement( + context, + node, + value, + isDestructuringAssignment(node), + emitAssignment, + emitTempVariableAssignment, + emitExpression, + visitor, + location); if (value && needsValue) { expressions.push(value); @@ -98,22 +107,21 @@ namespace ts { function emitAssignment(target: Expression, value: Expression, location: TextRange, original: Node) { const expression = createAssignmentCallback(target, value, location); expression.original = original; - // NOTE: this completely disables source maps, but aligns with the behavior of - // `emitAssignment` in the old emitter. - setEmitFlags(expression, EmitFlags.NoNestedSourceMaps); - aggregateTransformFlags(expression); - expressions.push(expression); + emitExpression(expression); } function emitTempVariableAssignment(value: Expression, location: TextRange) { - const name = createTempVariable(recordTempVariable); - const expression = createAssignment(name, value, location); + const name = createTempVariable(context.hoistVariableDeclaration); + emitExpression(createAssignment(name, value, location)); + return name; + } + + function emitExpression(expression: Expression) { // NOTE: this completely disables source maps, but aligns with the behavior of // `emitAssignment` in the old emitter. setEmitFlags(expression, EmitFlags.NoNestedSourceMaps); aggregateTransformFlags(expression); expressions.push(expression); - return name; } } @@ -127,29 +135,55 @@ namespace ts { * declaring them inline. */ export function flattenDestructuring( + context: TransformationContext, node: VariableDeclaration | ParameterDeclaration, - boundValue?: Expression, - recordTempVariable?: (node: Identifier) => void, + boundValue: Expression | undefined, + recordTempVariablesInLine: boolean, visitor?: (node: Node) => VisitResult) { - let pendingAssignments: Expression[]; + let pendingExpressions: Expression[]; + const pendingDeclarations: { pendingExpressions?: Expression[], name: Identifier, value: Expression, location?: TextRange, original?: Node }[] = []; const declarations: VariableDeclaration[] = []; - flattenEffectiveBindingElement(node, boundValue, /*skipInitializer*/ false, emitAssignment, emitTempVariableAssignment, visitor, /*location*/ node); - return declarations; - function emitAssignment(name: Expression, value: Expression, location: TextRange, original: Node) { - if (!isIdentifier(name)) { - Debug.failBadSyntaxKind(name, "Identifier expected."); - return; + flattenEffectiveBindingElement( + context, + node, + boundValue, + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + emitExpression, + visitor, + /*location*/ node); + + if (pendingExpressions) { + const name = createTempVariable(/*recordTempVariable*/ undefined); + if (recordTempVariablesInLine) { + pendingDeclarations.push({ name, value: inlineExpressions(pendingExpressions) }); } - - if (pendingAssignments) { - pendingAssignments.push(value); - value = inlineExpressions(pendingAssignments); - pendingAssignments = undefined; + else { + context.hoistVariableDeclaration(name); + const pendingDeclaration = lastOrUndefined(pendingDeclarations); + pendingDeclaration.pendingExpressions = append( + pendingDeclaration.pendingExpressions, + createAssignment(name, pendingDeclaration.value) + ); + addRange(pendingDeclaration.pendingExpressions, pendingExpressions); + pendingDeclaration.value = name; } + } + + for (const { pendingExpressions, name, value, location, original} of pendingDeclarations) { + const declaration = createVariableDeclaration( + name, + /*type*/ undefined, + // pendingExpressions + // ? inlineExpressions(append(pendingExpressions, value)) + // : value, + inlineExpressions(append(pendingExpressions, value)), + location + ); - const declaration = createVariableDeclaration(name, /*type*/ undefined, value, location); declaration.original = original; // NOTE: this completely disables source maps, but aligns with the behavior of @@ -157,24 +191,43 @@ namespace ts { declarations.push(aggregateTransformFlags(setEmitFlags(declaration, EmitFlags.NoNestedSourceMaps))); } + return declarations; + + function emitAssignment(name: Expression, value: Expression, location: TextRange, original: Node) { + if (!isIdentifier(name)) { + Debug.failBadSyntaxKind(name, "Identifier expected."); + return; + } + + pendingDeclarations.push({ pendingExpressions, name, value, location, original }); + pendingExpressions = undefined; + } + function emitTempVariableAssignment(value: Expression, location: TextRange) { - const name = createTempVariable(recordTempVariable); - if (recordTempVariable) { - pendingAssignments = append(pendingAssignments, createAssignment(name, value, location)); + const name = createTempVariable(/*recordTempVariable*/ undefined); + if (recordTempVariablesInLine) { + emitAssignment(name, value, location, /*original*/ undefined); } else { - emitAssignment(name, value, location, /*original*/ undefined); + context.hoistVariableDeclaration(name); + emitExpression(createAssignment(name, value, location)); } return name; } + + function emitExpression(expression: Expression) { + pendingExpressions = append(pendingExpressions, expression); + } } function flattenEffectiveBindingElement( + context: TransformationContext, bindingElement: EffectiveBindingElement, boundValue: Expression | undefined, skipInitializer: boolean, emitAssignment: (target: Expression, value: Expression, location: TextRange, original: Node) => void, emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier, + emitExpression: (value: Expression) => void, visitor: ((node: Node) => VisitResult) | undefined, location: TextRange) { @@ -194,19 +247,20 @@ namespace ts { if (isEffectiveBindingPattern(bindingTarget)) { const elements = getElementsOfEffectiveBindingPattern(bindingTarget); const numElements = elements.length; - if (numElements !== 1) { - // For anything other than a single-element destructuring we need to generate a temporary - // to ensure value is evaluated exactly once. Additionally, if we have zero elements - // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, - // so in that case, we'll intentionally create that temporary. - const reuseIdentifierExpressions = !isDeclarationBindingElement(bindingElement) || numElements !== 0; - boundValue = ensureIdentifier(boundValue, reuseIdentifierExpressions, emitTempVariableAssignment, location); - } - if (isEffectiveObjectBindingPattern(bindingTarget)) { + if (numElements !== 1) { + // For anything other than a single-element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. Additionally, if we have zero elements + // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, + // so in that case, we'll intentionally create that temporary. + const reuseIdentifierExpressions = !isDeclarationBindingElement(bindingElement) || numElements !== 0; + boundValue = ensureIdentifier(boundValue, reuseIdentifierExpressions, emitTempVariableAssignment, location); + } + for (const element of elements) { // Rewrite element to a declaration with an initializer that fetches property flattenEffectiveBindingElement( + context, element, createDestructuringPropertyAccess( boundValue, @@ -215,35 +269,55 @@ namespace ts { /*skipInitializer*/ false, emitAssignment, emitTempVariableAssignment, + emitExpression, visitor, /*location*/ element); } } else { + if (!isArrayLiteralExpression(boundValue)) { + // Read the elements of the iterable into an array + boundValue = emitTempVariableAssignment( + createReadHelper( + context, + boundValue, + isEffectiveBindingElementWithRest(elements[numElements - 1]) + ? undefined + : numElements, + location + ), + location + ); + } + for (let i = 0; i < numElements; i++) { const element = elements[i]; - if (!isOmittedExpression(element)) { - if (!isEffectiveBindingElementWithRest(element)) { - // Rewrite element to a declaration that accesses array element at index i - flattenEffectiveBindingElement( - element, - createElementAccess(boundValue, i), - /*skipInitializer*/ false, - emitAssignment, - emitTempVariableAssignment, - visitor, - /*location*/ element); - } - else if (i === numElements - 1) { - flattenEffectiveBindingElement( - element, - createArraySlice(boundValue, i), - /*skipInitializer*/ false, - emitAssignment, - emitTempVariableAssignment, - visitor, - /*location*/ element); - } + if (isOmittedExpression(element)) { + continue; + } + else if (!isEffectiveBindingElementWithRest(element)) { + flattenEffectiveBindingElement( + context, + element, + createElementAccess(boundValue, i), + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + emitExpression, + visitor, + /*location*/ element); + } + else if (i === numElements - 1) { + flattenEffectiveBindingElement( + context, + element, + createArraySlice(boundValue, i), + /*skipInitializer*/ false, + emitAssignment, + emitTempVariableAssignment, + emitExpression, + visitor, + /*location*/ element); } } } diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 1e8ab4f971ee8..5b4971a9adc2b 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -166,11 +166,11 @@ namespace ts { export function transformES2015(context: TransformationContext) { const { startLexicalEnvironment, + resumeLexicalEnvironment, endLexicalEnvironment, - hoistVariableDeclaration, + hoistVariableDeclaration } = context; - const compilerOptions = context.getCompilerOptions(); const resolver = context.getEmitResolver(); const previousOnSubstituteNode = context.onSubstituteNode; const previousOnEmitNode = context.onEmitNode; @@ -187,7 +187,7 @@ namespace ts { let enclosingFunction: FunctionLikeDeclaration; let enclosingNonArrowFunction: FunctionLikeDeclaration; let enclosingNonAsyncFunctionBody: FunctionLikeDeclaration | ClassElement; - let helperState: EmitHelperState; + let enclosingLabeledStatements: LabeledStatement[]; /** * Used to track if we are emitting body of the converted loop @@ -210,15 +210,30 @@ namespace ts { currentSourceFile = node; currentText = node.text; - helperState = { currentSourceFile, compilerOptions }; + currentNode = node; + enclosingBlockScopeContainer = node; + + let statements: Statement[] = []; + + startLexicalEnvironment(); + + const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); + addCaptureThisForNodeIfNeeded(statements, node); + addRange(statements, visitNodes(node.statements, visitor, isStatement, statementOffset)); + addRange(statements, endLexicalEnvironment()); - const visited = visitNode(node, visitor, isSourceFile); - addEmitHelpers(visited, helperState.requestedHelpers); + const updated = updateSourceFileNode( + node, + createNodeArray(statements, /*location*/ node.statements) + ); + + addEmitHelpers(updated, context.readEmitHelpers(/*onlyScoped*/ false)); currentSourceFile = undefined; currentText = undefined; - helperState = undefined; - return visited; + currentNode = undefined; + enclosingBlockScopeContainer = undefined; + return updated; } function visitor(node: Node): VisitResult { @@ -267,6 +282,47 @@ namespace ts { (isIterationStatement(node, /*lookInLabeledStatements*/ false) && shouldConvertIterationStatementBody(node)); } + function onBeforeVisitNode(node: Node) { + if (currentNode) { + if (isBlockScope(currentNode, currentParent)) { + enclosingBlockScopeContainer = currentNode; + enclosingBlockScopeContainerParent = currentParent; + } + + if (isFunctionLike(currentNode)) { + enclosingFunction = currentNode; + if (currentNode.kind !== SyntaxKind.ArrowFunction) { + enclosingNonArrowFunction = currentNode; + if (!(getEmitFlags(currentNode) & EmitFlags.AsyncFunctionBody)) { + enclosingNonAsyncFunctionBody = currentNode; + } + } + } + + // keep track of the enclosing variable statement when in the context of + // variable statements, variable declarations, binding elements, and binding + // patterns. + switch (currentNode.kind) { + case SyntaxKind.VariableStatement: + enclosingVariableStatement = currentNode; + break; + + case SyntaxKind.VariableDeclarationList: + case SyntaxKind.VariableDeclaration: + case SyntaxKind.BindingElement: + case SyntaxKind.ObjectBindingPattern: + case SyntaxKind.ArrayBindingPattern: + break; + + default: + enclosingVariableStatement = undefined; + } + } + + currentParent = currentNode; + currentNode = node; + } + function visitorWorker(node: Node): VisitResult { if (shouldCheckNode(node)) { return visitJavaScript(node); @@ -418,9 +474,6 @@ namespace ts { case SyntaxKind.MethodDeclaration: return visitMethodDeclaration(node); - case SyntaxKind.SourceFile: - return visitSourceFileNode(node); - case SyntaxKind.VariableStatement: return visitVariableStatement(node); @@ -431,47 +484,6 @@ namespace ts { } - function onBeforeVisitNode(node: Node) { - if (currentNode) { - if (isBlockScope(currentNode, currentParent)) { - enclosingBlockScopeContainer = currentNode; - enclosingBlockScopeContainerParent = currentParent; - } - - if (isFunctionLike(currentNode)) { - enclosingFunction = currentNode; - if (currentNode.kind !== SyntaxKind.ArrowFunction) { - enclosingNonArrowFunction = currentNode; - if (!(getEmitFlags(currentNode) & EmitFlags.AsyncFunctionBody)) { - enclosingNonAsyncFunctionBody = currentNode; - } - } - } - - // keep track of the enclosing variable statement when in the context of - // variable statements, variable declarations, binding elements, and binding - // patterns. - switch (currentNode.kind) { - case SyntaxKind.VariableStatement: - enclosingVariableStatement = currentNode; - break; - - case SyntaxKind.VariableDeclarationList: - case SyntaxKind.VariableDeclaration: - case SyntaxKind.BindingElement: - case SyntaxKind.ObjectBindingPattern: - case SyntaxKind.ArrayBindingPattern: - break; - - default: - enclosingVariableStatement = undefined; - } - } - - currentParent = currentNode; - currentNode = node; - } - function visitSwitchStatement(node: SwitchStatement): SwitchStatement { Debug.assert(convertedLoopState !== undefined); @@ -769,7 +781,7 @@ namespace ts { if (extendsClauseElement) { statements.push( createStatement( - createExtendsHelper(helperState, getLocalName(node)), + createExtendsHelper(context, getLocalName(node)), /*location*/ extendsClauseElement ) ); @@ -819,11 +831,8 @@ namespace ts { // `super` call. // If this is the case, we do not include the synthetic `...args` parameter and // will instead use the `arguments` object in ES5/3. - if (constructor && !hasSynthesizedSuper) { - return visitNodes(constructor.parameters, visitor, isParameter); - } - - return []; + return visitParameterList(constructor && !hasSynthesizedSuper && constructor.parameters, visitor, context) + || []; } /** @@ -836,19 +845,19 @@ namespace ts { * synthesized `super` call. */ function transformConstructorBody(constructor: ConstructorDeclaration | undefined, node: ClassDeclaration | ClassExpression, extendsClauseElement: ExpressionWithTypeArguments, hasSynthesizedSuper: boolean) { - const statements: Statement[] = []; - startLexicalEnvironment(); + let statements: Statement[] = []; + resumeLexicalEnvironment(); let statementOffset = -1; if (hasSynthesizedSuper) { // If a super call has already been synthesized, // we're going to assume that we should just transform everything after that. // The assumption is that no prior step in the pipeline has added any prologue directives. - statementOffset = 1; + statementOffset = 0; } else if (constructor) { // Otherwise, try to emit all potential prologue directives first. - statementOffset = addPrologueDirectives(statements, constructor.body.statements, /*ensureUseStrict*/ false, visitor); + statementOffset = addPrologueDirectives(statements, constructor.body.statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); } if (constructor) { @@ -883,6 +892,7 @@ namespace ts { } addRange(statements, endLexicalEnvironment()); + const block = createBlock( createNodeArray( statements, @@ -1133,7 +1143,12 @@ namespace ts { createVariableStatement( /*modifiers*/ undefined, createVariableDeclarationList( - flattenDestructuring(parameter, temp, /*recordTempVariable*/ undefined, visitor) + flattenDestructuring( + context, + parameter, + temp, + /*recordTempVariablesInLine*/ true, + visitor) ) ), EmitFlags.CustomPrologue @@ -1363,22 +1378,17 @@ namespace ts { * @param member The MethodDeclaration node. */ function transformClassMethodDeclarationToStatement(receiver: LeftHandSideExpression, member: MethodDeclaration) { + const commentRange = getCommentRange(member); const sourceMapRange = getSourceMapRange(member); - const func = transformFunctionLikeToExpression(member, /*location*/ member, /*name*/ undefined); - setEmitFlags(func, EmitFlags.NoComments); - setSourceMapRange(func, sourceMapRange); + const memberName = createMemberAccessForPropertyName(receiver, visitNode(member.name, visitor, isPropertyName), /*location*/ member.name); + const memberFunction = transformFunctionLikeToExpression(member, /*location*/ member, /*name*/ undefined); + setEmitFlags(memberFunction, EmitFlags.NoComments); + setSourceMapRange(memberFunction, sourceMapRange); const statement = createStatement( - createAssignment( - createMemberAccessForPropertyName( - receiver, - visitNode(member.name, visitor, isPropertyName), - /*location*/ member.name - ), - func - ), + createAssignment(memberName, memberFunction), /*location*/ member ); @@ -1477,7 +1487,20 @@ namespace ts { enableSubstitutionsForCapturedThis(); } - const func = transformFunctionLikeToExpression(node, /*location*/ node, /*name*/ undefined); + const func = setOriginalNode( + createFunctionExpression( + /*modifiers*/ undefined, + node.asteriskToken, + /*name*/ undefined, + /*typeParameters*/ undefined, + visitParameterList(node.parameters, visitor, context), + /*type*/ undefined, + transformFunctionBody(node), + node + ), + /*original*/ node + ); + setEmitFlags(func, EmitFlags.CapturesThis); return func; } @@ -1488,7 +1511,17 @@ namespace ts { * @param node a FunctionExpression node. */ function visitFunctionExpression(node: FunctionExpression): Expression { - return transformFunctionLikeToExpression(node, /*location*/ node, node.name); + return updateFunctionExpression( + node, + /*modifiers*/ undefined, + node.name, + /*typeParameters*/ undefined, + visitParameterList(node.parameters, visitor, context), + /*type*/ undefined, + node.transformFlags & TransformFlags.ES2015 + ? transformFunctionBody(node) + : visitFunctionBody(node.body, visitor, context) + ); } /** @@ -1497,19 +1530,18 @@ namespace ts { * @param node a FunctionDeclaration node. */ function visitFunctionDeclaration(node: FunctionDeclaration): FunctionDeclaration { - return setOriginalNode( - createFunctionDeclaration( - /*decorators*/ undefined, - node.modifiers, - node.asteriskToken, - node.name, - /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), - /*type*/ undefined, - transformFunctionBody(node), - /*location*/ node - ), - /*original*/ node); + return updateFunctionDeclaration( + node, + /*decorators*/ undefined, + node.modifiers, + node.name, + /*typeParameters*/ undefined, + visitParameterList(node.parameters, visitor, context), + /*type*/ undefined, + node.transformFlags & TransformFlags.ES2015 + ? transformFunctionBody(node) + : visitFunctionBody(node.body, visitor, context) + ); } /** @@ -1531,7 +1563,7 @@ namespace ts { node.asteriskToken, name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, saveStateAndInvoke(node, transformFunctionBody), location @@ -1554,15 +1586,17 @@ namespace ts { let statementsLocation: TextRange; let closeBraceLocation: TextRange; - const statements: Statement[] = []; - const body = node.body; + let statements: Statement[] = []; let statementOffset: number; + const body = node.body; + + // Resume the lexical environment and iterator scope started in visitParameterList + resumeLexicalEnvironment(); - startLexicalEnvironment(); if (isBlock(body)) { // ensureUseStrict is false because no new prologue-directive should be added. // addPrologueDirectives will simply put already-existing directives at the beginning of the target statement-array - statementOffset = addPrologueDirectives(statements, body.statements, /*ensureUseStrict*/ false, visitor); + statementOffset = addPrologueDirectives(statements, body.statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); } addCaptureThisForNodeIfNeeded(statements, node); @@ -1612,15 +1646,21 @@ namespace ts { closeBraceLocation = body; } - const lexicalEnvironment = endLexicalEnvironment(); - addRange(statements, lexicalEnvironment); + const declarations = endLexicalEnvironment(); + addRange(statements, declarations); // If we added any final generated statements, this must be a multi-line block - if (!multiLine && lexicalEnvironment && lexicalEnvironment.length) { + if (some(declarations)) { multiLine = true; } - const block = createBlock(createNodeArray(statements, statementsLocation), node.body, multiLine); + const block = createBlock( + createNodeArray(statements, statementsLocation), + node.body, + multiLine); + + setOriginalNode(block, node.body); + if (!multiLine && singleLine) { setEmitFlags(block, EmitFlags.SingleLine); } @@ -1629,7 +1669,6 @@ namespace ts { setTokenSourceMapRange(block, SyntaxKind.CloseBraceToken, closeBraceLocation); } - setOriginalNode(block, node.body); return block; } @@ -1638,7 +1677,7 @@ namespace ts { * * @param node An ExpressionStatement node. */ - function visitExpressionStatement(node: ExpressionStatement): ExpressionStatement { + function visitExpressionStatement(node: ExpressionStatement): Statement { // If we are here it is most likely because our expression is a destructuring assignment. switch (node.expression.kind) { case SyntaxKind.ParenthesizedExpression: @@ -1695,14 +1734,17 @@ namespace ts { */ function visitBinaryExpression(node: BinaryExpression, needsDestructuringValue: boolean): Expression { // If we are here it is because this is a destructuring assignment. - Debug.assert(isDestructuringAssignment(node)); - return flattenDestructuringToExpression( - node, - needsDestructuringValue, - createAssignment, - hoistVariableDeclaration, - visitor - ); + if (isDestructuringAssignment(node)) { + return flattenDestructuringToExpression( + context, + node, + needsDestructuringValue, + createAssignment, + visitor + ); + } + + return visitEachChild(node, visitor, context); } function visitVariableStatement(node: VariableStatement): Statement { @@ -1714,7 +1756,12 @@ namespace ts { if (decl.initializer) { let assignment: Expression; if (isBindingPattern(decl.name)) { - assignment = flattenDestructuringToExpression(decl, /*needsValue*/ false, createAssignment, hoistVariableDeclaration, visitor); + assignment = flattenDestructuringToExpression( + context, + decl, + /*needsValue*/ false, + createAssignment, + visitor); } else { assignment = createBinary(decl.name, SyntaxKind.EqualsToken, visitNode(decl.initializer, visitor, isExpression)); @@ -1870,9 +1917,10 @@ namespace ts { const recordTempVariablesInLine = !enclosingVariableStatement || !hasModifier(enclosingVariableStatement, ModifierFlags.Export); return flattenDestructuring( + context, node, /*value*/ undefined, - recordTempVariablesInLine ? undefined : hoistVariableDeclaration, + recordTempVariablesInLine, visitor); } @@ -1880,28 +1928,54 @@ namespace ts { } function visitLabeledStatement(node: LabeledStatement): VisitResult { + const enclosedStatement = getEnclosedStatement(node); if (convertedLoopState) { if (!convertedLoopState.labels) { convertedLoopState.labels = createMap(); } - convertedLoopState.labels[node.label.text] = node.label.text; + for (const labeledStatement of enclosedStatement.enclosingLabeledStatements) { + convertedLoopState.labels[labeledStatement.label.text] = labeledStatement.label.text; + } } let result: VisitResult; - if (isIterationStatement(node.statement, /*lookInLabeledStatements*/ false) && shouldConvertIterationStatementBody(node.statement)) { - result = visitNodes(createNodeArray([node.statement]), visitor, isStatement); + if (isIterationStatement(enclosedStatement.statement, /*lookInLabeledStatements*/ false)) { + enclosingLabeledStatements = enclosedStatement.enclosingLabeledStatements; + if (shouldConvertIterationStatementBody(enclosedStatement.statement)) { + result = visitNodes(createNodeArray([enclosedStatement.statement]), visitor, isStatement); + Debug.assert(enclosingLabeledStatements === undefined); + } + else { + result = restoreEnclosingLabels(visitNode(enclosedStatement.statement, visitor, isStatement), enclosingLabeledStatements); + enclosingLabeledStatements = undefined; + } } else { - result = visitEachChild(node, visitor, context); + result = restoreEnclosingLabels(visitNode(enclosedStatement.statement, visitor, isStatement), enclosedStatement.enclosingLabeledStatements); } if (convertedLoopState) { - convertedLoopState.labels[node.label.text] = undefined; + for (const labeledStatement of enclosedStatement.enclosingLabeledStatements) { + convertedLoopState.labels[labeledStatement.label.text] = undefined; + } } return result; } + function restoreEnclosingLabels(node: Statement, enclosingLabeledStatements: LabeledStatement[]) { + if (enclosingLabeledStatements) { + for (const labeledStatement of enclosingLabeledStatements) { + node = updateLabel( + labeledStatement, + labeledStatement.label, + node + ); + } + } + return node; + } + function visitDoStatement(node: DoStatement) { return convertIterationStatementBodyIfNecessary(node); } @@ -1924,65 +1998,29 @@ namespace ts { * @param node A ForOfStatement. */ function visitForOfStatement(node: ForOfStatement): VisitResult { - return convertIterationStatementBodyIfNecessary(node, convertForOfToFor); + return convertIterationStatementBodyIfNecessary(node, convertForOfStatement); } - function convertForOfToFor(node: ForOfStatement, convertedLoopBodyStatements: Statement[]): ForStatement { - // The following ES6 code: - // - // for (let v of expr) { } - // - // should be emitted as - // - // for (var _i = 0, _a = expr; _i < _a.length; _i++) { - // var v = _a[_i]; - // } - // - // where _a and _i are temps emitted to capture the RHS and the counter, - // respectively. - // When the left hand side is an expression instead of a let declaration, - // the "let v" is not emitted. - // When the left hand side is a let/const, the v is renamed if there is - // another v in scope. - // Note that all assignments to the LHS are emitted in the body, including - // all destructuring. - // Note also that because an extra statement is needed to assign to the LHS, - // for-of bodies are always emitted as blocks. - - const expression = visitNode(node.expression, visitor, isExpression); - const initializer = node.initializer; - const statements: Statement[] = []; - - // In the case where the user wrote an identifier as the RHS, like this: - // - // for (let v of arr) { } - // - // we don't want to emit a temporary variable for the RHS, just use it directly. - const counter = createLoopVariable(); - const rhsReference = expression.kind === SyntaxKind.Identifier - ? createUniqueName((expression).text) - : createTempVariable(/*recordTempVariable*/ undefined); - - // Initialize LHS - // var v = _a[_i]; - if (isVariableDeclarationList(initializer)) { - if (initializer.flags & NodeFlags.BlockScoped) { + function convertForOfStatementHead(statements: Statement[], node: ForOfStatement, boundValue: Expression, convertedLoopBodyStatements: Statement[]) { + if (isVariableDeclarationList(node.initializer)) { + if (node.initializer.flags & NodeFlags.BlockScoped) { enableSubstitutionsForBlockScopedBindings(); } - const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); + const firstOriginalDeclaration = firstOrUndefined(node.initializer.declarations); if (firstOriginalDeclaration && isBindingPattern(firstOriginalDeclaration.name)) { // This works whether the declaration is a var, let, or const. // It will use rhsIterationValue _a[_i] as the initializer. const declarations = flattenDestructuring( + context, firstOriginalDeclaration, - createElementAccess(rhsReference, counter), - /*recordTempVariable*/ undefined, + boundValue, + /*recordTempVariablesInLine*/ true, visitor ); - const declarationList = createVariableDeclarationList(declarations, /*location*/ initializer); - setOriginalNode(declarationList, initializer); + const declarationList = createVariableDeclarationList(declarations, /*location*/ node.initializer); + setOriginalNode(declarationList, node.initializer); // Adjust the source map range for the first declaration to align with the old // emitter. @@ -2004,16 +2042,19 @@ namespace ts { createVariableStatement( /*modifiers*/ undefined, setOriginalNode( - createVariableDeclarationList([ - createVariableDeclaration( - firstOriginalDeclaration ? firstOriginalDeclaration.name : createTempVariable(/*recordTempVariable*/ undefined), - /*type*/ undefined, - createElementAccess(rhsReference, counter) - ) - ], /*location*/ moveRangePos(initializer, -1)), - initializer + createVariableDeclarationList( + [ + createVariableDeclaration( + firstOriginalDeclaration ? firstOriginalDeclaration.name : createTempVariable(/*recordTempVariable*/ undefined), + /*type*/ undefined, + boundValue + ) + ], + /*location*/ moveRangePos(node.initializer, -1) + ), + node.initializer ), - /*location*/ moveRangeEnd(initializer, -1) + /*location*/ moveRangeEnd(node.initializer, -1) ) ); } @@ -2021,26 +2062,13 @@ namespace ts { else { // Initializer is an expression. Emit the expression in the body, so that it's // evaluated on every iteration. - const assignment = createAssignment(initializer, createElementAccess(rhsReference, counter)); + const assignment = createAssignment(node.initializer, boundValue); if (isDestructuringAssignment(assignment)) { - // This is a destructuring pattern, so we flatten the destructuring instead. - statements.push( - createStatement( - flattenDestructuringToExpression( - assignment, - /*needsValue*/ false, - createAssignment, - hoistVariableDeclaration, - visitor - ) - ) - ); + statements.push(visitNode(createStatement(assignment), visitor, isStatement)); } else { - // Currently there is not way to check that assignment is binary expression of destructing assignment - // so we have to cast never type to binaryExpression - (assignment).end = initializer.end; - statements.push(createStatement(assignment, /*location*/ moveRangeEnd(initializer, -1))); + assignment.end = node.initializer.end; + statements.push(createStatement(visitNode(assignment, visitor, isExpression), /*location*/ moveRangeEnd(node.initializer, -1))); } } @@ -2061,6 +2089,118 @@ namespace ts { } } + return { bodyLocation, statementsLocation }; + } + + function convertForOfStatement(node: ForOfStatement, outerEnclosingLabeledStatements: LabeledStatement[], convertedLoopBodyStatements: Statement[]): Statement { + const expression = visitNode(node.expression, visitor, isExpression); + if (isArrayLiteralExpression(expression)) { + return convertForOfStatementForArrayLiteral(node, outerEnclosingLabeledStatements, convertedLoopBodyStatements, expression); + } + + const iteratorRecord = isIdentifier(node.expression) + ? getGeneratedNameForNode(node.expression) + : createUniqueName("iterator"); + + const statements: Statement[] = []; + const { bodyLocation, statementsLocation } = convertForOfStatementHead( + statements, + node, + createPropertyAccess( + createPropertyAccess(iteratorRecord, "result"), + "value" + ), + convertedLoopBodyStatements); + + let statement: Statement = setEmitFlags( + createFor( + createVariableDeclarationList( + [ + createVariableDeclaration( + iteratorRecord, + /*type*/ undefined, + createObjectLiteral( + [ + createPropertyAssignment( + "iterator", + createValuesHelper( + context, + expression, + node.expression + ), + node.expression + ) + ], + node.expression + ), + node.expression + ) + ], + node.expression + ), + /*condition*/ createStepHelper( + context, + iteratorRecord, + node.initializer + ), + /*incrementor*/ undefined, + setEmitFlags( + createBlock( + createNodeArray(statements, statementsLocation), + bodyLocation, + /*multiLine*/ true + ), + EmitFlags.NoSourceMap | EmitFlags.NoTokenSourceMaps + ), + /*location*/ node + ), + EmitFlags.NoTokenTrailingSourceMaps + ); + + statement = restoreEnclosingLabels(statement, outerEnclosingLabeledStatements); + return closeIterator(statement, iteratorRecord); + } + + function convertForOfStatementForArrayLiteral(node: ForOfStatement, outerEnclosingLabeledStatements: LabeledStatement[], convertedLoopBodyStatements: Statement[], expression: Expression): Statement { + // The following ES6 code: + // + // for (let v of expr) { } + // + // should be emitted as + // + // for (var _i = 0, _a = expr; _i < _a.length; _i++) { + // var v = _a[_i]; + // } + // + // where _a and _i are temps emitted to capture the RHS and the counter, + // respectively. + // When the left hand side is an expression instead of a let declaration, + // the "let v" is not emitted. + // When the left hand side is a let/const, the v is renamed if there is + // another v in scope. + // Note that all assignments to the LHS are emitted in the body, including + // all destructuring. + // Note also that because an extra statement is needed to assign to the LHS, + // for-of bodies are always emitted as blocks. + + const statements: Statement[] = []; + + // In the case where the user wrote an identifier as the RHS, like this: + // + // for (let v of arr) { } + // + // we don't want to emit a temporary variable for the RHS, just use it directly. + const counter = createLoopVariable(); + const rhsReference = expression.kind === SyntaxKind.Identifier + ? createUniqueName((expression).text) + : createTempVariable(/*recordTempVariable*/ undefined); + + const { bodyLocation, statementsLocation } = convertForOfStatementHead( + statements, + node, + createElementAccess(rhsReference, counter), + convertedLoopBodyStatements); + // The old emitter does not emit source maps for the expression setEmitFlags(expression, EmitFlags.NoSourceMap | getEmitFlags(expression)); @@ -2093,7 +2233,73 @@ namespace ts { // Disable trailing source maps for the OpenParenToken to align source map emit with the old emitter. setEmitFlags(forStatement, EmitFlags.NoTokenTrailingSourceMaps); - return forStatement; + return restoreEnclosingLabels(forStatement, outerEnclosingLabeledStatements); + } + + function closeIterator(statement: Statement, iteratorRecord: Expression) { + const errorRecord = createUniqueName("e"); + hoistVariableDeclaration(errorRecord); + const catchVariable = getGeneratedNameForNode(errorRecord); + + return createTry( + createBlock([ + statement + ]), + createCatchClause(catchVariable, + setEmitFlags( + createBlock([ + createStatement( + createAssignment( + errorRecord, + createObjectLiteral([ + createPropertyAssignment( + "error", + catchVariable + ) + ]) + ) + ) + ]), + EmitFlags.SingleLine + ) + ), + createBlock([ + setEmitFlags( + createTry( + setEmitFlags( + createBlock([ + createStatement( + createCloseHelper( + context, + iteratorRecord + ) + ) + ]), + EmitFlags.SingleLine + ), + undefined, + setEmitFlags( + createBlock([ + setEmitFlags( + createIf( + errorRecord, + createThrow( + createPropertyAccess( + errorRecord, + "error" + ) + ) + ), + EmitFlags.SingleLine + ) + ]), + EmitFlags.SingleLine + ) + ), + EmitFlags.SingleLine + ) + ]) + ); } /** @@ -2178,7 +2384,10 @@ namespace ts { } } - function convertIterationStatementBodyIfNecessary(node: IterationStatement, convert?: (node: IterationStatement, convertedLoopBodyStatements: Statement[]) => IterationStatement): VisitResult { + function convertIterationStatementBodyIfNecessary(node: IterationStatement, convert?: (node: IterationStatement, enclosingLabeledStatements: LabeledStatement[], convertedLoopBodyStatements: Statement[]) => Statement): VisitResult { + const outerEnclosingLabeledStatements = enclosingLabeledStatements; + enclosingLabeledStatements = undefined; + if (!shouldConvertIterationStatementBody(node)) { let saveAllowedNonLabeledJumps: Jump; if (convertedLoopState) { @@ -2188,11 +2397,18 @@ namespace ts { convertedLoopState.allowedNonLabeledJumps = Jump.Break | Jump.Continue; } - const result = convert ? convert(node, /*convertedLoopBodyStatements*/ undefined) : visitEachChild(node, visitor, context); + let result: Statement; + if (convert) { + result = convert(node, outerEnclosingLabeledStatements, /*convertedLoopBodyStatements*/ undefined); + } + else { + result = restoreEnclosingLabels(visitEachChild(node, visitor, context), outerEnclosingLabeledStatements); + } if (convertedLoopState) { convertedLoopState.allowedNonLabeledJumps = saveAllowedNonLabeledJumps; } + return result; } @@ -2376,18 +2592,19 @@ namespace ts { } const convertedLoopBodyStatements = generateCallToConvertedLoop(functionName, loopParameters, currentState, isAsyncBlockContainingAwait); - let loop: IterationStatement; + + let loop: Statement; if (convert) { - loop = convert(node, convertedLoopBodyStatements); + loop = convert(node, outerEnclosingLabeledStatements, convertedLoopBodyStatements); } else { - loop = getMutableClone(node); + loop = getMutableClone(node); // clean statement part - loop.statement = undefined; + (loop).statement = undefined; // visit childnodes to transform initializer/condition/incrementor parts loop = visitEachChild(loop, visitor, context); // set loop statement - loop.statement = createBlock( + (loop).statement = createBlock( convertedLoopBodyStatements, /*location*/ undefined, /*multiline*/ true @@ -2395,15 +2612,11 @@ namespace ts { // reset and re-aggregate the transform flags loop.transformFlags = 0; + loop = restoreEnclosingLabels(loop, outerEnclosingLabeledStatements); aggregateTransformFlags(loop); } - - statements.push( - currentParent.kind === SyntaxKind.LabeledStatement - ? createLabel((currentParent).label, loop) - : loop - ); + statements.push(loop); return statements; } @@ -2421,6 +2634,8 @@ namespace ts { function generateCallToConvertedLoop(loopFunctionExpressionName: Identifier, parameters: ParameterDeclaration[], state: ConvertedLoopState, isAsyncBlockContainingAwait: boolean): Statement[] { const outerConvertedLoopState = convertedLoopState; + const savedEnclosingLabeledStatements = enclosingLabeledStatements; + enclosingLabeledStatements = undefined; const statements: Statement[] = []; // loop is considered simple if it does not have any return statements or break\continue that transfer control outside of the loop @@ -2494,6 +2709,8 @@ namespace ts { ); } } + + enclosingLabeledStatements = savedEnclosingLabeledStatements; return statements; } @@ -2711,7 +2928,7 @@ namespace ts { */ function visitArrayLiteralExpression(node: ArrayLiteralExpression): Expression { // We are here because we contain a SpreadElementExpression. - return transformAndSpreadElements(node.elements, /*needsUniqueCopy*/ true, node.multiLine, /*hasTrailingComma*/ node.elements.hasTrailingComma); + return transformAndSpreadElements(node.elements, node.multiLine, /*hasTrailingComma*/ node.elements.hasTrailingComma); } /** @@ -2754,7 +2971,7 @@ namespace ts { resultingCall = createFunctionApply( visitNode(target, visitor, isExpression), visitNode(thisArg, visitor, isExpression), - transformAndSpreadElements(node.arguments, /*needsUniqueCopy*/ false, /*multiLine*/ false, /*hasTrailingComma*/ false) + transformAndSpreadElements(node.arguments, /*multiLine*/ false, /*hasTrailingComma*/ false) ); } else { @@ -2811,7 +3028,7 @@ namespace ts { createFunctionApply( visitNode(target, visitor, isExpression), thisArg, - transformAndSpreadElements(createNodeArray([createVoidZero(), ...node.arguments]), /*needsUniqueCopy*/ false, /*multiLine*/ false, /*hasTrailingComma*/ false) + transformAndSpreadElements(createNodeArray([createVoidZero(), ...node.arguments]), /*multiLine*/ false, /*hasTrailingComma*/ false) ), /*typeArguments*/ undefined, [] @@ -2825,7 +3042,7 @@ namespace ts { * @param needsUniqueCopy A value indicating whether to ensure that the result is a fresh array. * @param multiLine A value indicating whether the result should be emitted on multiple lines. */ - function transformAndSpreadElements(elements: NodeArray, needsUniqueCopy: boolean, multiLine: boolean, hasTrailingComma: boolean): Expression { + function transformAndSpreadElements(elements: NodeArray, multiLine: boolean, hasTrailingComma: boolean): Expression { // [source] // [a, ...b, c] // @@ -2842,14 +3059,16 @@ namespace ts { ); if (segments.length === 1) { - const firstElement = elements[0]; - return needsUniqueCopy && isSpreadElementExpression(firstElement) && firstElement.expression.kind !== SyntaxKind.ArrayLiteralExpression - ? createArraySlice(segments[0]) - : segments[0]; + const firstSegment = segments[0]; + if (isCallExpression(firstSegment) + && isIdentifier(firstSegment.expression) + && (getEmitFlags(firstSegment.expression) & EmitFlags.HelperName) + && firstSegment.expression.text === "___spread") { + return segments[0]; + } } - // Rewrite using the pattern .concat(, , ...) - return createArrayConcat(segments.shift(), segments); + return createSpreadHelper(context, segments); } function partitionSpreadElement(node: Expression) { @@ -3056,19 +3275,6 @@ namespace ts { : createIdentifier("_super"); } - function visitSourceFileNode(node: SourceFile): SourceFile { - const [prologue, remaining] = span(node.statements, isPrologueDirective); - const statements: Statement[] = []; - startLexicalEnvironment(); - addRange(statements, prologue); - addCaptureThisForNodeIfNeeded(statements, node); - addRange(statements, visitNodes(createNodeArray(remaining), visitor, isStatement)); - addRange(statements, endLexicalEnvironment()); - const clone = getMutableClone(node); - clone.statements = createNodeArray(statements, /*location*/ node.statements); - return clone; - } - /** * Called by the printer just before a node is printed. * @@ -3230,8 +3436,7 @@ namespace ts { return false; } - const parameter = singleOrUndefined(constructor.parameters); - if (!parameter || !nodeIsSynthesized(parameter) || !parameter.dotDotDotToken) { + if (some(constructor.parameters)) { return false; } @@ -3256,14 +3461,14 @@ namespace ts { } const expression = (callArgument).expression; - return isIdentifier(expression) && expression === parameter.name; + return isIdentifier(expression) && expression.text === "arguments"; } } - function createExtendsHelper(helperState: EmitHelperState, name: Identifier) { - requestEmitHelper(helperState, extendsHelper); + function createExtendsHelper(context: TransformationContext, name: Identifier) { + context.requestEmitHelper(extendsHelper); return createCall( - getHelperName(helperState, "__extends"), + getHelperName("__extends"), /*typeArguments*/ undefined, [ name, diff --git a/src/compiler/transformers/es2017.ts b/src/compiler/transformers/es2017.ts index 14d97ade2ac3f..581b67dfabf1e 100644 --- a/src/compiler/transformers/es2017.ts +++ b/src/compiler/transformers/es2017.ts @@ -13,7 +13,8 @@ namespace ts { export function transformES2017(context: TransformationContext) { const { startLexicalEnvironment, - endLexicalEnvironment, + resumeLexicalEnvironment, + endLexicalEnvironment } = context; const resolver = context.getEmitResolver(); @@ -22,7 +23,6 @@ namespace ts { // These variables contain state that changes as we descend into the tree. let currentSourceFile: SourceFile; - let helperState: EmitHelperState; /** * Keeps track of whether expression substitution has been enabled for specific edge cases. @@ -50,8 +50,6 @@ namespace ts { context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - let currentScope: SourceFile | Block | ModuleBlock | CaseBlock; - return transformSourceFile; function transformSourceFile(node: SourceFile) { @@ -60,14 +58,11 @@ namespace ts { } currentSourceFile = node; - helperState = { currentSourceFile, compilerOptions }; const visited = visitEachChild(node, visitor, context); - - addEmitHelpers(visited, helperState.requestedHelpers); + addEmitHelpers(visited, context.readEmitHelpers(/*onlyScoped*/ false)); currentSourceFile = undefined; - helperState = undefined; return visited; } @@ -148,7 +143,7 @@ namespace ts { node.asteriskToken, node.name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, transformFunctionBody(node), /*location*/ node @@ -176,7 +171,7 @@ namespace ts { node.asteriskToken, node.name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, transformFunctionBody(node), /*location*/ node @@ -205,7 +200,7 @@ namespace ts { node.asteriskToken, node.name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, transformFunctionBody(node), /*location*/ node @@ -228,10 +223,10 @@ namespace ts { const func = createArrowFunction( visitNodes(node.modifiers, visitor, isModifier), /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, node.equalsGreaterThanToken, - transformConciseBody(node), + transformFunctionBody(node), /*location*/ node ); @@ -239,27 +234,9 @@ namespace ts { return func; } - function transformFunctionBody(node: MethodDeclaration | AccessorDeclaration | FunctionDeclaration | FunctionExpression): FunctionBody { - return transformAsyncFunctionBody(node); - } - - function transformConciseBody(node: ArrowFunction): ConciseBody { - return transformAsyncFunctionBody(node); - } - - function transformFunctionBodyWorker(body: Block, start = 0) { - const savedCurrentScope = currentScope; - currentScope = body; - startLexicalEnvironment(); - - const statements = visitNodes(body.statements, visitor, isStatement, start); - const visited = updateBlock(body, statements); - const declarations = endLexicalEnvironment(); - currentScope = savedCurrentScope; - return mergeFunctionBodyLexicalEnvironment(visited, declarations); - } - - function transformAsyncFunctionBody(node: FunctionLikeDeclaration): ConciseBody | FunctionBody { + function transformFunctionBody(node: MethodDeclaration | AccessorDeclaration | FunctionDeclaration | FunctionExpression): FunctionBody; + function transformFunctionBody(node: ArrowFunction): ConciseBody; + function transformFunctionBody(node: FunctionLikeDeclaration): ConciseBody | FunctionBody { const nodeType = node.original ? (node.original).type : node.type; const promiseConstructor = languageVersion < ScriptTarget.ES2015 ? getPromiseConstructor(nodeType) : undefined; const isArrowFunction = node.kind === SyntaxKind.ArrowFunction; @@ -271,14 +248,15 @@ namespace ts { // passed to `__awaiter` is executed inside of the callback to the // promise constructor. + resumeLexicalEnvironment(); if (!isArrowFunction) { - const statements: Statement[] = []; - const statementOffset = addPrologueDirectives(statements, (node.body).statements, /*ensureUseStrict*/ false, visitor); + let statements: Statement[] = []; + const statementOffset = addPrologueDirectives(statements, (node.body).statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); statements.push( createReturn( createAwaiterHelper( - helperState, + context, hasLexicalArguments, promiseConstructor, transformFunctionBodyWorker(node.body, statementOffset) @@ -286,6 +264,8 @@ namespace ts { ) ); + addRange(statements, endLexicalEnvironment()); + const block = createBlock(statements, /*location*/ node.body, /*multiLine*/ true); // Minor optimization, emit `_super` helper to capture `super` access in an arrow. @@ -304,32 +284,36 @@ namespace ts { return block; } else { - return createAwaiterHelper( - helperState, + const expression = createAwaiterHelper( + context, hasLexicalArguments, promiseConstructor, - transformConciseBodyWorker(node.body, /*forceBlockFunctionBody*/ true) + transformFunctionBodyWorker(node.body) ); + + const declarations = endLexicalEnvironment(); + if (some(declarations)) { + const block = toFunctionBody(expression); + const statements = mergeLexicalEnvironment(block.statements, declarations); + return updateBlock(block, statements); + } + + return expression; } } - function transformConciseBodyWorker(body: Block | Expression, forceBlockFunctionBody: boolean) { + function transformFunctionBodyWorker(body: ConciseBody, start = 0) { if (isBlock(body)) { - return transformFunctionBodyWorker(body); + return updateBlock( + body, + visitLexicalEnvironment(body.statements, visitor, context, start) + ); } else { startLexicalEnvironment(); - const visited: Expression | Block = visitNode(body, visitor, isConciseBody); - const declarations = endLexicalEnvironment(); - const merged = mergeFunctionBodyLexicalEnvironment(visited, declarations); - if (forceBlockFunctionBody && !isBlock(merged)) { - return createBlock([ - createReturn(merged) - ]); - } - else { - return merged; - } + const visited = toFunctionBody(visitNode(body, visitor, isConciseBody)); + const statements = mergeLexicalEnvironment(visited.statements, endLexicalEnvironment()); + return updateBlock(visited, statements); } } @@ -506,7 +490,9 @@ namespace ts { } } - function createAwaiterHelper(helperState: EmitHelperState, hasLexicalArguments: boolean, promiseConstructor: EntityName | Expression, body: Block) { + function createAwaiterHelper(context: TransformationContext, hasLexicalArguments: boolean, promiseConstructor: EntityName | Expression, body: Block) { + context.requestEmitHelper(awaiterHelper); + const generatorFunc = createFunctionExpression( /*modifiers*/ undefined, createToken(SyntaxKind.AsteriskToken), @@ -520,9 +506,8 @@ namespace ts { // Mark this node as originally an async function (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= EmitFlags.AsyncFunctionBody; - requestEmitHelper(helperState, awaiterHelper); return createCall( - getHelperName(helperState, "__awaiter"), + getHelperName("__awaiter"), /*typeArguments*/ undefined, [ createThis(), diff --git a/src/compiler/transformers/generators.ts b/src/compiler/transformers/generators.ts index 78c9e42c1bfc3..320eb48205cfb 100644 --- a/src/compiler/transformers/generators.ts +++ b/src/compiler/transformers/generators.ts @@ -231,6 +231,7 @@ namespace ts { endLexicalEnvironment, hoistFunctionDeclaration, hoistVariableDeclaration, + readEmitHelpers } = context; const compilerOptions = context.getCompilerOptions(); @@ -242,7 +243,6 @@ namespace ts { let currentSourceFile: SourceFile; let renamedCatchVariables: Map; let renamedCatchVariableDeclarations: Map; - let helperState: EmitHelperState; let inGeneratorFunctionBody: boolean; let inStatementContainingYield: boolean; @@ -298,13 +298,11 @@ namespace ts { } currentSourceFile = node; - helperState = { currentSourceFile, compilerOptions }; const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, helperState.requestedHelpers); + addEmitHelpers(visited, readEmitHelpers(/*onlyScoped*/ false)); currentSourceFile = undefined; - helperState = undefined; return visited; } @@ -449,7 +447,7 @@ namespace ts { */ function visitFunctionDeclaration(node: FunctionDeclaration): Statement { // Currently, we only support generators that were originally async functions. - if (node.asteriskToken && getEmitFlags(node) & EmitFlags.AsyncFunctionBody) { + if (node.asteriskToken) { node = setOriginalNode( createFunctionDeclaration( /*decorators*/ undefined, @@ -497,7 +495,7 @@ namespace ts { */ function visitFunctionExpression(node: FunctionExpression): Expression { // Currently, we only support generators that were originally async functions. - if (node.asteriskToken && getEmitFlags(node) & EmitFlags.AsyncFunctionBody) { + if (node.asteriskToken) { node = setOriginalNode( createFunctionExpression( /*modifiers*/ undefined, @@ -584,7 +582,7 @@ namespace ts { // Build the generator startLexicalEnvironment(); - const statementOffset = addPrologueDirectives(statements, body.statements, /*ensureUseStrict*/ false, visitor); + const statementOffset = addPrologueDirectives(statements, body.statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); transformAndEmitStatements(body.statements, statementOffset); @@ -934,7 +932,7 @@ namespace ts { const resumeLabel = defineLabel(); const expression = visitNode(node.expression, visitor, isExpression); if (node.asteriskToken) { - emitYieldStar(expression, /*location*/ node); + emitYieldStar(createValuesHelper(context, expression, /*location*/ node), /*location*/ node); } else { emitYield(expression, /*location*/ node); @@ -2590,7 +2588,7 @@ namespace ts { const buildResult = buildStatements(); return createGeneratorHelper( - helperState, + context, setEmitFlags( createFunctionExpression( /*modifiers*/ undefined, @@ -3083,10 +3081,10 @@ namespace ts { } } - function createGeneratorHelper(helperState: EmitHelperState, body: FunctionExpression) { - requestEmitHelper(helperState, generatorHelper); + function createGeneratorHelper(context: TransformationContext, body: FunctionExpression) { + context.requestEmitHelper(generatorHelper); return createCall( - getHelperName(helperState, "__generator"), + getHelperName("__generator"), /*typeArguments*/ undefined, [createThis(), body]); } @@ -3157,7 +3155,7 @@ namespace ts { text: ` 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/src/compiler/transformers/jsx.ts b/src/compiler/transformers/jsx.ts index 8867896e51eb8..5d847b82be9ab 100644 --- a/src/compiler/transformers/jsx.ts +++ b/src/compiler/transformers/jsx.ts @@ -5,8 +5,6 @@ namespace ts { export function transformJsx(context: TransformationContext) { const compilerOptions = context.getCompilerOptions(); - let currentSourceFile: SourceFile; - let helperState: EmitHelperState; return transformSourceFile; @@ -20,14 +18,8 @@ namespace ts { return node; } - currentSourceFile = node; - helperState = { currentSourceFile, compilerOptions }; - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, helperState.requestedHelpers); - - currentSourceFile = undefined; - helperState = undefined; + addEmitHelpers(visited, context.readEmitHelpers(/*onlyScoped*/ false)); return visited; } @@ -116,7 +108,7 @@ namespace ts { // a call to the __assign helper. objectProperties = singleOrUndefined(segments); if (!objectProperties) { - objectProperties = createAssignHelper(helperState, segments); + objectProperties = createAssignHelper(context, segments); } } @@ -538,10 +530,10 @@ namespace ts { "diams": 0x2666 }); - function createAssignHelper(helperState: EmitHelperState, attributesSegments: Expression[]) { - requestEmitHelper(helperState, assignHelper); + function createAssignHelper(context: TransformationContext, attributesSegments: Expression[]) { + context.requestEmitHelper(assignHelper); return createCall( - getHelperName(helperState, "__assign"), + getHelperName("__assign"), /*typeArguments*/ undefined, attributesSegments ); diff --git a/src/compiler/transformers/module/es2015.ts b/src/compiler/transformers/module/es2015.ts index daef9cb5a4dec..73cdaf12b39a2 100644 --- a/src/compiler/transformers/module/es2015.ts +++ b/src/compiler/transformers/module/es2015.ts @@ -5,6 +5,13 @@ namespace ts { export function transformES2015Module(context: TransformationContext) { const compilerOptions = context.getCompilerOptions(); + const previousOnEmitNode = context.onEmitNode; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onEmitNode = onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.enableSubstitution(SyntaxKind.SourceFile); + + let currentSourceFile: SourceFile; return transformSourceFile; function transformSourceFile(node: SourceFile) { @@ -55,5 +62,56 @@ namespace ts { // Elide `export=` as it is not legal with --module ES6 return node.isExportEquals ? undefined : node; } + + // + // Emit Notification + // + + /** + * Hook for node emit notifications. + * + * @param emitContext A context hint for the emitter. + * @param node The node to emit. + * @param emit A callback used to emit the node in the printer. + */ + function onEmitNode(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void { + if (isSourceFile(node)) { + currentSourceFile = node; + previousOnEmitNode(emitContext, node, emitCallback); + currentSourceFile = undefined; + } + else { + previousOnEmitNode(emitContext, node, emitCallback); + } + } + + // + // Substitutions + // + + /** + * Hooks node substitutions. + * + * @param emitContext A context hint for the emitter. + * @param node The node to substitute. + */ + function onSubstituteNode(emitContext: EmitContext, node: Node) { + node = previousOnSubstituteNode(emitContext, node); + if (isIdentifier(node) && emitContext === EmitContext.Expression) { + return substituteExpressionIdentifier(node); + } + + return node; + } + + function substituteExpressionIdentifier(node: Identifier): Expression { + if (getEmitFlags(node) & EmitFlags.HelperName) { + const externalHelpersModuleName = getOrCreateExternalHelpersModuleName(currentSourceFile, compilerOptions); + if (externalHelpersModuleName) { + return createPropertyAccess(externalHelpersModuleName, node); + } + } + return node; + } } } diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index b3c2178e99c17..1e3cc9ae90494 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -21,7 +21,6 @@ namespace ts { const { startLexicalEnvironment, endLexicalEnvironment, - hoistVariableDeclaration, } = context; const compilerOptions = context.getCompilerOptions(); @@ -46,7 +45,6 @@ namespace ts { let currentSourceFile: SourceFile; // The current file. let currentModuleInfo: ExternalModuleInfo; // The ExternalModuleInfo for the current file. let noSubstitution: Map; // Set of nodes for which substitution rules should be ignored. - let helperState: EmitHelperState; return transformSourceFile; @@ -64,15 +62,14 @@ namespace ts { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(node)] = collectExternalModuleInfo(node, resolver); - helperState = { currentSourceFile, compilerOptions }; // Perform the transformation. const transformModule = transformModuleDelegates[moduleKind] || transformModuleDelegates[ModuleKind.None]; const updated = transformModule(node); + addEmitHelpers(updated, context.readEmitHelpers(/*onlyScoped*/ false)); currentSourceFile = undefined; currentModuleInfo = undefined; - helperState = undefined; return aggregateTransformFlags(updated); } @@ -84,15 +81,17 @@ namespace ts { function transformCommonJSModule(node: SourceFile) { startLexicalEnvironment(); - const statements: Statement[] = []; - const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor); + let statements: Statement[] = []; + const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, /*ignoreCustomPrologue*/ false, sourceElementVisitor); append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true)); addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset)); - addRange(statements, endLexicalEnvironment()); addExportEqualsIfNeeded(statements, /*emitAsReturn*/ false); + addRange(statements, endLexicalEnvironment()); const updated = updateSourceFileNode(node, createNodeArray(statements, node.statements)); if (currentModuleInfo.hasExportStarsToExportValues) { + // If we have any `export * from ...` declarations + // we need to inform the emitter to add the __export helper. addEmitHelper(updated, exportStarHelper); } @@ -258,20 +257,20 @@ namespace ts { function transformAsynchronousModuleBody(node: SourceFile) { startLexicalEnvironment(); - const statements: Statement[] = []; - const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor); + let statements: Statement[] = []; + const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, /*ignoreCustomPrologue*/ false, sourceElementVisitor); // Visit each statement of the module body. append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true)); addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset)); + // Append the 'export =' statement if provided. + addExportEqualsIfNeeded(statements, /*emitAsReturn*/ true); + // End the lexical environment for the module body // and merge any new lexical declarations. addRange(statements, endLexicalEnvironment()); - // Append the 'export =' statement if provided. - addExportEqualsIfNeeded(statements, /*emitAsReturn*/ true); - const body = createBlock(statements, /*location*/ undefined, /*multiLine*/ true); if (currentModuleInfo.hasExportStarsToExportValues) { // If we have any `export * from ...` declarations @@ -764,10 +763,10 @@ namespace ts { function transformInitializedVariable(node: VariableDeclaration): Expression { if (isBindingPattern(node.name)) { return flattenDestructuringToExpression( + context, node, /*needsValue*/ false, createExportExpression, - hoistVariableDeclaration, /*visitor*/ undefined ); } @@ -1194,6 +1193,15 @@ namespace ts { * @param node The node to substitute. */ function substituteExpressionIdentifier(node: Identifier): Expression { + if (getEmitFlags(node) & EmitFlags.HelperName) { + const externalHelpersModuleName = getOrCreateExternalHelpersModuleName(currentSourceFile, compilerOptions); + if (externalHelpersModuleName) { + return createPropertyAccess(externalHelpersModuleName, node); + } + + return node; + } + if (!isGeneratedIdentifier(node) && !isLocalName(node)) { const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); if (exportContainer && exportContainer.kind === SyntaxKind.SourceFile) { diff --git a/src/compiler/transformers/module/system.ts b/src/compiler/transformers/module/system.ts index f6d051d25efef..9e5a9f0f99302 100644 --- a/src/compiler/transformers/module/system.ts +++ b/src/compiler/transformers/module/system.ts @@ -41,7 +41,6 @@ namespace ts { let hoistedStatements: Statement[]; let enclosingBlockScopedContainer: Node; let noSubstitution: Map; // Set of nodes for which substitution rules should be ignored. - let helperState: EmitHelperState; return transformSourceFile; @@ -60,7 +59,6 @@ namespace ts { const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; - helperState = { currentSourceFile, compilerOptions }; // System modules have the following shape: // @@ -121,6 +119,10 @@ namespace ts { if (!(compilerOptions.outFile || compilerOptions.out)) { moveEmitHelpers(updated, moduleBodyBlock, helper => !helper.scoped); + addEmitHelpers(moduleBodyBlock, context.readEmitHelpers(/*onlyScoped*/ false)); + } + else { + addEmitHelpers(updated, context.readEmitHelpers(/*onlyScoped*/ false)); } if (noSubstitution) { @@ -134,8 +136,6 @@ namespace ts { contextObject = undefined; hoistedStatements = undefined; enclosingBlockScopedContainer = undefined; - helperState = undefined; - return aggregateTransformFlags(updated); } @@ -224,7 +224,7 @@ namespace ts { startLexicalEnvironment(); // Add any prologue directives. - const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor); + const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, /*ignoreCustomPrologue*/ false, sourceElementVisitor); // var __moduleName = context_1 && context_1.id; statements.push( @@ -822,7 +822,12 @@ namespace ts { function transformInitializedVariable(node: VariableDeclaration, isExportedDeclaration: boolean): Expression { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; return isBindingPattern(node.name) - ? flattenDestructuringToExpression(node, /*needsValue*/ false, createAssignment, hoistVariableDeclaration, destructuringVisitor) + ? flattenDestructuringToExpression( + context, + node, + /*needsValue*/ false, + createAssignment, + destructuringVisitor) : createAssignment(node.name, visitNode(node.initializer, destructuringVisitor, isExpression)); } @@ -1473,7 +1478,12 @@ namespace ts { */ function visitDestructuringAssignment(node: DestructuringAssignment): VisitResult { if (hasExportedReferenceInDestructuringTarget(node.left)) { - return flattenDestructuringToExpression(node, /*needsValue*/ true, createAssignment, hoistVariableDeclaration, destructuringVisitor); + return flattenDestructuringToExpression( + context, + node, + /*needsValue*/ true, + createAssignment, + destructuringVisitor); } return visitEachChild(node, destructuringVisitor, context); } @@ -1612,6 +1622,15 @@ namespace ts { * @param node The node to substitute. */ function substituteExpressionIdentifier(node: Identifier): Expression { + if (getEmitFlags(node) & EmitFlags.HelperName) { + const externalHelpersModuleName = getOrCreateExternalHelpersModuleName(currentSourceFile, compilerOptions); + if (externalHelpersModuleName) { + return createPropertyAccess(externalHelpersModuleName, node); + } + + return node; + } + // When we see an identifier in an expression position that // points to an imported symbol, we should substitute a qualified // reference to the imported symbol if one is needed. diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index bf0a7a4b27e60..1deb969d298bf 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -21,6 +21,7 @@ namespace ts { export function transformTypeScript(context: TransformationContext) { const { startLexicalEnvironment, + resumeLexicalEnvironment, endLexicalEnvironment, hoistVariableDeclaration, } = context; @@ -48,7 +49,6 @@ namespace ts { let currentNamespaceContainerName: Identifier; let currentScope: SourceFile | Block | ModuleBlock | CaseBlock; let currentScopeFirstDeclarationsOfName: Map; - let helperState: EmitHelperState; /** * Keeps track of whether expression substitution has been enabled for specific edge cases. @@ -81,21 +81,11 @@ namespace ts { } currentSourceFile = node; - currentScope = node; - currentScopeFirstDeclarationsOfName = createMap(); - helperState = { currentSourceFile, compilerOptions }; - let visited = visitEachChild(node, sourceElementVisitor, context); - if (compilerOptions.alwaysStrict) { - visited = updateSourceFileNode(visited, ensureUseStrict(visited.statements)); - } - - addEmitHelpers(visited, helperState.requestedHelpers); + const visited = saveStateAndInvoke(node, visitSourceFile); + addEmitHelpers(visited, context.readEmitHelpers(/*onlyScoped*/ false)); currentSourceFile = undefined; - currentScope = undefined; - currentScopeFirstDeclarationsOfName = undefined; - helperState = undefined; return visited; } @@ -123,6 +113,32 @@ namespace ts { return visited; } + /** + * Performs actions that should always occur immediately before visiting a node. + * + * @param node The node to visit. + */ + function onBeforeVisitNode(node: Node) { + switch (node.kind) { + case SyntaxKind.SourceFile: + case SyntaxKind.CaseBlock: + case SyntaxKind.ModuleBlock: + case SyntaxKind.Block: + currentScope = node; + currentScopeFirstDeclarationsOfName = undefined; + break; + + case SyntaxKind.ClassDeclaration: + case SyntaxKind.FunctionDeclaration: + if (hasModifier(node, ModifierFlags.Ambient)) { + break; + } + + recordEmittedDeclarationInScope(node); + break; + } + } + /** * General-purpose node visitor. * @@ -451,29 +467,10 @@ namespace ts { } } - /** - * Performs actions that should always occur immediately before visiting a node. - * - * @param node The node to visit. - */ - function onBeforeVisitNode(node: Node) { - switch (node.kind) { - case SyntaxKind.CaseBlock: - case SyntaxKind.ModuleBlock: - case SyntaxKind.Block: - currentScope = node; - currentScopeFirstDeclarationsOfName = undefined; - break; - - case SyntaxKind.ClassDeclaration: - case SyntaxKind.FunctionDeclaration: - if (hasModifier(node, ModifierFlags.Ambient)) { - break; - } - - recordEmittedDeclarationInScope(node); - break; - } + function visitSourceFile(node: SourceFile) { + return updateSourceFileNode( + node, + visitLexicalEnvironment(node.statements, sourceElementVisitor, context, /*start*/ 0, compilerOptions.alwaysStrict)); } /** @@ -845,9 +842,8 @@ namespace ts { // downlevel the '...args' portion less efficiently by naively copying the contents of 'arguments' to an array. // Instead, we'll avoid using a rest parameter and spread into the super call as // 'super(...arguments)' instead of 'super(...args)', as you can see in "transformConstructorBody". - return constructor - ? visitNodes(constructor.parameters, visitor, isParameter) - : []; + return visitParameterList(constructor && constructor.parameters, visitor, context) + || []; } /** @@ -859,11 +855,11 @@ namespace ts { * @param hasExtendsClause A value indicating whether the class has an extends clause. */ function transformConstructorBody(node: ClassExpression | ClassDeclaration, constructor: ConstructorDeclaration, hasExtendsClause: boolean) { - const statements: Statement[] = []; + let statements: Statement[] = []; let indexOfFirstStatement = 0; // The body of a constructor is a new lexical environment - startLexicalEnvironment(); + resumeLexicalEnvironment(); if (constructor) { indexOfFirstStatement = addPrologueDirectivesAndInitialSuperCall(constructor, statements); @@ -918,16 +914,14 @@ namespace ts { } // End the lexical environment. - addRange(statements, endLexicalEnvironment()); - return setMultiLine( - createBlock( - createNodeArray( - statements, - /*location*/ constructor ? constructor.body.statements : node.members - ), - /*location*/ constructor ? constructor.body : /*location*/ undefined + statements = mergeLexicalEnvironment(statements, endLexicalEnvironment()); + return createBlock( + createNodeArray( + statements, + /*location*/ constructor ? constructor.body.statements : node.members ), - true + /*location*/ constructor ? constructor.body : /*location*/ undefined, + /*multiLine*/ true ); } @@ -941,7 +935,7 @@ namespace ts { if (ctor.body) { const statements = ctor.body.statements; // add prologue directives to the list (if any) - const index = addPrologueDirectives(result, statements, /*ensureUseStrict*/ false, visitor); + const index = addPrologueDirectives(result, statements, /*ensureUseStrict*/ false, /*ignoreCustomPrologue*/ false, visitor); if (index === statements.length) { // list contains nothing but prologue directives (or empty) - exit return index; @@ -1385,7 +1379,7 @@ namespace ts { : undefined; const helper = createDecorateHelper( - helperState, + context, decoratorExpressions, prefix, memberName, @@ -1423,7 +1417,7 @@ namespace ts { const classAlias = classAliases && classAliases[getOriginalNodeId(node)]; const localName = getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true); - const decorate = createDecorateHelper(helperState, decoratorExpressions, localName); + const decorate = createDecorateHelper(context, decoratorExpressions, localName); const expression = createAssignment(localName, classAlias ? createAssignment(classAlias, decorate) : decorate); setEmitFlags(expression, EmitFlags.NoComments); setSourceMapRange(expression, moveRangePastDecorators(node)); @@ -1451,7 +1445,7 @@ namespace ts { expressions = []; for (const decorator of decorators) { const helper = createParamHelper( - helperState, + context, transformDecorator(decorator), parameterOffset, /*location*/ decorator.expression); @@ -1481,13 +1475,13 @@ namespace ts { function addOldTypeMetadata(node: Declaration, decoratorExpressions: Expression[]) { if (compilerOptions.emitDecoratorMetadata) { if (shouldAddTypeMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(helperState, "design:type", serializeTypeOfNode(node))); + decoratorExpressions.push(createMetadataHelper(context, "design:type", serializeTypeOfNode(node))); } if (shouldAddParamTypesMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(helperState, "design:paramtypes", serializeParameterTypesOfNode(node))); + decoratorExpressions.push(createMetadataHelper(context, "design:paramtypes", serializeParameterTypesOfNode(node))); } if (shouldAddReturnTypeMetadata(node)) { - decoratorExpressions.push(createMetadataHelper(helperState, "design:returntype", serializeReturnTypeOfNode(node))); + decoratorExpressions.push(createMetadataHelper(context, "design:returntype", serializeReturnTypeOfNode(node))); } } } @@ -1505,7 +1499,7 @@ namespace ts { (properties || (properties = [])).push(createPropertyAssignment("returnType", createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, createToken(SyntaxKind.EqualsGreaterThanToken), serializeReturnTypeOfNode(node)))); } if (properties) { - decoratorExpressions.push(createMetadataHelper(helperState, "design:typeinfo", createObjectLiteral(properties, /*location*/ undefined, /*multiLine*/ true))); + decoratorExpressions.push(createMetadataHelper(context, "design:typeinfo", createObjectLiteral(properties, /*location*/ undefined, /*multiLine*/ true))); } } } @@ -2003,7 +1997,13 @@ namespace ts { return undefined; } - return visitEachChild(node, visitor, context); + return updateConstructor( + node, + visitNodes(node.decorators, visitor, isDecorator), + visitNodes(node.modifiers, visitor, isModifier), + visitParameterList(node.parameters, visitor, context), + visitFunctionBody(node.body, visitor, context) + ); } /** @@ -2020,26 +2020,23 @@ namespace ts { if (!shouldEmitFunctionLikeDeclaration(node)) { return undefined; } - - const method = createMethod( + const updated = updateMethod( + node, /*decorators*/ undefined, visitNodes(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, visitPropertyNameOfClassElement(node), /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, - transformFunctionBody(node), - /*location*/ node + visitFunctionBody(node.body, visitor, context) ); - - // While we emit the source map for the node after skipping decorators and modifiers, - // we need to emit the comments for the original range. - setCommentRange(method, node); - setSourceMapRange(method, moveRangePastDecorators(node)); - setOriginalNode(method, node); - - return method; + if (updated !== node) { + // While we emit the source map for the node after skipping decorators and modifiers, + // we need to emit the comments for the original range. + setCommentRange(updated, node); + setSourceMapRange(updated, moveRangePastDecorators(node)); + } + return updated; } /** @@ -2065,24 +2062,22 @@ namespace ts { if (!shouldEmitAccessorDeclaration(node)) { return undefined; } - - const accessor = createGetAccessor( + const updated = updateGetAccessor( + node, /*decorators*/ undefined, visitNodes(node.modifiers, modifierVisitor, isModifier), visitPropertyNameOfClassElement(node), - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, - node.body ? visitEachChild(node.body, visitor, context) : createBlock([]), - /*location*/ node + visitFunctionBody(node.body, visitor, context) || createBlock([]) ); - - // While we emit the source map for the node after skipping decorators and modifiers, - // we need to emit the comments for the original range. - setOriginalNode(accessor, node); - setCommentRange(accessor, node); - setSourceMapRange(accessor, moveRangePastDecorators(node)); - - return accessor; + if (updated !== node) { + // While we emit the source map for the node after skipping decorators and modifiers, + // we need to emit the comments for the original range. + setCommentRange(updated, node); + setSourceMapRange(updated, moveRangePastDecorators(node)); + } + return updated; } /** @@ -2098,23 +2093,21 @@ namespace ts { if (!shouldEmitAccessorDeclaration(node)) { return undefined; } - - const accessor = createSetAccessor( + const updated = updateSetAccessor( + node, /*decorators*/ undefined, visitNodes(node.modifiers, modifierVisitor, isModifier), visitPropertyNameOfClassElement(node), - visitNodes(node.parameters, visitor, isParameter), - node.body ? visitEachChild(node.body, visitor, context) : createBlock([]), - /*location*/ node + visitParameterList(node.parameters, visitor, context), + visitFunctionBody(node.body, visitor, context) || createBlock([]) ); - - // While we emit the source map for the node after skipping decorators and modifiers, - // we need to emit the comments for the original range. - setOriginalNode(accessor, node); - setCommentRange(accessor, node); - setSourceMapRange(accessor, moveRangePastDecorators(node)); - - return accessor; + if (updated !== node) { + // While we emit the source map for the node after skipping decorators and modifiers, + // we need to emit the comments for the original range. + setCommentRange(updated, node); + setSourceMapRange(updated, moveRangePastDecorators(node)); + } + return updated; } /** @@ -2131,27 +2124,22 @@ namespace ts { if (!shouldEmitFunctionLikeDeclaration(node)) { return createNotEmittedStatement(node); } - - const func = createFunctionDeclaration( + const updated = updateFunctionDeclaration( + node, /*decorators*/ undefined, visitNodes(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, node.name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, - transformFunctionBody(node), - /*location*/ node + visitFunctionBody(node.body, visitor, context) || createBlock([]) ); - setOriginalNode(func, node); - if (isNamespaceExport(node)) { - const statements: Statement[] = [func]; + const statements: Statement[] = [updated]; addExportMemberAssignment(statements, node); return statements; } - - return func; + return updated; } /** @@ -2163,24 +2151,19 @@ namespace ts { * @param node The function expression node. */ function visitFunctionExpression(node: FunctionExpression): Expression { - if (nodeIsMissing(node.body)) { + if (!shouldEmitFunctionLikeDeclaration(node)) { return createOmittedExpression(); } - - const func = createFunctionExpression( + const updated = updateFunctionExpression( + node, visitNodes(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, node.name, /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, - transformFunctionBody(node), - /*location*/ node + visitFunctionBody(node.body, visitor, context) || createBlock([]) ); - - setOriginalNode(func, node); - - return func; + return updated; } /** @@ -2189,62 +2172,15 @@ namespace ts { * - The node has type annotations */ function visitArrowFunction(node: ArrowFunction) { - const func = createArrowFunction( + const updated = updateArrowFunction( + node, visitNodes(node.modifiers, modifierVisitor, isModifier), /*typeParameters*/ undefined, - visitNodes(node.parameters, visitor, isParameter), + visitParameterList(node.parameters, visitor, context), /*type*/ undefined, - node.equalsGreaterThanToken, - transformConciseBody(node), - /*location*/ node + visitFunctionBody(node.body, visitor, context) ); - - setOriginalNode(func, node); - - return func; - } - - function transformFunctionBody(node: MethodDeclaration | AccessorDeclaration | FunctionDeclaration | FunctionExpression): FunctionBody { - return transformFunctionBodyWorker(node.body); - } - - function transformFunctionBodyWorker(body: Block, start = 0) { - const savedCurrentScope = currentScope; - const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; - currentScope = body; - currentScopeFirstDeclarationsOfName = createMap(); - startLexicalEnvironment(); - - const statements = visitNodes(body.statements, visitor, isStatement, start); - const visited = updateBlock(body, statements); - const declarations = endLexicalEnvironment(); - currentScope = savedCurrentScope; - currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; - return mergeFunctionBodyLexicalEnvironment(visited, declarations); - } - - function transformConciseBody(node: ArrowFunction): ConciseBody { - return transformConciseBodyWorker(node.body, /*forceBlockFunctionBody*/ false); - } - - function transformConciseBodyWorker(body: Block | Expression, forceBlockFunctionBody: boolean) { - if (isBlock(body)) { - return transformFunctionBodyWorker(body); - } - else { - startLexicalEnvironment(); - const visited: Expression | Block = visitNode(body, visitor, isConciseBody); - const declarations = endLexicalEnvironment(); - const merged = mergeFunctionBodyLexicalEnvironment(visited, declarations); - if (forceBlockFunctionBody && !isBlock(merged)) { - return createBlock([ - createReturn(merged) - ]); - } - else { - return merged; - } - } + return updated; } /** @@ -2312,7 +2248,12 @@ namespace ts { function transformInitializedVariable(node: VariableDeclaration): Expression { const name = node.name; if (isBindingPattern(name)) { - return flattenDestructuringToExpression(node, /*needsValue*/ false, createNamespaceExportExpression, hoistVariableDeclaration, visitor); + return flattenDestructuringToExpression( + context, + node, + /*needsValue*/ false, + createNamespaceExportExpression, + visitor); } else { return createAssignment( @@ -2498,7 +2439,7 @@ namespace ts { const savedCurrentNamespaceLocalName = currentNamespaceContainerName; currentNamespaceContainerName = localName; - const statements: Statement[] = []; + let statements: Statement[] = []; startLexicalEnvironment(); addRange(statements, map(node.members, transformEnumMember)); addRange(statements, endLexicalEnvironment()); @@ -2781,7 +2722,7 @@ namespace ts { currentNamespace = node; currentScopeFirstDeclarationsOfName = undefined; - const statements: Statement[] = []; + let statements: Statement[] = []; startLexicalEnvironment(); let statementsLocation: TextRange; @@ -3217,6 +3158,11 @@ namespace ts { */ function onEmitNode(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void { const savedApplicableSubstitutions = applicableSubstitutions; + const savedCurrentSourceFile = currentSourceFile; + + if (isSourceFile(node)) { + currentSourceFile = node; + } if (enabledSubstitutions & TypeScriptSubstitutionFlags.NamespaceExports && isTransformedModuleDeclaration(node)) { applicableSubstitutions |= TypeScriptSubstitutionFlags.NamespaceExports; @@ -3229,6 +3175,7 @@ namespace ts { previousOnEmitNode(emitContext, node, emitCallback); applicableSubstitutions = savedApplicableSubstitutions; + currentSourceFile = savedCurrentSourceFile; } /** @@ -3300,6 +3247,7 @@ namespace ts { const clone = getSynthesizedClone(classAlias); setSourceMapRange(clone, node); setCommentRange(clone, node); + debugger; return clone; } } @@ -3311,7 +3259,7 @@ namespace ts { function trySubstituteNamespaceExportedName(node: Identifier): Expression { // If this is explicitly a local name, do not substitute. - if (enabledSubstitutions & applicableSubstitutions && !isLocalName(node)) { + if (enabledSubstitutions & applicableSubstitutions && !isGeneratedIdentifier(node) && !isLocalName(node)) { // If we are nested within a namespace declaration, we may need to qualifiy // an identifier that is exported from a merged namespace. const container = resolver.getReferencedExportContainer(node, /*prefixLocals*/ false); @@ -3367,32 +3315,7 @@ namespace ts { } } - function createParamHelper(helperState: EmitHelperState, expression: Expression, parameterOffset: number, location?: TextRange) { - requestEmitHelper(helperState, paramHelper); - return createCall( - getHelperName(helperState, "__param"), - /*typeArguments*/ undefined, - [ - createLiteral(parameterOffset), - expression - ], - location - ); - } - - function createMetadataHelper(helperState: EmitHelperState, metadataKey: string, metadataValue: Expression) { - requestEmitHelper(helperState, metadataHelper); - return createCall( - getHelperName(helperState, "__metadata"), - /*typeArguments*/ undefined, - [ - createLiteral(metadataKey), - metadataValue - ] - ); - } - - function createDecorateHelper(helperState: EmitHelperState, decoratorExpressions: Expression[], target: Expression, memberName?: Expression, descriptor?: Expression, location?: TextRange) { + function createDecorateHelper(context: TransformationContext, decoratorExpressions: Expression[], target: Expression, memberName?: Expression, descriptor?: Expression, location?: TextRange) { const argumentsArray: Expression[] = []; argumentsArray.push(createArrayLiteral(decoratorExpressions, /*location*/ undefined, /*multiLine*/ true)); argumentsArray.push(target); @@ -3403,8 +3326,12 @@ namespace ts { } } - requestEmitHelper(helperState, decorateHelper); - return createCall(getHelperName(helperState, "__decorate"), /*typeArguments*/ undefined, argumentsArray, location); + context.requestEmitHelper(decorateHelper); + return createCall( + getHelperName("__decorate"), + /*typeArguments*/ undefined, + argumentsArray, + location); } const decorateHelper: EmitHelper = { @@ -3420,6 +3347,18 @@ namespace ts { };` }; + function createMetadataHelper(context: TransformationContext, metadataKey: string, metadataValue: Expression) { + context.requestEmitHelper(metadataHelper); + return createCall( + getHelperName("__metadata"), + /*typeArguments*/ undefined, + [ + createLiteral(metadataKey), + metadataValue + ] + ); + } + const metadataHelper: EmitHelper = { name: "typescript:metadata", scoped: false, @@ -3430,6 +3369,19 @@ namespace ts { };` }; + function createParamHelper(context: TransformationContext, expression: Expression, parameterOffset: number, location?: TextRange) { + context.requestEmitHelper(paramHelper); + return createCall( + getHelperName("__param"), + /*typeArguments*/ undefined, + [ + createLiteral(parameterOffset), + expression + ], + location + ); + } + const paramHelper: EmitHelper = { name: "typescript:param", scoped: false, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 562e6cef26aff..d880025662fb9 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1497,6 +1497,10 @@ namespace ts { expression: Expression; } + export interface PrologueDirective extends ExpressionStatement { + expression: StringLiteral; + } + export interface IfStatement extends Statement { kind: SyntaxKind.IfStatement; expression: Expression; @@ -3474,6 +3478,7 @@ namespace ts { /* @internal */ export const enum EmitFlags { + HelperName = 1 << 0, UMDDefine = 1 << 4, // This node should be replaced with the UMD define helper. SingleLine = 1 << 5, // The contents of this node should be emitted on a single line. AdviseOnEmitNode = 1 << 6, // The printer should invoke the onEmitNode callback when printing this node. @@ -3517,16 +3522,128 @@ namespace ts { Unspecified, // Emitting an otherwise unspecified node } + /* @internal */ + export interface EmitHost extends ScriptReferenceHost { + getSourceFiles(): SourceFile[]; + + /* @internal */ + isSourceFileFromExternalLibrary(file: SourceFile): boolean; + + getCommonSourceDirectory(): string; + getCanonicalFileName(fileName: string): string; + getNewLine(): string; + + isEmitBlocked(emitFileName: string): boolean; + + writeFile: WriteFileCallback; + } + /** Additional context provided to `visitEachChild` */ /* @internal */ - export interface LexicalEnvironment { - /** Starts a new lexical environment. */ + export interface TransformationContext { + getCompilerOptions(): CompilerOptions; + getEmitResolver(): EmitResolver; + getEmitHost(): EmitHost; + + /** + * Hoists a function declaration to the current lexical environment. + */ + hoistFunctionDeclaration(node: FunctionDeclaration): void; + + /** + * Hoists a variable declaration to the current lexical environment. + */ + hoistVariableDeclaration(name: Identifier): void; + + /** + * Starts tracking hoisted declarations in a new lexical environment. + */ startLexicalEnvironment(): void; - /** Ends a lexical environment, returning any declarations. */ + suspendLexicalEnvironment(): void; + resumeLexicalEnvironment(): void; + + /** + * Ends a lexical environment, returning any declarations. + */ endLexicalEnvironment(): Statement[]; + + /** + * Requests an emit helper. + */ + requestEmitHelper(helper: EmitHelper): void; + + /** + * Gets and resets the requested emit helpers. + * + * @param onlyScoped Only read emit helpers whose `scoped` property is `true`. + */ + readEmitHelpers(onlyScoped: boolean): EmitHelper[]; + + /** + * Enables expression substitutions in the pretty printer for the provided SyntaxKind. + */ + enableSubstitution(kind: SyntaxKind): void; + + /** + * Determines whether expression substitutions are enabled for the provided node. + */ + isSubstitutionEnabled(node: Node): boolean; + + /** + * Hook used by transformers to substitute expressions just before they + * are emitted by the pretty printer. + */ + onSubstituteNode?: (emitContext: EmitContext, node: Node) => Node; + + /** + * Enables before/after emit notifications in the pretty printer for the provided + * SyntaxKind. + */ + enableEmitNotification(kind: SyntaxKind): void; + + /** + * Determines whether before/after emit notifications should be raised in the pretty + * printer when it emits a node. + */ + isEmitNotificationEnabled(node: Node): boolean; + + /** + * Hook used to allow transformers to capture state before or after + * the printer emits a node. + */ + onEmitNode?: (emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void) => void; + } + + /* @internal */ + export interface TransformationResult { + /** + * Gets the transformed source files. + */ + transformed: SourceFile[]; + + /** + * Emits the substitute for a node, if one is available; otherwise, emits the node. + * + * @param emitContext The current emit context. + * @param node The node to substitute. + * @param emitCallback A callback used to emit the node or its substitute. + */ + emitNodeWithSubstitution(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void; + + /** + * Emits a node with possible notification. + * + * @param emitContext The current emit context. + * @param node The node to emit. + * @param emitCallback A callback used to emit the node. + */ + emitNodeWithNotification(emitContext: EmitContext, node: Node, emitCallback: (emitContext: EmitContext, node: Node) => void): void; } + /* @internal */ + export type Transformer = (context: TransformationContext) => (node: SourceFile) => SourceFile; + export interface TextSpan { start: number; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 46b91c1d656f5..f531f6d03b793 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -28,21 +28,6 @@ namespace ts { string(): string; } - export interface EmitHost extends ScriptReferenceHost { - getSourceFiles(): SourceFile[]; - - /* @internal */ - isSourceFileFromExternalLibrary(file: SourceFile): boolean; - - getCommonSourceDirectory(): string; - getCanonicalFileName(fileName: string): string; - getNewLine(): string; - - isEmitBlocked(emitFileName: string): boolean; - - writeFile: WriteFileCallback; - } - // Pool writers to avoid needing to allocate them for every symbol we write. const stringWriters: StringSymbolWriter[] = []; export function getSingleLineStringWriter(): StringSymbolWriter { @@ -613,7 +598,7 @@ namespace ts { return n.kind === SyntaxKind.CallExpression && (n).expression.kind === SyntaxKind.SuperKeyword; } - export function isPrologueDirective(node: Node): boolean { + export function isPrologueDirective(node: Node): node is PrologueDirective { return node.kind === SyntaxKind.ExpressionStatement && (node).expression.kind === SyntaxKind.StringLiteral; } @@ -886,6 +871,19 @@ namespace ts { return false; } + export function getEnclosedStatement(node: LabeledStatement): { statement: Statement; enclosingLabeledStatements: LabeledStatement[]; } { + switch (node.statement.kind) { + case SyntaxKind.LabeledStatement: + const result = getEnclosedStatement(node.statement); + if (result) { + result.enclosingLabeledStatements.push(node); + } + return result; + default: + return { statement: node.statement, enclosingLabeledStatements: [node] }; + } + } + export function isFunctionBlock(node: Node) { return node && node.kind === SyntaxKind.Block && isFunctionLike(node.parent); diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index e30132b05f541..6c7156603f5d5 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -4,7 +4,7 @@ /* @internal */ namespace ts { - export type VisitResult = T | T[]; + export type VisitResult = T[] | T | undefined; /** * Describes an edge of a Node, used when traversing a syntax tree. @@ -653,6 +653,54 @@ namespace ts { return updated || nodes; } + /** + * Starts a new lexical environment and visits a statement list, ending the lexical environment + * and merging hoisted declarations upon completion. + */ + export function visitLexicalEnvironment(statements: NodeArray, visitor: (node: Node) => VisitResult, context: TransformationContext, start?: number, ensureUseStrict?: boolean) { + context.startLexicalEnvironment(); + statements = visitNodes(statements, visitor, isStatement, start); + if (ensureUseStrict && !startsWithUseStrict(statements)) { + statements = createNodeArray([createStatement(createLiteral("use strict")), ...statements], statements); + } + statements = mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); + return statements; + } + + /** + * Starts a new lexical environment and visits a parameter list, suspending the lexical + * environment upon completion. + */ + export function visitParameterList(nodes: NodeArray, visitor: (node: Node) => VisitResult, context: TransformationContext) { + context.startLexicalEnvironment(); + const updated = visitNodes(nodes, visitor, isParameterDeclaration); + context.suspendLexicalEnvironment(); + return updated; + } + + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + export function visitFunctionBody(node: FunctionBody, visitor: (node: Node) => VisitResult, context: TransformationContext, optional?: boolean): FunctionBody; + + /** + * Resumes a suspended lexical environment and visits a concise body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + export function visitFunctionBody(node: ConciseBody, visitor: (node: Node) => VisitResult, context: TransformationContext): ConciseBody; + export function visitFunctionBody(node: ConciseBody, visitor: (node: Node) => VisitResult, context: TransformationContext, optional?: boolean) { + context.resumeLexicalEnvironment(); + const updated = visitNode(node, visitor, isConciseBody, optional); + const declarations = context.endLexicalEnvironment(); + if (some(declarations)) { + const block = toFunctionBody(updated); + const statements = mergeLexicalEnvironment(block.statements, declarations); + return updateBlock(block, statements); + } + return updated; + } + /** * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. * @@ -660,8 +708,8 @@ namespace ts { * @param visitor The callback used to visit each child. * @param context A lexical environment context for the visitor. */ - export function visitEachChild(node: T, visitor: (node: Node) => VisitResult, context: LexicalEnvironment): T; - export function visitEachChild(node: Node, visitor: (node: Node) => VisitResult, context: LexicalEnvironment): Node { + export function visitEachChild(node: T, visitor: (node: Node) => VisitResult, context: TransformationContext): T; + export function visitEachChild(node: Node, visitor: (node: Node) => VisitResult, context: TransformationContext): Node { if (node === undefined) { return undefined; } @@ -714,41 +762,33 @@ namespace ts { visitNodes((node).modifiers, visitor, isModifier), visitNode((node).name, visitor, isPropertyName), visitNodes((node).typeParameters, visitor, isTypeParameter), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), + visitParameterList((node).parameters, visitor, context), visitNode((node).type, visitor, isTypeNode, /*optional*/ true), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitFunctionBody((node).body, visitor, context)); case SyntaxKind.Constructor: return updateConstructor(node, visitNodes((node).decorators, visitor, isDecorator), visitNodes((node).modifiers, visitor, isModifier), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitParameterList((node).parameters, visitor, context), + visitFunctionBody((node).body, visitor, context, /*optional*/ true)); case SyntaxKind.GetAccessor: return updateGetAccessor(node, visitNodes((node).decorators, visitor, isDecorator), visitNodes((node).modifiers, visitor, isModifier), visitNode((node).name, visitor, isPropertyName), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), + visitParameterList((node).parameters, visitor, context), visitNode((node).type, visitor, isTypeNode, /*optional*/ true), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitFunctionBody((node).body, visitor, context, /*optional*/ true)); case SyntaxKind.SetAccessor: return updateSetAccessor(node, visitNodes((node).decorators, visitor, isDecorator), visitNodes((node).modifiers, visitor, isModifier), visitNode((node).name, visitor, isPropertyName), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitParameterList((node).parameters, visitor, context), + visitFunctionBody((node).body, visitor, context, /*optional*/ true)); // Binding patterns case SyntaxKind.ObjectBindingPattern: @@ -810,21 +850,17 @@ namespace ts { visitNodes((node).modifiers, visitor, isModifier), visitNode((node).name, visitor, isPropertyName), visitNodes((node).typeParameters, visitor, isTypeParameter), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), + visitParameterList((node).parameters, visitor, context), visitNode((node).type, visitor, isTypeNode, /*optional*/ true), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitFunctionBody((node).body, visitor, context)); case SyntaxKind.ArrowFunction: return updateArrowFunction(node, visitNodes((node).modifiers, visitor, isModifier), visitNodes((node).typeParameters, visitor, isTypeParameter), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), + visitParameterList((node).parameters, visitor, context), visitNode((node).type, visitor, isTypeNode, /*optional*/ true), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isConciseBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitFunctionBody((node).body, visitor, context)); case SyntaxKind.DeleteExpression: return updateDelete(node, @@ -995,11 +1031,9 @@ namespace ts { visitNodes((node).modifiers, visitor, isModifier), visitNode((node).name, visitor, isPropertyName), visitNodes((node).typeParameters, visitor, isTypeParameter), - (context.startLexicalEnvironment(), visitNodes((node).parameters, visitor, isParameter)), + visitParameterList((node).parameters, visitor, context), visitNode((node).type, visitor, isTypeNode, /*optional*/ true), - mergeFunctionBodyLexicalEnvironment( - visitNode((node).body, visitor, isFunctionBody, /*optional*/ true), - context.endLexicalEnvironment())); + visitFunctionBody((node).body, visitor, context, /*optional*/ true)); case SyntaxKind.ClassDeclaration: return updateClassDeclaration(node, @@ -1127,13 +1161,8 @@ namespace ts { // Top-level nodes case SyntaxKind.SourceFile: - context.startLexicalEnvironment(); return updateSourceFileNode(node, - createNodeArray( - concatenate( - visitNodes((node).statements, visitor, isStatement), - context.endLexicalEnvironment()), - (node).statements)); + visitLexicalEnvironment((node).statements, visitor, context)); // Transformation nodes case SyntaxKind.PartiallyEmittedExpression: @@ -1163,39 +1192,31 @@ namespace ts { } return updated ? updateNode(updated, node) : node; } - - // return node; } /** - * Merges generated lexical declarations into the FunctionBody of a non-arrow function-like declaration. + * Merges generated lexical declarations into a statement list, creating a new statement list. * - * @param node The ConciseBody of an arrow function. + * @param statements The statements. * @param declarations The lexical declarations to merge. */ - export function mergeFunctionBodyLexicalEnvironment(body: FunctionBody, declarations: Statement[]): FunctionBody; + export function mergeLexicalEnvironment(statements: NodeArray, declarations: Statement[]): NodeArray; /** - * Merges generated lexical declarations into the ConciseBody of an ArrowFunction. + * Appends generated lexical declarations to an array of statements. * - * @param node The ConciseBody of an arrow function. + * @param statements The statements. * @param declarations The lexical declarations to merge. */ - export function mergeFunctionBodyLexicalEnvironment(body: ConciseBody, declarations: Statement[]): ConciseBody; - - export function mergeFunctionBodyLexicalEnvironment(body: ConciseBody, declarations: Statement[]): ConciseBody { - if (body && declarations !== undefined && declarations.length > 0) { - if (isBlock(body)) { - return updateBlock(body, createNodeArray(concatenate(body.statements, declarations), body.statements)); - } - else { - return createBlock( - createNodeArray([createReturn(body, /*location*/ body), ...declarations], body), - /*location*/ body, - /*multiLine*/ true); - } + export function mergeLexicalEnvironment(statements: Statement[], declarations: Statement[]): Statement[]; + export function mergeLexicalEnvironment(statements: Statement[], declarations: Statement[]) { + if (!some(declarations)) { + return statements; } - return body; + + return isNodeArray(statements) + ? createNodeArray(concatenate(statements, declarations), statements) + : addRange(statements, declarations); } /** From cb853569e4a896be0ce0b02f632d46bafdff6b9c Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Sat, 5 Nov 2016 11:50:54 -0700 Subject: [PATCH 04/35] Relaxed ES2015 restrictions for generator type check --- src/compiler/checker.ts | 191 ++++++++++++++++++++++------------------ src/lib/es5.d.ts | 19 ++++ 2 files changed, 122 insertions(+), 88 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 31cd060096032..9fda37a6d8f4b 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10224,7 +10224,7 @@ namespace ts { if (contextualReturnType) { return node.asteriskToken ? contextualReturnType - : getElementTypeOfIterableIterator(contextualReturnType); + : getIteratedTypeOfIterableIterator(contextualReturnType); } } @@ -10402,7 +10402,7 @@ namespace ts { const index = indexOf(arrayLiteral.elements, node); return getTypeOfPropertyOfContextualType(type, "" + index) || getIndexTypeOfContextualType(type, IndexKind.Number) - || (languageVersion >= ScriptTarget.ES2015 ? getElementTypeOfIterable(type, /*errorNode*/ undefined) : undefined); + || getIteratedTypeOrElementType(type, /*errorNode*/ undefined, /*allowStringInput*/ false); } return undefined; } @@ -10651,7 +10651,7 @@ namespace ts { // if there is no index type / iterated type. const restArrayType = checkExpression((e).expression, contextualMapper); const restElementType = getIndexTypeOfType(restArrayType, IndexKind.Number) || - (languageVersion >= ScriptTarget.ES2015 ? getElementTypeOfIterable(restArrayType, /*errorNode*/ undefined) : undefined); + getIteratedTypeOrElementType(restArrayType, /*errorNode*/ undefined, /*allowStringInput*/ false); if (restElementType) { elementTypes.push(restElementType); } @@ -13246,7 +13246,7 @@ namespace ts { if (yieldExpression.asteriskToken) { // A yield* expression effectively yields everything that its operand yields - type = checkElementTypeOfIterable(type, yieldExpression.expression); + type = checkIteratedTypeOrElementType(type, yieldExpression.expression, /*allowStringInput*/ false); } if (!contains(aggregatedTypes, type)) { @@ -14182,13 +14182,14 @@ namespace ts { let expressionElementType: Type; const nodeIsYieldStar = !!node.asteriskToken; if (nodeIsYieldStar) { - expressionElementType = checkElementTypeOfIterable(expressionType, node.expression); + expressionElementType = checkIteratedTypeOrElementType(expressionType, node.expression, /*allowStringInput*/ false); } + // There is no point in doing an assignability check if the function // has no explicit return type because the return type is directly computed // from the yield expressions. if (func.type) { - const signatureElementType = getElementTypeOfIterableIterator(getTypeFromTypeNode(func.type)) || anyType; + const signatureElementType = getIteratedTypeOfIterableIterator(getTypeFromTypeNode(func.type)) || anyType; if (nodeIsYieldStar) { checkTypeAssignableTo(expressionElementType, signatureElementType, node.expression, /*headMessage*/ undefined); } @@ -14654,13 +14655,13 @@ namespace ts { } if (node.type) { - if (languageVersion >= ScriptTarget.ES2015 && isSyntacticallyValidGenerator(node)) { + if (isSyntacticallyValidGenerator(node)) { const returnType = getTypeFromTypeNode(node.type); if (returnType === voidType) { error(node.type, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { - const generatorElementType = getElementTypeOfIterableIterator(returnType) || anyType; + const generatorElementType = getIteratedTypeOfIterableIterator(returnType) || anyType; const iterableIteratorInstantiation = createIterableIteratorType(generatorElementType); // Naively, one could check that IterableIterator is assignable to the return type annotation. @@ -16616,36 +16617,21 @@ namespace ts { if (isTypeAny(inputType)) { return inputType; } - if (languageVersion >= ScriptTarget.ES2015) { - return checkElementTypeOfIterable(inputType, errorNode); - } - if (allowStringInput) { - return checkElementTypeOfArrayOrString(inputType, errorNode); - } - if (isArrayLikeType(inputType)) { - const indexType = getIndexTypeOfType(inputType, IndexKind.Number); - if (indexType) { - return indexType; - } - } - if (errorNode) { - error(errorNode, Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); - } - return unknownType; + return getIteratedTypeOrElementType(inputType, errorNode, allowStringInput) || unknownType; } /** - * When errorNode is undefined, it means we should not report any errors. + * When consuming an iterable type in a for..of, spread, or iterator destructuring assignment + * we want to get the iterated type of an iterable for ES2015 or later, or the iterated type + * of a pseudo-iterable or element type of an array like for ES2015 or earlier. */ - function checkElementTypeOfIterable(iterable: Type, errorNode: Node): Type { - const elementType = getElementTypeOfIterable(iterable, errorNode); - // Now even though we have extracted the iteratedType, we will have to validate that the type - // passed in is actually an Iterable. - if (errorNode && elementType) { - checkTypeAssignableTo(iterable, createIterableType(elementType), errorNode); + function getIteratedTypeOrElementType(inputType: Type, errorNode: Node, allowStringInput: boolean): Type { + if (languageVersion >= ScriptTarget.ES2015) { + return getIteratedTypeOfIterable(inputType, errorNode); } - - return elementType || anyType; + return allowStringInput + ? getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(inputType, errorNode) + : getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType, errorNode); } /** @@ -16669,41 +16655,48 @@ namespace ts { * type. This is different from returning anyType, because that would signify that we have matched the * whole pattern and that T (above) is 'any'. */ - function getElementTypeOfIterable(type: Type, errorNode: Node): Type { + function getIteratedTypeOfIterable(type: Type, errorNode: Node): Type { if (isTypeAny(type)) { return undefined; } const typeAsIterable = type; - if (!typeAsIterable.iterableElementType) { - // As an optimization, if the type is instantiated directly using the globalIterableType (Iterable), - // then just grab its type argument. - if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIterableType()) { - typeAsIterable.iterableElementType = (type).typeArguments[0]; - } - else { - const iteratorFunction = getTypeOfPropertyOfType(type, getPropertyNameForKnownSymbolName("iterator")); - if (isTypeAny(iteratorFunction)) { - return undefined; - } + if (typeAsIterable.iterableElementType) { + return typeAsIterable.iterableElementType; + } - const iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, SignatureKind.Call) : emptyArray; - if (iteratorFunctionSignatures.length === 0) { - if (errorNode) { - error(errorNode, Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); - } - return undefined; - } + // As an optimization, if the type is instantiated directly using the + // globalIterableType (Iterable, or PseudoIterable in ES5), or + // globalIterableIteratorType (IterableIterator, or PseudoIterableIterator + // in ES5) then just grab its type argument. + if ((getObjectFlags(type) & ObjectFlags.Reference) + && ((type).target === getGlobalIterableType() + || (type).target === getGlobalIterableIteratorType())) { + return typeAsIterable.iterableElementType = (type).typeArguments[0]; + } + + const propertyName = languageVersion >= ScriptTarget.ES2015 + ? getPropertyNameForKnownSymbolName("iterator") + : "___iterator__"; - typeAsIterable.iterableElementType = getElementTypeOfIterator(getUnionType(map(iteratorFunctionSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true), errorNode); + const iteratorMethod = getTypeOfPropertyOfType(type, propertyName); + if (isTypeAny(iteratorMethod)) { + return undefined; + } + + const iteratorMethodSignatures = iteratorMethod ? getSignaturesOfType(iteratorMethod, SignatureKind.Call) : emptyArray; + if (iteratorMethodSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } + return undefined; } - return typeAsIterable.iterableElementType; + return typeAsIterable.iterableElementType = getIteratedTypeOfIterator(getUnionType(map(iteratorMethodSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true), errorNode); } /** - * This function has very similar logic as getElementTypeOfIterable, except that it operates on + * This function has very similar logic as getIteratedTypeOfIterable, except that it operates on * Iterators instead of Iterables. Here is the structure: * * { // iterator @@ -16715,14 +16708,15 @@ namespace ts { * } * */ - function getElementTypeOfIterator(type: Type, errorNode: Node): Type { + function getIteratedTypeOfIterator(type: Type, errorNode: Node): Type { if (isTypeAny(type)) { return undefined; } const typeAsIterator = type; if (!typeAsIterator.iteratorElementType) { - // As an optimization, if the type is instantiated directly using the globalIteratorType (Iterator), + // As an optimization, if the type is instantiated directly using the + // globalIteratorType (Iterator ()), // then just grab its type argument. if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIteratorType()) { typeAsIterator.iteratorElementType = (type).typeArguments[0]; @@ -16761,19 +16755,19 @@ namespace ts { return typeAsIterator.iteratorElementType; } - function getElementTypeOfIterableIterator(type: Type): Type { + /** + * A generator may have a return type of Iterator, Iterable (PseudoIterable in + * ES5), or IterableIterator (PseudoIterableIterator in ES5). This function can be + * used to extract the iterated type from this return type for contextual typing and + * verifying signatures. + */ + function getIteratedTypeOfIterableIterator(type: Type): Type { if (isTypeAny(type)) { return undefined; } - // As an optimization, if the type is instantiated directly using the globalIterableIteratorType (IterableIterator), - // then just grab its type argument. - if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIterableIteratorType()) { - return (type).typeArguments[0]; - } - - return getElementTypeOfIterable(type, /*errorNode*/ undefined) || - getElementTypeOfIterator(type, /*errorNode*/ undefined); + return getIteratedTypeOfIterable(type, /*errorNode*/ undefined) || + getIteratedTypeOfIterator(type, /*errorNode*/ undefined); } /** @@ -16793,9 +16787,14 @@ namespace ts { * 1. Some constituent is neither a string nor an array. * 2. Some constituent is a string and target is less than ES5 (because in ES3 string is not indexable). */ - function checkElementTypeOfArrayOrString(arrayOrStringType: Type, errorNode: Node): Type { + function getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(arrayOrStringType: Type, errorNode: Node): Type { Debug.assert(languageVersion < ScriptTarget.ES2015); + const elementType = getIteratedTypeOfIterable(arrayOrStringType, /*errorNode*/ undefined); + if (elementType) { + return elementType; + } + // After we remove all types that are StringLike, we will know if there was a string constituent // based on whether the remaining type is the same as the initial type. let arrayType = arrayOrStringType; @@ -16809,8 +16808,10 @@ namespace ts { let reportedError = false; if (hasStringConstituent) { if (languageVersion < ScriptTarget.ES5) { - error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); - reportedError = true; + if (errorNode) { + error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + reportedError = true; + } } // Now that we've removed all the StringLike types, if no constituents remain, then the entire @@ -16821,21 +16822,23 @@ namespace ts { } if (!isArrayLikeType(arrayType)) { - if (!reportedError) { - // Which error we report depends on whether there was a string constituent. For example, - // if the input type is number | string, we want to say that number is not an array type. - // But if the input was just number, we want to say that number is not an array type - // or a string type. - const diagnostic = hasStringConstituent - ? Diagnostics.Type_0_is_not_an_array_type - : Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(errorNode, diagnostic, typeToString(arrayType)); + if (errorNode) { + if (!reportedError) { + // Which error we report depends on whether there was a string constituent. For example, + // if the input type is number | string, we want to say that number is not an array type. + // But if the input was just number, we want to say that number is not an array type + // or a string type. + const diagnostic = hasStringConstituent + ? Diagnostics.Type_0_is_not_an_array_type + : Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; + error(errorNode, diagnostic, typeToString(arrayType)); + } } - return hasStringConstituent ? stringType : unknownType; + return hasStringConstituent ? stringType : undefined; } - const arrayElementType = getIndexTypeOfType(arrayType, IndexKind.Number) || unknownType; - if (hasStringConstituent) { + const arrayElementType = getIndexTypeOfType(arrayType, IndexKind.Number); + if (arrayElementType && hasStringConstituent) { // This is just an optimization for the case where arrayOrStringType is string | string[] if (arrayElementType.flags & TypeFlags.StringLike) { return stringType; @@ -16847,6 +16850,22 @@ namespace ts { return arrayElementType; } + function getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType: Type, errorNode: Node): Type { + Debug.assert(languageVersion < ScriptTarget.ES2015); + + const elementType = getIteratedTypeOfIterable(inputType, /*errorNode*/ undefined); + if (elementType) { + return elementType; + } + if (isArrayLikeType(inputType)) { + return getIndexTypeOfType(inputType, IndexKind.Number); + } + if (errorNode) { + error(errorNode, Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + } + return undefined; + } + function checkBreakOrContinueStatement(node: BreakOrContinueStatement) { // Grammar checking checkGrammarStatementInAmbientContext(node) || checkGrammarBreakOrContinueStatement(node); @@ -19736,18 +19755,17 @@ namespace ts { getGlobalThenableType = memoize(createThenableType); getGlobalTemplateStringsArrayType = memoize(() => getGlobalType("TemplateStringsArray")); + getGlobalIteratorType = memoize(() => getGlobalType("Iterator", /*arity*/ 1)); if (languageVersion >= ScriptTarget.ES2015) { getGlobalESSymbolType = memoize(() => getGlobalType("Symbol")); getGlobalIterableType = memoize(() => getGlobalType("Iterable", /*arity*/ 1)); - getGlobalIteratorType = memoize(() => getGlobalType("Iterator", /*arity*/ 1)); getGlobalIterableIteratorType = memoize(() => getGlobalType("IterableIterator", /*arity*/ 1)); } else { getGlobalESSymbolType = memoize(() => emptyObjectType); - getGlobalIterableType = memoize(() => emptyGenericType); - getGlobalIteratorType = memoize(() => emptyGenericType); - getGlobalIterableIteratorType = memoize(() => emptyGenericType); + getGlobalIterableType = memoize(() => getGlobalType("PseudoIterable", /*arity*/ 1)); + getGlobalIterableIteratorType = memoize(() => getGlobalType("PseudoIterableIterator", /*arity*/ 1)); } anyArrayType = createArrayType(anyType); @@ -20365,9 +20383,6 @@ namespace ts { if (!node.body) { return grammarErrorOnNode(node.asteriskToken, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator); } - if (languageVersion < ScriptTarget.ES2015) { - return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher); - } } } diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 2c457a432c6b8..cbb92157671b2 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1343,6 +1343,25 @@ interface ArrayLike { readonly [n: number]: T; } +interface IteratorResult { + done: boolean; + value: T; +} + +interface Iterator { + next(value?: any): IteratorResult; + return?(value?: any): IteratorResult; + throw?(e?: any): IteratorResult; +} + +interface PseudoIterable { + __iterator__(): Iterator; +} + +interface PseudoIterableIterator extends Iterator { + __iterator__(): PseudoIterableIterator; +} + /** * Represents a raw buffer of binary data, which is used to store data for the * different typed arrays. ArrayBuffers cannot be read from or written to directly, From c6ee25d95ba8ca85ff77a16f14c61ac23d406b6e Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Sat, 5 Nov 2016 18:48:33 -0700 Subject: [PATCH 05/35] Type checking for async iterables and async generators. --- Jakefile.js | 3 +- src/compiler/binder.ts | 10 +- src/compiler/checker.ts | 765 +++++++++++++++++---------- src/compiler/diagnosticMessages.json | 20 +- src/compiler/transformers/es2017.ts | 8 +- src/compiler/transformers/ts.ts | 2 +- src/compiler/types.ts | 12 +- src/compiler/utilities.ts | 46 +- src/lib/es2017.asynciterable.d.ts | 23 + src/lib/es2017.d.ts | 3 +- 10 files changed, 580 insertions(+), 312 deletions(-) create mode 100644 src/lib/es2017.asynciterable.d.ts diff --git a/Jakefile.js b/Jakefile.js index 8ce70eb353f9e..4ec2ed6e4c2ef 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -299,7 +299,8 @@ var es2016LibrarySourceMap = es2016LibrarySource.map(function (source) { var es2017LibrarySource = [ "es2017.object.d.ts", - "es2017.sharedmemory.d.ts" + "es2017.sharedmemory.d.ts", + "es2017.asynciterable.d.ts" ]; var es2017LibrarySourceMap = es2017LibrarySource.map(function (source) { diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 1d721e2db90f7..a707fea98242d 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -895,8 +895,8 @@ namespace ts { const enclosingLabeledStatement = node.parent.kind === SyntaxKind.LabeledStatement ? lastOrUndefined(activeLabels) : undefined; - // if do statement is wrapped in labeled statement then target labels for break/continue with or without - // label should be the same + // if do statement is wrapped in labeled statement then target labels for break/continue with or without + // label should be the same const preConditionLabel = enclosingLabeledStatement ? enclosingLabeledStatement.continueTarget : createBranchLabel(); const postDoLabel = enclosingLabeledStatement ? enclosingLabeledStatement.breakTarget : createBranchLabel(); addAntecedent(preDoLabel, currentFlow); @@ -2291,7 +2291,7 @@ namespace ts { function bindFunctionDeclaration(node: FunctionDeclaration) { if (!isDeclarationFile(file) && !isInAmbientContext(node)) { - if (isAsyncFunctionLike(node)) { + if (isAsyncFunction(node)) { emitFlags |= NodeFlags.HasAsyncFunctions; } } @@ -2308,7 +2308,7 @@ namespace ts { function bindFunctionExpression(node: FunctionExpression) { if (!isDeclarationFile(file) && !isInAmbientContext(node)) { - if (isAsyncFunctionLike(node)) { + if (isAsyncFunction(node)) { emitFlags |= NodeFlags.HasAsyncFunctions; } } @@ -2322,7 +2322,7 @@ namespace ts { function bindPropertyOrMethodOrAccessor(node: Declaration, symbolFlags: SymbolFlags, symbolExcludes: SymbolFlags) { if (!isDeclarationFile(file) && !isInAmbientContext(node)) { - if (isAsyncFunctionLike(node)) { + if (isAsyncFunction(node)) { emitFlags |= NodeFlags.HasAsyncFunctions; } if (nodeIsDecorated(node)) { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0f2c642124afc..512a883e8576c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -200,18 +200,14 @@ namespace ts { let getGlobalIterableType: () => GenericType; let getGlobalIteratorType: () => GenericType; let getGlobalIterableIteratorType: () => GenericType; + let getGlobalAsyncIterableType: () => GenericType; + let getGlobalAsyncIteratorType: () => GenericType; + let getGlobalAsyncIterableIteratorType: () => GenericType; - let getGlobalClassDecoratorType: () => ObjectType; - let getGlobalParameterDecoratorType: () => ObjectType; - let getGlobalPropertyDecoratorType: () => ObjectType; - let getGlobalMethodDecoratorType: () => ObjectType; - let getGlobalTypedPropertyDescriptorType: () => ObjectType; - let getGlobalPromiseType: () => ObjectType; - let tryGetGlobalPromiseType: () => ObjectType; - let getGlobalPromiseLikeType: () => ObjectType; - let getInstantiatedGlobalPromiseLikeType: () => ObjectType; + let getGlobalTypedPropertyDescriptorType: () => GenericType; + let getGlobalPromiseType: () => GenericType; + let tryGetGlobalPromiseType: () => GenericType; let getGlobalPromiseConstructorLikeType: () => ObjectType; - let getGlobalThenableType: () => ObjectType; let jsxElementClassType: Type; @@ -2967,10 +2963,6 @@ namespace ts { return type && (type.flags & TypeFlags.Any) !== 0; } - function isTypeNever(type: Type) { - return type && (type.flags & TypeFlags.Never) !== 0; - } - // Return the type of a binding element parent. We check SymbolLinks first to see if a type has been // assigned by contextual typing. function getTypeForBindingElementParent(node: VariableLikeDeclaration) { @@ -3564,6 +3556,11 @@ namespace ts { return unknownType; } + function isReferenceToType(type: Type, target: Type) { + return (getObjectFlags(type) & ObjectFlags.Reference) !== 0 + && (type).target === target; + } + function getTargetType(type: Type): Type { return getObjectFlags(type) & ObjectFlags.Reference ? (type).target : type; } @@ -5337,6 +5334,8 @@ namespace ts { return resolveName(undefined, name, meaning, diagnostic, name); } + function getGlobalType(name: string, arity?: 0): ObjectType; + function getGlobalType(name: string, arity: number): GenericType; function getGlobalType(name: string, arity = 0): ObjectType { return getTypeOfGlobalSymbol(getGlobalTypeSymbol(name), arity); } @@ -5368,12 +5367,20 @@ namespace ts { return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType; } - function createIterableType(elementType: Type): Type { - return createTypeFromGenericGlobalType(getGlobalIterableType(), [elementType]); + function createAsyncIterableType(iteratedType: Type): Type { + return createTypeFromGenericGlobalType(getGlobalAsyncIterableType(), [iteratedType]); + } + + function createAsyncIterableIteratorType(iteratedType: Type): Type { + return createTypeFromGenericGlobalType(getGlobalAsyncIterableIteratorType(), [iteratedType]); + } + + function createIterableType(iteratedType: Type): Type { + return createTypeFromGenericGlobalType(getGlobalIterableType(), [iteratedType]); } - function createIterableIteratorType(elementType: Type): Type { - return createTypeFromGenericGlobalType(getGlobalIterableIteratorType(), [elementType]); + function createIterableIteratorType(iteratedType: Type): Type { + return createTypeFromGenericGlobalType(getGlobalIterableIteratorType(), [iteratedType]); } function createArrayType(elementType: Type): ObjectType { @@ -10221,31 +10228,31 @@ namespace ts { function getContextualTypeForReturnExpression(node: Expression): Type { const func = getContainingFunction(node); - - if (isAsyncFunctionLike(func)) { - const contextualReturnType = getContextualReturnType(func); - if (contextualReturnType) { - return getPromisedType(contextualReturnType); + if (func) { + const functionFlags = getFunctionFlags(func); + if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function + return undefined; } - return undefined; - } - - if (func && !func.asteriskToken) { - return getContextualReturnType(func); + const contextualReturnType = getContextualReturnType(func); + return functionFlags & FunctionFlags.Async + ? contextualReturnType && getAwaitedTypeOfPromise(contextualReturnType) // Async function + : contextualReturnType; // Regular function } - return undefined; } function getContextualTypeForYieldOperand(node: YieldExpression): Type { const func = getContainingFunction(node); if (func) { + const functionFlags = getFunctionFlags(func); const contextualReturnType = getContextualReturnType(func); if (contextualReturnType) { return node.asteriskToken ? contextualReturnType - : getElementTypeOfIterableIterator(contextualReturnType); + : functionFlags & FunctionFlags.Async + ? getIteratedTypeOfAsyncIterableIterator(contextualReturnType) // AsyncGenerator function + : getIteratedTypeOfIterableIterator(contextualReturnType); // Generator function } } @@ -10423,7 +10430,7 @@ namespace ts { const index = indexOf(arrayLiteral.elements, node); return getTypeOfPropertyOfContextualType(type, "" + index) || getIndexTypeOfContextualType(type, IndexKind.Number) - || (languageVersion >= ScriptTarget.ES2015 ? getElementTypeOfIterable(type, /*errorNode*/ undefined) : undefined); + || (languageVersion >= ScriptTarget.ES2015 ? getIteratedTypeOfIterable(type, /*errorNode*/ undefined) : undefined); } return undefined; } @@ -10672,7 +10679,7 @@ namespace ts { // if there is no index type / iterated type. const restArrayType = checkExpression((e).expression, contextualMapper); const restElementType = getIndexTypeOfType(restArrayType, IndexKind.Number) || - (languageVersion >= ScriptTarget.ES2015 ? getElementTypeOfIterable(restArrayType, /*errorNode*/ undefined) : undefined); + (languageVersion >= ScriptTarget.ES2015 ? getIteratedTypeOfIterable(restArrayType, /*errorNode*/ undefined) : undefined); if (restElementType) { elementTypes.push(restElementType); } @@ -13068,6 +13075,10 @@ namespace ts { pos < signature.parameters.length ? getTypeOfParameter(signature.parameters[pos]) : anyType; } + function getTypeOfFirstParameterOfSignature(signature: Signature) { + return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : neverType; + } + function assignContextualParameterTypes(signature: Signature, context: Signature, mapper: TypeMapper) { const len = signature.parameters.length - (signature.hasRestParameter ? 1 : 0); if (isInferentialContext(mapper)) { @@ -13178,7 +13189,7 @@ namespace ts { const globalPromiseType = getGlobalPromiseType(); if (globalPromiseType !== emptyGenericType) { // if the promised type is itself a promise, get the underlying type; otherwise, fallback to the promised type - promisedType = getAwaitedType(promisedType); + promisedType = getAwaitedType(promisedType) || emptyObjectType; return createTypeReference(globalPromiseType, [promisedType]); } @@ -13201,25 +13212,26 @@ namespace ts { return unknownType; } - const isAsync = isAsyncFunctionLike(func); + const functionFlags = getFunctionFlags(func); let type: Type; if (func.body.kind !== SyntaxKind.Block) { type = checkExpressionCached(func.body, contextualMapper); - if (isAsync) { + if (functionFlags & FunctionFlags.Async) { // From within an async function you can return either a non-promise value or a promise. Any // Promise/A+ compatible implementation will always assimilate any foreign promise, so the // return type of the body should be unwrapped to its awaited type, which we will wrap in // the native Promise type later in this function. - type = checkAwaitedType(type, func, Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member); + type = checkAwaitedType(type, /*errorNode*/ func); } } else { let types: Type[]; - const funcIsGenerator = !!func.asteriskToken; - if (funcIsGenerator) { + if (functionFlags & FunctionFlags.Generator) { // Generator or AsyncGenerator function types = checkAndAggregateYieldOperandTypes(func, contextualMapper); if (types.length === 0) { - const iterableIteratorAny = createIterableIteratorType(anyType); + const iterableIteratorAny = functionFlags & FunctionFlags.Async + ? createAsyncIterableIteratorType(anyType) // AsyncGenerator function + : createIterableIteratorType(anyType); // Generator function if (compilerOptions.noImplicitAny) { error(func.asteriskToken, Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type, typeToString(iterableIteratorAny)); @@ -13231,23 +13243,31 @@ namespace ts { types = checkAndAggregateReturnExpressionTypes(func, contextualMapper); if (!types) { // For an async function, the return type will not be never, but rather a Promise for never. - return isAsync ? createPromiseReturnType(func, neverType) : neverType; + return functionFlags & FunctionFlags.Async + ? createPromiseReturnType(func, neverType) // Async function + : neverType; // Normal function } if (types.length === 0) { // For an async function, the return type will not be void, but rather a Promise for void. - return isAsync ? createPromiseReturnType(func, voidType) : voidType; + return functionFlags & FunctionFlags.Async + ? createPromiseReturnType(func, voidType) // Async function + : voidType; // Normal function } } // Return a union of the return expression types. type = getUnionType(types, /*subtypeReduction*/ true); - if (funcIsGenerator) { - type = createIterableIteratorType(type); + if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function + type = functionFlags & FunctionFlags.Async + ? createAsyncIterableIteratorType(type) // AsyncGenerator function + : createIterableIteratorType(type); // Generator function } } + if (!contextualSignature) { reportErrorsFromWidening(func, type); } + if (isUnitType(type) && !(contextualSignature && isLiteralContextualType( @@ -13259,22 +13279,24 @@ namespace ts { // From within an async function you can return either a non-promise value or a promise. Any // Promise/A+ compatible implementation will always assimilate any foreign promise, so the // return type of the body is awaited type of the body, wrapped in a native Promise type. - return isAsync ? createPromiseReturnType(func, widenedType) : widenedType; + return (functionFlags & FunctionFlags.AsyncGenerator) === FunctionFlags.Async + ? createPromiseReturnType(func, widenedType) // Async function + : widenedType; // Generator function, AsyncGenerator function, or normal function } function checkAndAggregateYieldOperandTypes(func: FunctionLikeDeclaration, contextualMapper: TypeMapper): Type[] { const aggregatedTypes: Type[] = []; - + const functionFlags = getFunctionFlags(func); forEachYieldExpression(func.body, yieldExpression => { const expr = yieldExpression.expression; if (expr) { let type = checkExpressionCached(expr, contextualMapper); - if (yieldExpression.asteriskToken) { // A yield* expression effectively yields everything that its operand yields - type = checkElementTypeOfIterable(type, yieldExpression.expression); + type = functionFlags & FunctionFlags.Async + ? checkIteratedTypeOfIterableOrAsyncIterable(type, yieldExpression.expression) // AsyncGenerator function + : checkIteratedTypeOfIterable(type, yieldExpression.expression); // Generator function } - if (!contains(aggregatedTypes, type)) { aggregatedTypes.push(type); } @@ -13311,7 +13333,7 @@ namespace ts { } function checkAndAggregateReturnExpressionTypes(func: FunctionLikeDeclaration, contextualMapper: TypeMapper): Type[] { - const isAsync = isAsyncFunctionLike(func); + const functionFlags = getFunctionFlags(func); const aggregatedTypes: Type[] = []; let hasReturnWithNoExpression = functionHasImplicitReturn(func); let hasReturnOfTypeNever = false; @@ -13319,12 +13341,12 @@ namespace ts { const expr = returnStatement.expression; if (expr) { let type = checkExpressionCached(expr, contextualMapper); - if (isAsync) { + if (functionFlags & FunctionFlags.Async) { // From within an async function you can return either a non-promise value or a promise. Any // Promise/A+ compatible implementation will always assimilate any foreign promise, so the // return type of the body should be unwrapped to its awaited type, which should be wrapped in // the native Promise type by the caller. - type = checkAwaitedType(type, func, Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member); + type = checkAwaitedType(type, func); } if (type.flags & TypeFlags.Never) { hasReturnOfTypeNever = true; @@ -13467,9 +13489,13 @@ namespace ts { function checkFunctionExpressionOrObjectLiteralMethodDeferred(node: ArrowFunction | FunctionExpression | MethodDeclaration) { Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node)); - const isAsync = isAsyncFunctionLike(node); - const returnOrPromisedType = node.type && (isAsync ? checkAsyncFunctionReturnType(node) : getTypeFromTypeNode(node.type)); - if (!node.asteriskToken) { + const functionFlags = getFunctionFlags(node); + const returnOrPromisedType = node.type && + ((functionFlags & FunctionFlags.AsyncGenerator) === FunctionFlags.Async ? + checkAsyncFunctionReturnType(node) : // Async function + getTypeFromTypeNode(node.type)); // AsyncGenerator function, Generator function, or normal function + + if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function // return is not necessary in the body of generators checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnOrPromisedType); } @@ -13495,11 +13521,11 @@ namespace ts { // its return type annotation. const exprType = checkExpression(node.body); if (returnOrPromisedType) { - if (isAsync) { - const awaitedType = checkAwaitedType(exprType, node.body, Diagnostics.Expression_body_for_async_arrow_function_does_not_have_a_valid_callable_then_member); + if ((functionFlags & FunctionFlags.AsyncGenerator) === FunctionFlags.Async) { // Async function + const awaitedType = checkAwaitedType(exprType, node.body); checkTypeAssignableTo(awaitedType, returnOrPromisedType, node.body); } - else { + else { // Normal function checkTypeAssignableTo(exprType, returnOrPromisedType, node.body); } } @@ -14203,18 +14229,24 @@ namespace ts { const func = getContainingFunction(node); // If the user's code is syntactically correct, the func should always have a star. After all, // we are in a yield context. - if (func && func.asteriskToken) { + const functionFlags = func && getFunctionFlags(func); + if (functionFlags & FunctionFlags.Generator) { const expressionType = checkExpressionCached(node.expression, /*contextualMapper*/ undefined); let expressionElementType: Type; const nodeIsYieldStar = !!node.asteriskToken; if (nodeIsYieldStar) { - expressionElementType = checkElementTypeOfIterable(expressionType, node.expression); + expressionElementType = functionFlags & FunctionFlags.Async + ? checkIteratedTypeOfIterableOrAsyncIterable(expressionType, node.expression) // AsyncGenerator function + : checkIteratedTypeOfIterable(expressionType, node.expression); // Generator function } + // There is no point in doing an assignability check if the function // has no explicit return type because the return type is directly computed // from the yield expressions. if (func.type) { - const signatureElementType = getElementTypeOfIterableIterator(getTypeFromTypeNode(func.type)) || anyType; + const signatureElementType = functionFlags & FunctionFlags.Async + ? getIteratedTypeOfAsyncIterableIterator(getTypeFromTypeNode(func.type)) || anyType // AsyncGenerator function + : getIteratedTypeOfIterableIterator(getTypeFromTypeNode(func.type)) || anyType; // Generator function if (nodeIsYieldStar) { checkTypeAssignableTo(expressionElementType, signatureElementType, node.expression, /*headMessage*/ undefined); } @@ -14529,16 +14561,6 @@ namespace ts { } } - function isSyntacticallyValidGenerator(node: SignatureDeclaration): boolean { - if (!(node).asteriskToken || !(node).body) { - return false; - } - - return node.kind === SyntaxKind.MethodDeclaration || - node.kind === SyntaxKind.FunctionDeclaration || - node.kind === SyntaxKind.FunctionExpression; - } - function getTypePredicateParameterIndex(parameterList: NodeArray, parameter: Identifier): number { if (parameterList) { for (let i = 0; i < parameterList.length; i++) { @@ -14680,13 +14702,14 @@ namespace ts { } if (node.type) { - if (languageVersion >= ScriptTarget.ES2015 && isSyntacticallyValidGenerator(node)) { + const functionFlags = getFunctionFlags(node); + if (languageVersion >= ScriptTarget.ES2015 && (functionFlags & FunctionFlags.InvalidGenerator) === FunctionFlags.Generator) { const returnType = getTypeFromTypeNode(node.type); if (returnType === voidType) { error(node.type, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { - const generatorElementType = getElementTypeOfIterableIterator(returnType) || anyType; + const generatorElementType = getIteratedTypeOfIterableIterator(returnType) || anyType; const iterableIteratorInstantiation = createIterableIteratorType(generatorElementType); // Naively, one could check that IterableIterator is assignable to the return type annotation. @@ -14698,7 +14721,7 @@ namespace ts { checkTypeAssignableTo(iterableIteratorInstantiation, returnType, node.type); } } - else if (isAsyncFunctionLike(node)) { + else if ((functionFlags & FunctionFlags.AsyncGenerator) === FunctionFlags.Async) { checkAsyncFunctionReturnType(node); } } @@ -15426,21 +15449,29 @@ namespace ts { } } - function checkNonThenableType(type: Type, location?: Node, message?: DiagnosticMessage) { - type = getWidenedType(type); - if (!isTypeAny(type) && !isTypeNever(type) && isTypeAssignableTo(type, getGlobalThenableType())) { - if (location) { - if (!message) { - message = Diagnostics.Operand_for_await_does_not_have_a_valid_callable_then_member; - } + function getAwaitedTypeOfPromise(type: Type, errorNode?: Node): Type | undefined { + const promisedType = getPromisedTypeOfPromise(type, errorNode); + return promisedType && getAwaitedType(promisedType, errorNode); + } - error(location, message); - } + /** + * Determines whether a type has a callable 'then' method. + */ + function isThenableType(type: Type) { + // + // { + // then( // thenFunction + // ): any; + // } + // - return unknownType; + const thenFunction = !isTypeAny(type) && getTypeOfPropertyOfType(type, "then"); + const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, SignatureKind.Call) : emptyArray; + if (thenSignatures.length > 0) { + return true; } - return type; + return false; } /** @@ -15448,7 +15479,7 @@ namespace ts { * @param type The type of the promise. * @remarks The "promised type" of a type is the type of the "value" parameter of the "onfulfilled" callback. */ - function getPromisedType(promise: Type): Type { + function getPromisedTypeOfPromise(promise: Type, errorNode?: Node): Type { // // { // promise // then( // thenFunction @@ -15463,25 +15494,26 @@ namespace ts { return undefined; } - if (getObjectFlags(promise) & ObjectFlags.Reference) { - if ((promise).target === tryGetGlobalPromiseType() - || (promise).target === getGlobalPromiseLikeType()) { - return (promise).typeArguments[0]; - } + const typeAsPromise = promise; + if (typeAsPromise.promisedTypeOfPromise) { + return typeAsPromise.promisedTypeOfPromise; } - const globalPromiseLikeType = getInstantiatedGlobalPromiseLikeType(); - if (globalPromiseLikeType === emptyObjectType || !isTypeAssignableTo(promise, globalPromiseLikeType)) { - return undefined; + if (isReferenceToType(promise, tryGetGlobalPromiseType()) || + isReferenceToType(promise, getGlobalPromiseType())) { + return typeAsPromise.promisedTypeOfPromise = (promise).typeArguments[0]; } const thenFunction = getTypeOfPropertyOfType(promise, "then"); - if (!thenFunction || isTypeAny(thenFunction)) { + if (isTypeAny(thenFunction)) { return undefined; } - const thenSignatures = getSignaturesOfType(thenFunction, SignatureKind.Call); + const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, SignatureKind.Call) : emptyArray; if (thenSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.A_promise_must_have_a_then_method); + } return undefined; } @@ -15492,14 +15524,13 @@ namespace ts { const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, SignatureKind.Call); if (onfulfilledParameterSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); + } return undefined; } - return getUnionType(map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), /*subtypeReduction*/ true); - } - - function getTypeOfFirstParameterOfSignature(signature: Signature) { - return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : neverType; + return typeAsPromise.promisedTypeOfPromise = getUnionType(map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), /*subtypeReduction*/ true); } /** @@ -15509,96 +15540,111 @@ namespace ts { * Promise-like type; otherwise, it is the type of the expression. This is used to reflect * The runtime behavior of the `await` keyword. */ - function getAwaitedType(type: Type) { - return checkAwaitedType(type, /*location*/ undefined, /*message*/ undefined); + function checkAwaitedType(type: Type, errorNode: Node): Type { + return getAwaitedType(type, errorNode) || unknownType; } - function checkAwaitedType(type: Type, location?: Node, message?: DiagnosticMessage) { - return checkAwaitedTypeWorker(type); + function getAwaitedType(type: Type, errorNode?: Node): Type | undefined { + const typeAsAwaitable = type; + if (typeAsAwaitable.awaitedTypeOfType) { + return typeAsAwaitable.awaitedTypeOfType; + } - function checkAwaitedTypeWorker(type: Type): Type { - if (type.flags & TypeFlags.Union) { - const types: Type[] = []; - for (const constituentType of (type).types) { - types.push(checkAwaitedTypeWorker(constituentType)); - } + if (isTypeAny(type)) { + return typeAsAwaitable.awaitedTypeOfType = type; + } - return getUnionType(types, /*subtypeReduction*/ true); + if (type.flags & TypeFlags.Union) { + let types: Type[]; + for (const constituentType of (type).types) { + types = append(types, getAwaitedType(constituentType, errorNode)); } - else { - const promisedType = getPromisedType(type); - if (promisedType === undefined) { - // The type was not a PromiseLike, so it could not be unwrapped any further. - // As long as the type does not have a callable "then" property, it is - // safe to return the type; otherwise, an error will have been reported in - // the call to checkNonThenableType and we will return unknownType. - // - // An example of a non-promise "thenable" might be: - // - // await { then(): void {} } - // - // The "thenable" does not match the minimal definition for a PromiseLike. When - // a Promise/A+-compatible or ES6 promise tries to adopt this value, the promise - // will never settle. We treat this as an error to help flag an early indicator - // of a runtime problem. If the user wants to return this value from an async - // function, they would need to wrap it in some other value. If they want it to - // be treated as a promise, they can cast to . - return checkNonThenableType(type, location, message); - } - else { - if (type.id === promisedType.id || indexOf(awaitedTypeStack, promisedType.id) >= 0) { - // We have a bad actor in the form of a promise whose promised type is - // the same promise type, or a mutually recursive promise. Return the - // unknown type as we cannot guess the shape. If this were the actual - // case in the JavaScript, this Promise would never resolve. - // - // An example of a bad actor with a singly-recursive promise type might - // be: - // - // interface BadPromise { - // then( - // onfulfilled: (value: BadPromise) => any, - // onrejected: (error: any) => any): BadPromise; - // } - // - // The above interface will pass the PromiseLike check, and return a - // promised type of `BadPromise`. Since this is a self reference, we - // don't want to keep recursing ad infinitum. - // - // An example of a bad actor in the form of a mutually-recursive - // promise type might be: - // - // interface BadPromiseA { - // then( - // onfulfilled: (value: BadPromiseB) => any, - // onrejected: (error: any) => any): BadPromiseB; - // } - // - // interface BadPromiseB { - // then( - // onfulfilled: (value: BadPromiseA) => any, - // onrejected: (error: any) => any): BadPromiseA; - // } - // - if (location) { - error( - location, - Diagnostics._0_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method, - symbolToString(type.symbol)); - } - return unknownType; - } + if (!types) { + return undefined; + } + + return typeAsAwaitable.awaitedTypeOfType = getUnionType(types, /*subtypeReduction*/ true); + } - // Keep track of the type we're about to unwrap to avoid bad recursive promise types. - // See the comments above for more information. - awaitedTypeStack.push(type.id); - const awaitedType = checkAwaitedTypeWorker(promisedType); - awaitedTypeStack.pop(); - return awaitedType; + const promisedType = getPromisedTypeOfPromise(type); + if (promisedType) { + if (type.id === promisedType.id || indexOf(awaitedTypeStack, promisedType.id) >= 0) { + // Verify that we don't have a bad actor in the form of a promise whose + // promised type is the same as the promise type, or a mutually recursive + // promise. If so, we returnundefined as we cannot guess the shape. If this + // were the actual case in the JavaScript, this Promise would never resolve. + // + // An example of a bad actor with a singly-recursive promise type might + // be: + // + // interface BadPromise { + // then( + // onfulfilled: (value: BadPromise) => any, + // onrejected: (error: any) => any): BadPromise; + // } + // The above interface will pass the PromiseLike check, and return a + // promised type of `BadPromise`. Since this is a self reference, we + // don't want to keep recursing ad infinitum. + // + // An example of a bad actor in the form of a mutually-recursive + // promise type might be: + // + // interface BadPromiseA { + // then( + // onfulfilled: (value: BadPromiseB) => any, + // onrejected: (error: any) => any): BadPromiseB; + // } + // + // interface BadPromiseB { + // then( + // onfulfilled: (value: BadPromiseA) => any, + // onrejected: (error: any) => any): BadPromiseA; + // } + // + if (errorNode) { + error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } + return undefined; + } + + // Keep track of the type we're about to unwrap to avoid bad recursive promise types. + // See the comments above for more information. + awaitedTypeStack.push(type.id); + const awaitedType = getAwaitedType(promisedType, errorNode); + awaitedTypeStack.pop(); + + if (!awaitedType) { + return undefined; + } + + return typeAsAwaitable.awaitedTypeOfType = awaitedType; + } + + // The type was not a promise, so it could not be unwrapped any further. + // As long as the type does not have a callable "then" property, it is + // safe to return the type; otherwise, an error will be reported in + // the call to getNonThenableType and we will return undefined. + // + // An example of a non-promise "thenable" might be: + // + // await { then(): void {} } + // + // The "thenable" does not match the minimal definition for a promise. When + // a Promise/A+-compatible or ES6 promise tries to adopt this value, the promise + // will never settle. We treat this as an error to help flag an early indicator + // of a runtime problem. If the user wants to return this value from an async + // function, they would need to wrap it in some other value. If they want it to + // be treated as a promise, they can cast to . + const widenedType = getWidenedType(type); + if (isThenableType(widenedType)) { + if (errorNode) { + error(errorNode, Diagnostics.Type_used_as_operand_to_await_or_the_return_type_of_an_async_function_must_not_contain_a_callable_then_member_if_it_is_not_a_promise); } + return undefined; } + + return typeAsAwaitable.awaitedTypeOfType = widenedType; } /** @@ -15699,7 +15745,7 @@ namespace ts { } // Get and return the awaited type of the return type. - return checkAwaitedType(returnType, node, Diagnostics.An_async_function_or_method_must_have_a_valid_awaitable_return_type); + return checkAwaitedType(returnType, node); } /** Check a decorator */ @@ -15830,7 +15876,7 @@ namespace ts { function checkFunctionOrMethodDeclaration(node: FunctionDeclaration | MethodDeclaration): void { checkDecorators(node); checkSignatureDeclaration(node); - const isAsync = isAsyncFunctionLike(node); + const functionFlags = getFunctionFlags(node); // Do not use hasDynamicName here, because that returns false for well known symbols. // We want to perform checkComputedPropertyName for all computed properties, including @@ -15872,8 +15918,10 @@ namespace ts { checkSourceElement(node.body); - if (!node.asteriskToken) { - const returnOrPromisedType = node.type && (isAsync ? checkAsyncFunctionReturnType(node) : getTypeFromTypeNode(node.type)); + if ((functionFlags & FunctionFlags.Generator) === 0) { // Async function or normal function + const returnOrPromisedType = node.type && (functionFlags & FunctionFlags.Async + ? checkAsyncFunctionReturnType(node) // Async function + : getTypeFromTypeNode(node.type)); // normal function checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnOrPromisedType); } @@ -15884,7 +15932,7 @@ namespace ts { reportImplicitAnyError(node, anyType); } - if (node.asteriskToken && nodeIsPresent(node.body)) { + if (functionFlags & FunctionFlags.Generator && nodeIsPresent(node.body)) { // A generator with a body and no type annotation can still cause errors. It can error if the // yielded values have no common supertype, or it can give an implicit any error if it has no // yielded values. The only way to trigger these errors is to try checking its return type. @@ -16458,10 +16506,10 @@ namespace ts { forEach(node.declarationList.declarations, checkSourceElement); } - function checkGrammarDisallowedModifiersOnObjectLiteralExpressionMethod(node: Node) { + function checkGrammarDisallowedModifiersOnObjectLiteralExpressionMethod(node: MethodDeclaration) { // We only disallow modifier on a method declaration if it is a property of object-literal-expression if (node.modifiers && node.parent.kind === SyntaxKind.ObjectLiteralExpression) { - if (isAsyncFunctionLike(node)) { + if (getFunctionFlags(node) & FunctionFlags.Async) { if (node.modifiers.length > 1) { return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); } @@ -16644,7 +16692,7 @@ namespace ts { return inputType; } if (languageVersion >= ScriptTarget.ES2015) { - return checkElementTypeOfIterable(inputType, errorNode); + return checkIteratedTypeOfIterable(inputType, errorNode); } if (allowStringInput) { return checkElementTypeOfArrayOrString(inputType, errorNode); @@ -16664,8 +16712,8 @@ namespace ts { /** * When errorNode is undefined, it means we should not report any errors. */ - function checkElementTypeOfIterable(iterable: Type, errorNode: Node): Type { - const elementType = getElementTypeOfIterable(iterable, errorNode); + function checkIteratedTypeOfIterable(iterable: Type, errorNode: Node): Type { + const elementType = getIteratedTypeOfIterable(iterable, errorNode); // Now even though we have extracted the iteratedType, we will have to validate that the type // passed in is actually an Iterable. if (errorNode && elementType) { @@ -16675,12 +16723,169 @@ namespace ts { return elementType || anyType; } + function checkIteratedTypeOfIterableOrAsyncIterable(asyncIterable: Type, errorNode: Node): Type { + // A yield* in an async generator function will first attempt to create an async + // iterator by calling `[Symbol.asyncIterator]()`. If the operand does not have a callable + // `Symbol.asyncIterator` method, it then tries to call `[Symbol.iterator]()` and wrap the + // result in an async iterator. + const elementType = getIteratedTypeOfAsyncIterable(asyncIterable, errorNode, /*allowIterables*/ true); + // Now even though we have extracted the iteratedType, we will have to validate that the type + // passed in is actually an Iterable. + if (errorNode && elementType) { + checkTypeAssignableTo(asyncIterable, createAsyncIterableType(elementType), errorNode); + } + + return elementType || anyType; + } + + + /** + * We want to treat type as an iterable, and get the type it is an async iterable of. The + * async iterable must have the following structure (annotated with the names of the + * variables below): + * + * { // asyncIterable + * [Symbol.asyncIterator]: { // asyncIteratorMethod + * (): AsyncIterator + * } + * } + * + * T is the type we are after. At every level that involves analyzing return types + * of signatures, we union the return types of all the signatures. + * + * Another thing to note is that at any step of this process, we could run into a dead end, + * meaning either the property is missing, or we run into the anyType. If either of these things + * happens, we return undefined to signal that we could not find the iterated type. If a property + * is missing, and the previous step did not result in 'any', then we also give an error if the + * caller requested it. Then the caller can decide what to do in the case where there is no iterated + * type. This is different from returning anyType, because that would signify that we have matched the + * whole pattern and that T (above) is 'any'. + */ + function getIteratedTypeOfAsyncIterable(type: Type, errorNode: Node, allowIterables: boolean): Type { + if (isTypeAny(type)) { + return undefined; + } + + const typeAsAsyncIterable = type; + if (typeAsAsyncIterable.iteratedTypeOfAsyncIterable) { + return typeAsAsyncIterable.iteratedTypeOfAsyncIterable; + } + + // As an optimization, if the type is instantiated directly using the + // globalAsyncIterableType (AsyncIterable) or globalAsyncIterableIteratorType + // (AsyncIterableIterator), then just grab its type argument. + if (isReferenceToType(type, getGlobalAsyncIterableType()) || + isReferenceToType(type, getGlobalAsyncIterableIteratorType())) { + return typeAsAsyncIterable.iteratedTypeOfAsyncIterable = (type).typeArguments[0]; + } + + if (allowIterables) { + if (isReferenceToType(type, getGlobalIterableType()) || + isReferenceToType(type, getGlobalIterableIteratorType())) { + return typeAsAsyncIterable.iteratedTypeOfAsyncIterable = (type).typeArguments[0]; + } + } + + const asyncIteratorMethod = getTypeOfPropertyOfType(type, getPropertyNameForKnownSymbolName("asyncIterator")); + if (isTypeAny(asyncIteratorMethod)) { + return undefined; + } + + const asyncIteratorMethodSignatures = asyncIteratorMethod ? getSignaturesOfType(asyncIteratorMethod, SignatureKind.Call) : emptyArray; + if (asyncIteratorMethodSignatures.length === 0) { + if (allowIterables) { + const iteratedType = getIteratedTypeOfIterable(type, /*errorNode*/ undefined); + if (iteratedType) { + return typeAsAsyncIterable.iteratedTypeOfAsyncIterable = iteratedType; + } + } + + if (errorNode) { + error(errorNode, Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator); + } + return undefined; + } + + return typeAsAsyncIterable.iteratedTypeOfAsyncIterable = getIteratedTypeOfAsyncIterator(getUnionType(map(asyncIteratorMethodSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true), errorNode); + } + + /** + * This function has very similar logic as getElementTypeOfAsyncIterable, except that it operates on + * AsyncIterators instead of AsyncIterables. Here is the structure: + * + * { // asyncIterator + * next: { // nextMethod + * (): PromiseLike<{ // nextResult + * value: T // nextValue + * }> + * } + * } + * + */ + function getIteratedTypeOfAsyncIterator(type: Type, errorNode: Node): Type { + if (isTypeAny(type)) { + return undefined; + } + + const typeAsAsyncIterator = type; + if (typeAsAsyncIterator.iteratedTypeOfAsyncIterator) { + return typeAsAsyncIterator.iteratedTypeOfAsyncIterator; + } + + // As an optimization, if the type is instantiated directly using the + // globalAsyncIteratorType (AsyncIterator), then just grab its type argument. + if (isReferenceToType(type, getGlobalAsyncIteratorType())) { + return typeAsAsyncIterator.iteratedTypeOfAsyncIterator = (type).typeArguments[0]; + } + + const nextMethod = getTypeOfPropertyOfType(type, "next"); + if (isTypeAny(nextMethod)) { + return undefined; + } + + const nextMethodSignatures = nextMethod ? getSignaturesOfType(nextMethod, SignatureKind.Call) : emptyArray; + if (nextMethodSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.An_async_iterator_must_have_a_next_method); + } + return undefined; + } + + const nextResult = getUnionType(map(nextMethodSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true); + if (isTypeAny(nextResult)) { + return undefined; + } + + const awaitedResult = getAwaitedTypeOfPromise(nextResult, errorNode); + if (isTypeAny(awaitedResult)) { + return undefined; + } + + const nextValue = awaitedResult && getTypeOfPropertyOfType(awaitedResult, "value"); + if (!nextValue) { + if (errorNode) { + error(errorNode, Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property); + } + return undefined; + } + + return typeAsAsyncIterator.iteratedTypeOfAsyncIterator = nextValue; + } + + function getIteratedTypeOfAsyncIterableIterator(type: Type): Type { + if (isTypeAny(type)) { + return undefined; + } + return getIteratedTypeOfAsyncIterable(type, /*errorNode*/ undefined, /*allowIterables*/ false) + || getIteratedTypeOfAsyncIterator(type, /*errorNode*/ undefined); + } + /** * We want to treat type as an iterable, and get the type it is an iterable of. The iterable * must have the following structure (annotated with the names of the variables below): * * { // iterable - * [Symbol.iterator]: { // iteratorFunction + * [Symbol.iterator]: { // iteratorMethod * (): Iterator * } * } @@ -16696,37 +16901,38 @@ namespace ts { * type. This is different from returning anyType, because that would signify that we have matched the * whole pattern and that T (above) is 'any'. */ - function getElementTypeOfIterable(type: Type, errorNode: Node): Type { + function getIteratedTypeOfIterable(type: Type, errorNode: Node): Type { if (isTypeAny(type)) { return undefined; } const typeAsIterable = type; - if (!typeAsIterable.iterableElementType) { - // As an optimization, if the type is instantiated directly using the globalIterableType (Iterable), - // then just grab its type argument. - if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIterableType()) { - typeAsIterable.iterableElementType = (type).typeArguments[0]; - } - else { - const iteratorFunction = getTypeOfPropertyOfType(type, getPropertyNameForKnownSymbolName("iterator")); - if (isTypeAny(iteratorFunction)) { - return undefined; - } + if (typeAsIterable.iteratedTypeOfIterable) { + return typeAsIterable.iteratedTypeOfIterable; + } - const iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, SignatureKind.Call) : emptyArray; - if (iteratorFunctionSignatures.length === 0) { - if (errorNode) { - error(errorNode, Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); - } - return undefined; - } + // As an optimization, if the type is instantiated directly using the + // globalIterableType (Iterable) or globalIterableIteratorType (IterableIterator), + // then just grab its type argument. + if (isReferenceToType(type, getGlobalIterableType()) || + isReferenceToType(type, getGlobalIterableIteratorType())) { + return typeAsIterable.iteratedTypeOfIterable = (type).typeArguments[0]; + } - typeAsIterable.iterableElementType = getElementTypeOfIterator(getUnionType(map(iteratorFunctionSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true), errorNode); + const iteratorMethod = getTypeOfPropertyOfType(type, getPropertyNameForKnownSymbolName("iterator")); + if (isTypeAny(iteratorMethod)) { + return undefined; + } + + const iteratorMethodSignatures = iteratorMethod ? getSignaturesOfType(iteratorMethod, SignatureKind.Call) : emptyArray; + if (iteratorMethodSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } + return undefined; } - return typeAsIterable.iterableElementType; + return typeAsIterable.iteratedTypeOfIterable = getIteratedTypeOfIterator(getUnionType(map(iteratorMethodSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true), errorNode); } /** @@ -16742,65 +16948,58 @@ namespace ts { * } * */ - function getElementTypeOfIterator(type: Type, errorNode: Node): Type { + function getIteratedTypeOfIterator(type: Type, errorNode: Node): Type { if (isTypeAny(type)) { return undefined; } const typeAsIterator = type; - if (!typeAsIterator.iteratorElementType) { - // As an optimization, if the type is instantiated directly using the globalIteratorType (Iterator), - // then just grab its type argument. - if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIteratorType()) { - typeAsIterator.iteratorElementType = (type).typeArguments[0]; - } - else { - const iteratorNextFunction = getTypeOfPropertyOfType(type, "next"); - if (isTypeAny(iteratorNextFunction)) { - return undefined; - } + if (typeAsIterator.iteratedTypeOfIterator) { + return typeAsIterator.iteratedTypeOfIterator; + } - const iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, SignatureKind.Call) : emptyArray; - if (iteratorNextFunctionSignatures.length === 0) { - if (errorNode) { - error(errorNode, Diagnostics.An_iterator_must_have_a_next_method); - } - return undefined; - } + // As an optimization, if the type is instantiated directly using the globalIteratorType (Iterator), + // then just grab its type argument. + if (isReferenceToType(type, getGlobalIteratorType())) { + return typeAsIterator.iteratedTypeOfIterator = (type).typeArguments[0]; + } - const iteratorNextResult = getUnionType(map(iteratorNextFunctionSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true); - if (isTypeAny(iteratorNextResult)) { - return undefined; - } + const iteratorNextFunction = getTypeOfPropertyOfType(type, "next"); + if (isTypeAny(iteratorNextFunction)) { + return undefined; + } - const iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); - if (!iteratorNextValue) { - if (errorNode) { - error(errorNode, Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); - } - return undefined; - } + const iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, SignatureKind.Call) : emptyArray; + if (iteratorNextFunctionSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.An_iterator_must_have_a_next_method); + } + return undefined; + } + + const iteratorNextResult = getUnionType(map(iteratorNextFunctionSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true); + if (isTypeAny(iteratorNextResult)) { + return undefined; + } - typeAsIterator.iteratorElementType = iteratorNextValue; + const iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); + if (!iteratorNextValue) { + if (errorNode) { + error(errorNode, Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } + return undefined; } - return typeAsIterator.iteratorElementType; + return typeAsIterator.iteratedTypeOfIterator = iteratorNextValue; } - function getElementTypeOfIterableIterator(type: Type): Type { + function getIteratedTypeOfIterableIterator(type: Type): Type { if (isTypeAny(type)) { return undefined; } - // As an optimization, if the type is instantiated directly using the globalIterableIteratorType (IterableIterator), - // then just grab its type argument. - if ((getObjectFlags(type) & ObjectFlags.Reference) && (type).target === getGlobalIterableIteratorType()) { - return (type).typeArguments[0]; - } - - return getElementTypeOfIterable(type, /*errorNode*/ undefined) || - getElementTypeOfIterator(type, /*errorNode*/ undefined); + return getIteratedTypeOfIterable(type, /*errorNode*/ undefined) + || getIteratedTypeOfIterator(type, /*errorNode*/ undefined); } /** @@ -16886,7 +17085,9 @@ namespace ts { } function isUnwrappedReturnTypeVoidOrAny(func: FunctionLikeDeclaration, returnType: Type): boolean { - const unwrappedReturnType = isAsyncFunctionLike(func) ? getPromisedType(returnType) : returnType; + const unwrappedReturnType = (getFunctionFlags(func) & FunctionFlags.AsyncGenerator) === FunctionFlags.Async + ? getPromisedTypeOfPromise(returnType) // Async function + : returnType; // AsyncGenerator function, Generator function, or normal function return unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, TypeFlags.Void | TypeFlags.Any); } @@ -16905,8 +17106,8 @@ namespace ts { const returnType = getReturnTypeOfSignature(signature); if (strictNullChecks || node.expression || returnType.flags & TypeFlags.Never) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - - if (func.asteriskToken) { + const functionFlags = getFunctionFlags(func); + if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function // A generator does not need its return expressions checked against its return type. // Instead, the yield expressions are checked against the element type. // TODO: Check return expressions of generators when return type tracking is added @@ -16925,9 +17126,10 @@ namespace ts { } } else if (func.type || isGetAccessorWithAnnotatedSetAccessor(func)) { - if (isAsyncFunctionLike(func)) { - const promisedType = getPromisedType(returnType); - const awaitedType = checkAwaitedType(exprType, node.expression || node, Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member); + if (functionFlags & FunctionFlags.Async) { // Async function + // TODO(rbuckton): resume here + const promisedType = getPromisedTypeOfPromise(returnType); + const awaitedType = checkAwaitedType(exprType, node.expression || node); if (promisedType) { // If the function has a return type, but promisedType is // undefined, an error will be reported in checkAsyncFunctionReturnType @@ -19747,23 +19949,27 @@ namespace ts { globalRegExpType = getGlobalType("RegExp"); jsxElementType = getExportedTypeFromNamespace("JSX", JsxNames.Element); - getGlobalClassDecoratorType = memoize(() => getGlobalType("ClassDecorator")); - getGlobalPropertyDecoratorType = memoize(() => getGlobalType("PropertyDecorator")); - getGlobalMethodDecoratorType = memoize(() => getGlobalType("MethodDecorator")); - getGlobalParameterDecoratorType = memoize(() => getGlobalType("ParameterDecorator")); getGlobalTypedPropertyDescriptorType = memoize(() => getGlobalType("TypedPropertyDescriptor", /*arity*/ 1)); getGlobalESSymbolConstructorSymbol = memoize(() => getGlobalValueSymbol("Symbol")); getGlobalPromiseType = memoize(() => getGlobalType("Promise", /*arity*/ 1)); tryGetGlobalPromiseType = memoize(() => getGlobalSymbol("Promise", SymbolFlags.Type, /*diagnostic*/ undefined) && getGlobalPromiseType()); - getGlobalPromiseLikeType = memoize(() => getGlobalType("PromiseLike", /*arity*/ 1)); - getInstantiatedGlobalPromiseLikeType = memoize(createInstantiatedPromiseLikeType); getGlobalPromiseConstructorSymbol = memoize(() => getGlobalValueSymbol("Promise")); tryGetGlobalPromiseConstructorSymbol = memoize(() => getGlobalSymbol("Promise", SymbolFlags.Value, /*diagnostic*/ undefined) && getGlobalPromiseConstructorSymbol()); getGlobalPromiseConstructorLikeType = memoize(() => getGlobalType("PromiseConstructorLike")); - getGlobalThenableType = memoize(createThenableType); getGlobalTemplateStringsArrayType = memoize(() => getGlobalType("TemplateStringsArray")); + if (languageVersion >= ScriptTarget.ES2017) { + getGlobalAsyncIteratorType = memoize(() => getGlobalType("AsyncIterator", /*arity*/ 1)); + getGlobalAsyncIterableType = memoize(() => getGlobalType("AsyncIterable", /*arity*/ 1)); + getGlobalAsyncIterableIteratorType = memoize(() => getGlobalType("AsyncIterableIterator", /*arity*/ 1)); + } + else { + getGlobalAsyncIteratorType = memoize(() => emptyGenericType); + getGlobalAsyncIterableType = memoize(() => emptyGenericType); + getGlobalAsyncIterableIteratorType = memoize(() => emptyGenericType); + } + if (languageVersion >= ScriptTarget.ES2015) { getGlobalESSymbolType = memoize(() => getGlobalType("Symbol")); getGlobalIterableType = memoize(() => getGlobalType("Iterable", /*arity*/ 1)); @@ -19830,28 +20036,6 @@ namespace ts { } } - function createInstantiatedPromiseLikeType(): ObjectType { - const promiseLikeType = getGlobalPromiseLikeType(); - if (promiseLikeType !== emptyGenericType) { - return createTypeReference(promiseLikeType, [anyType]); - } - - return emptyObjectType; - } - - function createThenableType() { - // build the thenable type that is used to verify against a non-promise "thenable" operand to `await`. - const thenPropertySymbol = createSymbol(SymbolFlags.Transient | SymbolFlags.Property, "then"); - getSymbolLinks(thenPropertySymbol).type = globalFunctionType; - - const thenableType = createObjectType(ObjectFlags.Anonymous); - thenableType.properties = [thenPropertySymbol]; - thenableType.members = createSymbolTable(thenableType.properties); - thenableType.callSignatures = []; - thenableType.constructSignatures = []; - return thenableType; - } - // GRAMMAR CHECKING function checkGrammarDecorators(node: Node): boolean { if (!node.decorators) { @@ -20143,10 +20327,7 @@ namespace ts { case SyntaxKind.FunctionDeclaration: case SyntaxKind.FunctionExpression: case SyntaxKind.ArrowFunction: - if (!(node).asteriskToken) { - return false; - } - break; + return false; } return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 9a353e6fb3651..b5b1832a34753 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -175,15 +175,15 @@ "category": "Error", "code": 1057 }, - "Operand for 'await' does not have a valid callable 'then' member.": { + "Type used as operand to 'await' or the return type of an async function must not contain a callable 'then' member if it is not a promise.": { "category": "Error", "code": 1058 }, - "Return expression in async function does not have a valid callable 'then' member.": { + "A promise must have a 'then' method.": { "category": "Error", "code": 1059 }, - "Expression body for async arrow function does not have a valid callable 'then' member.": { + "The first parameter of the 'then' method of a promise must be a callback.": { "category": "Error", "code": 1060 }, @@ -191,7 +191,7 @@ "category": "Error", "code": 1061 }, - "{0} is referenced directly or indirectly in the fulfillment callback of its own 'then' method.": { + "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method.": { "category": "Error", "code": 1062 }, @@ -1611,6 +1611,10 @@ "category": "Error", "code": 2503 }, + "Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator.": { + "category": "Error", + "code": 2504 + }, "A generator cannot have a 'void' type annotation.": { "category": "Error", "code": 2505 @@ -1667,6 +1671,10 @@ "category": "Error", "code": 2518 }, + "An async iterator must have a 'next()' method.": { + "category": "Error", + "code": 2519 + }, "Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.": { "category": "Error", "code": 2520 @@ -1759,6 +1767,10 @@ "category": "Error", "code": 2542 }, + "The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property.": { + "category": "Error", + "code": 2543 + }, "JSX element attributes type '{0}' may not be a union type.": { "category": "Error", "code": 2600 diff --git a/src/compiler/transformers/es2017.ts b/src/compiler/transformers/es2017.ts index 548609d676cb0..1c401aa55fcac 100644 --- a/src/compiler/transformers/es2017.ts +++ b/src/compiler/transformers/es2017.ts @@ -133,7 +133,7 @@ namespace ts { * @param node The method node. */ function visitMethodDeclaration(node: MethodDeclaration) { - if (!isAsyncFunctionLike(node)) { + if (!isAsyncFunction(node)) { return node; } const method = createMethod( @@ -166,7 +166,7 @@ namespace ts { * @param node The function node. */ function visitFunctionDeclaration(node: FunctionDeclaration): VisitResult { - if (!isAsyncFunctionLike(node)) { + if (!isAsyncFunction(node)) { return node; } const func = createFunctionDeclaration( @@ -194,7 +194,7 @@ namespace ts { * @param node The function expression node. */ function visitFunctionExpression(node: FunctionExpression): Expression { - if (!isAsyncFunctionLike(node)) { + if (!isAsyncFunction(node)) { return node; } if (nodeIsMissing(node.body)) { @@ -223,7 +223,7 @@ namespace ts { * - The node is marked async */ function visitArrowFunction(node: ArrowFunction) { - if (!isAsyncFunctionLike(node)) { + if (!isAsyncFunction(node)) { return node; } const func = createArrowFunction( diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 1362746ba57a8..5ca16cd9e2155 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -1670,7 +1670,7 @@ namespace ts { if (isFunctionLike(node) && node.type) { return serializeTypeNode(node.type); } - else if (isAsyncFunctionLike(node)) { + else if (isAsyncFunction(node)) { return createIdentifier("Promise"); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 5536a818df536..85ecbd2a6c371 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2862,8 +2862,16 @@ namespace ts { // Just a place to cache element types of iterables and iterators /* @internal */ export interface IterableOrIteratorType extends ObjectType, UnionType { - iterableElementType?: Type; - iteratorElementType?: Type; + iteratedTypeOfIterable?: Type; + iteratedTypeOfIterator?: Type; + iteratedTypeOfAsyncIterable?: Type; + iteratedTypeOfAsyncIterator?: Type; + } + + /* @internal */ + export interface PromiseOrAwaitableType extends ObjectType, UnionType { + promisedTypeOfPromise?: Type; + awaitedTypeOfType?: Type; } // Type parameters (TypeFlags.TypeParameter) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 299f91be6625c..9d827ae83c239 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1855,8 +1855,50 @@ namespace ts { return SyntaxKind.FirstTriviaToken <= token && token <= SyntaxKind.LastTriviaToken; } - export function isAsyncFunctionLike(node: Node): boolean { - return isFunctionLike(node) && hasModifier(node, ModifierFlags.Async) && !isAccessor(node); + export const enum FunctionFlags { + Normal = 0, + Generator = 1 << 0, + Async = 1 << 1, + AsyncGenerator = Async | Generator, + Invalid = 1 << 2, + InvalidGenerator = Generator | Invalid, + } + + export function getFunctionFlags(node: FunctionLikeDeclaration) { + let flags = FunctionFlags.Normal; + switch (node.kind) { + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.FunctionExpression: + case SyntaxKind.MethodDeclaration: + if (node.asteriskToken) { + flags |= FunctionFlags.Generator; + } + // fall through + case SyntaxKind.ArrowFunction: + if (hasModifier(node, ModifierFlags.Async)) { + flags |= FunctionFlags.Async; + } + break; + } + + if (!node.body) { + flags |= FunctionFlags.Invalid; + } + + return flags; + } + + export function isAsyncFunction(node: Node): boolean { + switch (node.kind) { + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.FunctionExpression: + case SyntaxKind.ArrowFunction: + case SyntaxKind.MethodDeclaration: + return (node).body !== undefined + && (node).asteriskToken === undefined + && hasModifier(node, ModifierFlags.Async); + } + return false; } export function isStringOrNumericLiteral(kind: SyntaxKind): boolean { diff --git a/src/lib/es2017.asynciterable.d.ts b/src/lib/es2017.asynciterable.d.ts new file mode 100644 index 0000000000000..623f6850682be --- /dev/null +++ b/src/lib/es2017.asynciterable.d.ts @@ -0,0 +1,23 @@ +/// + +interface SymbolConstructor { + /** + * A method that returns the default async iterator for an object. Called by the semantics of + * the for-await-of statement. + */ + readonly asyncIterator: symbol; +} + +interface AsyncIterator { + next(value?: any): Promise>; + return?(value?: any): Promise>; + throw?(e?: any): Promise>; +} + +interface AsyncIterable { + [Symbol.asyncIterator](): AsyncIterator; +} + +interface AsyncIterableIterator extends AsyncIterator { + [Symbol.asyncIterator](): AsyncIterableIterator; +} \ No newline at end of file diff --git a/src/lib/es2017.d.ts b/src/lib/es2017.d.ts index 13f9d93f44457..a4145fb5cbf30 100644 --- a/src/lib/es2017.d.ts +++ b/src/lib/es2017.d.ts @@ -1,3 +1,4 @@ /// /// -/// \ No newline at end of file +/// +/// \ No newline at end of file From bd867785bc199dabf0637f96510d3dc5e91b284c Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 9 Nov 2016 14:40:47 -0800 Subject: [PATCH 06/35] type checking for pseudoiterable --- src/compiler/checker.ts | 202 ++++++++++++++------- src/compiler/commandLineParser.ts | 2 + src/compiler/diagnosticMessages.json | 4 +- src/compiler/factory.ts | 23 +-- src/compiler/transformers/destructuring.ts | 47 +++-- src/compiler/transformers/es2015.ts | 3 +- src/compiler/transformers/generators.ts | 16 +- src/compiler/utilities.ts | 4 + src/lib/es2015.iterable.d.ts | 105 +++++------ src/lib/es5.d.ts | 10 +- 10 files changed, 240 insertions(+), 176 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f79f0e33d8065..d8d6a7fff654d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10,6 +10,25 @@ namespace ts { let nextMergeId = 1; let nextFlowId = 1; + const enum EmitHelper { + Extends = 1 << 0, + Assign = 1 << 1, + Decorate = 1 << 2, + Metadata = 1 << 3, + Param = 1 << 4, + Awaiter = 1 << 5, + Generator = 1 << 6, + Values = 1 << 7, + Step = 1 << 8, + Close = 1 << 9, + Read = 1 << 10, + Spread = 1 << 11, + ForOfIncludes = Values | Step | Close, + SpreadIncludes = Read | Spread, + FirstEmitHelper = Extends, + LastEmitHelper = Spread + } + export function getNodeId(node: Node): number { if (!node.id) { node.id = nextNodeId; @@ -38,6 +57,8 @@ namespace ts { // is because diagnostics can be quite expensive, and we want to allow hosts to bail out if // they no longer need the information (for example, if the user started editing again). let cancellationToken: CancellationToken; + let requestedExternalHelpers: EmitHelper; + let externalHelpersModule: Symbol; const Symbol = objectAllocator.getSymbolConstructor(); const Type = objectAllocator.getTypeConstructor(); @@ -10430,7 +10451,7 @@ namespace ts { const index = indexOf(arrayLiteral.elements, node); return getTypeOfPropertyOfContextualType(type, "" + index) || getIndexTypeOfContextualType(type, IndexKind.Number) - || getIteratedTypeOrElementType(type, /*errorNode*/ undefined, /*allowStringInput*/ false); + || getIteratedTypeOrElementType(type, /*errorNode*/ undefined, /*allowStringInput*/ false, /*checkAssignability*/ false); } return undefined; } @@ -10649,6 +10670,10 @@ namespace ts { // with this type. It is neither affected by it, nor does it propagate it to its operand. // So the fact that contextualMapper is passed is not important, because the operand of a spread // element is not contextually typed. + if (languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.SpreadIncludes); + } + const arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, /*allowStringInput*/ false); } @@ -10679,7 +10704,7 @@ namespace ts { // if there is no index type / iterated type. const restArrayType = checkExpression((e).expression, contextualMapper); const restElementType = getIndexTypeOfType(restArrayType, IndexKind.Number) || - getIteratedTypeOrElementType(restArrayType, /*errorNode*/ undefined, /*allowStringInput*/ false); + getIteratedTypeOrElementType(restArrayType, /*errorNode*/ undefined, /*allowStringInput*/ false, /*checkAssignability*/ false); if (restElementType) { elementTypes.push(restElementType); } @@ -11024,6 +11049,10 @@ namespace ts { function checkJsxSpreadAttribute(node: JsxSpreadAttribute, elementAttributesType: Type, nameTable: Map) { const type = checkExpression(node.expression); const props = getPropertiesOfType(type); + if (compilerOptions.jsx === JsxEmit.React) { + checkEmitHelpers(node, EmitHelper.Assign); + } + for (const prop of props) { // Is there a corresponding property in the element attributes type? Skip checking of properties // that have already been assigned to, as these are not actually pushed into the resulting type @@ -13791,6 +13820,10 @@ namespace ts { } function checkArrayLiteralAssignment(node: ArrayLiteralExpression, sourceType: Type, contextualMapper?: TypeMapper): Type { + if (languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Read); + } + // This elementType will be used if the specific property corresponding to this index is not // present (aka the tuple element property). This call also checks that the parentType is in // fact an iterable or array (depending on target language). @@ -14206,6 +14239,10 @@ namespace ts { } } + if (node.asteriskToken && languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Values); + } + if (node.expression) { const func = getContainingFunction(node); // If the user's code is syntactically correct, the func should always have a star. After all, @@ -14666,6 +14703,17 @@ namespace ts { checkGrammarFunctionLikeDeclaration(node); } + if (isAsyncFunctionLike(node)) { + checkEmitHelpers(node, EmitHelper.Awaiter); + if (languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Generator); + } + } + + if (isSyntacticallyValidGenerator(node) && languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Generator); + } + checkTypeParameters(node.typeParameters); forEach(node.parameters, checkParameter); @@ -15792,7 +15840,15 @@ namespace ts { error(node, Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning); } + checkEmitHelpers(node, EmitHelper.Decorate); + + if (node.kind === SyntaxKind.Parameter) { + checkEmitHelpers(node, EmitHelper.Param); + } + if (compilerOptions.emitDecoratorMetadata) { + checkEmitHelpers(node, EmitHelper.Metadata); + // we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator. switch (node.kind) { case SyntaxKind.ClassDeclaration: @@ -16374,6 +16430,10 @@ namespace ts { // For a binding pattern, check contained binding elements if (isBindingPattern(node.name)) { + if (node.name.kind === SyntaxKind.ArrayBindingPattern && languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Read); + } + forEach((node.name).elements, checkSourceElement); } // For a parameter declaration with an initializer, error and exit if the containing function doesn't have a body @@ -16545,6 +16605,10 @@ namespace ts { function checkForOfStatement(node: ForOfStatement): void { checkGrammarForInOrForOfStatement(node); + if (node.kind === SyntaxKind.ForOfStatement && languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.ForOfIncludes); + } + // Check the LHS and RHS // If the LHS is a declaration, just check it as a variable declaration, which will in turn check the RHS // via checkRightHandSideOfForOf. @@ -16651,7 +16715,8 @@ namespace ts { if (isTypeAny(inputType)) { return inputType; } - return getIteratedTypeOrElementType(inputType, errorNode, allowStringInput) || unknownType; + + return getIteratedTypeOrElementType(inputType, errorNode, allowStringInput, /*checkAssignability*/ true) || anyType; } /** @@ -16659,13 +16724,17 @@ namespace ts { * we want to get the iterated type of an iterable for ES2015 or later, or the iterated type * of a pseudo-iterable or element type of an array like for ES2015 or earlier. */ - function getIteratedTypeOrElementType(inputType: Type, errorNode: Node, allowStringInput: boolean): Type { + function getIteratedTypeOrElementType(inputType: Type, errorNode: Node, allowStringInput: boolean, checkAssignability: boolean): Type { if (languageVersion >= ScriptTarget.ES2015) { - return getIteratedTypeOfIterable(inputType, errorNode); + const iteratedType = getIteratedTypeOfIterable(inputType, errorNode); + if (checkAssignability && errorNode && iteratedType) { + checkTypeAssignableTo(inputType, createIterableType(iteratedType), errorNode); + } + return iteratedType; } return allowStringInput - ? getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(inputType, errorNode) - : getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType, errorNode); + ? getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(inputType, errorNode, checkAssignability) + : getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType, errorNode, checkAssignability); } /** @@ -16821,12 +16890,15 @@ namespace ts { * 1. Some constituent is neither a string nor an array. * 2. Some constituent is a string and target is less than ES5 (because in ES3 string is not indexable). */ - function getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(arrayOrStringType: Type, errorNode: Node): Type { + function getIteratedTypeOfPseudoIterableOrElementTypeOfArrayOrString(arrayOrStringType: Type, errorNode: Node, checkAssignability: boolean): Type { Debug.assert(languageVersion < ScriptTarget.ES2015); - const elementType = getIteratedTypeOfIterable(arrayOrStringType, /*errorNode*/ undefined); - if (elementType) { - return elementType; + const iteratedType = getIteratedTypeOfIterable(arrayOrStringType, /*errorNode*/ undefined); + if (iteratedType) { + if (checkAssignability && errorNode) { + checkTypeAssignableTo(arrayOrStringType, createIterableType(iteratedType), errorNode); + } + return iteratedType; } // After we remove all types that are StringLike, we will know if there was a string constituent @@ -16863,8 +16935,8 @@ namespace ts { // But if the input was just number, we want to say that number is not an array type // or a string type. const diagnostic = hasStringConstituent - ? Diagnostics.Type_0_is_not_an_array_type - : Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; + ? Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_an_iterator_method_that_returns_an_iterator + : Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_an_iterator_method_that_returns_an_iterator; error(errorNode, diagnostic, typeToString(arrayType)); } } @@ -16884,18 +16956,21 @@ namespace ts { return arrayElementType; } - function getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType: Type, errorNode: Node): Type { + function getIteratedTypeOfPseudoIterableOrElementTypeOfArray(inputType: Type, errorNode: Node, checkAssignability: boolean): Type { Debug.assert(languageVersion < ScriptTarget.ES2015); - const elementType = getIteratedTypeOfIterable(inputType, /*errorNode*/ undefined); - if (elementType) { - return elementType; + const iteratedType = getIteratedTypeOfIterable(inputType, /*errorNode*/ undefined); + if (iteratedType) { + if (checkAssignability && errorNode) { + checkTypeAssignableTo(inputType, createIterableType(iteratedType), errorNode); + } + return iteratedType; } if (isArrayLikeType(inputType)) { return getIndexTypeOfType(inputType, IndexKind.Number); } if (errorNode) { - error(errorNode, Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + error(errorNode, Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_an_iterator_method_that_returns_an_iterator, typeToString(inputType)); } return undefined; } @@ -17281,6 +17356,10 @@ namespace ts { const baseTypeNode = getClassExtendsHeritageClauseElement(node); if (baseTypeNode) { + if (languageVersion < ScriptTarget.ES2015) { + checkEmitHelpers(node, EmitHelper.Extends); + } + const baseTypes = getBaseTypes(type); if (baseTypes.length && produceDiagnostics) { const baseType = baseTypes[0]; @@ -19714,8 +19793,6 @@ namespace ts { // Initialize global symbol table let augmentations: LiteralExpression[][]; - let requestedExternalEmitHelpers: NodeFlags = 0; - let firstFileRequestingExternalHelpers: SourceFile; for (const file of host.getSourceFiles()) { if (!isExternalOrCommonJsModule(file)) { mergeSymbolTable(globals, file.locals); @@ -19735,15 +19812,6 @@ namespace ts { } } } - if ((compilerOptions.isolatedModules || isExternalModule(file)) && !file.isDeclarationFile) { - const fileRequestedExternalEmitHelpers = file.flags & NodeFlags.EmitHelperFlags; - if (fileRequestedExternalEmitHelpers) { - requestedExternalEmitHelpers |= fileRequestedExternalEmitHelpers; - if (firstFileRequestingExternalHelpers === undefined) { - firstFileRequestingExternalHelpers = file; - } - } - } } if (augmentations) { @@ -19808,51 +19876,53 @@ namespace ts { const symbol = getGlobalSymbol("ReadonlyArray", SymbolFlags.Type, /*diagnostic*/ undefined); globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, /*arity*/ 1); anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType; + } - // If we have specified that we are importing helpers, we should report global - // errors if we cannot resolve the helpers external module, or if it does not have - // the necessary helpers exported. - if (compilerOptions.importHelpers && firstFileRequestingExternalHelpers) { - // Find the first reference to the helpers module. - const helpersModule = resolveExternalModule( - firstFileRequestingExternalHelpers, - externalHelpersModuleNameText, - Diagnostics.Cannot_find_module_0, - /*errorNode*/ undefined); - - // If we found the module, report errors if it does not have the necessary exports. - if (helpersModule) { - const exports = helpersModule.exports; - if (requestedExternalEmitHelpers & NodeFlags.HasClassExtends && languageVersion < ScriptTarget.ES2015) { - verifyHelperSymbol(exports, "__extends", SymbolFlags.Value); - } - if (requestedExternalEmitHelpers & NodeFlags.HasJsxSpreadAttributes && compilerOptions.jsx !== JsxEmit.Preserve) { - verifyHelperSymbol(exports, "__assign", SymbolFlags.Value); - } - if (requestedExternalEmitHelpers & NodeFlags.HasDecorators) { - verifyHelperSymbol(exports, "__decorate", SymbolFlags.Value); - if (compilerOptions.emitDecoratorMetadata) { - verifyHelperSymbol(exports, "__metadata", SymbolFlags.Value); - } - } - if (requestedExternalEmitHelpers & NodeFlags.HasParamDecorators) { - verifyHelperSymbol(exports, "__param", SymbolFlags.Value); - } - if (requestedExternalEmitHelpers & NodeFlags.HasAsyncFunctions) { - verifyHelperSymbol(exports, "__awaiter", SymbolFlags.Value); - if (languageVersion < ScriptTarget.ES2015) { - verifyHelperSymbol(exports, "__generator", SymbolFlags.Value); + function checkEmitHelpers(node: Node, helpers: EmitHelper) { + if ((requestedExternalHelpers & helpers) !== helpers && compilerOptions.importHelpers) { + const sourceFile = getSourceFileOfNode(node); + if (isEffectiveExternalModule(sourceFile, compilerOptions)) { + const helpersModule = resolveHelpersModule(sourceFile); + if (helpersModule !== unknownSymbol) { + const uncheckedHelpers = helpers & ~requestedExternalHelpers; + for (let helper = EmitHelper.FirstEmitHelper; helper <= EmitHelper.LastEmitHelper; helper <<= 1) { + if (uncheckedHelpers & helper) { + const name = getHelperName(helper); + const symbol = getSymbol(helpersModule.exports, escapeIdentifier(name), SymbolFlags.Value); + if (!symbol) { + diagnostics.add(createFileDiagnostic(sourceFile, 0, 0, Diagnostics.Module_0_has_no_exported_member_1, externalHelpersModuleNameText, name)); + } + } } } + requestedExternalHelpers |= helpers; } } } - function verifyHelperSymbol(symbols: SymbolTable, name: string, meaning: SymbolFlags) { - const symbol = getSymbol(symbols, escapeIdentifier(name), meaning); - if (!symbol) { - error(/*location*/ undefined, Diagnostics.Module_0_has_no_exported_member_1, externalHelpersModuleNameText, name); + function getHelperName(helper: EmitHelper) { + switch (helper) { + case EmitHelper.Extends: return "__extends"; + case EmitHelper.Assign: return "__assign"; + case EmitHelper.Decorate: return "__decorate"; + case EmitHelper.Metadata: return "__metadata"; + case EmitHelper.Param: return "__param"; + case EmitHelper.Awaiter: return "__awaiter"; + case EmitHelper.Generator: return "__generator"; + case EmitHelper.Values: return "__values"; + case EmitHelper.Step: return "__step"; + case EmitHelper.Close: return "__close"; + case EmitHelper.Read: return "__read"; + case EmitHelper.Spread: return "__spread"; + } + } + + function resolveHelpersModule(node: SourceFile) { + if (!externalHelpersModule) { + externalHelpersModule = resolveExternalModule(node, externalHelpersModuleNameText, Diagnostics.Cannot_find_module_0, node) || unknownSymbol; } + + return externalHelpersModule; } function createInstantiatedPromiseLikeType(): ObjectType { diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 50399fd5c38e7..fd5be3d5449ff 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -417,6 +417,8 @@ namespace ts { "webworker": "lib.webworker.d.ts", "scripthost": "lib.scripthost.d.ts", // ES2015 Or ESNext By-feature options + "iterator": "lib.iterator.d.ts", + "pseudoiterable": "lib.pseudoiterable.d.ts", "es2015.core": "lib.es2015.core.d.ts", "es2015.collection": "lib.es2015.collection.d.ts", "es2015.generator": "lib.es2015.generator.d.ts", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 9a353e6fb3651..920da07a0cecf 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1451,7 +1451,7 @@ "category": "Error", "code": 2460 }, - "Type '{0}' is not an array type.": { + "Type '{0}' is not an array type or does not have an '__iterator__()' method that returns an iterator.": { "category": "Error", "code": 2461 }, @@ -1575,7 +1575,7 @@ "category": "Error", "code": 2494 }, - "Type '{0}' is not an array type or a string type.": { + "Type '{0}' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator.": { "category": "Error", "code": 2495 }, diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 020e60989a28e..4008239543f6c 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -1749,7 +1749,7 @@ namespace ts { text: ` var __close = (this && this.__close) || function (r) { var m = !(r && r.done) && r.iterator["return"]; - if (m) m.call(r.iterator); + if (m) return m.call(r.iterator); };` }; @@ -1768,20 +1768,17 @@ namespace ts { scoped: false, text: ` var __read = (this && this.__read) || function (o, n) { - var m = o.__iterator__; - if (!m) return o; - var r = { iterator: m.call(o) }, ar = [], e; - try { while ((n === void 0 || n-- > 0) && __step(r)) ar.push(r.result.value); } + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } - finally { try { __close(r); } finally { if (e) throw e.error; } } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } return ar; };` }; export function createReadHelper(context: TransformationContext, iteratorRecord: Expression, count: number | undefined, location?: TextRange) { - context.requestEmitHelper(stepHelper); context.requestEmitHelper(readHelper); - context.requestEmitHelper(closeHelper); return createCall( getHelperName("__read"), /*typeArguments*/ undefined, @@ -1815,10 +1812,6 @@ namespace ts { // Utilities - export function toFunctionBody(node: ConciseBody) { - return isBlock(node) ? node : createBlock([createReturn(node, /*location*/ node)], /*location*/ node); - } - export interface CallBinding { target: LeftHandSideExpression; thisArg: Expression; @@ -1858,6 +1851,10 @@ namespace ts { thisArg = createThis(); target = languageVersion < ScriptTarget.ES2015 ? createIdentifier("_super", /*location*/ callee) : callee; } + else if (getEmitFlags(callee) & EmitFlags.HelperName) { + thisArg = createVoidZero(); + target = parenthesizeForAccess(callee); + } else { switch (callee.kind) { case SyntaxKind.PropertyAccessExpression: { @@ -2164,8 +2161,6 @@ namespace ts { return qualifiedName; } - // Utilities - export function convertToFunctionBody(node: ConciseBody) { return isBlock(node) ? node : createBlock([createReturn(node, /*location*/ node)], /*location*/ node); } diff --git a/src/compiler/transformers/destructuring.ts b/src/compiler/transformers/destructuring.ts index ba3f97f0d4d8a..8eb123bf56b66 100644 --- a/src/compiler/transformers/destructuring.ts +++ b/src/compiler/transformers/destructuring.ts @@ -247,16 +247,30 @@ namespace ts { if (isEffectiveBindingPattern(bindingTarget)) { const elements = getElementsOfEffectiveBindingPattern(bindingTarget); const numElements = elements.length; - if (isEffectiveObjectBindingPattern(bindingTarget)) { - if (numElements !== 1) { - // For anything other than a single-element destructuring we need to generate a temporary - // to ensure value is evaluated exactly once. Additionally, if we have zero elements - // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, - // so in that case, we'll intentionally create that temporary. - const reuseIdentifierExpressions = !isDeclarationBindingElement(bindingElement) || numElements !== 0; - boundValue = ensureIdentifier(boundValue, reuseIdentifierExpressions, emitTempVariableAssignment, location); - } + if (isEffectiveArrayBindingPattern(bindingTarget) && !isArrayLiteralExpression(boundValue)) { + // Read the elements of the iterable into an array + boundValue = emitTempVariableAssignment( + createReadHelper( + context, + boundValue, + isEffectiveBindingElementWithRest(elements[numElements - 1]) + ? undefined + : numElements, + location + ), + location + ); + } + else if (numElements !== 1) { + // For anything other than a single-element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. Additionally, if we have zero elements + // we need to emit *something* to ensure that in case a 'var' keyword was already emitted, + // so in that case, we'll intentionally create that temporary. + const reuseIdentifierExpressions = !isDeclarationBindingElement(bindingElement) || numElements !== 0; + boundValue = ensureIdentifier(boundValue, reuseIdentifierExpressions, emitTempVariableAssignment, location); + } + if (isEffectiveObjectBindingPattern(bindingTarget)) { for (const element of elements) { // Rewrite element to a declaration with an initializer that fetches property flattenEffectiveBindingElement( @@ -275,21 +289,6 @@ namespace ts { } } else { - if (!isArrayLiteralExpression(boundValue)) { - // Read the elements of the iterable into an array - boundValue = emitTempVariableAssignment( - createReadHelper( - context, - boundValue, - isEffectiveBindingElementWithRest(elements[numElements - 1]) - ? undefined - : numElements, - location - ), - location - ); - } - for (let i = 0; i < numElements; i++) { const element = elements[i]; if (isOmittedExpression(element)) { diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index b958bb4a5205c..a988f06691c57 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -2079,7 +2079,8 @@ namespace ts { // evaluated on every iteration. const assignment = createAssignment(node.initializer, boundValue); if (isDestructuringAssignment(assignment)) { - statements.push(visitNode(createStatement(assignment), visitor, isStatement)); + aggregateTransformFlags(assignment); + statements.push(createStatement(visitBinaryExpression(assignment, /*needsDestructuringValue*/ false))); } else { assignment.end = node.initializer.end; diff --git a/src/compiler/transformers/generators.ts b/src/compiler/transformers/generators.ts index 5c87377c64297..df750bb41e77a 100644 --- a/src/compiler/transformers/generators.ts +++ b/src/compiler/transformers/generators.ts @@ -969,24 +969,29 @@ namespace ts { // ar = _a.concat([%sent%, 2]); const numInitialElements = countInitialNodesWithoutYield(elements); - const temp = declareLocal(); - let hasAssignedTemp = false; + + let temp: Identifier; if (numInitialElements > 0) { + temp = declareLocal(); emitAssignment(temp, createArrayLiteral( visitNodes(elements, visitor, isExpression, 0, numInitialElements) ) ); - hasAssignedTemp = true; } const expressions = reduceLeft(elements, reduceElement, [], numInitialElements); - return hasAssignedTemp + return temp ? createArrayConcat(temp, [createArrayLiteral(expressions)]) : createArrayLiteral(expressions); function reduceElement(expressions: Expression[], element: Expression) { if (containsYield(element) && expressions.length > 0) { + const hasAssignedTemp = temp !== undefined; + if (!temp) { + temp = declareLocal(); + } + emitAssignment( temp, hasAssignedTemp @@ -996,7 +1001,6 @@ namespace ts { ) : createArrayLiteral(expressions) ); - hasAssignedTemp = true; expressions = []; } @@ -1930,7 +1934,7 @@ namespace ts { function cacheExpression(node: Expression): Identifier { let temp: Identifier; - if (isGeneratedIdentifier(node)) { + if (isGeneratedIdentifier(node) || getEmitFlags(node) & EmitFlags.HelperName) { return node; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 407e900e46b21..75bd642f2b9d6 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3582,6 +3582,10 @@ namespace ts { return node.symbol && getDeclarationOfKind(node.symbol, kind) === node; } + export function isEffectiveExternalModule(node: SourceFile, compilerOptions: CompilerOptions) { + return isExternalModule(node) || compilerOptions.isolatedModules; + } + // Node tests // // All node tests in the following list should *not* reference parent pointers so that diff --git a/src/lib/es2015.iterable.d.ts b/src/lib/es2015.iterable.d.ts index de339e2bf2cc4..cfad25b53ecc3 100644 --- a/src/lib/es2015.iterable.d.ts +++ b/src/lib/es2015.iterable.d.ts @@ -1,24 +1,13 @@ /// interface SymbolConstructor { - /** - * A method that returns the default iterator for an object. Called by the semantics of the + /** + * A method that returns the default iterator for an object. Called by the semantics of the * for-of statement. */ readonly iterator: symbol; } -interface IteratorResult { - done: boolean; - value: T; -} - -interface Iterator { - next(value?: any): IteratorResult; - return?(value?: any): IteratorResult; - throw?(e?: any): IteratorResult; -} - interface Iterable { [Symbol.iterator](): Iterator; } @@ -31,17 +20,17 @@ interface Array { /** Iterator */ [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, T]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -55,7 +44,7 @@ interface ArrayConstructor { * @param thisArg Value of 'this' used to invoke the mapfn. */ from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): Array; - + /** * Creates an array from an iterable object. * @param iterable An iterable object to convert to an array. @@ -67,17 +56,17 @@ interface ReadonlyArray { /** Iterator */ [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, T]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -126,15 +115,15 @@ interface Promise { } interface PromiseConstructor { /** - * Creates a Promise that is resolved with an array of results when all of the provided Promises + * Creates a Promise that is resolved with an array of results when all of the provided Promises * resolve, or rejected when any Promise is rejected. * @param values An array of Promises. * @returns A new Promise. */ all(values: Iterable>): Promise; - + /** - * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved * or rejected. * @param values An array of Promises. * @returns A new Promise. @@ -152,20 +141,20 @@ interface String { } /** - * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested + * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ interface Int8Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -184,20 +173,20 @@ interface Int8ArrayConstructor { } /** - * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the + * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint8Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -216,22 +205,22 @@ interface Uint8ArrayConstructor { } /** - * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. + * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. * If the requested number of bytes could not be allocated an exception is raised. */ interface Uint8ClampedArray { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -251,22 +240,22 @@ interface Uint8ClampedArrayConstructor { } /** - * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the + * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Int16Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -285,20 +274,20 @@ interface Int16ArrayConstructor { } /** - * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the + * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint16Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -317,20 +306,20 @@ interface Uint16ArrayConstructor { } /** - * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the + * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Int32Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -349,20 +338,20 @@ interface Int32ArrayConstructor { } /** - * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the + * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint32Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -386,15 +375,15 @@ interface Uint32ArrayConstructor { */ interface Float32Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; @@ -413,20 +402,20 @@ interface Float32ArrayConstructor { } /** - * A typed array of 64-bit float values. The contents are initialized to 0. If the requested + * A typed array of 64-bit float values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ interface Float64Array { [Symbol.iterator](): IterableIterator; - /** + /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; - /** + /** * Returns an list of keys in the array */ keys(): IterableIterator; - /** + /** * Returns an list of values in the array */ values(): IterableIterator; diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index cbb92157671b2..b024f62cda14c 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1338,11 +1338,6 @@ interface PromiseLike { onrejected: (reason: any) => TResult2 | PromiseLike): PromiseLike; } -interface ArrayLike { - readonly length: number; - readonly [n: number]: T; -} - interface IteratorResult { done: boolean; value: T; @@ -1362,6 +1357,11 @@ interface PseudoIterableIterator extends Iterator { __iterator__(): PseudoIterableIterator; } +interface ArrayLike { + readonly length: number; + readonly [n: number]: T; +} + /** * Represents a raw buffer of binary data, which is used to store data for the * different typed arrays. ArrayBuffers cannot be read from or written to directly, From 549ac8f7ae42dfb069e5f079835a6013cb0bea6f Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 9 Nov 2016 14:41:11 -0800 Subject: [PATCH 07/35] Updated baselines --- .../reference/APISample_parseConfig.js | 24 +- .../reference/ES3For-ofTypeCheck1.js | 22 +- .../reference/ES3For-ofTypeCheck4.js | 22 +- .../reference/ES3For-ofTypeCheck6.js | 22 +- tests/baselines/reference/ES5For-of12.js | 11 +- tests/baselines/reference/ES5For-of24.js | 24 +- tests/baselines/reference/ES5For-of25.js | 26 +- tests/baselines/reference/ES5For-of25.js.map | 2 +- .../reference/ES5For-of25.sourcemap.txt | 189 +- .../reference/ES5For-of26.errors.txt | 4 +- tests/baselines/reference/ES5For-of26.js | 10 +- tests/baselines/reference/ES5For-of26.js.map | 2 +- .../reference/ES5For-of26.sourcemap.txt | 112 +- .../reference/ES5For-of28.errors.txt | 4 +- tests/baselines/reference/ES5For-of28.js | 10 +- .../reference/ES5For-of30.errors.txt | 4 +- tests/baselines/reference/ES5For-of30.js | 35 +- .../reference/ES5For-ofTypeCheck1.js | 22 +- .../reference/ES5For-ofTypeCheck10.errors.txt | 4 +- .../reference/ES5For-ofTypeCheck10.js | 22 +- .../reference/ES5For-ofTypeCheck11.js | 22 +- .../reference/ES5For-ofTypeCheck12.errors.txt | 4 +- .../reference/ES5For-ofTypeCheck12.js | 22 +- .../reference/ES5For-ofTypeCheck3.js | 22 +- .../reference/ES5For-ofTypeCheck4.js | 22 +- .../reference/ES5For-ofTypeCheck5.js | 22 +- .../reference/ES5For-ofTypeCheck6.js | 22 +- .../reference/ES5For-ofTypeCheck7.errors.txt | 4 +- .../reference/ES5For-ofTypeCheck7.js | 22 +- .../reference/ES5For-ofTypeCheck8.js | 22 +- .../reference/ES5For-ofTypeCheck9.errors.txt | 4 +- .../reference/ES5For-ofTypeCheck9.js | 22 +- tests/baselines/reference/ES5for-of32.js | 28 +- .../reference/FunctionDeclaration10_es6.js | 37 +- .../FunctionDeclaration11_es6.errors.txt | 8 - .../reference/FunctionDeclaration11_es6.js | 32 +- .../FunctionDeclaration11_es6.symbols | 4 + .../reference/FunctionDeclaration11_es6.types | 4 + .../reference/FunctionDeclaration12_es6.js | 31 +- .../FunctionDeclaration13_es6.errors.txt | 5 +- .../reference/FunctionDeclaration13_es6.js | 33 +- .../FunctionDeclaration1_es6.errors.txt | 8 - .../reference/FunctionDeclaration1_es6.js | 32 +- .../FunctionDeclaration1_es6.symbols | 4 + .../reference/FunctionDeclaration1_es6.types | 4 + .../reference/FunctionDeclaration5_es6.js | 31 +- .../FunctionDeclaration6_es6.errors.txt | 5 +- .../reference/FunctionDeclaration6_es6.js | 37 +- .../FunctionDeclaration7_es6.errors.txt | 8 +- .../reference/FunctionDeclaration7_es6.js | 42 +- .../FunctionDeclaration9_es6.errors.txt | 9 - .../reference/FunctionDeclaration9_es6.js | 42 +- .../FunctionDeclaration9_es6.symbols | 8 + .../reference/FunctionDeclaration9_es6.types | 10 + .../FunctionExpression1_es6.errors.txt | 7 - .../reference/FunctionExpression1_es6.js | 31 +- .../reference/FunctionExpression1_es6.symbols | 4 + .../reference/FunctionExpression1_es6.types | 5 + .../FunctionExpression2_es6.errors.txt | 7 - .../reference/FunctionExpression2_es6.js | 31 +- .../reference/FunctionExpression2_es6.symbols | 5 + .../reference/FunctionExpression2_es6.types | 6 + ...unctionPropertyAssignments1_es6.errors.txt | 7 - .../FunctionPropertyAssignments1_es6.js | 31 +- .../FunctionPropertyAssignments1_es6.symbols | 5 + .../FunctionPropertyAssignments1_es6.types | 6 + .../FunctionPropertyAssignments2_es6.js | 31 +- .../FunctionPropertyAssignments3_es6.js | 31 +- ...unctionPropertyAssignments5_es6.errors.txt | 5 +- .../FunctionPropertyAssignments5_es6.js | 31 +- .../FunctionPropertyAssignments6_es6.js | 31 +- .../MemberFunctionDeclaration1_es6.errors.txt | 9 - .../MemberFunctionDeclaration1_es6.js | 31 +- .../MemberFunctionDeclaration1_es6.symbols | 7 + .../MemberFunctionDeclaration1_es6.types | 7 + .../MemberFunctionDeclaration2_es6.errors.txt | 9 - .../MemberFunctionDeclaration2_es6.js | 31 +- .../MemberFunctionDeclaration2_es6.symbols | 7 + .../MemberFunctionDeclaration2_es6.types | 7 + .../MemberFunctionDeclaration3_es6.errors.txt | 5 +- .../MemberFunctionDeclaration3_es6.js | 31 +- .../MemberFunctionDeclaration4_es6.js | 31 +- .../MemberFunctionDeclaration7_es6.errors.txt | 9 - .../MemberFunctionDeclaration7_es6.js | 31 +- .../MemberFunctionDeclaration7_es6.symbols | 8 + .../MemberFunctionDeclaration7_es6.types | 8 + .../YieldExpression10_es6.errors.txt | 5 +- .../reference/YieldExpression10_es6.js | 38 +- .../YieldExpression11_es6.errors.txt | 5 +- .../reference/YieldExpression11_es6.js | 38 +- .../YieldExpression13_es6.errors.txt | 7 - .../reference/YieldExpression13_es6.js | 36 +- .../reference/YieldExpression13_es6.symbols | 4 + .../reference/YieldExpression13_es6.types | 5 + .../YieldExpression16_es6.errors.txt | 5 +- .../reference/YieldExpression16_es6.js | 32 +- .../YieldExpression19_es6.errors.txt | 16 - .../reference/YieldExpression19_es6.js | 43 +- .../reference/YieldExpression19_es6.symbols | 15 + .../reference/YieldExpression19_es6.types | 17 + .../reference/YieldExpression3_es6.errors.txt | 10 - .../reference/YieldExpression3_es6.js | 42 +- .../reference/YieldExpression3_es6.symbols | 7 + .../reference/YieldExpression3_es6.types | 10 + .../reference/YieldExpression4_es6.errors.txt | 10 - .../reference/YieldExpression4_es6.js | 42 +- .../reference/YieldExpression4_es6.symbols | 7 + .../reference/YieldExpression4_es6.types | 10 + .../reference/YieldExpression5_es6.js | 42 +- .../reference/YieldExpression6_es6.errors.txt | 9 +- .../reference/YieldExpression6_es6.js | 42 +- .../reference/YieldExpression7_es6.errors.txt | 9 - .../reference/YieldExpression7_es6.js | 38 +- .../reference/YieldExpression7_es6.symbols | 7 + .../reference/YieldExpression7_es6.types | 8 + .../reference/YieldExpression8_es6.errors.txt | 5 +- .../reference/YieldExpression8_es6.js | 38 +- .../reference/YieldExpression9_es6.errors.txt | 5 +- .../reference/YieldExpression9_es6.js | 38 +- .../reference/YieldStarExpression3_es6.js | 42 +- .../YieldStarExpression4_es6.errors.txt | 12 - .../reference/YieldStarExpression4_es6.js | 42 +- .../YieldStarExpression4_es6.symbols | 6 + .../reference/YieldStarExpression4_es6.types | 8 + .../argumentExpressionContextualTyping.js | 18 +- .../argumentsObjectIterator01_ES5.errors.txt | 4 +- .../argumentsObjectIterator01_ES5.js | 24 +- .../argumentsObjectIterator02_ES5.js | 24 +- .../argumentsObjectIterator03_ES5.errors.txt | 4 +- .../argumentsObjectIterator03_ES5.js | 10 +- .../arityAndOrderCompatibility01.errors.txt | 4 +- .../reference/arityAndOrderCompatibility01.js | 14 +- .../arrayAssignmentPatternWithAny.js | 11 +- .../arrayLiteralExpressionContextualTyping.js | 18 +- .../baselines/reference/arrayLiteralSpread.js | 34 +- .../baselines/reference/arrayLiterals2ES5.js | 38 +- tests/baselines/reference/arrayLiterals3.js | 18 +- .../reference/arrowFunctionExpressions.js | 20 +- .../reference/assignmentLHSIsValue.js | 11 +- ...ssignmentRestElementWithErrorSourceType.js | 11 +- .../reference/assignmentTypeNarrowing.js | 25 +- .../asyncAwaitIsolatedModules_es5.js | 2 +- .../asyncAwaitWithCapturedBlockScopeVar.js | 8 +- tests/baselines/reference/asyncAwait_es5.js | 2 +- .../reference/asyncFunctionNoReturnType.js | 2 +- .../reference/asyncImportedPromise_es5.js | 2 +- .../baselines/reference/asyncMultiFile_es5.js | 2 +- .../reference/awaitCallExpression2_es5.js | 8 +- .../reference/awaitCallExpression6_es5.js | 8 +- .../reference/awaitClassExpression_es5.js | 8 +- .../reference/bindingPatternInParameter01.js | 10 +- tests/baselines/reference/callWithSpread.js | 48 +- .../reference/capturedLetConstInLoop12.js | 12 +- tests/baselines/reference/castOfYield.js | 46 +- ...poundExponentiationAssignmentLHSIsValue.js | 10 +- .../computedPropertiesInDestructuring1.js | 12 +- .../reference/controlFlowForOfStatement.js | 24 +- .../declarationEmitDestructuring1.js | 12 +- .../declarationEmitDestructuring2.js | 16 +- .../declarationEmitDestructuring3.js | 12 +- .../declarationEmitDestructuring5.js | 18 +- ...clarationEmitDestructuringArrayPattern1.js | 12 +- ...clarationEmitDestructuringArrayPattern2.js | 20 +- ...clarationEmitDestructuringArrayPattern5.js | 10 +- ...ionEmitDestructuringParameterProperties.js | 12 +- ...tructuringWithOptionalBindingParameters.js | 10 +- .../reference/declarationWithNoInitializer.js | 10 +- .../declarationsAndAssignments.errors.txt | 8 +- .../reference/declarationsAndAssignments.js | 30 +- ...ingArrayBindingPatternAndAssignment1ES5.js | 42 +- ...rayBindingPatternAndAssignment2.errors.txt | 8 +- ...turingArrayBindingPatternAndAssignment2.js | 26 +- .../baselines/reference/destructuringCatch.js | 22 +- .../reference/destructuringInFunctionType.js | 10 +- .../destructuringParameterDeclaration1ES5.js | 30 +- .../destructuringParameterDeclaration2.js | 28 +- .../destructuringParameterDeclaration4.js | 18 +- .../destructuringParameterDeclaration7ES5.js | 10 +- .../destructuringParameterProperties1.js | 12 +- .../destructuringParameterProperties2.js | 10 +- .../destructuringParameterProperties3.js | 10 +- .../destructuringParameterProperties5.js | 10 +- .../destructuringVariableDeclaration1ES5.js | 32 +- .../destructuringVariableDeclaration2.js | 16 +- .../destructuringWithLiteralInitializers.js | 18 +- .../reference/downlevelLetConst16.errors.txt | 8 +- .../reference/downlevelLetConst16.js | 12 +- ...erBindingElementInParameterDeclaration1.js | 18 +- ...erBindingElementInParameterDeclaration2.js | 18 +- .../emitCapturingThisInTupleDestructuring1.js | 11 +- .../emitCapturingThisInTupleDestructuring2.js | 13 +- .../emptyAssignmentPatterns02_ES5.js | 11 +- .../emptyAssignmentPatterns04_ES5.js | 11 +- .../baselines/reference/es5-asyncFunction.js | 2 +- .../es5-asyncFunctionArrayLiterals.js | 36 +- .../es5-asyncFunctionBinaryExpressions.js | 14 +- .../es5-asyncFunctionCallExpressions.js | 58 +- .../es5-asyncFunctionForOfStatements.js | 599 +- .../reference/es5-asyncFunctionHoisting.js | 24 +- .../es5-asyncFunctionNewExpressions.js | 61 +- .../es5-importHelpersAsyncFunctions.js | 2 +- .../reference/exportStarForValues10.js | 3 +- ...allbackToBindingPatternForTypeInference.js | 14 +- .../for-inStatementsDestructuring.errors.txt | 4 +- .../for-inStatementsDestructuring.js | 10 +- .../reference/forOfTransformsExpression.js | 22 +- .../reference/functionOverloads43.js | 10 +- .../reference/functionOverloads44.js | 12 +- .../reference/functionOverloads45.js | 12 +- .../reference/generatorTypeCheck1.symbols | 2 +- .../reference/generatorTypeCheck29.symbols | 2 +- .../reference/generatorTypeCheck30.symbols | 2 +- .../reference/generatorTypeCheck45.symbols | 2 +- .../importHelpersNoHelpers.errors.txt | 16 +- .../importHelpersNoModule.errors.txt | 7 +- .../narrowingByDiscriminantInLoop.js | 49 +- tests/baselines/reference/newWithSpread.js | 64 +- tests/baselines/reference/newWithSpreadES5.js | 64 +- ...citAnyDestructuringParameterDeclaration.js | 18 +- ...oImplicitAnyDestructuringVarDeclaration.js | 16 +- .../reference/optionalBindingParameters1.js | 10 +- .../parameterNamesInTypeParameterList.js | 12 +- .../reference/parserES5ForOfStatement10.js | 22 +- .../reference/parserES5ForOfStatement11.js | 30 +- .../reference/parserES5ForOfStatement12.js | 22 +- .../reference/parserES5ForOfStatement13.js | 22 +- .../reference/parserES5ForOfStatement14.js | 30 +- .../reference/parserES5ForOfStatement15.js | 30 +- .../reference/parserES5ForOfStatement16.js | 22 +- .../reference/parserES5ForOfStatement18.js | 22 +- .../reference/parserES5ForOfStatement2.js | 22 +- .../reference/parserES5ForOfStatement21.js | 22 +- .../reference/parserES5ForOfStatement3.js | 22 +- .../reference/parserES5ForOfStatement4.js | 22 +- .../reference/parserES5ForOfStatement5.js | 22 +- .../reference/parserES5ForOfStatement6.js | 22 +- .../reference/parserES5ForOfStatement7.js | 22 +- .../reference/parserES5ForOfStatement8.js | 22 +- .../reference/parserES5ForOfStatement9.js | 22 +- .../parserMissingLambdaOpenBrace1.errors.txt | 6 +- .../restElementWithAssignmentPattern3.js | 12 +- .../restElementWithAssignmentPattern4.js | 12 +- .../restElementWithAssignmentPattern5.js | 10 +- .../restElementWithBindingPattern.js | 10 +- .../reference/restElementWithInitializer1.js | 10 +- .../reference/restElementWithInitializer2.js | 12 +- .../restElementWithNullInitializer.errors.txt | 12 +- .../restElementWithNullInitializer.js | 16 +- ...tionDestructuringForArrayBindingPattern.js | 50 +- ...DestructuringForArrayBindingPattern.js.map | 2 +- ...turingForArrayBindingPattern.sourcemap.txt | 3004 ++++---- ...ionDestructuringForArrayBindingPattern2.js | 58 +- ...estructuringForArrayBindingPattern2.js.map | 2 +- ...uringForArrayBindingPattern2.sourcemap.txt | 3604 +++++----- ...ringForArrayBindingPatternDefaultValues.js | 50 +- ...ForArrayBindingPatternDefaultValues.js.map | 2 +- ...yBindingPatternDefaultValues.sourcemap.txt | 3302 ++++----- ...ingForArrayBindingPatternDefaultValues2.js | 52 +- ...orArrayBindingPatternDefaultValues2.js.map | 2 +- ...BindingPatternDefaultValues2.sourcemap.txt | 3822 ++++++----- ...onDestructuringForOfArrayBindingPattern.js | 244 +- ...structuringForOfArrayBindingPattern.js.map | 2 +- ...ringForOfArrayBindingPattern.sourcemap.txt | 4102 +++++------ ...nDestructuringForOfArrayBindingPattern2.js | 245 +- ...tructuringForOfArrayBindingPattern2.js.map | 2 +- ...ingForOfArrayBindingPattern2.sourcemap.txt | 3786 ++++++----- ...ngForOfArrayBindingPatternDefaultValues.js | 216 +- ...rOfArrayBindingPatternDefaultValues.js.map | 2 +- ...yBindingPatternDefaultValues.sourcemap.txt | 4316 ++++++------ ...gForOfArrayBindingPatternDefaultValues2.js | 217 +- ...OfArrayBindingPatternDefaultValues2.js.map | 2 +- ...BindingPatternDefaultValues2.sourcemap.txt | 3998 +++++------ ...nDestructuringForOfObjectBindingPattern.js | 128 +- ...tructuringForOfObjectBindingPattern.js.map | 2 +- ...ingForOfObjectBindingPattern.sourcemap.txt | 2147 +++--- ...DestructuringForOfObjectBindingPattern2.js | 245 +- ...ructuringForOfObjectBindingPattern2.js.map | 2 +- ...ngForOfObjectBindingPattern2.sourcemap.txt | 4301 ++++++------ ...gForOfObjectBindingPatternDefaultValues.js | 144 +- ...OfObjectBindingPatternDefaultValues.js.map | 2 +- ...tBindingPatternDefaultValues.sourcemap.txt | 3319 ++++----- ...ForOfObjectBindingPatternDefaultValues2.js | 261 +- ...fObjectBindingPatternDefaultValues2.js.map | 2 +- ...BindingPatternDefaultValues2.sourcemap.txt | 6030 +++++++++-------- ...tructuringParametertArrayBindingPattern.js | 16 +- ...turingParametertArrayBindingPattern.js.map | 2 +- ...arametertArrayBindingPattern.sourcemap.txt | 398 +- ...ructuringParametertArrayBindingPattern2.js | 16 +- ...uringParametertArrayBindingPattern2.js.map | 2 +- ...rametertArrayBindingPattern2.sourcemap.txt | 418 +- ...ametertArrayBindingPatternDefaultValues.js | 16 +- ...ertArrayBindingPatternDefaultValues.js.map | 2 +- ...yBindingPatternDefaultValues.sourcemap.txt | 472 +- ...metertArrayBindingPatternDefaultValues2.js | 14 +- ...rtArrayBindingPatternDefaultValues2.js.map | 2 +- ...BindingPatternDefaultValues2.sourcemap.txt | 417 +- ...ingVariableStatementArrayBindingPattern.js | 18 +- ...ariableStatementArrayBindingPattern.js.map | 2 +- ...StatementArrayBindingPattern.sourcemap.txt | 271 +- ...ngVariableStatementArrayBindingPattern2.js | 18 +- ...riableStatementArrayBindingPattern2.js.map | 2 +- ...tatementArrayBindingPattern2.sourcemap.txt | 322 +- ...ngVariableStatementArrayBindingPattern3.js | 52 +- ...riableStatementArrayBindingPattern3.js.map | 2 +- ...tatementArrayBindingPattern3.sourcemap.txt | 1013 +-- ...atementArrayBindingPatternDefaultValues.js | 20 +- ...entArrayBindingPatternDefaultValues.js.map | 2 +- ...yBindingPatternDefaultValues.sourcemap.txt | 356 +- ...tementArrayBindingPatternDefaultValues2.js | 18 +- ...ntArrayBindingPatternDefaultValues2.js.map | 2 +- ...BindingPatternDefaultValues2.sourcemap.txt | 406 +- ...tementArrayBindingPatternDefaultValues3.js | 52 +- ...ntArrayBindingPatternDefaultValues3.js.map | 2 +- ...BindingPatternDefaultValues3.sourcemap.txt | 1281 ++-- .../sourceMapValidationStatements.js.map | 2 +- ...ourceMapValidationStatements.sourcemap.txt | 12 +- .../sourceMapValidationTryCatchFinally.js.map | 2 +- ...MapValidationTryCatchFinally.sourcemap.txt | 14 +- .../strictModeReservedWordInDestructuring.js | 16 +- tests/baselines/reference/systemModule11.js | 12 +- tests/baselines/reference/systemModule13.js | 12 +- tests/baselines/reference/systemModule16.js | 3 +- tests/baselines/reference/systemModule8.js | 12 +- tests/baselines/reference/systemModule9.js | 3 +- .../templateStringInYieldKeyword.errors.txt | 11 - .../reference/templateStringInYieldKeyword.js | 40 +- .../templateStringInYieldKeyword.symbols | 10 + .../templateStringInYieldKeyword.types | 12 + .../templateStringWithEmbeddedYieldKeyword.js | 42 +- ...gCommasInFunctionParametersAndArguments.js | 14 +- .../transformNestedGeneratorsWithTry.js | 2 +- tests/baselines/reference/tsxEmit1.js | 16 +- tests/baselines/reference/tsxReactEmit1.js | 16 +- .../baselines/reference/tupleElementTypes2.js | 10 +- .../baselines/reference/tupleElementTypes4.js | 10 +- .../reference/typeGuardFunctionErrors.js | 10 +- .../typeInferenceFBoundedTypeParams.js | 24 +- tests/baselines/reference/underscoreTest1.js | 238 +- .../reference/underscoreTest1.symbols | 1140 ++-- .../baselines/reference/underscoreTest1.types | 1090 +-- .../unusedDestructuringParameters.js | 12 +- .../unusedParametersWithUnderscore.js | 10 +- .../reference/useObjectValuesAndEntries1.js | 24 +- .../reference/useObjectValuesAndEntries2.js | 24 +- .../reference/yieldExpression1.errors.txt | 9 - tests/baselines/reference/yieldExpression1.js | 38 +- .../reference/yieldExpression1.symbols | 6 + .../reference/yieldExpression1.types | 7 + tests/cases/compiler/underscoreTest1.ts | 740 +- 349 files changed, 34274 insertions(+), 27822 deletions(-) delete mode 100644 tests/baselines/reference/FunctionDeclaration11_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionDeclaration11_es6.symbols create mode 100644 tests/baselines/reference/FunctionDeclaration11_es6.types delete mode 100644 tests/baselines/reference/FunctionDeclaration1_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionDeclaration1_es6.symbols create mode 100644 tests/baselines/reference/FunctionDeclaration1_es6.types delete mode 100644 tests/baselines/reference/FunctionDeclaration9_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionDeclaration9_es6.symbols create mode 100644 tests/baselines/reference/FunctionDeclaration9_es6.types delete mode 100644 tests/baselines/reference/FunctionExpression1_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionExpression1_es6.symbols create mode 100644 tests/baselines/reference/FunctionExpression1_es6.types delete mode 100644 tests/baselines/reference/FunctionExpression2_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionExpression2_es6.symbols create mode 100644 tests/baselines/reference/FunctionExpression2_es6.types delete mode 100644 tests/baselines/reference/FunctionPropertyAssignments1_es6.errors.txt create mode 100644 tests/baselines/reference/FunctionPropertyAssignments1_es6.symbols create mode 100644 tests/baselines/reference/FunctionPropertyAssignments1_es6.types delete mode 100644 tests/baselines/reference/MemberFunctionDeclaration1_es6.errors.txt create mode 100644 tests/baselines/reference/MemberFunctionDeclaration1_es6.symbols create mode 100644 tests/baselines/reference/MemberFunctionDeclaration1_es6.types delete mode 100644 tests/baselines/reference/MemberFunctionDeclaration2_es6.errors.txt create mode 100644 tests/baselines/reference/MemberFunctionDeclaration2_es6.symbols create mode 100644 tests/baselines/reference/MemberFunctionDeclaration2_es6.types delete mode 100644 tests/baselines/reference/MemberFunctionDeclaration7_es6.errors.txt create mode 100644 tests/baselines/reference/MemberFunctionDeclaration7_es6.symbols create mode 100644 tests/baselines/reference/MemberFunctionDeclaration7_es6.types delete mode 100644 tests/baselines/reference/YieldExpression13_es6.errors.txt create mode 100644 tests/baselines/reference/YieldExpression13_es6.symbols create mode 100644 tests/baselines/reference/YieldExpression13_es6.types delete mode 100644 tests/baselines/reference/YieldExpression19_es6.errors.txt create mode 100644 tests/baselines/reference/YieldExpression19_es6.symbols create mode 100644 tests/baselines/reference/YieldExpression19_es6.types delete mode 100644 tests/baselines/reference/YieldExpression3_es6.errors.txt create mode 100644 tests/baselines/reference/YieldExpression3_es6.symbols create mode 100644 tests/baselines/reference/YieldExpression3_es6.types delete mode 100644 tests/baselines/reference/YieldExpression4_es6.errors.txt create mode 100644 tests/baselines/reference/YieldExpression4_es6.symbols create mode 100644 tests/baselines/reference/YieldExpression4_es6.types delete mode 100644 tests/baselines/reference/YieldExpression7_es6.errors.txt create mode 100644 tests/baselines/reference/YieldExpression7_es6.symbols create mode 100644 tests/baselines/reference/YieldExpression7_es6.types delete mode 100644 tests/baselines/reference/YieldStarExpression4_es6.errors.txt create mode 100644 tests/baselines/reference/YieldStarExpression4_es6.symbols create mode 100644 tests/baselines/reference/YieldStarExpression4_es6.types delete mode 100644 tests/baselines/reference/templateStringInYieldKeyword.errors.txt create mode 100644 tests/baselines/reference/templateStringInYieldKeyword.symbols create mode 100644 tests/baselines/reference/templateStringInYieldKeyword.types delete mode 100644 tests/baselines/reference/yieldExpression1.errors.txt create mode 100644 tests/baselines/reference/yieldExpression1.symbols create mode 100644 tests/baselines/reference/yieldExpression1.types diff --git a/tests/baselines/reference/APISample_parseConfig.js b/tests/baselines/reference/APISample_parseConfig.js index 75ab80d3f232a..ff6ab7d696d5d 100644 --- a/tests/baselines/reference/APISample_parseConfig.js +++ b/tests/baselines/reference/APISample_parseConfig.js @@ -43,6 +43,17 @@ export function createProgram(rootFiles: string[], compilerOptionsJson: string): * Please log a "breaking change" issue for any API breaking change affecting this issue */ "use strict"; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var ts = require("typescript"); function printError(error) { if (!error) { @@ -59,12 +70,19 @@ function createProgram(rootFiles, compilerOptionsJson) { var basePath = process.cwd(); var settings = ts.convertCompilerOptionsFromJson(config.config["compilerOptions"], basePath); if (!settings.options) { - for (var _i = 0, _b = settings.errors; _i < _b.length; _i++) { - var err = _b[_i]; - printError(err); + try { + for (var iterator_1 = { iterator: __values(settings.errors) }; __step(iterator_1);) { + var err = iterator_1.result.value; + printError(err); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } } return undefined; } return ts.createProgram(rootFiles, settings.options); + var e_1; } exports.createProgram = createProgram; diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1.js b/tests/baselines/reference/ES3For-ofTypeCheck1.js index 19efa96808b2b..01d6344760fe7 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck1.js +++ b/tests/baselines/reference/ES3For-ofTypeCheck1.js @@ -2,6 +2,24 @@ for (var v of "") { } //// [ES3For-ofTypeCheck1.js] -for (var _i = 0, _a = ""; _i < _a.length; _i++) { - var v = _a[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var iterator_1 = { iterator: __values("") }; __step(iterator_1);) { + var v = iterator_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4.js b/tests/baselines/reference/ES3For-ofTypeCheck4.js index a628a81c51751..766baf06f9c21 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck4.js +++ b/tests/baselines/reference/ES3For-ofTypeCheck4.js @@ -3,7 +3,25 @@ var union: string | string[]; for (const v of union) { } //// [ES3For-ofTypeCheck4.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.js b/tests/baselines/reference/ES3For-ofTypeCheck6.js index 8b4a917eb85a7..555803eaa7332 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck6.js +++ b/tests/baselines/reference/ES3For-ofTypeCheck6.js @@ -3,7 +3,25 @@ var union: string[] | number[]; for (var v of union) { } //// [ES3For-ofTypeCheck6.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-of12.js b/tests/baselines/reference/ES5For-of12.js index 99c5fad5fad2f..a60ed97a0307e 100644 --- a/tests/baselines/reference/ES5For-of12.js +++ b/tests/baselines/reference/ES5For-of12.js @@ -2,6 +2,15 @@ for ([""] of [[""]]) { } //// [ES5For-of12.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; for (var _i = 0, _a = [[""]]; _i < _a.length; _i++) { - "" = _a[_i][0]; + _b = __read(_a[_i], 1), "" = _b[0]; } +var _b; diff --git a/tests/baselines/reference/ES5For-of24.js b/tests/baselines/reference/ES5For-of24.js index ce4376ad64859..32dfb159362d8 100644 --- a/tests/baselines/reference/ES5For-of24.js +++ b/tests/baselines/reference/ES5For-of24.js @@ -5,8 +5,26 @@ for (var v of a) { } //// [ES5For-of24.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var a = [1, 2, 3]; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var v = a_1[_i]; - var a_2 = 0; +try { + for (var a_1 = { iterator: __values(a) }; __step(a_1);) { + var v = a_1.result.value; + var a_2 = 0; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(a_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-of25.js b/tests/baselines/reference/ES5For-of25.js index 440c0b55efbd3..db9c96d91f85e 100644 --- a/tests/baselines/reference/ES5For-of25.js +++ b/tests/baselines/reference/ES5For-of25.js @@ -6,10 +6,28 @@ for (var v of a) { } //// [ES5For-of25.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var a = [1, 2, 3]; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var v = a_1[_i]; - v; - a; +try { + for (var a_1 = { iterator: __values(a) }; __step(a_1);) { + var v = a_1.result.value; + v; + a; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(a_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; //# sourceMappingURL=ES5For-of25.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of25.js.map b/tests/baselines/reference/ES5For-of25.js.map index f1c97506f2d96..bec09e0c8ec69 100644 --- a/tests/baselines/reference/ES5For-of25.js.map +++ b/tests/baselines/reference/ES5For-of25.js.map @@ -1,2 +1,2 @@ //// [ES5For-of25.js.map] -{"version":3,"file":"ES5For-of25.js","sourceRoot":"","sources":["ES5For-of25.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClB,GAAG,CAAC,CAAU,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC;IAAV,IAAI,CAAC,UAAA;IACN,CAAC,CAAC;IACF,CAAC,CAAC;CACL"} \ No newline at end of file +{"version":3,"file":"ES5For-of25.js","sourceRoot":"","sources":["ES5For-of25.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;;IAClB,GAAG,CAAC,CAAU,IAAA,MAAA,EAAA,UAAA,SAAA,CAAC,CAAA,EAAA,EAAV,WAAK;QAAL,IAAI,CAAC,mBAAA;QACN,CAAC,CAAC;QACF,CAAC,CAAC;KACL"} \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of25.sourcemap.txt b/tests/baselines/reference/ES5For-of25.sourcemap.txt index 31b10538fa6a1..18e6069fa60fa 100644 --- a/tests/baselines/reference/ES5For-of25.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of25.sourcemap.txt @@ -8,6 +8,17 @@ sources: ES5For-of25.ts emittedFile:tests/cases/conformance/statements/for-ofStatements/ES5For-of25.js sourceFile:ES5For-of25.ts ------------------------------------------------------------------- +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var a = [1, 2, 3]; 1 > 2 >^^^^ @@ -21,7 +32,6 @@ sourceFile:ES5For-of25.ts 10> ^ 11> ^ 12> ^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >var 3 > a @@ -34,99 +44,114 @@ sourceFile:ES5For-of25.ts 10> 3 11> ] 12> ; -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) -4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) -5 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) -6 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -7 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -8 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -9 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -10>Emitted(1, 17) Source(1, 17) + SourceIndex(0) -11>Emitted(1, 18) Source(1, 18) + SourceIndex(0) -12>Emitted(1, 19) Source(1, 19) + SourceIndex(0) +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(12, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(12, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(12, 10) Source(1, 10) + SourceIndex(0) +6 >Emitted(12, 11) Source(1, 11) + SourceIndex(0) +7 >Emitted(12, 13) Source(1, 13) + SourceIndex(0) +8 >Emitted(12, 14) Source(1, 14) + SourceIndex(0) +9 >Emitted(12, 16) Source(1, 16) + SourceIndex(0) +10>Emitted(12, 17) Source(1, 17) + SourceIndex(0) +11>Emitted(12, 18) Source(1, 18) + SourceIndex(0) +12>Emitted(12, 19) Source(1, 19) + SourceIndex(0) --- ->>>for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -1-> +>>>try { +>>> for (var a_1 = { iterator: __values(a) }; __step(a_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > (var v of -5 > a -6 > -7 > a -8 > -9 > a -10> -11> a -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) -3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -4 >Emitted(2, 6) Source(2, 15) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) -6 >Emitted(2, 18) Source(2, 15) + SourceIndex(0) -7 >Emitted(2, 25) Source(2, 16) + SourceIndex(0) -8 >Emitted(2, 27) Source(2, 15) + SourceIndex(0) -9 >Emitted(2, 42) Source(2, 16) + SourceIndex(0) -10>Emitted(2, 44) Source(2, 15) + SourceIndex(0) -11>Emitted(2, 48) Source(2, 16) + SourceIndex(0) +2 > for +3 > +4 > (var v of +5 > +6 > +7 > +8 > +9 > +10> a +11> +12> +13> +14> var v +1 >Emitted(14, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(14, 8) Source(2, 4) + SourceIndex(0) +3 >Emitted(14, 9) Source(2, 5) + SourceIndex(0) +4 >Emitted(14, 10) Source(2, 15) + SourceIndex(0) +5 >Emitted(14, 14) Source(2, 15) + SourceIndex(0) +6 >Emitted(14, 20) Source(2, 15) + SourceIndex(0) +7 >Emitted(14, 22) Source(2, 15) + SourceIndex(0) +8 >Emitted(14, 32) Source(2, 15) + SourceIndex(0) +9 >Emitted(14, 41) Source(2, 15) + SourceIndex(0) +10>Emitted(14, 42) Source(2, 16) + SourceIndex(0) +11>Emitted(14, 43) Source(2, 16) + SourceIndex(0) +12>Emitted(14, 45) Source(2, 16) + SourceIndex(0) +13>Emitted(14, 47) Source(2, 6) + SourceIndex(0) +14>Emitted(14, 58) Source(2, 11) + SourceIndex(0) --- ->>> var v = a_1[_i]; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^^ +>>> var v = a_1.result.value; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^ 1 > -2 > var -3 > v -4 > -1 >Emitted(3, 5) Source(2, 6) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 10) + SourceIndex(0) -3 >Emitted(3, 10) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 20) Source(2, 11) + SourceIndex(0) +2 > var +3 > v +4 > +1 >Emitted(15, 9) Source(2, 6) + SourceIndex(0) +2 >Emitted(15, 13) Source(2, 10) + SourceIndex(0) +3 >Emitted(15, 14) Source(2, 11) + SourceIndex(0) +4 >Emitted(15, 33) Source(2, 11) + SourceIndex(0) --- ->>> v; -1 >^^^^ -2 > ^ -3 > ^ -4 > ^-> +>>> v; +1 >^^^^^^^^ +2 > ^ +3 > ^ +4 > ^-> 1 > of a) { > -2 > v -3 > ; -1 >Emitted(4, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(4, 6) Source(3, 6) + SourceIndex(0) -3 >Emitted(4, 7) Source(3, 7) + SourceIndex(0) +2 > v +3 > ; +1 >Emitted(16, 9) Source(3, 5) + SourceIndex(0) +2 >Emitted(16, 10) Source(3, 6) + SourceIndex(0) +3 >Emitted(16, 11) Source(3, 7) + SourceIndex(0) --- ->>> a; -1->^^^^ -2 > ^ -3 > ^ +>>> a; +1->^^^^^^^^ +2 > ^ +3 > ^ 1-> > -2 > a -3 > ; -1->Emitted(5, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(4, 6) + SourceIndex(0) -3 >Emitted(5, 7) Source(4, 7) + SourceIndex(0) +2 > a +3 > ; +1->Emitted(17, 9) Source(4, 5) + SourceIndex(0) +2 >Emitted(17, 10) Source(4, 6) + SourceIndex(0) +3 >Emitted(17, 11) Source(4, 7) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) +1 >Emitted(18, 6) Source(5, 2) + SourceIndex(0) --- +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(a_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>var e_1; >>>//# sourceMappingURL=ES5For-of25.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26.errors.txt b/tests/baselines/reference/ES5For-of26.errors.txt index 324ded25b4fd7..a85a5a2684e67 100644 --- a/tests/baselines/reference/ES5For-of26.errors.txt +++ b/tests/baselines/reference/ES5For-of26.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts(1,10): error TS2461: Type 'number' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts(1,10): error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts (1 errors) ==== for (var [a = 0, b = 1] of [2, 3]) { ~~~~~~~~~~~~~~ -!!! error TS2461: Type 'number' is not an array type. +!!! error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. a; b; } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26.js b/tests/baselines/reference/ES5For-of26.js index 4571cc660a3d6..af24f770b0010 100644 --- a/tests/baselines/reference/ES5For-of26.js +++ b/tests/baselines/reference/ES5For-of26.js @@ -5,8 +5,16 @@ for (var [a = 0, b = 1] of [2, 3]) { } //// [ES5For-of26.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; for (var _i = 0, _a = [2, 3]; _i < _a.length; _i++) { - var _b = _a[_i], _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; + var _b = __read(_a[_i], 2), _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; a; b; } diff --git a/tests/baselines/reference/ES5For-of26.js.map b/tests/baselines/reference/ES5For-of26.js.map index 0afbe7ec42e57..1e4c4db9fb70f 100644 --- a/tests/baselines/reference/ES5For-of26.js.map +++ b/tests/baselines/reference/ES5For-of26.js.map @@ -1,2 +1,2 @@ //// [ES5For-of26.js.map] -{"version":3,"file":"ES5For-of26.js","sourceRoot":"","sources":["ES5For-of26.ts"],"names":[],"mappings":"AAAA,GAAG,CAAC,CAAuB,UAAM,EAAN,MAAC,CAAC,EAAE,CAAC,CAAC,EAAN,cAAM,EAAN,IAAM;IAAxB,IAAA,WAAc,EAAb,UAAK,EAAL,0BAAK,EAAE,UAAK,EAAL,0BAAK;IAClB,CAAC,CAAC;IACF,CAAC,CAAC;CACL"} \ No newline at end of file +{"version":3,"file":"ES5For-of26.js","sourceRoot":"","sources":["ES5For-of26.ts"],"names":[],"mappings":";;;;;;;;AAAA,GAAG,CAAC,CAAuB,UAAM,EAAN,MAAC,CAAC,EAAE,CAAC,CAAC,EAAN,cAAM,EAAN,IAAM;IAAxB,IAAA,sBAAc,EAAb,UAAK,EAAL,0BAAK,EAAE,UAAK,EAAL,0BAAK;IAClB,CAAC,CAAC;IACF,CAAC,CAAC;CACL"} \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26.sourcemap.txt b/tests/baselines/reference/ES5For-of26.sourcemap.txt index ce13a75e5cf79..cb8b97fd50568 100644 --- a/tests/baselines/reference/ES5For-of26.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of26.sourcemap.txt @@ -8,6 +8,14 @@ sources: ES5For-of26.ts emittedFile:tests/cases/conformance/statements/for-ofStatements/ES5For-of26.js sourceFile:ES5For-of26.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>for (var _i = 0, _a = [2, 3]; _i < _a.length; _i++) { 1 > 2 >^^^ @@ -24,7 +32,7 @@ sourceFile:ES5For-of26.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >for 3 > @@ -40,56 +48,56 @@ sourceFile:ES5For-of26.ts 13> [2, 3] 14> 15> [2, 3] -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 4) Source(1, 4) + SourceIndex(0) -3 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) -4 >Emitted(1, 6) Source(1, 28) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 34) + SourceIndex(0) -6 >Emitted(1, 18) Source(1, 28) + SourceIndex(0) -7 >Emitted(1, 24) Source(1, 29) + SourceIndex(0) -8 >Emitted(1, 25) Source(1, 30) + SourceIndex(0) -9 >Emitted(1, 27) Source(1, 32) + SourceIndex(0) -10>Emitted(1, 28) Source(1, 33) + SourceIndex(0) -11>Emitted(1, 29) Source(1, 34) + SourceIndex(0) -12>Emitted(1, 31) Source(1, 28) + SourceIndex(0) -13>Emitted(1, 45) Source(1, 34) + SourceIndex(0) -14>Emitted(1, 47) Source(1, 28) + SourceIndex(0) -15>Emitted(1, 51) Source(1, 34) + SourceIndex(0) +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(9, 4) Source(1, 4) + SourceIndex(0) +3 >Emitted(9, 5) Source(1, 5) + SourceIndex(0) +4 >Emitted(9, 6) Source(1, 28) + SourceIndex(0) +5 >Emitted(9, 16) Source(1, 34) + SourceIndex(0) +6 >Emitted(9, 18) Source(1, 28) + SourceIndex(0) +7 >Emitted(9, 24) Source(1, 29) + SourceIndex(0) +8 >Emitted(9, 25) Source(1, 30) + SourceIndex(0) +9 >Emitted(9, 27) Source(1, 32) + SourceIndex(0) +10>Emitted(9, 28) Source(1, 33) + SourceIndex(0) +11>Emitted(9, 29) Source(1, 34) + SourceIndex(0) +12>Emitted(9, 31) Source(1, 28) + SourceIndex(0) +13>Emitted(9, 45) Source(1, 34) + SourceIndex(0) +14>Emitted(9, 47) Source(1, 28) + SourceIndex(0) +15>Emitted(9, 51) Source(1, 34) + SourceIndex(0) --- ->>> var _b = _a[_i], _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; +>>> var _b = __read(_a[_i], 2), _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [a = 0, b = 1] -4 > -5 > a = 0 -6 > -7 > a = 0 -8 > , -9 > b = 1 -10> -11> b = 1 -1->Emitted(2, 5) Source(1, 10) + SourceIndex(0) -2 >Emitted(2, 9) Source(1, 10) + SourceIndex(0) -3 >Emitted(2, 20) Source(1, 24) + SourceIndex(0) -4 >Emitted(2, 22) Source(1, 11) + SourceIndex(0) -5 >Emitted(2, 32) Source(1, 16) + SourceIndex(0) -6 >Emitted(2, 34) Source(1, 11) + SourceIndex(0) -7 >Emitted(2, 60) Source(1, 16) + SourceIndex(0) -8 >Emitted(2, 62) Source(1, 18) + SourceIndex(0) -9 >Emitted(2, 72) Source(1, 23) + SourceIndex(0) -10>Emitted(2, 74) Source(1, 18) + SourceIndex(0) -11>Emitted(2, 100) Source(1, 23) + SourceIndex(0) +4 > +5 > a = 0 +6 > +7 > a = 0 +8 > , +9 > b = 1 +10> +11> b = 1 +1->Emitted(10, 5) Source(1, 10) + SourceIndex(0) +2 >Emitted(10, 9) Source(1, 10) + SourceIndex(0) +3 >Emitted(10, 31) Source(1, 24) + SourceIndex(0) +4 >Emitted(10, 33) Source(1, 11) + SourceIndex(0) +5 >Emitted(10, 43) Source(1, 16) + SourceIndex(0) +6 >Emitted(10, 45) Source(1, 11) + SourceIndex(0) +7 >Emitted(10, 71) Source(1, 16) + SourceIndex(0) +8 >Emitted(10, 73) Source(1, 18) + SourceIndex(0) +9 >Emitted(10, 83) Source(1, 23) + SourceIndex(0) +10>Emitted(10, 85) Source(1, 18) + SourceIndex(0) +11>Emitted(10, 111) Source(1, 23) + SourceIndex(0) --- >>> a; 1 >^^^^ @@ -100,9 +108,9 @@ sourceFile:ES5For-of26.ts > 2 > a 3 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 6) Source(2, 6) + SourceIndex(0) -3 >Emitted(3, 7) Source(2, 7) + SourceIndex(0) +1 >Emitted(11, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(11, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(11, 7) Source(2, 7) + SourceIndex(0) --- >>> b; 1->^^^^ @@ -112,15 +120,15 @@ sourceFile:ES5For-of26.ts > 2 > b 3 > ; -1->Emitted(4, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(4, 6) Source(3, 6) + SourceIndex(0) -3 >Emitted(4, 7) Source(3, 7) + SourceIndex(0) +1->Emitted(12, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(12, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(12, 7) Source(3, 7) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(5, 2) Source(4, 2) + SourceIndex(0) +1 >Emitted(13, 2) Source(4, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of26.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of28.errors.txt b/tests/baselines/reference/ES5For-of28.errors.txt index 81398fa5a9bac..852bb5d3aff80 100644 --- a/tests/baselines/reference/ES5For-of28.errors.txt +++ b/tests/baselines/reference/ES5For-of28.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts(1,10): error TS2461: Type 'number' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts(1,10): error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts (1 errors) ==== for (let [a = 0, b = 1] of [2, 3]) { ~~~~~~~~~~~~~~ -!!! error TS2461: Type 'number' is not an array type. +!!! error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. a; b; } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of28.js b/tests/baselines/reference/ES5For-of28.js index 362b8835212a2..ae3a7ca972473 100644 --- a/tests/baselines/reference/ES5For-of28.js +++ b/tests/baselines/reference/ES5For-of28.js @@ -5,8 +5,16 @@ for (let [a = 0, b = 1] of [2, 3]) { } //// [ES5For-of28.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; for (var _i = 0, _a = [2, 3]; _i < _a.length; _i++) { - var _b = _a[_i], _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; + var _b = __read(_a[_i], 2), _c = _b[0], a = _c === void 0 ? 0 : _c, _d = _b[1], b = _d === void 0 ? 1 : _d; a; b; } diff --git a/tests/baselines/reference/ES5For-of30.errors.txt b/tests/baselines/reference/ES5For-of30.errors.txt index 284dd372e5a72..5b8ee72475dae 100644 --- a/tests/baselines/reference/ES5For-of30.errors.txt +++ b/tests/baselines/reference/ES5For-of30.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,6): error TS2461: Type 'string | number' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,6): error TS2461: Type 'string | number' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,7): error TS2322: Type '1' is not assignable to type 'string'. tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,14): error TS2322: Type '""' is not assignable to type 'number'. @@ -8,7 +8,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,14): error var tuple: [number, string] = [2, "3"]; for ([a = 1, b = ""] of tuple) { ~~~~~~~~~~~~~~~ -!!! error TS2461: Type 'string | number' is not an array type. +!!! error TS2461: Type 'string | number' is not an array type or does not have an '__iterator__()' method that returns an iterator. ~ !!! error TS2322: Type '1' is not assignable to type 'string'. ~ diff --git a/tests/baselines/reference/ES5For-of30.js b/tests/baselines/reference/ES5For-of30.js index fead25e7cf093..95fe98bf08f7c 100644 --- a/tests/baselines/reference/ES5For-of30.js +++ b/tests/baselines/reference/ES5For-of30.js @@ -7,11 +7,36 @@ for ([a = 1, b = ""] of tuple) { } //// [ES5For-of30.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var a, b; var tuple = [2, "3"]; -for (var _i = 0, tuple_1 = tuple; _i < tuple_1.length; _i++) { - _a = tuple_1[_i], _b = _a[0], a = _b === void 0 ? 1 : _b, _c = _a[1], b = _c === void 0 ? "" : _c; - a; - b; +try { + for (var tuple_1 = { iterator: __values(tuple) }; __step(tuple_1);) { + _a = __read(tuple_1.result.value, 2), _b = _a[0], a = _b === void 0 ? 1 : _b, _c = _a[1], b = _c === void 0 ? "" : _c; + a; + b; + } } -var _a, _b, _c; +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(tuple_1); } finally { if (e_1) throw e_1.error; } +} +var _a, _b, _c, e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1.js b/tests/baselines/reference/ES5For-ofTypeCheck1.js index f1522e512b60d..3576c20f31b14 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck1.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck1.js @@ -2,6 +2,24 @@ for (var v of "") { } //// [ES5For-ofTypeCheck1.js] -for (var _i = 0, _a = ""; _i < _a.length; _i++) { - var v = _a[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var iterator_1 = { iterator: __values("") }; __step(iterator_1);) { + var v = iterator_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt index b762db8a04b4b..e5e3f687b016f 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt +++ b/tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(1,15): error TS2495: Type 'StringIterator' is not an array type or a string type. +tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(1,15): error TS2495: Type 'StringIterator' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(11,6): error TS2304: Cannot find name 'Symbol'. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts (2 errors) ==== for (var v of new StringIterator) { } ~~~~~~~~~~~~~~~~~~ -!!! error TS2495: Type 'StringIterator' is not an array type or a string type. +!!! error TS2495: Type 'StringIterator' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. // In ES3/5, you cannot for...of over an arbitrary iterable. class StringIterator { diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.js b/tests/baselines/reference/ES5For-ofTypeCheck10.js index 0fe92e289a6e1..d6890fbb18ce9 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck10.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck10.js @@ -15,8 +15,25 @@ class StringIterator { } //// [ES5For-ofTypeCheck10.js] -for (var _i = 0, _a = new StringIterator; _i < _a.length; _i++) { - var v = _a[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var iterator_1 = { iterator: __values(new StringIterator) }; __step(iterator_1);) { + var v = iterator_1.result.value; + } +} +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } } // In ES3/5, you cannot for...of over an arbitrary iterable. var StringIterator = (function () { @@ -33,3 +50,4 @@ var StringIterator = (function () { }; return StringIterator; }()); +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11.js b/tests/baselines/reference/ES5For-ofTypeCheck11.js index ce43942775583..1d1f211e785f0 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck11.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck11.js @@ -4,8 +4,26 @@ var v: string; for (v of union) { } //// [ES5For-ofTypeCheck11.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; var v; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt index 5310d5886197b..709c5afe2dddb 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt +++ b/tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt @@ -1,7 +1,7 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts(1,17): error TS2495: Type '0' is not an array type or a string type. +tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts(1,17): error TS2495: Type '0' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts (1 errors) ==== for (const v of 0) { } ~ -!!! error TS2495: Type '0' is not an array type or a string type. \ No newline at end of file +!!! error TS2495: Type '0' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.js b/tests/baselines/reference/ES5For-ofTypeCheck12.js index 6004990f6dc12..3d4605f7af360 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck12.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck12.js @@ -2,6 +2,24 @@ for (const v of 0) { } //// [ES5For-ofTypeCheck12.js] -for (var _i = 0, _a = 0; _i < _a.length; _i++) { - var v = _a[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var iterator_1 = { iterator: __values(0) }; __step(iterator_1);) { + var v = iterator_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3.js b/tests/baselines/reference/ES5For-ofTypeCheck3.js index 61a60727cba13..9bb7d4f7a2062 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck3.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck3.js @@ -3,7 +3,25 @@ var tuple: [string, number] = ["", 0]; for (var v of tuple) { } //// [ES5For-ofTypeCheck3.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var tuple = ["", 0]; -for (var _i = 0, tuple_1 = tuple; _i < tuple_1.length; _i++) { - var v = tuple_1[_i]; +try { + for (var tuple_1 = { iterator: __values(tuple) }; __step(tuple_1);) { + var v = tuple_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(tuple_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4.js b/tests/baselines/reference/ES5For-ofTypeCheck4.js index 6240b6a799a48..eb5cd01efb096 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck4.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck4.js @@ -3,7 +3,25 @@ var union: string | string[]; for (const v of union) { } //// [ES5For-ofTypeCheck4.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5.js b/tests/baselines/reference/ES5For-ofTypeCheck5.js index 0d285d67d8b5d..f7469b22bb419 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck5.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck5.js @@ -3,7 +3,25 @@ var union: string | number[]; for (var v of union) { } //// [ES5For-ofTypeCheck5.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6.js b/tests/baselines/reference/ES5For-ofTypeCheck6.js index c99fd415b23ae..d61db12dc7b69 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck6.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck6.js @@ -3,7 +3,25 @@ var union: string[] | number[]; for (var v of union) { } //// [ES5For-ofTypeCheck6.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt index 9006b5a277981..ee77c67bfe509 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt +++ b/tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts(2,15): error TS2461: Type 'number' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts(2,15): error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts (1 errors) ==== var union: string | number; for (var v of union) { } ~~~~~ -!!! error TS2461: Type 'number' is not an array type. \ No newline at end of file +!!! error TS2461: Type 'number' is not an array type or does not have an '__iterator__()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.js b/tests/baselines/reference/ES5For-ofTypeCheck7.js index 1bd360e5132fd..354011009e933 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck7.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck7.js @@ -3,7 +3,25 @@ var union: string | number; for (var v of union) { } //// [ES5For-ofTypeCheck7.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8.js b/tests/baselines/reference/ES5For-ofTypeCheck8.js index ae4a823a18cb4..9a91cb50cd244 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck8.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck8.js @@ -4,8 +4,26 @@ var v: symbol; for (v of union) { } //// [ES5For-ofTypeCheck8.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; var v; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt index 156eb18880367..a1cf12be26a79 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt +++ b/tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts(2,15): error TS2461: Type 'number | symbol | string[]' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts(2,15): error TS2461: Type 'number | symbol | string[]' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts (1 errors) ==== var union: string | string[] | number | symbol; for (let v of union) { } ~~~~~ -!!! error TS2461: Type 'number | symbol | string[]' is not an array type. \ No newline at end of file +!!! error TS2461: Type 'number | symbol | string[]' is not an array type or does not have an '__iterator__()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.js b/tests/baselines/reference/ES5For-ofTypeCheck9.js index 3e18c2da31f94..89393ff6d08b5 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck9.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck9.js @@ -3,7 +3,25 @@ var union: string | string[] | number | symbol; for (let v of union) { } //// [ES5For-ofTypeCheck9.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var union; -for (var _i = 0, union_1 = union; _i < union_1.length; _i++) { - var v = union_1[_i]; +try { + for (var union_1 = { iterator: __values(union) }; __step(union_1);) { + var v = union_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(union_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/ES5for-of32.js b/tests/baselines/reference/ES5for-of32.js index 7af7cc3874a3a..571668567e2f7 100644 --- a/tests/baselines/reference/ES5for-of32.js +++ b/tests/baselines/reference/ES5for-of32.js @@ -12,12 +12,30 @@ for (let num of array) { } //// [ES5for-of32.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var array = [1, 2, 3]; var sum = 0; -for (var _i = 0, array_1 = array; _i < array_1.length; _i++) { - var num = array_1[_i]; - if (sum === 0) { - array = [4, 5, 6]; +try { + for (var array_1 = { iterator: __values(array) }; __step(array_1);) { + var num = array_1.result.value; + if (sum === 0) { + array = [4, 5, 6]; + } + sum += num; } - sum += num; } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(array_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/FunctionDeclaration10_es6.js b/tests/baselines/reference/FunctionDeclaration10_es6.js index 6ac2ec8d19436..8bc7609afbe0e 100644 --- a/tests/baselines/reference/FunctionDeclaration10_es6.js +++ b/tests/baselines/reference/FunctionDeclaration10_es6.js @@ -3,8 +3,41 @@ function * foo(a = yield => yield) { } //// [FunctionDeclaration10_es6.js] -function* foo(a) { - if (a === void 0) { a = yield; } +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo(a) { + if (a === void 0) { a = _a.sent(); } + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: return [2 /*return*/]; + } + }); } yield; { diff --git a/tests/baselines/reference/FunctionDeclaration11_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration11_es6.errors.txt deleted file mode 100644 index 4db3842e91d9d..0000000000000 --- a/tests/baselines/reference/FunctionDeclaration11_es6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration11_es6.ts(1,10): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration11_es6.ts (1 errors) ==== - function * yield() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - } \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration11_es6.js b/tests/baselines/reference/FunctionDeclaration11_es6.js index d56eebd3bb52f..184529542c331 100644 --- a/tests/baselines/reference/FunctionDeclaration11_es6.js +++ b/tests/baselines/reference/FunctionDeclaration11_es6.js @@ -3,5 +3,35 @@ function * yield() { } //// [FunctionDeclaration11_es6.js] -function* yield() { +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function yield() { + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/FunctionDeclaration11_es6.symbols b/tests/baselines/reference/FunctionDeclaration11_es6.symbols new file mode 100644 index 0000000000000..a51b763e4bfd2 --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration11_es6.symbols @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration11_es6.ts === +function * yield() { +>yield : Symbol(yield, Decl(FunctionDeclaration11_es6.ts, 0, 0)) +} diff --git a/tests/baselines/reference/FunctionDeclaration11_es6.types b/tests/baselines/reference/FunctionDeclaration11_es6.types new file mode 100644 index 0000000000000..b774d42c16406 --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration11_es6.types @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration11_es6.ts === +function * yield() { +>yield : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/FunctionDeclaration12_es6.js b/tests/baselines/reference/FunctionDeclaration12_es6.js index 87ea08215fe9c..e99d26875a5de 100644 --- a/tests/baselines/reference/FunctionDeclaration12_es6.js +++ b/tests/baselines/reference/FunctionDeclaration12_es6.js @@ -2,4 +2,33 @@ var v = function * yield() { } //// [FunctionDeclaration12_es6.js] -var v = function* () { }, yield = function () { }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = function () { return __generator(this, function (_a) { + return [2 /*return*/]; +}); }, yield = function () { }; diff --git a/tests/baselines/reference/FunctionDeclaration13_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration13_es6.errors.txt index fa67544661730..1f921475fd330 100644 --- a/tests/baselines/reference/FunctionDeclaration13_es6.errors.txt +++ b/tests/baselines/reference/FunctionDeclaration13_es6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts(1,10): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts(3,11): error TS2304: Cannot find name 'yield'. -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts (1 errors) ==== function * foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. // Legal to use 'yield' in a type context. var v: yield; ~~~~~ diff --git a/tests/baselines/reference/FunctionDeclaration13_es6.js b/tests/baselines/reference/FunctionDeclaration13_es6.js index b0527ee47ef31..788505c58ba4c 100644 --- a/tests/baselines/reference/FunctionDeclaration13_es6.js +++ b/tests/baselines/reference/FunctionDeclaration13_es6.js @@ -6,7 +6,36 @@ function * foo() { //// [FunctionDeclaration13_es6.js] -function* foo() { - // Legal to use 'yield' in a type context. +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { var v; + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/FunctionDeclaration1_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration1_es6.errors.txt deleted file mode 100644 index d3dab52192659..0000000000000 --- a/tests/baselines/reference/FunctionDeclaration1_es6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration1_es6.ts(1,10): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration1_es6.ts (1 errors) ==== - function * foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - } \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration1_es6.js b/tests/baselines/reference/FunctionDeclaration1_es6.js index 534a4c21cd7e5..268eee4e10b47 100644 --- a/tests/baselines/reference/FunctionDeclaration1_es6.js +++ b/tests/baselines/reference/FunctionDeclaration1_es6.js @@ -3,5 +3,35 @@ function * foo() { } //// [FunctionDeclaration1_es6.js] -function* foo() { +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/FunctionDeclaration1_es6.symbols b/tests/baselines/reference/FunctionDeclaration1_es6.symbols new file mode 100644 index 0000000000000..7683664cb93f8 --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration1_es6.symbols @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration1_es6.ts === +function * foo() { +>foo : Symbol(foo, Decl(FunctionDeclaration1_es6.ts, 0, 0)) +} diff --git a/tests/baselines/reference/FunctionDeclaration1_es6.types b/tests/baselines/reference/FunctionDeclaration1_es6.types new file mode 100644 index 0000000000000..b8c84d9248a52 --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration1_es6.types @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration1_es6.ts === +function * foo() { +>foo : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/FunctionDeclaration5_es6.js b/tests/baselines/reference/FunctionDeclaration5_es6.js index 645ee976ecd96..54e6a98dd6604 100644 --- a/tests/baselines/reference/FunctionDeclaration5_es6.js +++ b/tests/baselines/reference/FunctionDeclaration5_es6.js @@ -3,7 +3,36 @@ function*foo(yield) { } //// [FunctionDeclaration5_es6.js] -function* foo() { } +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { return __generator(this, function (_a) { + return [2 /*return*/]; +}); } yield; { } diff --git a/tests/baselines/reference/FunctionDeclaration6_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration6_es6.errors.txt index 60798f7dbd68a..04806c7aae9c4 100644 --- a/tests/baselines/reference/FunctionDeclaration6_es6.errors.txt +++ b/tests/baselines/reference/FunctionDeclaration6_es6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration6_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration6_es6.ts(1,18): error TS2523: 'yield' expressions cannot be used in a parameter initializer. -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration6_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration6_es6.ts (1 errors) ==== function*foo(a = yield) { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. ~~~~~ !!! error TS2523: 'yield' expressions cannot be used in a parameter initializer. } \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration6_es6.js b/tests/baselines/reference/FunctionDeclaration6_es6.js index e0b871a9172e1..66da627973876 100644 --- a/tests/baselines/reference/FunctionDeclaration6_es6.js +++ b/tests/baselines/reference/FunctionDeclaration6_es6.js @@ -3,6 +3,39 @@ function*foo(a = yield) { } //// [FunctionDeclaration6_es6.js] -function* foo(a) { - if (a === void 0) { a = yield; } +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo(a) { + if (a === void 0) { a = _a.sent(); } + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/FunctionDeclaration7_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration7_es6.errors.txt index 3c1b950bea5a9..e0273c3bb44a0 100644 --- a/tests/baselines/reference/FunctionDeclaration7_es6.errors.txt +++ b/tests/baselines/reference/FunctionDeclaration7_es6.errors.txt @@ -1,16 +1,10 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(3,11): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(3,20): error TS2523: 'yield' expressions cannot be used in a parameter initializer. -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts (3 errors) ==== +==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts (1 errors) ==== function*bar() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. // 'yield' here is an identifier, and not a yield expression. function*foo(a = yield) { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. ~~~~~ !!! error TS2523: 'yield' expressions cannot be used in a parameter initializer. } diff --git a/tests/baselines/reference/FunctionDeclaration7_es6.js b/tests/baselines/reference/FunctionDeclaration7_es6.js index 49b43e2a2db9f..fa7cb3bb22caf 100644 --- a/tests/baselines/reference/FunctionDeclaration7_es6.js +++ b/tests/baselines/reference/FunctionDeclaration7_es6.js @@ -6,9 +6,45 @@ function*bar() { } //// [FunctionDeclaration7_es6.js] -function* bar() { +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function bar() { // 'yield' here is an identifier, and not a yield expression. - function* foo(a) { - if (a === void 0) { a = yield; } + function foo(a) { + if (a === void 0) { a = _a.sent(); } + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: return [2 /*return*/]; + } + }); } + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.errors.txt b/tests/baselines/reference/FunctionDeclaration9_es6.errors.txt deleted file mode 100644 index a2d2121d7fa51..0000000000000 --- a/tests/baselines/reference/FunctionDeclaration9_es6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts(1,10): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts (1 errors) ==== - function * foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - var v = { [yield]: foo } - } \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.js b/tests/baselines/reference/FunctionDeclaration9_es6.js index 720e276ccbacf..c459b0fbe6a7f 100644 --- a/tests/baselines/reference/FunctionDeclaration9_es6.js +++ b/tests/baselines/reference/FunctionDeclaration9_es6.js @@ -4,7 +4,43 @@ function * foo() { } //// [FunctionDeclaration9_es6.js] -function* foo() { - var v = (_a = {}, _a[yield] = foo, _a); - var _a; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + var v, _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + _a = {}; + return [4 /*yield*/]; + case 1: + v = (_a[_b.sent()] = foo, _a); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.symbols b/tests/baselines/reference/FunctionDeclaration9_es6.symbols new file mode 100644 index 0000000000000..0797c51331c66 --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration9_es6.symbols @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts === +function * foo() { +>foo : Symbol(foo, Decl(FunctionDeclaration9_es6.ts, 0, 0)) + + var v = { [yield]: foo } +>v : Symbol(v, Decl(FunctionDeclaration9_es6.ts, 1, 5)) +>foo : Symbol(foo, Decl(FunctionDeclaration9_es6.ts, 0, 0)) +} diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.types b/tests/baselines/reference/FunctionDeclaration9_es6.types new file mode 100644 index 0000000000000..f5ee90dc0966d --- /dev/null +++ b/tests/baselines/reference/FunctionDeclaration9_es6.types @@ -0,0 +1,10 @@ +=== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts === +function * foo() { +>foo : () => PseudoIterableIterator + + var v = { [yield]: foo } +>v : { [x: number]: () => PseudoIterableIterator; } +>{ [yield]: foo } : { [x: number]: () => PseudoIterableIterator; } +>yield : any +>foo : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/FunctionExpression1_es6.errors.txt b/tests/baselines/reference/FunctionExpression1_es6.errors.txt deleted file mode 100644 index 9c1f798c5adcc..0000000000000 --- a/tests/baselines/reference/FunctionExpression1_es6.errors.txt +++ /dev/null @@ -1,7 +0,0 @@ -tests/cases/conformance/es6/functionExpressions/FunctionExpression1_es6.ts(1,18): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionExpressions/FunctionExpression1_es6.ts (1 errors) ==== - var v = function * () { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. \ No newline at end of file diff --git a/tests/baselines/reference/FunctionExpression1_es6.js b/tests/baselines/reference/FunctionExpression1_es6.js index 4d2f36843a9cc..2fca3898eb194 100644 --- a/tests/baselines/reference/FunctionExpression1_es6.js +++ b/tests/baselines/reference/FunctionExpression1_es6.js @@ -2,4 +2,33 @@ var v = function * () { } //// [FunctionExpression1_es6.js] -var v = function* () { }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = function () { return __generator(this, function (_a) { + return [2 /*return*/]; +}); }; diff --git a/tests/baselines/reference/FunctionExpression1_es6.symbols b/tests/baselines/reference/FunctionExpression1_es6.symbols new file mode 100644 index 0000000000000..4e1ed33ea1cfb --- /dev/null +++ b/tests/baselines/reference/FunctionExpression1_es6.symbols @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/functionExpressions/FunctionExpression1_es6.ts === +var v = function * () { } +>v : Symbol(v, Decl(FunctionExpression1_es6.ts, 0, 3)) + diff --git a/tests/baselines/reference/FunctionExpression1_es6.types b/tests/baselines/reference/FunctionExpression1_es6.types new file mode 100644 index 0000000000000..7beae3fb7f206 --- /dev/null +++ b/tests/baselines/reference/FunctionExpression1_es6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/functionExpressions/FunctionExpression1_es6.ts === +var v = function * () { } +>v : () => PseudoIterableIterator +>function * () { } : () => PseudoIterableIterator + diff --git a/tests/baselines/reference/FunctionExpression2_es6.errors.txt b/tests/baselines/reference/FunctionExpression2_es6.errors.txt deleted file mode 100644 index 9248962e620f7..0000000000000 --- a/tests/baselines/reference/FunctionExpression2_es6.errors.txt +++ /dev/null @@ -1,7 +0,0 @@ -tests/cases/conformance/es6/functionExpressions/FunctionExpression2_es6.ts(1,18): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionExpressions/FunctionExpression2_es6.ts (1 errors) ==== - var v = function * foo() { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. \ No newline at end of file diff --git a/tests/baselines/reference/FunctionExpression2_es6.js b/tests/baselines/reference/FunctionExpression2_es6.js index bd88efcc7ec2b..655df94c8130f 100644 --- a/tests/baselines/reference/FunctionExpression2_es6.js +++ b/tests/baselines/reference/FunctionExpression2_es6.js @@ -2,4 +2,33 @@ var v = function * foo() { } //// [FunctionExpression2_es6.js] -var v = function* foo() { }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = function foo() { return __generator(this, function (_a) { + return [2 /*return*/]; +}); }; diff --git a/tests/baselines/reference/FunctionExpression2_es6.symbols b/tests/baselines/reference/FunctionExpression2_es6.symbols new file mode 100644 index 0000000000000..1fc8c3c10d64a --- /dev/null +++ b/tests/baselines/reference/FunctionExpression2_es6.symbols @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/functionExpressions/FunctionExpression2_es6.ts === +var v = function * foo() { } +>v : Symbol(v, Decl(FunctionExpression2_es6.ts, 0, 3)) +>foo : Symbol(foo, Decl(FunctionExpression2_es6.ts, 0, 7)) + diff --git a/tests/baselines/reference/FunctionExpression2_es6.types b/tests/baselines/reference/FunctionExpression2_es6.types new file mode 100644 index 0000000000000..cb589223fc279 --- /dev/null +++ b/tests/baselines/reference/FunctionExpression2_es6.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/functionExpressions/FunctionExpression2_es6.ts === +var v = function * foo() { } +>v : () => PseudoIterableIterator +>function * foo() { } : () => PseudoIterableIterator +>foo : () => PseudoIterableIterator + diff --git a/tests/baselines/reference/FunctionPropertyAssignments1_es6.errors.txt b/tests/baselines/reference/FunctionPropertyAssignments1_es6.errors.txt deleted file mode 100644 index fd463eed02dc8..0000000000000 --- a/tests/baselines/reference/FunctionPropertyAssignments1_es6.errors.txt +++ /dev/null @@ -1,7 +0,0 @@ -tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments1_es6.ts(1,11): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments1_es6.ts (1 errors) ==== - var v = { *foo() { } } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. \ No newline at end of file diff --git a/tests/baselines/reference/FunctionPropertyAssignments1_es6.js b/tests/baselines/reference/FunctionPropertyAssignments1_es6.js index 5975745391aab..fc95befd22c45 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments1_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments1_es6.js @@ -2,4 +2,33 @@ var v = { *foo() { } } //// [FunctionPropertyAssignments1_es6.js] -var v = { foo: function* () { } }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = { foo: function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments1_es6.symbols b/tests/baselines/reference/FunctionPropertyAssignments1_es6.symbols new file mode 100644 index 0000000000000..79aee0f470088 --- /dev/null +++ b/tests/baselines/reference/FunctionPropertyAssignments1_es6.symbols @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments1_es6.ts === +var v = { *foo() { } } +>v : Symbol(v, Decl(FunctionPropertyAssignments1_es6.ts, 0, 3)) +>foo : Symbol(foo, Decl(FunctionPropertyAssignments1_es6.ts, 0, 9)) + diff --git a/tests/baselines/reference/FunctionPropertyAssignments1_es6.types b/tests/baselines/reference/FunctionPropertyAssignments1_es6.types new file mode 100644 index 0000000000000..bfd14604494db --- /dev/null +++ b/tests/baselines/reference/FunctionPropertyAssignments1_es6.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments1_es6.ts === +var v = { *foo() { } } +>v : { foo(): PseudoIterableIterator; } +>{ *foo() { } } : { foo(): PseudoIterableIterator; } +>foo : () => PseudoIterableIterator + diff --git a/tests/baselines/reference/FunctionPropertyAssignments2_es6.js b/tests/baselines/reference/FunctionPropertyAssignments2_es6.js index b055960b6a81e..4d5eff7e17084 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments2_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments2_es6.js @@ -2,4 +2,33 @@ var v = { *() { } } //// [FunctionPropertyAssignments2_es6.js] -var v = { : function* () { } }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = { : function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments3_es6.js b/tests/baselines/reference/FunctionPropertyAssignments3_es6.js index 9642c28529d87..4109d24c38793 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments3_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments3_es6.js @@ -2,4 +2,33 @@ var v = { *{ } } //// [FunctionPropertyAssignments3_es6.js] -var v = { : function* () { } }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = { : function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments5_es6.errors.txt b/tests/baselines/reference/FunctionPropertyAssignments5_es6.errors.txt index 35185fdb7c642..143b764c08c85 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments5_es6.errors.txt +++ b/tests/baselines/reference/FunctionPropertyAssignments5_es6.errors.txt @@ -1,10 +1,7 @@ -tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments5_es6.ts(1,11): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments5_es6.ts(1,13): error TS2304: Cannot find name 'foo'. -==== tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments5_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments5_es6.ts (1 errors) ==== var v = { *[foo()]() { } } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. ~~~ !!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js index ba25922b67046..54a698da28990 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js @@ -2,5 +2,34 @@ var v = { *[foo()]() { } } //// [FunctionPropertyAssignments5_es6.js] -var v = (_a = {}, _a[foo()] = function* () { }, _a); +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = (_a = {}, _a[foo()] = function () { return __generator(this, function (_a) { + return [2 /*return*/]; +}); }, _a); var _a; diff --git a/tests/baselines/reference/FunctionPropertyAssignments6_es6.js b/tests/baselines/reference/FunctionPropertyAssignments6_es6.js index edcd227f7b990..c5fd8d217565f 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments6_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments6_es6.js @@ -2,4 +2,33 @@ var v = { *() { } } //// [FunctionPropertyAssignments6_es6.js] -var v = { : function* () { } }; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = { : function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); } }; diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.errors.txt b/tests/baselines/reference/MemberFunctionDeclaration1_es6.errors.txt deleted file mode 100644 index 25cb4ba4240e2..0000000000000 --- a/tests/baselines/reference/MemberFunctionDeclaration1_es6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration1_es6.ts(2,4): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration1_es6.ts (1 errors) ==== - class C { - *foo() { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - } \ No newline at end of file diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js index ec37b3370b03b..26f512aa92b0a 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js @@ -4,9 +4,38 @@ class C { } //// [MemberFunctionDeclaration1_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype.foo = function* () { }; + C.prototype.foo = function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.symbols b/tests/baselines/reference/MemberFunctionDeclaration1_es6.symbols new file mode 100644 index 0000000000000..a1862ea9209d4 --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration1_es6.symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration1_es6.ts === +class C { +>C : Symbol(C, Decl(MemberFunctionDeclaration1_es6.ts, 0, 0)) + + *foo() { } +>foo : Symbol(C.foo, Decl(MemberFunctionDeclaration1_es6.ts, 0, 9)) +} diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.types b/tests/baselines/reference/MemberFunctionDeclaration1_es6.types new file mode 100644 index 0000000000000..2de8eba432f1e --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration1_es6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration1_es6.ts === +class C { +>C : C + + *foo() { } +>foo : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.errors.txt b/tests/baselines/reference/MemberFunctionDeclaration2_es6.errors.txt deleted file mode 100644 index 8277d6f1f6739..0000000000000 --- a/tests/baselines/reference/MemberFunctionDeclaration2_es6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration2_es6.ts(2,11): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration2_es6.ts (1 errors) ==== - class C { - public * foo() { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - } \ No newline at end of file diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js index 54550ef72e76d..c8bdbf2eddfac 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js @@ -4,9 +4,38 @@ class C { } //// [MemberFunctionDeclaration2_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype.foo = function* () { }; + C.prototype.foo = function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.symbols b/tests/baselines/reference/MemberFunctionDeclaration2_es6.symbols new file mode 100644 index 0000000000000..ac380db0268d3 --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration2_es6.symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration2_es6.ts === +class C { +>C : Symbol(C, Decl(MemberFunctionDeclaration2_es6.ts, 0, 0)) + + public * foo() { } +>foo : Symbol(C.foo, Decl(MemberFunctionDeclaration2_es6.ts, 0, 9)) +} diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.types b/tests/baselines/reference/MemberFunctionDeclaration2_es6.types new file mode 100644 index 0000000000000..d70f300ac1380 --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration2_es6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration2_es6.ts === +class C { +>C : C + + public * foo() { } +>foo : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/MemberFunctionDeclaration3_es6.errors.txt b/tests/baselines/reference/MemberFunctionDeclaration3_es6.errors.txt index 3fd821bafdfc8..fdfe7425320c1 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration3_es6.errors.txt +++ b/tests/baselines/reference/MemberFunctionDeclaration3_es6.errors.txt @@ -1,12 +1,9 @@ -tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts(2,4): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts(2,6): error TS2304: Cannot find name 'foo'. -==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts (1 errors) ==== class C { *[foo]() { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. ~~~ !!! error TS2304: Cannot find name 'foo'. } \ No newline at end of file diff --git a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js index 07d9a021fcd51..8235430fd15aa 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js @@ -4,9 +4,38 @@ class C { } //// [MemberFunctionDeclaration3_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype[foo] = function* () { }; + C.prototype[foo] = function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js index f791d4a1156a0..40ea3f9db9ba1 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js @@ -4,9 +4,38 @@ class C { } //// [MemberFunctionDeclaration4_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype. = function* () { }; + C.prototype. = function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration7_es6.errors.txt b/tests/baselines/reference/MemberFunctionDeclaration7_es6.errors.txt deleted file mode 100644 index cd4c49bdd6da1..0000000000000 --- a/tests/baselines/reference/MemberFunctionDeclaration7_es6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration7_es6.ts(2,4): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration7_es6.ts (1 errors) ==== - class C { - *foo() { } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - } \ No newline at end of file diff --git a/tests/baselines/reference/MemberFunctionDeclaration7_es6.js b/tests/baselines/reference/MemberFunctionDeclaration7_es6.js index 8e19f0db3331a..4d8b758eff538 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration7_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration7_es6.js @@ -4,9 +4,38 @@ class C { } //// [MemberFunctionDeclaration7_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype.foo = function* () { }; + C.prototype.foo = function () { return __generator(this, function (_a) { + return [2 /*return*/]; + }); }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration7_es6.symbols b/tests/baselines/reference/MemberFunctionDeclaration7_es6.symbols new file mode 100644 index 0000000000000..fa07b61e4a660 --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration7_es6.symbols @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration7_es6.ts === +class C { +>C : Symbol(C, Decl(MemberFunctionDeclaration7_es6.ts, 0, 0)) + + *foo() { } +>foo : Symbol(C.foo, Decl(MemberFunctionDeclaration7_es6.ts, 0, 9)) +>T : Symbol(T, Decl(MemberFunctionDeclaration7_es6.ts, 1, 8)) +} diff --git a/tests/baselines/reference/MemberFunctionDeclaration7_es6.types b/tests/baselines/reference/MemberFunctionDeclaration7_es6.types new file mode 100644 index 0000000000000..90244cb204f32 --- /dev/null +++ b/tests/baselines/reference/MemberFunctionDeclaration7_es6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration7_es6.ts === +class C { +>C : C + + *foo() { } +>foo : () => PseudoIterableIterator +>T : T +} diff --git a/tests/baselines/reference/YieldExpression10_es6.errors.txt b/tests/baselines/reference/YieldExpression10_es6.errors.txt index 7bf534e418861..9e48fefc10aab 100644 --- a/tests/baselines/reference/YieldExpression10_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression10_es6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression10_es6.ts(1,11): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/yieldExpressions/YieldExpression10_es6.ts(2,11): error TS2304: Cannot find name 'foo'. -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression10_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression10_es6.ts (1 errors) ==== var v = { * foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. yield(foo); ~~~ !!! error TS2304: Cannot find name 'foo'. diff --git a/tests/baselines/reference/YieldExpression10_es6.js b/tests/baselines/reference/YieldExpression10_es6.js index e1dd44b676b30..d28baa9bac1fc 100644 --- a/tests/baselines/reference/YieldExpression10_es6.js +++ b/tests/baselines/reference/YieldExpression10_es6.js @@ -6,7 +6,41 @@ var v = { * foo() { //// [YieldExpression10_es6.js] -var v = { foo: function* () { - yield (foo); +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = { foo: function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } }; diff --git a/tests/baselines/reference/YieldExpression11_es6.errors.txt b/tests/baselines/reference/YieldExpression11_es6.errors.txt index f5d3458520f25..223389e4e3945 100644 --- a/tests/baselines/reference/YieldExpression11_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression11_es6.errors.txt @@ -1,12 +1,9 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts(2,3): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts(3,11): error TS2663: Cannot find name 'foo'. Did you mean the instance member 'this.foo'? -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts (1 errors) ==== class C { *foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. yield(foo); ~~~ !!! error TS2663: Cannot find name 'foo'. Did you mean the instance member 'this.foo'? diff --git a/tests/baselines/reference/YieldExpression11_es6.js b/tests/baselines/reference/YieldExpression11_es6.js index fb4f83c7197ad..715ce98f8e7bc 100644 --- a/tests/baselines/reference/YieldExpression11_es6.js +++ b/tests/baselines/reference/YieldExpression11_es6.js @@ -6,11 +6,45 @@ class C { } //// [YieldExpression11_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; var C = (function () { function C() { } - C.prototype.foo = function* () { - yield (foo); + C.prototype.foo = function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); }; return C; }()); diff --git a/tests/baselines/reference/YieldExpression13_es6.errors.txt b/tests/baselines/reference/YieldExpression13_es6.errors.txt deleted file mode 100644 index 9908844888696..0000000000000 --- a/tests/baselines/reference/YieldExpression13_es6.errors.txt +++ /dev/null @@ -1,7 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts (1 errors) ==== - function* foo() { yield } - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression13_es6.js b/tests/baselines/reference/YieldExpression13_es6.js index c75e964675a55..27b5eddd504d9 100644 --- a/tests/baselines/reference/YieldExpression13_es6.js +++ b/tests/baselines/reference/YieldExpression13_es6.js @@ -2,4 +2,38 @@ function* foo() { yield } //// [YieldExpression13_es6.js] -function* foo() { yield; } +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: + _a.sent(); + return [2 /*return*/]; + } +}); } diff --git a/tests/baselines/reference/YieldExpression13_es6.symbols b/tests/baselines/reference/YieldExpression13_es6.symbols new file mode 100644 index 0000000000000..f2e1b100c9d20 --- /dev/null +++ b/tests/baselines/reference/YieldExpression13_es6.symbols @@ -0,0 +1,4 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts === +function* foo() { yield } +>foo : Symbol(foo, Decl(YieldExpression13_es6.ts, 0, 0)) + diff --git a/tests/baselines/reference/YieldExpression13_es6.types b/tests/baselines/reference/YieldExpression13_es6.types new file mode 100644 index 0000000000000..ede146bf99007 --- /dev/null +++ b/tests/baselines/reference/YieldExpression13_es6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts === +function* foo() { yield } +>foo : () => PseudoIterableIterator +>yield : any + diff --git a/tests/baselines/reference/YieldExpression16_es6.errors.txt b/tests/baselines/reference/YieldExpression16_es6.errors.txt index 0645f5d818ae1..94e082f4c2760 100644 --- a/tests/baselines/reference/YieldExpression16_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression16_es6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts(3,5): error TS1163: A 'yield' expression is only allowed in a generator body. -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts (1 errors) ==== function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. function bar() { yield foo; ~~~~~ diff --git a/tests/baselines/reference/YieldExpression16_es6.js b/tests/baselines/reference/YieldExpression16_es6.js index 0937cfedcb902..0bf96c37722d6 100644 --- a/tests/baselines/reference/YieldExpression16_es6.js +++ b/tests/baselines/reference/YieldExpression16_es6.js @@ -6,8 +6,38 @@ function* foo() { } //// [YieldExpression16_es6.js] -function* foo() { +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { function bar() { yield foo; } + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/YieldExpression19_es6.errors.txt b/tests/baselines/reference/YieldExpression19_es6.errors.txt deleted file mode 100644 index f07cfc1db7833..0000000000000 --- a/tests/baselines/reference/YieldExpression19_es6.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression19_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. -tests/cases/conformance/es6/yieldExpressions/YieldExpression19_es6.ts(3,13): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression19_es6.ts (2 errors) ==== - function*foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - function bar() { - function* quux() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield(foo); - } - } - } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression19_es6.js b/tests/baselines/reference/YieldExpression19_es6.js index 444c7af7be1d4..4a340253a26ef 100644 --- a/tests/baselines/reference/YieldExpression19_es6.js +++ b/tests/baselines/reference/YieldExpression19_es6.js @@ -8,10 +8,47 @@ function*foo() { } //// [YieldExpression19_es6.js] -function* foo() { +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { function bar() { - function* quux() { - yield (foo); + function quux() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } } + return __generator(this, function (_a) { + return [2 /*return*/]; + }); } diff --git a/tests/baselines/reference/YieldExpression19_es6.symbols b/tests/baselines/reference/YieldExpression19_es6.symbols new file mode 100644 index 0000000000000..609102001c453 --- /dev/null +++ b/tests/baselines/reference/YieldExpression19_es6.symbols @@ -0,0 +1,15 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression19_es6.ts === +function*foo() { +>foo : Symbol(foo, Decl(YieldExpression19_es6.ts, 0, 0)) + + function bar() { +>bar : Symbol(bar, Decl(YieldExpression19_es6.ts, 0, 16)) + + function* quux() { +>quux : Symbol(quux, Decl(YieldExpression19_es6.ts, 1, 18)) + + yield(foo); +>foo : Symbol(foo, Decl(YieldExpression19_es6.ts, 0, 0)) + } + } +} diff --git a/tests/baselines/reference/YieldExpression19_es6.types b/tests/baselines/reference/YieldExpression19_es6.types new file mode 100644 index 0000000000000..b50eb4740348d --- /dev/null +++ b/tests/baselines/reference/YieldExpression19_es6.types @@ -0,0 +1,17 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression19_es6.ts === +function*foo() { +>foo : () => PseudoIterableIterator + + function bar() { +>bar : () => void + + function* quux() { +>quux : () => PseudoIterableIterator<() => PseudoIterableIterator> + + yield(foo); +>yield(foo) : any +>(foo) : () => PseudoIterableIterator +>foo : () => PseudoIterableIterator + } + } +} diff --git a/tests/baselines/reference/YieldExpression3_es6.errors.txt b/tests/baselines/reference/YieldExpression3_es6.errors.txt deleted file mode 100644 index 9f07c13184e34..0000000000000 --- a/tests/baselines/reference/YieldExpression3_es6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts (1 errors) ==== - function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield - yield - } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression3_es6.js b/tests/baselines/reference/YieldExpression3_es6.js index 737b35348865c..2df6199161daf 100644 --- a/tests/baselines/reference/YieldExpression3_es6.js +++ b/tests/baselines/reference/YieldExpression3_es6.js @@ -5,7 +5,43 @@ function* foo() { } //// [YieldExpression3_es6.js] -function* foo() { - yield; - yield; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: + _a.sent(); + return [4 /*yield*/]; + case 2: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression3_es6.symbols b/tests/baselines/reference/YieldExpression3_es6.symbols new file mode 100644 index 0000000000000..4ab5b42688f83 --- /dev/null +++ b/tests/baselines/reference/YieldExpression3_es6.symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts === +function* foo() { +>foo : Symbol(foo, Decl(YieldExpression3_es6.ts, 0, 0)) + + yield + yield +} diff --git a/tests/baselines/reference/YieldExpression3_es6.types b/tests/baselines/reference/YieldExpression3_es6.types new file mode 100644 index 0000000000000..2ce992b7753bb --- /dev/null +++ b/tests/baselines/reference/YieldExpression3_es6.types @@ -0,0 +1,10 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts === +function* foo() { +>foo : () => PseudoIterableIterator + + yield +>yield : any + + yield +>yield : any +} diff --git a/tests/baselines/reference/YieldExpression4_es6.errors.txt b/tests/baselines/reference/YieldExpression4_es6.errors.txt deleted file mode 100644 index 6c9a5796ee836..0000000000000 --- a/tests/baselines/reference/YieldExpression4_es6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts (1 errors) ==== - function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield; - yield; - } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression4_es6.js b/tests/baselines/reference/YieldExpression4_es6.js index c97a7949b2bbd..f59c7205443d6 100644 --- a/tests/baselines/reference/YieldExpression4_es6.js +++ b/tests/baselines/reference/YieldExpression4_es6.js @@ -5,7 +5,43 @@ function* foo() { } //// [YieldExpression4_es6.js] -function* foo() { - yield; - yield; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: + _a.sent(); + return [4 /*yield*/]; + case 2: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression4_es6.symbols b/tests/baselines/reference/YieldExpression4_es6.symbols new file mode 100644 index 0000000000000..7954fb705e60f --- /dev/null +++ b/tests/baselines/reference/YieldExpression4_es6.symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts === +function* foo() { +>foo : Symbol(foo, Decl(YieldExpression4_es6.ts, 0, 0)) + + yield; + yield; +} diff --git a/tests/baselines/reference/YieldExpression4_es6.types b/tests/baselines/reference/YieldExpression4_es6.types new file mode 100644 index 0000000000000..cc8f4a7316e2b --- /dev/null +++ b/tests/baselines/reference/YieldExpression4_es6.types @@ -0,0 +1,10 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts === +function* foo() { +>foo : () => PseudoIterableIterator + + yield; +>yield : any + + yield; +>yield : any +} diff --git a/tests/baselines/reference/YieldExpression5_es6.js b/tests/baselines/reference/YieldExpression5_es6.js index 8599cfdb6bbc7..228f5621597d1 100644 --- a/tests/baselines/reference/YieldExpression5_es6.js +++ b/tests/baselines/reference/YieldExpression5_es6.js @@ -4,6 +4,44 @@ function* foo() { } //// [YieldExpression5_es6.js] -function* foo() { - yield* ; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [5 /*yield**/, __values()]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression6_es6.errors.txt b/tests/baselines/reference/YieldExpression6_es6.errors.txt index f2fc90b81b41d..7beeeed2751b0 100644 --- a/tests/baselines/reference/YieldExpression6_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression6_es6.errors.txt @@ -1,12 +1,9 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. -tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts(2,9): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. +tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts(2,9): error TS2461: Type '() => any' is not an array type or does not have an '__iterator__()' method that returns an iterator. -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts (1 errors) ==== function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. yield*foo ~~~ -!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. +!!! error TS2461: Type '() => any' is not an array type or does not have an '__iterator__()' method that returns an iterator. } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression6_es6.js b/tests/baselines/reference/YieldExpression6_es6.js index c511daec989d6..f8c04d7303502 100644 --- a/tests/baselines/reference/YieldExpression6_es6.js +++ b/tests/baselines/reference/YieldExpression6_es6.js @@ -4,6 +4,44 @@ function* foo() { } //// [YieldExpression6_es6.js] -function* foo() { - yield* foo; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [5 /*yield**/, __values(foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression7_es6.errors.txt b/tests/baselines/reference/YieldExpression7_es6.errors.txt deleted file mode 100644 index f929dff0a2a57..0000000000000 --- a/tests/baselines/reference/YieldExpression7_es6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression7_es6.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression7_es6.ts (1 errors) ==== - function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield foo - } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression7_es6.js b/tests/baselines/reference/YieldExpression7_es6.js index 8055b96ec73f4..f83be25b5131f 100644 --- a/tests/baselines/reference/YieldExpression7_es6.js +++ b/tests/baselines/reference/YieldExpression7_es6.js @@ -4,6 +4,40 @@ function* foo() { } //// [YieldExpression7_es6.js] -function* foo() { - yield foo; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, foo]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression7_es6.symbols b/tests/baselines/reference/YieldExpression7_es6.symbols new file mode 100644 index 0000000000000..53737c94be936 --- /dev/null +++ b/tests/baselines/reference/YieldExpression7_es6.symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression7_es6.ts === +function* foo() { +>foo : Symbol(foo, Decl(YieldExpression7_es6.ts, 0, 0)) + + yield foo +>foo : Symbol(foo, Decl(YieldExpression7_es6.ts, 0, 0)) +} diff --git a/tests/baselines/reference/YieldExpression7_es6.types b/tests/baselines/reference/YieldExpression7_es6.types new file mode 100644 index 0000000000000..f5b5aecf99f88 --- /dev/null +++ b/tests/baselines/reference/YieldExpression7_es6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldExpression7_es6.ts === +function* foo() { +>foo : () => PseudoIterableIterator + + yield foo +>yield foo : any +>foo : () => PseudoIterableIterator +} diff --git a/tests/baselines/reference/YieldExpression8_es6.errors.txt b/tests/baselines/reference/YieldExpression8_es6.errors.txt index aef1fbc122d6e..f4dd30b1a1947 100644 --- a/tests/baselines/reference/YieldExpression8_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression8_es6.errors.txt @@ -1,13 +1,10 @@ tests/cases/conformance/es6/yieldExpressions/YieldExpression8_es6.ts(1,1): error TS2304: Cannot find name 'yield'. -tests/cases/conformance/es6/yieldExpressions/YieldExpression8_es6.ts(2,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression8_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression8_es6.ts (1 errors) ==== yield(foo); ~~~~~ !!! error TS2304: Cannot find name 'yield'. function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. yield(foo); } \ No newline at end of file diff --git a/tests/baselines/reference/YieldExpression8_es6.js b/tests/baselines/reference/YieldExpression8_es6.js index cc92b79c722ea..dc437b55f9a0b 100644 --- a/tests/baselines/reference/YieldExpression8_es6.js +++ b/tests/baselines/reference/YieldExpression8_es6.js @@ -5,7 +5,41 @@ function* foo() { } //// [YieldExpression8_es6.js] +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; yield(foo); -function* foo() { - yield (foo); +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldExpression9_es6.errors.txt b/tests/baselines/reference/YieldExpression9_es6.errors.txt index 2ad925a90a064..1241e615f798e 100644 --- a/tests/baselines/reference/YieldExpression9_es6.errors.txt +++ b/tests/baselines/reference/YieldExpression9_es6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/es6/yieldExpressions/YieldExpression9_es6.ts(1,17): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. tests/cases/conformance/es6/yieldExpressions/YieldExpression9_es6.ts(2,9): error TS2304: Cannot find name 'foo'. -==== tests/cases/conformance/es6/yieldExpressions/YieldExpression9_es6.ts (2 errors) ==== +==== tests/cases/conformance/es6/yieldExpressions/YieldExpression9_es6.ts (1 errors) ==== var v = function*() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. yield(foo); ~~~ !!! error TS2304: Cannot find name 'foo'. diff --git a/tests/baselines/reference/YieldExpression9_es6.js b/tests/baselines/reference/YieldExpression9_es6.js index a2ffa0fa01b10..990e999fb5089 100644 --- a/tests/baselines/reference/YieldExpression9_es6.js +++ b/tests/baselines/reference/YieldExpression9_es6.js @@ -4,6 +4,40 @@ var v = function*() { } //// [YieldExpression9_es6.js] -var v = function* () { - yield (foo); +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var v = function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (foo)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); }; diff --git a/tests/baselines/reference/YieldStarExpression3_es6.js b/tests/baselines/reference/YieldStarExpression3_es6.js index e64306dc4cf58..db66e17d9257f 100644 --- a/tests/baselines/reference/YieldStarExpression3_es6.js +++ b/tests/baselines/reference/YieldStarExpression3_es6.js @@ -4,6 +4,44 @@ function *g() { } //// [YieldStarExpression3_es6.js] -function* g() { - yield* ; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +function g() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [5 /*yield**/, __values()]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldStarExpression4_es6.errors.txt b/tests/baselines/reference/YieldStarExpression4_es6.errors.txt deleted file mode 100644 index c58844a92887b..0000000000000 --- a/tests/baselines/reference/YieldStarExpression4_es6.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts(1,10): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. -tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts(2,13): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. - - -==== tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts (2 errors) ==== - function *g() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield * []; - ~~ -!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. - } \ No newline at end of file diff --git a/tests/baselines/reference/YieldStarExpression4_es6.js b/tests/baselines/reference/YieldStarExpression4_es6.js index 8ec5fa0c933c3..877949cfe47dc 100644 --- a/tests/baselines/reference/YieldStarExpression4_es6.js +++ b/tests/baselines/reference/YieldStarExpression4_es6.js @@ -4,6 +4,44 @@ function *g() { } //// [YieldStarExpression4_es6.js] -function* g() { - yield* []; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +function g() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [5 /*yield**/, __values([])]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/YieldStarExpression4_es6.symbols b/tests/baselines/reference/YieldStarExpression4_es6.symbols new file mode 100644 index 0000000000000..c23e2ac8895ce --- /dev/null +++ b/tests/baselines/reference/YieldStarExpression4_es6.symbols @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts === +function *g() { +>g : Symbol(g, Decl(YieldStarExpression4_es6.ts, 0, 0)) + + yield * []; +} diff --git a/tests/baselines/reference/YieldStarExpression4_es6.types b/tests/baselines/reference/YieldStarExpression4_es6.types new file mode 100644 index 0000000000000..8f5a209f085f2 --- /dev/null +++ b/tests/baselines/reference/YieldStarExpression4_es6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts === +function *g() { +>g : () => PseudoIterableIterator + + yield * []; +>yield * [] : any +>[] : undefined[] +} diff --git a/tests/baselines/reference/argumentExpressionContextualTyping.js b/tests/baselines/reference/argumentExpressionContextualTyping.js index d3383612327e5..5b930ecaf1292 100644 --- a/tests/baselines/reference/argumentExpressionContextualTyping.js +++ b/tests/baselines/reference/argumentExpressionContextualTyping.js @@ -19,12 +19,24 @@ baz(["string", 1, true, ...array]); // Error foo(o); // Error because x has an array type namely (string|number)[] //// [argumentExpressionContextualTyping.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // In a typed function call, argument expressions are contextually typed by their corresponding parameter types. function foo(_a) { - var _b = _a.x, a = _b[0], b = _b[1], _c = _a.y, c = _c.c, d = _c.d, e = _c.e; + var _b = __read(_a.x, 2), a = _b[0], b = _b[1], _c = _a.y, c = _c.c, d = _c.d, e = _c.e; } function bar(_a) { - var _b = _a.x, a = _b[0], _c = _b[1], b = _c === void 0 ? 10 : _c, _d = _a.y, c = _d.c, d = _d.d, _e = _d.e, e = _e === void 0 ? { f: 1 } : _e; + var _b = __read(_a.x, 2), a = _b[0], _c = _b[1], b = _c === void 0 ? 10 : _c, _d = _a.y, c = _d.c, d = _d.d, _e = _d.e, e = _e === void 0 ? { f: 1 } : _e; } function baz(x) { } var o = { x: ["string", 1], y: { c: true, d: "world", e: 3 } }; @@ -36,5 +48,5 @@ var tuple = ["string", 1, true]; baz(tuple); baz(["string", 1, true]); baz(array); // Error -baz(["string", 1, true].concat(array)); // Error +baz(__spread(["string", 1, true], array)); // Error foo(o); // Error because x has an array type namely (string|number)[] diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt b/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt index d607ab65d2973..e31a7e771a8df 100644 --- a/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt +++ b/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/argumentsObjectIterator01_ES5.ts(4,21): error TS2495: Type 'IArguments' is not an array type or a string type. +tests/cases/compiler/argumentsObjectIterator01_ES5.ts(4,21): error TS2495: Type 'IArguments' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/compiler/argumentsObjectIterator01_ES5.ts (1 errors) ==== @@ -7,7 +7,7 @@ tests/cases/compiler/argumentsObjectIterator01_ES5.ts(4,21): error TS2495: Type let result = []; for (let arg of arguments) { ~~~~~~~~~ -!!! error TS2495: Type 'IArguments' is not an array type or a string type. +!!! error TS2495: Type 'IArguments' is not an array type or a string type or does not have an '__iterator__()' method that returns an iterator. result.push(arg + arg); } return <[any, any, any]>result; diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.js b/tests/baselines/reference/argumentsObjectIterator01_ES5.js index 8378528dbf408..3f784aafb7fb4 100644 --- a/tests/baselines/reference/argumentsObjectIterator01_ES5.js +++ b/tests/baselines/reference/argumentsObjectIterator01_ES5.js @@ -9,11 +9,29 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe } //// [argumentsObjectIterator01_ES5.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; function doubleAndReturnAsArray(x, y, z) { var result = []; - for (var _i = 0, arguments_1 = arguments; _i < arguments_1.length; _i++) { - var arg = arguments_1[_i]; - result.push(arg + arg); + try { + for (var arguments_1 = { iterator: __values(arguments) }; __step(arguments_1);) { + var arg = arguments_1.result.value; + result.push(arg + arg); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(arguments_1); } finally { if (e_1) throw e_1.error; } } return result; + var e_1; } diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5.js b/tests/baselines/reference/argumentsObjectIterator02_ES5.js index 366bf8de199e7..c51e0a8f0f085 100644 --- a/tests/baselines/reference/argumentsObjectIterator02_ES5.js +++ b/tests/baselines/reference/argumentsObjectIterator02_ES5.js @@ -13,12 +13,30 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe //// [argumentsObjectIterator02_ES5.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; function doubleAndReturnAsArray(x, y, z) { var blah = arguments[Symbol.iterator]; var result = []; - for (var _i = 0, _a = blah(); _i < _a.length; _i++) { - var arg = _a[_i]; - result.push(arg + arg); + try { + for (var iterator_1 = { iterator: __values(blah()) }; __step(iterator_1);) { + var arg = iterator_1.result.value; + result.push(arg + arg); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } } return result; + var e_1; } diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt b/tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt index c39ea23831766..05274c13ca006 100644 --- a/tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt +++ b/tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/argumentsObjectIterator03_ES5.ts(3,9): error TS2461: Type 'IArguments' is not an array type. +tests/cases/compiler/argumentsObjectIterator03_ES5.ts(3,9): error TS2461: Type 'IArguments' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/compiler/argumentsObjectIterator03_ES5.ts (1 errors) ==== @@ -6,7 +6,7 @@ tests/cases/compiler/argumentsObjectIterator03_ES5.ts(3,9): error TS2461: Type ' function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] { let [x, y, z] = arguments; ~~~~~~~~~ -!!! error TS2461: Type 'IArguments' is not an array type. +!!! error TS2461: Type 'IArguments' is not an array type or does not have an '__iterator__()' method that returns an iterator. return [z, y, x]; } diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.js b/tests/baselines/reference/argumentsObjectIterator03_ES5.js index 7ea7e7b6593b6..5beb871c8b865 100644 --- a/tests/baselines/reference/argumentsObjectIterator03_ES5.js +++ b/tests/baselines/reference/argumentsObjectIterator03_ES5.js @@ -9,7 +9,15 @@ function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, nu //// [argumentsObjectIterator03_ES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function asReversedTuple(a, b, c) { - var x = arguments[0], y = arguments[1], z = arguments[2]; + var _a = __read(arguments, 3), x = _a[0], y = _a[1], z = _a[2]; return [z, y, x]; } diff --git a/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt b/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt index a6a685069d6b0..da31faa0c68ab 100644 --- a/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt +++ b/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(13,12): error TS2493: Tuple type '[string, number]' with length '2' cannot be assigned to tuple with length '3'. tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(14,12): error TS2460: Type 'StrNum' has no property '2'. -tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,5): error TS2461: Type '{ 0: string; 1: number; }' is not an array type. +tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,5): error TS2461: Type '{ 0: string; 1: number; }' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,12): error TS2460: Type '{ 0: string; 1: number; }' has no property '2'. tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(16,5): error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'. Types of property '0' are incompatible. @@ -69,7 +69,7 @@ tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(30,5): error !!! error TS2460: Type 'StrNum' has no property '2'. var [g, h, i] = z; ~~~~~~~~~ -!!! error TS2461: Type '{ 0: string; 1: number; }' is not an array type. +!!! error TS2461: Type '{ 0: string; 1: number; }' is not an array type or does not have an '__iterator__()' method that returns an iterator. ~ !!! error TS2460: Type '{ 0: string; 1: number; }' has no property '2'. var j1: [number, number, number] = x; diff --git a/tests/baselines/reference/arityAndOrderCompatibility01.js b/tests/baselines/reference/arityAndOrderCompatibility01.js index 2eb1bcf8bd8a0..a70a4c213edb7 100644 --- a/tests/baselines/reference/arityAndOrderCompatibility01.js +++ b/tests/baselines/reference/arityAndOrderCompatibility01.js @@ -35,12 +35,20 @@ var o3: [string, number] = y; //// [arityAndOrderCompatibility01.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var x; var y; var z; -var a = x[0], b = x[1], c = x[2]; -var d = y[0], e = y[1], f = y[2]; -var g = z[0], h = z[1], i = z[2]; +var _a = __read(x, 3), a = _a[0], b = _a[1], c = _a[2]; +var _b = __read(y, 3), d = _b[0], e = _b[1], f = _b[2]; +var _c = __read(z, 3), g = _c[0], h = _c[1], i = _c[2]; var j1 = x; var j2 = y; var j3 = z; diff --git a/tests/baselines/reference/arrayAssignmentPatternWithAny.js b/tests/baselines/reference/arrayAssignmentPatternWithAny.js index c81b5f1f38d8b..e2c8ae69aa553 100644 --- a/tests/baselines/reference/arrayAssignmentPatternWithAny.js +++ b/tests/baselines/reference/arrayAssignmentPatternWithAny.js @@ -4,6 +4,15 @@ var x: string; [x] = a; //// [arrayAssignmentPatternWithAny.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a; var x; -x = a[0]; +_a = __read(a, 1), x = _a[0]; +var _a; diff --git a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js index 852a632f3611c..26e33bf9dd251 100644 --- a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js +++ b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js @@ -16,6 +16,18 @@ var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error //// [arrayLiteralExpressionContextualTyping.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // In a contextually typed array literal expression containing no spread elements, an element expression at index N is contextually typed by // the type of the property with the numeric name N in the contextual type, if any, or otherwise // the numeric index type of the contextual type, if any. @@ -26,6 +38,6 @@ var tup1 = [1, 2, 3, "string"]; var tup2 = [1, 2, 3, "string"]; // Error // In a contextually typed array literal expression containing one or more spread elements, // an element expression at index N is contextually typed by the numeric index type of the contextual type, if any. -var spr = [1, 2, 3].concat(array); -var spr1 = [1, 2, 3].concat(tup); -var spr2 = [1, 2, 3].concat(tup); // Error +var spr = __spread([1, 2, 3], array); +var spr1 = __spread([1, 2, 3], tup); +var spr2 = __spread([1, 2, 3], tup); // Error diff --git a/tests/baselines/reference/arrayLiteralSpread.js b/tests/baselines/reference/arrayLiteralSpread.js index 3561189671e84..5678a210f293e 100644 --- a/tests/baselines/reference/arrayLiteralSpread.js +++ b/tests/baselines/reference/arrayLiteralSpread.js @@ -24,23 +24,35 @@ function f2() { //// [arrayLiteralSpread.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function f0() { var a = [1, 2, 3]; - var a1 = a.slice(); - var a2 = [1].concat(a); - var a3 = [1, 2].concat(a); - var a4 = a.concat([1]); - var a5 = a.concat([1, 2]); - var a6 = [1, 2].concat(a, [1, 2]); - var a7 = [1].concat(a, [2], a); - var a8 = a.concat(a, a); + var a1 = __spread(a); + var a2 = __spread([1], a); + var a3 = __spread([1, 2], a); + var a4 = __spread(a, [1]); + var a5 = __spread(a, [1, 2]); + var a6 = __spread([1, 2], a, [1, 2]); + var a7 = __spread([1], a, [2], a); + var a8 = __spread(a, a, a); } function f1() { var a = [1, 2, 3]; - var b = ["hello"].concat(a, [true]); + var b = __spread(["hello"], a, [true]); var b; } function f2() { - var a = []; - var b = [5]; + var a = __spread([]); + var b = __spread([5]); } diff --git a/tests/baselines/reference/arrayLiterals2ES5.js b/tests/baselines/reference/arrayLiterals2ES5.js index 6a81ab465a2f1..0932d2e877eb8 100644 --- a/tests/baselines/reference/arrayLiterals2ES5.js +++ b/tests/baselines/reference/arrayLiterals2ES5.js @@ -62,14 +62,26 @@ var d9 = [[...temp1], ...["hello"]]; // Elisionopt SpreadElement // ElementList, Elisionopt AssignmentExpression // ElementList, Elisionopt SpreadElement +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // SpreadElement: // ... AssignmentExpression var a0 = [, , 2, 3, 4]; var a1 = ["hello", "world"]; -var a2 = [, , ].concat(a0, ["hello"]); -var a3 = [, ].concat(a0); +var a2 = __spread([, , ], a0, ["hello"]); +var a3 = __spread([, ], a0); var a4 = [function () { return 1; },]; -var a5 = a0.concat([,]); +var a5 = __spread(a0, [,]); // Each element expression in a non-empty array literal is processed as follows: // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, @@ -92,13 +104,13 @@ var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; var temp3 = [undefined, null, undefined]; var temp4 = []; -var d0 = [1, true].concat(temp); // has type (string|number|boolean)[] -var d1 = temp.slice(); // has type string[] -var d2 = temp1.slice(); -var d3 = temp1.slice(); -var d4 = temp.concat(temp1); -var d5 = temp3.slice(); -var d6 = temp4.slice(); -var d7 = temp1.slice(); -var d8 = [temp1.slice()]; -var d9 = [temp1.slice()].concat(["hello"]); +var d0 = __spread([1, true], temp); // has type (string|number|boolean)[] +var d1 = __spread(temp); // has type string[] +var d2 = __spread(temp1); +var d3 = __spread(temp1); +var d4 = __spread(temp, temp1); +var d5 = __spread(temp3); +var d6 = __spread(temp4); +var d7 = __spread(temp1); +var d8 = [__spread(temp1)]; +var d9 = __spread([__spread(temp1)], ["hello"]); diff --git a/tests/baselines/reference/arrayLiterals3.js b/tests/baselines/reference/arrayLiterals3.js index 4769c06998827..eb814fbc47d61 100644 --- a/tests/baselines/reference/arrayLiterals3.js +++ b/tests/baselines/reference/arrayLiterals3.js @@ -40,6 +40,18 @@ var c2: myArray = [...temp1, ...temp]; // Error cannot assign (number // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, // the element expression is contextually typed by the type of that property. +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is contextually typed by a tuple-like type, // the resulting type is a tuple type constructed from the types of the element expressions. @@ -55,6 +67,6 @@ var _a = [1, 2, "string", true], b1 = _a[0], b2 = _a[1]; var temp = ["s", "t", "r"]; var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; -var c0 = temp2.slice(); // Error -var c1 = temp1.slice(); // Error cannot assign number[] to [number, number, number] -var c2 = temp1.concat(temp); // Error cannot assign (number|string)[] to number[] +var c0 = __spread(temp2); // Error +var c1 = __spread(temp1); // Error cannot assign number[] to [number, number, number] +var c2 = __spread(temp1, temp); // Error cannot assign (number|string)[] to number[] diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index 66f53d32dba9a..a8fcb9873ab7c 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -100,6 +100,14 @@ function tryCatchFn() { //// [arrowFunctionExpressions.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = function (p) { return p.length; }; var a = function (p) { return p.length; }; @@ -113,19 +121,19 @@ var d = function (n) { return c = n; }; var d; // Binding patterns in arrow functions var p1 = function (_a) { - var a = _a[0]; + var _b = __read(_a, 1), a = _b[0]; }; var p2 = function (_a) { - var a = _a.slice(0); + var _b = __read(_a), a = _b.slice(0); }; var p3 = function (_a) { - var a = _a[1]; + var _b = __read(_a, 2), a = _b[1]; }; var p4 = function (_a) { - var a = _a.slice(1); + var _b = __read(_a), a = _b.slice(1); }; var p5 = function (_a) { - var _b = _a[0], a = _b === void 0 ? 1 : _b; + var _b = __read(_a, 1), _c = _b[0], a = _c === void 0 ? 1 : _c; }; var p6 = function (_a) { var a = _a.a; @@ -140,7 +148,7 @@ var p9 = function (_a) { var _b = _a.a, _c = (_b === void 0 ? { b: 1 } : _b).b, b = _c === void 0 ? 1 : _c; }; var p10 = function (_a) { - var _b = _a[0], value = _b.value, done = _b.done; + var _b = __read(_a, 1), _c = _b[0], value = _c.value, done = _c.done; }; // Arrow function used in class member initializer // Arrow function used in class member function diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index 155fa26fa8159..48f12a7c6dcc2 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -76,6 +76,14 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // expected error for all the LHS of assignments var value; // this @@ -113,7 +121,7 @@ false = value; } value; // array literals -'' = value[0], '' = value[1]; +_a = __read(value, 2), '' = _a[0], '' = _a[1]; // super var Derived = (function (_super) { __extends(Derived, _super); @@ -148,3 +156,4 @@ foo() = value; ([]) = value; (function baz() { }) = value; (foo()) = value; +var _a; diff --git a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js index 0a1109a14f762..576101e3825cf 100644 --- a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js +++ b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js @@ -3,5 +3,14 @@ var tuple: [string, number]; [...c] = tupel; // intentionally misspelled //// [assignmentRestElementWithErrorSourceType.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var tuple; -c = tupel.slice(0); // intentionally misspelled +_a = __read(tupel), c = _a.slice(0); // intentionally misspelled +var _a; diff --git a/tests/baselines/reference/assignmentTypeNarrowing.js b/tests/baselines/reference/assignmentTypeNarrowing.js index 92fd49d99418d..09c2c263d3850 100644 --- a/tests/baselines/reference/assignmentTypeNarrowing.js +++ b/tests/baselines/reference/assignmentTypeNarrowing.js @@ -30,6 +30,17 @@ for (x of a) { //// [assignmentTypeNarrowing.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var x; x = ""; x; // string @@ -46,8 +57,14 @@ x; // string | boolean (_c = { y: 1 }.y, x = _c === void 0 ? /a/ : _c); x; // number | RegExp var a; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - x = a_1[_i]; - x; // string +try { + for (var a_1 = { iterator: __values(a) }; __step(a_1);) { + x = a_1.result.value; + x; // string + } } -var _a, _b, _c; +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(a_1); } finally { if (e_1) throw e_1.error; } +} +var _a, _b, _c, e_1; diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js index 2f11dddf7de55..afed386994b6f 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js @@ -51,7 +51,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js index 49566904ae1a4..cb053d205e439 100644 --- a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js +++ b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js @@ -59,7 +59,7 @@ function fn1() { case 1: if (!(i < 1)) return [3 /*break*/, 4]; - return [5 /*yield**/, _loop_1(i)]; + return [5 /*yield**/, __values(_loop_1(i))]; case 2: _a.sent(); _a.label = 3; @@ -94,7 +94,7 @@ function fn2() { case 1: if (!(i < 1)) return [3 /*break*/, 4]; - return [5 /*yield**/, _loop_2(i)]; + return [5 /*yield**/, __values(_loop_2(i))]; case 2: state_1 = _a.sent(); if (state_1 === "break") @@ -131,7 +131,7 @@ function fn3() { case 1: if (!(i < 1)) return [3 /*break*/, 4]; - return [5 /*yield**/, _loop_3(i)]; + return [5 /*yield**/, __values(_loop_3(i))]; case 2: _a.sent(); _a.label = 3; @@ -166,7 +166,7 @@ function fn4() { case 1: if (!(i < 1)) return [3 /*break*/, 4]; - return [5 /*yield**/, _loop_4(i)]; + return [5 /*yield**/, __values(_loop_4(i))]; case 2: state_2 = _a.sent(); if (typeof state_2 === "object") diff --git a/tests/baselines/reference/asyncAwait_es5.js b/tests/baselines/reference/asyncAwait_es5.js index 043e68abeab46..869a3f2ceb649 100644 --- a/tests/baselines/reference/asyncAwait_es5.js +++ b/tests/baselines/reference/asyncAwait_es5.js @@ -50,7 +50,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/asyncFunctionNoReturnType.js b/tests/baselines/reference/asyncFunctionNoReturnType.js index fd39fc74d0ee8..a66e197268697 100644 --- a/tests/baselines/reference/asyncFunctionNoReturnType.js +++ b/tests/baselines/reference/asyncFunctionNoReturnType.js @@ -16,7 +16,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5.js index e5c28eb2dc13b..7c5aaeae7a6cd 100644 --- a/tests/baselines/reference/asyncImportedPromise_es5.js +++ b/tests/baselines/reference/asyncImportedPromise_es5.js @@ -36,7 +36,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/asyncMultiFile_es5.js b/tests/baselines/reference/asyncMultiFile_es5.js index 6b44f5393fcb1..cd1ef4250cdb6 100644 --- a/tests/baselines/reference/asyncMultiFile_es5.js +++ b/tests/baselines/reference/asyncMultiFile_es5.js @@ -16,7 +16,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/awaitCallExpression2_es5.js b/tests/baselines/reference/awaitCallExpression2_es5.js index 6b0d6e4b648f7..d9c51e84822d0 100644 --- a/tests/baselines/reference/awaitCallExpression2_es5.js +++ b/tests/baselines/reference/awaitCallExpression2_es5.js @@ -16,15 +16,15 @@ async function func(): Promise { //// [awaitCallExpression2_es5.js] function func() { return __awaiter(this, void 0, void 0, function () { - var b, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var b, _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: before(); _a = fn; return [4 /*yield*/, p]; case 1: - b = _a.apply(void 0, [_c.sent(), a, a]); + b = _a.apply(void 0, [_b.sent(), a, a]); after(); return [2 /*return*/]; } diff --git a/tests/baselines/reference/awaitCallExpression6_es5.js b/tests/baselines/reference/awaitCallExpression6_es5.js index acc4261eacbb2..23def82fee72a 100644 --- a/tests/baselines/reference/awaitCallExpression6_es5.js +++ b/tests/baselines/reference/awaitCallExpression6_es5.js @@ -16,15 +16,15 @@ async function func(): Promise { //// [awaitCallExpression6_es5.js] function func() { return __awaiter(this, void 0, void 0, function () { - var b, _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var b, _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { case 0: before(); _b = (_a = o).fn; return [4 /*yield*/, p]; case 1: - b = _b.apply(_a, [_d.sent(), a, a]); + b = _b.apply(_a, [_c.sent(), a, a]); after(); return [2 /*return*/]; } diff --git a/tests/baselines/reference/awaitClassExpression_es5.js b/tests/baselines/reference/awaitClassExpression_es5.js index b207ba08f8d6a..d590d527126e9 100644 --- a/tests/baselines/reference/awaitClassExpression_es5.js +++ b/tests/baselines/reference/awaitClassExpression_es5.js @@ -10,9 +10,9 @@ async function func(): Promise { //// [awaitClassExpression_es5.js] function func() { return __awaiter(this, void 0, void 0, function () { - var D, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var D, _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: _a = function (_super) { __extends(D, _super); @@ -23,7 +23,7 @@ function func() { }; return [4 /*yield*/, p]; case 1: - D = (_a.apply(void 0, [(_c.sent())])); + D = (_a.apply(void 0, [(_b.sent())])); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/bindingPatternInParameter01.js b/tests/baselines/reference/bindingPatternInParameter01.js index 27b3a59e81ed7..ccdefb077fc7b 100644 --- a/tests/baselines/reference/bindingPatternInParameter01.js +++ b/tests/baselines/reference/bindingPatternInParameter01.js @@ -7,8 +7,16 @@ nestedArray.forEach(([[a, b]]) => { //// [bindingPatternInParameter01.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var nestedArray = [[[1, 2]], [[3, 4]]]; nestedArray.forEach(function (_a) { - var _b = _a[0], a = _b[0], b = _b[1]; + var _b = __read(_a, 1), _c = __read(_b[0], 2), a = _c[0], b = _c[1]; console.log(a, b); }); diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 69f7e4e30b0ac..41f1ba2d5eceb 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -64,6 +64,18 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function foo(x, y) { var z = []; for (var _i = 2; _i < arguments.length; _i++) { @@ -75,24 +87,24 @@ var z; var obj; var xa; foo(1, 2, "abc"); -foo.apply(void 0, [1, 2].concat(a)); -foo.apply(void 0, [1, 2].concat(a, ["abc"])); +foo.apply(void 0, __spread([1, 2], a)); +foo.apply(void 0, __spread([1, 2], a, ["abc"])); obj.foo(1, 2, "abc"); -obj.foo.apply(obj, [1, 2].concat(a)); -obj.foo.apply(obj, [1, 2].concat(a, ["abc"])); -obj.foo.apply(obj, [1, 2].concat(a)).foo(1, 2, "abc"); -(_a = obj.foo.apply(obj, [1, 2].concat(a))).foo.apply(_a, [1, 2].concat(a)); -(_b = obj.foo.apply(obj, [1, 2].concat(a))).foo.apply(_b, [1, 2].concat(a, ["abc"])); +obj.foo.apply(obj, __spread([1, 2], a)); +obj.foo.apply(obj, __spread([1, 2], a, ["abc"])); +obj.foo.apply(obj, __spread([1, 2], a)).foo(1, 2, "abc"); +(_a = obj.foo.apply(obj, __spread([1, 2], a))).foo.apply(_a, __spread([1, 2], a)); +(_b = obj.foo.apply(obj, __spread([1, 2], a))).foo.apply(_b, __spread([1, 2], a, ["abc"])); (obj.foo)(1, 2, "abc"); -obj.foo.apply(obj, [1, 2].concat(a)); -obj.foo.apply(obj, [1, 2].concat(a, ["abc"])); -(obj.foo.apply(obj, [1, 2].concat(a)).foo)(1, 2, "abc"); -(_c = obj.foo.apply(obj, [1, 2].concat(a))).foo.apply(_c, [1, 2].concat(a)); -(_d = obj.foo.apply(obj, [1, 2].concat(a))).foo.apply(_d, [1, 2].concat(a, ["abc"])); +obj.foo.apply(obj, __spread([1, 2], a)); +obj.foo.apply(obj, __spread([1, 2], a, ["abc"])); +(obj.foo.apply(obj, __spread([1, 2], a)).foo)(1, 2, "abc"); +(_c = obj.foo.apply(obj, __spread([1, 2], a))).foo.apply(_c, __spread([1, 2], a)); +(_d = obj.foo.apply(obj, __spread([1, 2], a))).foo.apply(_d, __spread([1, 2], a, ["abc"])); xa[1].foo(1, 2, "abc"); -(_e = xa[1]).foo.apply(_e, [1, 2].concat(a)); -(_f = xa[1]).foo.apply(_f, [1, 2].concat(a, ["abc"])); -(_g = xa[1]).foo.apply(_g, [1, 2, "abc"]); +(_e = xa[1]).foo.apply(_e, __spread([1, 2], a)); +(_f = xa[1]).foo.apply(_f, __spread([1, 2], a, ["abc"])); +(_g = xa[1]).foo.apply(_g, __spread([1, 2, "abc"])); var C = (function () { function C(x, y) { var z = []; @@ -100,7 +112,7 @@ var C = (function () { z[_i - 2] = arguments[_i]; } this.foo(x, y); - this.foo.apply(this, [x, y].concat(z)); + this.foo.apply(this, __spread([x, y], z)); } C.prototype.foo = function (x, y) { var z = []; @@ -114,12 +126,12 @@ var D = (function (_super) { __extends(D, _super); function D() { var _this = _super.call(this, 1, 2) || this; - _this = _super.apply(this, [1, 2].concat(a)) || this; + _this = _super.apply(this, __spread([1, 2], a)) || this; return _this; } D.prototype.foo = function () { _super.prototype.foo.call(this, 1, 2); - _super.prototype.foo.apply(this, [1, 2].concat(a)); + _super.prototype.foo.apply(this, __spread([1, 2], a)); }; return D; }(C)); diff --git a/tests/baselines/reference/capturedLetConstInLoop12.js b/tests/baselines/reference/capturedLetConstInLoop12.js index 1bb691bb72ab3..144ad18164a3c 100644 --- a/tests/baselines/reference/capturedLetConstInLoop12.js +++ b/tests/baselines/reference/capturedLetConstInLoop12.js @@ -16,12 +16,20 @@ })(); //// [capturedLetConstInLoop12.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; (function () { "use strict"; var _loop_1 = function (i) { (function () { - return _a = [i + 1], i = _a[0], _a; - var _a; + return _a = [i + 1], _b = __read(_a, 1), i = _b[0], _a; + var _a, _b; })(); out_i_1 = i; }; diff --git a/tests/baselines/reference/castOfYield.js b/tests/baselines/reference/castOfYield.js index 633f780a6a144..d5964d00d0ae9 100644 --- a/tests/baselines/reference/castOfYield.js +++ b/tests/baselines/reference/castOfYield.js @@ -7,9 +7,45 @@ function* f() { //// [castOfYield.js] -function* f() { - (yield 0); - // Unlike await, yield is not allowed to appear in a simple unary expression. - ; - yield 0; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function f() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, 0]; + case 1: + (_a.sent()); + // Unlike await, yield is not allowed to appear in a simple unary expression. + ; + return [4 /*yield*/, 0]; + case 2: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index d188a59258834..b2ed72ebd02a7 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -91,6 +91,14 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // expected error for all the LHS of compound assignments (arithmetic and addition) var value; // this @@ -134,7 +142,7 @@ false = Math.pow(false, value); } value; // array literals -_a = Math.pow(['', ''], value), '' = _a[0], '' = _a[1]; +_a = __read(Math.pow(['', ''], value), 2), '' = _a[0], '' = _a[1]; // super var Derived = (function (_super) { __extends(Derived, _super); diff --git a/tests/baselines/reference/computedPropertiesInDestructuring1.js b/tests/baselines/reference/computedPropertiesInDestructuring1.js index b0dc33a4b4e75..7e793b0a1dc6f 100644 --- a/tests/baselines/reference/computedPropertiesInDestructuring1.js +++ b/tests/baselines/reference/computedPropertiesInDestructuring1.js @@ -38,6 +38,14 @@ let [{[foo.toExponential()]: bar7}] = [{bar: "bar"}]; //// [computedPropertiesInDestructuring1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // destructuring in variable declarations var foo = "bar"; var _a = foo, bar = { bar: "bar" }[_a]; @@ -56,10 +64,10 @@ function f3(_a) { var _b = foo2(), x = _a[_b]; } function f4(_a) { - var _b = foo, x = _a[0][_b]; + var _b = __read(_a, 1), _c = foo, x = _b[0][_c]; } function f5(_a) { - var _b = foo2(), x = _a[0][_b]; + var _b = __read(_a, 1), _c = foo2(), x = _b[0][_c]; } // report errors on type errors in computed properties used in destructuring var _f = foo(), bar6 = [{ bar: "bar" }][0][_f]; diff --git a/tests/baselines/reference/controlFlowForOfStatement.js b/tests/baselines/reference/controlFlowForOfStatement.js index 31ba7f1a34621..ef698f1e7f521 100644 --- a/tests/baselines/reference/controlFlowForOfStatement.js +++ b/tests/baselines/reference/controlFlowForOfStatement.js @@ -12,13 +12,31 @@ function a() { //// [controlFlowForOfStatement.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var obj; var x; function a() { x = true; - for (var _i = 0, obj_1 = obj; _i < obj_1.length; _i++) { - x = obj_1[_i]; - x = x.toExponential(); + try { + for (var obj_1 = { iterator: __values(obj) }; __step(obj_1);) { + x = obj_1.result.value; + x = x.toExponential(); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(obj_1); } finally { if (e_1) throw e_1.error; } } x; // string | boolean + var e_1; } diff --git a/tests/baselines/reference/declarationEmitDestructuring1.js b/tests/baselines/reference/declarationEmitDestructuring1.js index 9ac08032a0dd2..a864c0f6b2645 100644 --- a/tests/baselines/reference/declarationEmitDestructuring1.js +++ b/tests/baselines/reference/declarationEmitDestructuring1.js @@ -6,11 +6,19 @@ function baz({a2, b2: {b1, c1}}: { a2: number, b2: { b1: boolean, c1: string } } //// [declarationEmitDestructuring1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo(_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; } function far(_a) { - var a = _a[0], b = _a[1][0], c = _a[2][0][0]; + var _b = __read(_a, 3), a = _b[0], _c = __read(_b[1], 1), b = _c[0], _d = __read(_b[2], 1), _e = __read(_d[0], 1), c = _e[0]; } function bar(_a) { var a1 = _a.a1, b1 = _a.b1, c1 = _a.c1; diff --git a/tests/baselines/reference/declarationEmitDestructuring2.js b/tests/baselines/reference/declarationEmitDestructuring2.js index 09980c5c9dd11..68159833b75bb 100644 --- a/tests/baselines/reference/declarationEmitDestructuring2.js +++ b/tests/baselines/reference/declarationEmitDestructuring2.js @@ -5,17 +5,25 @@ function h([a, [b], [[c]], {x = 10, y: [a, b, c], z: {a1, b1}}]){ } function h1([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]){ } //// [declarationEmitDestructuring2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f(_a) { - var _b = _a === void 0 ? { x: 10, y: [2, 4, 6, 8] } : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = _d === void 0 ? [1, 2, 3, 4] : _d, a = _e[0], b = _e[1], c = _e[2], d = _e[3]; + var _b = _a === void 0 ? { x: 10, y: [2, 4, 6, 8] } : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = __read(_d === void 0 ? [1, 2, 3, 4] : _d, 4), a = _e[0], b = _e[1], c = _e[2], d = _e[3]; } function g(_a) { - var _b = _a === void 0 ? [1, 2, 3, 4] : _a, a = _b[0], b = _b[1], c = _b[2], d = _b[3]; + var _b = __read(_a === void 0 ? [1, 2, 3, 4] : _a, 4), a = _b[0], b = _b[1], c = _b[2], d = _b[3]; } function h(_a) { - var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, a = _d[0], b = _d[1], c = _d[2], _e = _b.z, a1 = _e.a1, b1 = _e.b1; + var _b = __read(_a, 4), a = _b[0], _c = __read(_b[1], 1), b = _c[0], _d = __read(_b[2], 1), _e = __read(_d[0], 1), c = _e[0], _f = _b[3], _g = _f.x, x = _g === void 0 ? 10 : _g, _h = __read(_f.y, 3), a = _h[0], b = _h[1], c = _h[2], _j = _f.z, a1 = _j.a1, b1 = _j.b1; } function h1(_a) { - var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, y = _d === void 0 ? [1, 2, 3] : _d, _e = _b.z, a1 = _e.a1, b1 = _e.b1; + var _b = __read(_a, 4), a = _b[0], _c = __read(_b[1], 1), b = _c[0], _d = __read(_b[2], 1), _e = __read(_d[0], 1), c = _e[0], _f = _b[3], _g = _f.x, x = _g === void 0 ? 10 : _g, _h = _f.y, y = _h === void 0 ? [1, 2, 3] : _h, _j = _f.z, a1 = _j.a1, b1 = _j.b1; } diff --git a/tests/baselines/reference/declarationEmitDestructuring3.js b/tests/baselines/reference/declarationEmitDestructuring3.js index b21c63203c894..e682130f9742a 100644 --- a/tests/baselines/reference/declarationEmitDestructuring3.js +++ b/tests/baselines/reference/declarationEmitDestructuring3.js @@ -5,11 +5,19 @@ function foo([x, ...y] = [1, "string", true]) { } //// [declarationEmitDestructuring3.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function bar(_a) { - var x = _a[0], z = _a[1], w = _a.slice(2); + var _b = __read(_a), x = _b[0], z = _b[1], w = _b.slice(2); } function foo(_a) { - var _b = _a === void 0 ? [1, "string", true] : _a, x = _b[0], y = _b.slice(1); + var _b = __read(_a === void 0 ? [1, "string", true] : _a), x = _b[0], y = _b.slice(1); } diff --git a/tests/baselines/reference/declarationEmitDestructuring5.js b/tests/baselines/reference/declarationEmitDestructuring5.js index 32c9b5667d180..fa82e969f4d0d 100644 --- a/tests/baselines/reference/declarationEmitDestructuring5.js +++ b/tests/baselines/reference/declarationEmitDestructuring5.js @@ -6,20 +6,28 @@ function bar1([z, , , ] = [1, 3, 4, 6, 7]) { } function bar2([,,z, , , ]) { } //// [declarationEmitDestructuring5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function baz(_a) { - var z = _a[1]; + var _b = __read(_a, 3), z = _b[1]; } function foo(_a) { - var b = _a[1]; + var _b = __read(_a, 2), b = _b[1]; } function bar(_a) { - var z = _a[0]; + var _b = __read(_a, 3), z = _b[0]; } function bar1(_a) { - var _b = _a === void 0 ? [1, 3, 4, 6, 7] : _a, z = _b[0]; + var _b = __read(_a === void 0 ? [1, 3, 4, 6, 7] : _a, 3), z = _b[0]; } function bar2(_a) { - var z = _a[2]; + var _b = __read(_a, 5), z = _b[2]; } diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.js b/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.js index 9a9be8c69da32..471fd3b7ef612 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.js +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.js @@ -10,13 +10,21 @@ var [x2] = a; // emit x2: number | string var [x3, y3, z3] = a; // emit x3, y3, z3 //// [declarationEmitDestructuringArrayPattern1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var _a = [1, "hello"]; // Dont emit anything var x = [1, "hello"][0]; // emit x: number var _b = [1, "hello"], x1 = _b[0], y1 = _b[1]; // emit x1: number, y1: string var _c = [0, 1, 2], z1 = _c[2]; // emit z1: number var a = [1, "hello"]; -var x2 = a[0]; // emit x2: number | string -var x3 = a[0], y3 = a[1], z3 = a[2]; // emit x3, y3, z3 +var _d = __read(a, 1), x2 = _d[0]; // emit x2: number | string +var _e = __read(a, 3), x3 = _e[0], y3 = _e[1], z3 = _e[2]; // emit x3, y3, z3 //// [declarationEmitDestructuringArrayPattern1.d.ts] diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.js b/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.js index 818b3a6f7a97b..4399b3e3ee68f 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.js +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.js @@ -11,12 +11,20 @@ var [a3, b3] = [[x13, y13], { x: x13, y: y13 }]; //// [declarationEmitDestructuringArrayPattern2.js] -var _a = [1, ["hello", [true]]], x10 = _a[0], _b = _a[1], y10 = _b[0], z10 = _b[1][0]; -var _c = [1, "hello"], _d = _c[0], x11 = _d === void 0 ? 0 : _d, _e = _c[1], y11 = _e === void 0 ? "" : _e; -var _f = [], a11 = _f[0], b11 = _f[1], c11 = _f[2]; -var _g = [1, ["hello", { x12: 5, y12: true }]], a2 = _g[0], _h = _g[1], _j = _h === void 0 ? ["abc", { x12: 10, y12: false }] : _h, b2 = _j[0], _k = _j[1], x12 = _k.x12, c2 = _k.y12; -var _l = [1, "hello"], x13 = _l[0], y13 = _l[1]; -var _m = [[x13, y13], { x: x13, y: y13 }], a3 = _m[0], b3 = _m[1]; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var _a = [1, ["hello", [true]]], x10 = _a[0], _b = __read(_a[1], 2), y10 = _b[0], _c = __read(_b[1], 1), z10 = _c[0]; +var _d = [1, "hello"], _e = _d[0], x11 = _e === void 0 ? 0 : _e, _f = _d[1], y11 = _f === void 0 ? "" : _f; +var _g = [], a11 = _g[0], b11 = _g[1], c11 = _g[2]; +var _h = [1, ["hello", { x12: 5, y12: true }]], a2 = _h[0], _j = _h[1], _k = __read(_j === void 0 ? ["abc", { x12: 10, y12: false }] : _j, 2), b2 = _k[0], _l = _k[1], x12 = _l.x12, c2 = _l.y12; +var _m = [1, "hello"], x13 = _m[0], y13 = _m[1]; +var _o = [[x13, y13], { x: x13, y: y13 }], a3 = _o[0], b3 = _o[1]; //// [declarationEmitDestructuringArrayPattern2.d.ts] diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.js b/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.js index 820864cc25af0..e1f66b2d7dd2c 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.js +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.js @@ -4,9 +4,17 @@ var [, a, , ] = [3, 4, 5]; var [, , [, b, ]] = [3,5,[0, 1]]; //// [declarationEmitDestructuringArrayPattern5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var _a = [1, 2, 4], z = _a[2]; var _b = [3, 4, 5], a = _b[1]; -var _c = [3, 5, [0, 1]], _d = _c[2], b = _d[1]; +var _c = [3, 5, [0, 1]], _d = __read(_c[2], 2), b = _d[1]; //// [declarationEmitDestructuringArrayPattern5.d.ts] diff --git a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js index 22868b0ae000e..0ed22cfc785b2 100644 --- a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js +++ b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js @@ -17,15 +17,23 @@ class C3 { } //// [declarationEmitDestructuringParameterProperties.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var C1 = (function () { function C1(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } return C1; }()); var C2 = (function () { function C2(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } return C2; }()); diff --git a/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.js b/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.js index 5c7f4d2cec593..e975959c94736 100644 --- a/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.js +++ b/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.js @@ -5,8 +5,16 @@ function foo1( { x, y, z }?: { x: string; y: number; z: boolean }) { } //// [declarationEmitDestructuringWithOptionalBindingParameters.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } function foo1(_a) { var x = _a.x, y = _a.y, z = _a.z; diff --git a/tests/baselines/reference/declarationWithNoInitializer.js b/tests/baselines/reference/declarationWithNoInitializer.js index 54d89368fb1f2..209647d06902b 100644 --- a/tests/baselines/reference/declarationWithNoInitializer.js +++ b/tests/baselines/reference/declarationWithNoInitializer.js @@ -4,5 +4,13 @@ var {c, d}; // Error, no initializer //// [declarationWithNoInitializer.js] -var _a = void 0, a = _a[0], b = _a[1]; // Error, no initializer +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var _a = __read(void 0, 2), a = _a[0], b = _a[1]; // Error, no initializer var _b = void 0, c = _b.c, d = _b.d; // Error, no initializer diff --git a/tests/baselines/reference/declarationsAndAssignments.errors.txt b/tests/baselines/reference/declarationsAndAssignments.errors.txt index 64bd8d7e57825..41a2834451e18 100644 --- a/tests/baselines/reference/declarationsAndAssignments.errors.txt +++ b/tests/baselines/reference/declarationsAndAssignments.errors.txt @@ -11,8 +11,8 @@ tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,13): tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,13): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. -tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(67,9): error TS2461: Type '{}' is not an array type. -tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(68,9): error TS2461: Type '{ 0: number; 1: number; }' is not an array type. +tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(67,9): error TS2461: Type '{}' is not an array type or does not have an '__iterator__()' method that returns an iterator. +tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(68,9): error TS2461: Type '{ 0: number; 1: number; }' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,14): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(74,11): error TS2459: Type 'undefined[]' has no property 'a' and no string index signature. @@ -120,10 +120,10 @@ tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(138,9): function f9() { var [a, b] = {}; // Error, not array type ~~~~~~ -!!! error TS2461: Type '{}' is not an array type. +!!! error TS2461: Type '{}' is not an array type or does not have an '__iterator__()' method that returns an iterator. var [c, d] = { 0: 10, 1: 20 }; // Error, not array type ~~~~~~ -!!! error TS2461: Type '{ 0: number; 1: number; }' is not an array type. +!!! error TS2461: Type '{ 0: number; 1: number; }' is not an array type or does not have an '__iterator__()' method that returns an iterator. var [e, f] = [10, 20]; } diff --git a/tests/baselines/reference/declarationsAndAssignments.js b/tests/baselines/reference/declarationsAndAssignments.js index 3a2f9ef3b4e02..4ea0d2bc2fca4 100644 --- a/tests/baselines/reference/declarationsAndAssignments.js +++ b/tests/baselines/reference/declarationsAndAssignments.js @@ -181,6 +181,14 @@ function f21() { //// [declarationsAndAssignments.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f0() { var _a = [1, "hello"]; var x = [1, "hello"][0]; @@ -192,9 +200,9 @@ function f0() { } function f1() { var a = [1, "hello"]; - var x = a[0]; - var x = a[0], y = a[1]; - var x = a[0], y = a[1], z = a[2]; + var _a = __read(a, 1), x = _a[0]; + var _b = __read(a, 2), x = _b[0], y = _b[1]; + var _c = __read(a, 3), x = _c[0], y = _c[1], z = _c[2]; var x; var y; var z; @@ -213,7 +221,7 @@ function f2() { var b; } function f3() { - var _a = [1, ["hello", [true]]], x = _a[0], _b = _a[1], y = _b[0], z = _b[1][0]; + var _a = [1, ["hello", [true]]], x = _a[0], _b = __read(_a[1], 2), y = _b[0], _c = __read(_b[1], 1), z = _c[0]; var x; var y; var z; @@ -239,8 +247,8 @@ function f8() { var _b = [1], d = _b[0], e = _b[1], f = _b[2]; // Error, [1] is a tuple } function f9() { - var _a = {}, a = _a[0], b = _a[1]; // Error, not array type - var _b = { 0: 10, 1: 20 }, c = _b[0], d = _b[1]; // Error, not array type + var _a = __read({}, 2), a = _a[0], b = _a[1]; // Error, not array type + var _b = __read({ 0: 10, 1: 20 }, 2), c = _b[0], d = _b[1]; // Error, not array type var _c = [10, 20], e = _c[0], f = _c[1]; } function f10() { @@ -256,7 +264,7 @@ function f11() { var b; } function f12() { - var _a = [1, ["hello", { x: 5, y: true }]], a = _a[0], _b = _a[1], _c = _b === void 0 ? ["abc", { x: 10, y: false }] : _b, b = _c[0], _d = _c[1], x = _d.x, c = _d.y; + var _a = [1, ["hello", { x: 5, y: true }]], a = _a[0], _b = _a[1], _c = __read(_b === void 0 ? ["abc", { x: 10, y: false }] : _b, 2), b = _c[0], _d = _c[1], x = _d.x, c = _d.y; var a; var b; var x; @@ -267,7 +275,7 @@ function f13() { var _b = [[x, y], { x: x, y: y }], a = _b[0], b = _b[1]; } function f14(_a) { - var _b = _a[0], a = _b === void 0 ? 1 : _b, _c = _a[1], _d = _c[0], b = _d === void 0 ? "hello" : _d, _e = _c[1], x = _e.x, _f = _e.y, c = _f === void 0 ? false : _f; + var _b = __read(_a, 2), _c = _b[0], a = _c === void 0 ? 1 : _c, _d = __read(_b[1], 2), _e = _d[0], b = _e === void 0 ? "hello" : _e, _f = _d[1], x = _f.x, _g = _f.y, c = _g === void 0 ? false : _g; var a; var b; var c; @@ -312,9 +320,9 @@ function f19() { _a = [1, 2], a = _a[0], b = _a[1]; _b = [b, a], a = _b[0], b = _b[1]; (_c = { b: b, a: a }, a = _c.a, b = _c.b); - _d = [[2, 3]][0], _e = _d === void 0 ? [1, 2] : _d, a = _e[0], b = _e[1]; - var x = (_f = [1, 2], a = _f[0], b = _f[1], _f); - var _a, _b, _c, _d, _e, _f; + _d = [[2, 3]][0], _e = __read(_d === void 0 ? [1, 2] : _d, 2), a = _e[0], b = _e[1]; + var x = (_f = [1, 2], _g = __read(_f, 2), a = _g[0], b = _g[1], _f); + var _a, _b, _c, _d, _e, _f, _g; } function f20() { var a; diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js index 4f071b5e5ecd1..650013348b672 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js @@ -70,31 +70,43 @@ var [c14, c15, c16] = [1, 2, "string"]; * AssignmentRestElement: * ... LeftHandSideExpression */ +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // In a destructuring assignment expression, the type of the expression on the right must be assignable to the assignment target on the left. // An expression of type S is considered assignable to an assignment target V if one of the following is true // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or -var a0 = undefined[0], a1 = undefined[1]; -var _a = undefined[0], a2 = _a === void 0 ? false : _a, _b = undefined[1], a3 = _b === void 0 ? 1 : _b; +var _a = __read(undefined, 2), a0 = _a[0], a1 = _a[1]; +var _b = __read(undefined, 2), _c = _b[0], a2 = _c === void 0 ? false : _c, _d = _b[1], a3 = _d === void 0 ? 1 : _d; // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is a tuple- like type (section 3.3.3) with a property named N of a type that is assignable to the target given in E, // where N is the numeric index of E in the array assignment pattern, or -var _c = [2, 3, 4], b0 = _c[0], b1 = _c[1], b2 = _c[2]; -var _d = [1, 2, "string"], b3 = _d[0], b4 = _d[1], b5 = _d[2]; +var _e = [2, 3, 4], b0 = _e[0], b1 = _e[1], b2 = _e[2]; +var _f = [1, 2, "string"], b3 = _f[0], b4 = _f[1], b5 = _f[2]; function foo() { return [1, 2, 3]; } -var _e = foo(), b6 = _e[0], b7 = _e[1]; -var b8 = foo().slice(0); +var _g = __read(foo(), 2), b6 = _g[0], b7 = _g[1]; +var _h = __read(foo()), b8 = _h.slice(0); // S is not a tuple- like type and the numeric index signature type of S is assignable to the target given in E. var temp = [1, 2, 3]; -var _f = temp.slice(), c0 = _f[0], c1 = _f[1]; +var _j = __read(__spread(temp), 2), c0 = _j[0], c1 = _j[1]; var c2 = [][0]; -var _g = [[[]], [[[[]]]]], c3 = _g[0][0][0], c4 = _g[1][0][0][0][0]; -var _h = [[1], true], c5 = _h[0][0], c6 = _h[1]; -var _j = [1, 2, 3], c7 = _j[1]; -var _k = [1, 2, 3, 4], c8 = _k[3]; -var _l = [1, 2, 3, 4], c9 = _l[3]; -var _m = [1, 2, 3, 4, "hello"], c10 = _m.slice(3); -var _o = [1, 2, "string"], c11 = _o[0], c12 = _o[1], c13 = _o.slice(2); -var _p = [1, 2, "string"], c14 = _p[0], c15 = _p[1], c16 = _p[2]; +var _k = [[[]], [[[[]]]]], _l = __read(_k[0], 1), _m = __read(_l[0], 1), c3 = _m[0], _o = __read(_k[1], 1), _p = __read(_o[0], 1), _q = __read(_p[0], 1), _r = __read(_q[0], 1), c4 = _r[0]; +var _s = [[1], true], _t = __read(_s[0], 1), c5 = _t[0], c6 = _s[1]; +var _u = [1, 2, 3], c7 = _u[1]; +var _v = [1, 2, 3, 4], c8 = _v[3]; +var _w = [1, 2, 3, 4], c9 = _w[3]; +var _x = [1, 2, 3, 4, "hello"], c10 = _x.slice(3); +var _y = [1, 2, "string"], c11 = _y[0], c12 = _y[1], c13 = _y.slice(2); +var _z = [1, 2, "string"], c14 = _z[0], c15 = _z[1], c16 = _z[2]; diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt index 7fba74522e2e2..768254ff57eda 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt @@ -1,13 +1,13 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,12): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. -tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(4,5): error TS2461: Type 'undefined' is not an array type. +tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(4,5): error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(9,5): error TS2322: Type '[number, 2, string]' is not assignable to type '[number, boolean, string]'. Type '2' is not assignable to type 'boolean'. tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(22,5): error TS2322: Type 'number[]' is not assignable to type '[number, number]'. Property '0' is missing in type 'number[]'. tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(23,5): error TS2322: Type 'number[]' is not assignable to type '[string, string]'. Property '0' is missing in type 'number[]'. -tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(34,5): error TS2461: Type 'F' is not an array type. +tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(34,5): error TS2461: Type 'F' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts (7 errors) ==== @@ -20,7 +20,7 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss !!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value. var [[a2], [[a3]]] = undefined // Error ~~~~~~~~~~~~~~ -!!! error TS2461: Type 'undefined' is not an array type. +!!! error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is a tuple- like type (section 3.3.3) with a property named N of a type that is assignable to the target given in E, @@ -61,4 +61,4 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss } var [c4, c5, c6] = foo(1); // Error ~~~~~~~~~~~~ -!!! error TS2461: Type 'F' is not an array type. \ No newline at end of file +!!! error TS2461: Type 'F' is not an array type or does not have an '__iterator__()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js index 223090ea8caa9..5954d1a31ccc1 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js @@ -35,26 +35,38 @@ function foo(idx: number): F { var [c4, c5, c6] = foo(1); // Error //// [destructuringArrayBindingPatternAndAssignment2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or -var _a = [], a0 = _a[0][0], a1 = _a[1][0][0]; // Error -var a2 = undefined[0][0], a3 = undefined[1][0][0]; // Error +var _a = [], _b = __read(_a[0], 1), a0 = _b[0], _c = __read(_a[1], 1), _d = __read(_c[0], 1), a1 = _d[0]; // Error +var _e = __read(undefined, 2), _f = __read(_e[0], 1), a2 = _f[0], _g = __read(_e[1], 1), _h = __read(_g[0], 1), a3 = _h[0]; // Error // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is a tuple- like type (section 3.3.3) with a property named N of a type that is assignable to the target given in E, // where N is the numeric index of E in the array assignment pattern, or -var _b = [1, 2, "string"], b0 = _b[0], b1 = _b[1], b2 = _b[2]; // Error +var _j = [1, 2, "string"], b0 = _j[0], b1 = _j[1], b2 = _j[2]; // Error function bar() { return [1, 2, 3]; } -var _c = bar(), _d = _c[0], b3 = _d === void 0 ? "string" : _d, b4 = _c[1], b5 = _c[2]; // Error +var _k = __read(bar(), 3), _l = _k[0], b3 = _l === void 0 ? "string" : _l, b4 = _k[1], b5 = _k[2]; // Error // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is not a tuple- like type and the numeric index signature type of S is assignable to the target given in E. var temp = [1, 2, 3]; -var _e = temp.slice(), c0 = _e[0], c1 = _e[1]; // Error -var _f = temp.slice(), c2 = _f[0], c3 = _f[1]; // Error +var _m = __read(__spread(temp), 2), c0 = _m[0], c1 = _m[1]; // Error +var _o = __read(__spread(temp), 2), c2 = _o[0], c3 = _o[1]; // Error function foo(idx) { return { 2: true }; } -var _g = foo(1), c4 = _g[0], c5 = _g[1], c6 = _g[2]; // Error +var _p = __read(foo(1), 3), c4 = _p[0], c5 = _p[1], c6 = _p[2]; // Error diff --git a/tests/baselines/reference/destructuringCatch.js b/tests/baselines/reference/destructuringCatch.js index 4593b22f1277d..fd2ef9d98c139 100644 --- a/tests/baselines/reference/destructuringCatch.js +++ b/tests/baselines/reference/destructuringCatch.js @@ -30,30 +30,38 @@ catch (/*Test comment ranges*/[/*a*/a]) { //// [destructuringCatch.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; try { throw [0, 1]; } catch (_a) { - var a = _a[0], b = _a[1]; + var _b = __read(_a, 2), a = _b[0], b = _b[1]; a + b; } try { throw { a: 0, b: 1 }; } -catch (_b) { - var a = _b.a, b = _b.b; +catch (_c) { + var a = _c.a, b = _c.b; a + b; } try { throw [{ x: [0], z: 1 }]; } -catch (_c) { - var _d = _c[0], y = _d.x[0], z = _d.z; +catch (_d) { + var _e = __read(_d, 1), _f = _e[0], _g = __read(_f.x, 1), y = _g[0], z = _f.z; y + z; } // Test of comment ranges. A fix to GH#11755 should update this. try { } -catch (_e) { - var /*a*/ a = _e[0]; +catch (_h) { + var /*Test comment ranges*/ _j = __read(_h, 1), /*a*/ a = _j[0]; } diff --git a/tests/baselines/reference/destructuringInFunctionType.js b/tests/baselines/reference/destructuringInFunctionType.js index ac187f5b43db9..f7ba9fa45ccf6 100644 --- a/tests/baselines/reference/destructuringInFunctionType.js +++ b/tests/baselines/reference/destructuringInFunctionType.js @@ -23,8 +23,16 @@ var v2: ([a, b, c]) => string; //// [destructuringInFunctionType.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var v1 = function (_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; return "hello"; }; var v2; diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js index 28e6429fb7fa0..967fccbe15c34 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js @@ -101,13 +101,21 @@ 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 __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // 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]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d[0]; } function a2(o) { } function a3(_a) { - var j = _a.j, k = _a.k, _b = _a.l, m = _b.m, n = _b.n, _c = _a.q, a = _c[0], b = _c[1], c = _c[2]; + var j = _a.j, k = _a.k, _b = _a.l, m = _b.m, n = _b.n, _c = __read(_a.q, 3), a = _c[0], b = _c[1], c = _c[2]; } ; function a4(_a) { @@ -130,10 +138,10 @@ function b3(_a) { var _b = (_a === void 0 ? { z: { x: "hi", y: { j: 1 } } } : _a).z, x = _b.x, j = _b.y.j; } function b6(_a) { - var _b = _a === void 0 ? [undefined, null, undefined] : _a, a = _b[0], z = _b[1], y = _b[2]; + var _b = __read(_a === void 0 ? [undefined, null, undefined] : _a, 3), a = _b[0], z = _b[1], y = _b[2]; } function b7(_a) { - var _b = _a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, a = _b[0][0], b = _b[1], _c = _b[2][0], c = _c[0], d = _c[1]; + var _b = __read(_a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, 3), _c = __read(_b[0], 1), a = _c[0], b = _b[1], _d = __read(_b[2], 1), _e = __read(_d[0], 2), c = _e[0], d = _e[1]; } b1([1, 2, 3]); // z is widen to the type any[] b2("string", { x: 200, y: "string" }); @@ -158,10 +166,10 @@ function c3(_a) { var b = (_a === void 0 ? { b: "hello" } : _a).b; } function c5(_a) { - var a = _a[0], b = _a[1], c = _a[2][0][0]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d[0]; } function c6(_a) { - var a = _a[0], b = _a[1], _b = _a[2][0][0], c = _b === void 0 ? 1 : _b; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), _e = _d[0], c = _e === void 0 ? 1 : _e; } c0({ z: { x: 1, y: { j: "world" } } }); // Implied type is { z: {x: any, y: {j: any}} } c0({ z: { x: "string", y: { j: true } } }); // Implied type is { z: {x: any, y: {j: any}} } @@ -184,7 +192,7 @@ var C2 = (function () { C2.prototype.d3 = function () { }; C2.prototype.d4 = function () { }; C2.prototype.e0 = function (_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; return C2; }()); @@ -192,13 +200,13 @@ var C3 = (function () { function C3() { } C3.prototype.d3 = function (_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; C3.prototype.d4 = function (_a) { var x = _a.x, y = _a.y, z = _a.z; }; C3.prototype.e0 = function (_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; return C3; }()); @@ -219,8 +227,8 @@ function e3(_a) { var x = _a.x; } // x is an optional with type number function e4(_a) { - var _b = _a.x, number = _b[0], string = _b[1], any = _b[2]; + var _b = __read(_a.x, 3), number = _b[0], string = _b[1], any = _b[2]; } // x has type [any, any, any] function e5(_a) { - var _b = _a.x, a = _b[0], b = _b[1], c = _b[2]; + var _b = __read(_a.x, 3), a = _b[0], b = _b[1], c = _b[2]; } // x has type [any, any, any] diff --git a/tests/baselines/reference/destructuringParameterDeclaration2.js b/tests/baselines/reference/destructuringParameterDeclaration2.js index 7cc2cb52318c8..cd3dd5c108294 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration2.js +++ b/tests/baselines/reference/destructuringParameterDeclaration2.js @@ -72,9 +72,17 @@ 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 __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // 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]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d[0]; } a0([1, "string", [["world"]]]); // Error a0([1, 2, [["world"]], "string"]); // Error @@ -83,10 +91,10 @@ function b1(z, o) { if (o === void 0) { o = { x: 0, y: undefined }; } } function b2(_a) { - var _b = _a === void 0 ? [undefined, null, undefined] : _a, a = _b[0], z = _b[1], y = _b[2]; + var _b = __read(_a === void 0 ? [undefined, null, undefined] : _a, 3), a = _b[0], z = _b[1], y = _b[2]; } function b3(_a) { - var _b = _a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, a = _b[0][0], b = _b[1], _c = _b[2][0], c = _c[0], d = _c[1]; + var _b = __read(_a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, 3), _c = __read(_b[0], 1), a = _c[0], b = _b[1], _d = __read(_b[2], 1), _e = __read(_d[0], 2), c = _e[0], d = _e[1]; } b1("string", { x: "string", y: true }); // Error // If the declaration specifies a binding pattern, the parameter type is the implied type of that binding pattern (section 5.1.3) @@ -103,13 +111,13 @@ function c3(_a) { var b = (_a === void 0 ? { b: "hello" } : _a).b; } function c4(_a, z) { - var z = _a[0]; + var _b = __read(_a, 1), z = _b[0]; } // Error Duplicate identifier function c5(_a) { - var a = _a[0], b = _a[1], c = _a[2][0][0]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d[0]; } function c6(_a) { - var a = _a[0], b = _a[1], _b = _a[2][0][0], c = _b === void 0 ? 1 : _b; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), _e = _d[0], c = _e === void 0 ? 1 : _e; } c0({ z: 1 }); // Error, implied type is { z: {x: any, y: {j: any}} } c1({}); // Error, implied type is {z:number}? @@ -122,7 +130,7 @@ c6([1, 2, [["string"]]]); // Error, implied type is [any, any, [[number]]] // U // or by including an initializer. Initializers (including binding property or element initializers) are // permitted only when the parameter list occurs in conjunction with a function body function d1(_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; } // Error, binding pattern can't be optional in implementation signature function d2(_a) { var x = _a.x, y = _a.y, z = _a.z; @@ -131,13 +139,13 @@ var C4 = (function () { function C4() { } C4.prototype.d3 = function (_a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; // Error, binding pattern can't be optional in implementation signature C4.prototype.d4 = function (_a) { var x = _a.x, y = _a.y, c = _a.c; }; C4.prototype.e0 = function (_a) { - var a = _a[0], b = _a[1], q = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], q = _b[2]; }; return C4; }()); @@ -145,5 +153,5 @@ var C4 = (function () { // as such annotations would conflict with the already established meaning of colons in object literals. // Type annotations must instead be written on the top- level parameter declaration function e0(_a) { - var _b = _a.x, number = _b[0], number = _b[1], number = _b[2]; + var _b = __read(_a.x, 3), number = _b[0], number = _b[1], number = _b[2]; } // error, duplicate identifier; diff --git a/tests/baselines/reference/destructuringParameterDeclaration4.js b/tests/baselines/reference/destructuringParameterDeclaration4.js index 44838d600d8f0..7dcfc836db445 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration4.js +++ b/tests/baselines/reference/destructuringParameterDeclaration4.js @@ -40,6 +40,18 @@ foo1(1, 2, "string", E1.a, E.b); // Error //// [destructuringParameterDeclaration4.js] // If the parameter is a rest parameter, the parameter type is any[] // A type annotation for a rest parameter must denote an array type. +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function a0() { var x = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -71,13 +83,13 @@ function a4() { } } // Error, can't have initializer function a5(_a) { - var a = _a[0], b = _a[1], c = _a[2][0][0]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d[0]; } function a6(_a) { - var a = _a[0], b = _a[1], c = _a[2], x = _a.slice(3); + var _b = __read(_a), a = _b[0], b = _b[1], c = _b[2], x = _b.slice(3); } a1(1, 2, "hello", true); // Error, parameter type is (number|string)[] -a1.apply(void 0, array2); // Error parameter type is (number|string)[] +a1.apply(void 0, __spread(array2)); // Error parameter type is (number|string)[] a5([1, 2, "string", false, true]); // Error, parameter type is [any, any, [[any]]] a5([1, 2]); // Error, parameter type is [any, any, [[any]]] a6([1, 2, "string"]); // Error, parameter type is number[] diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5.js b/tests/baselines/reference/destructuringParameterDeclaration7ES5.js index f9dac1ae2fabe..99e6018a2ec01 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration7ES5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5.js @@ -15,6 +15,14 @@ function two([], [a, b, c]: number[]) {} //// [destructuringParameterDeclaration7ES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo(_a, _b) { var foo = _b.foo, bar = _b.bar; } @@ -23,5 +31,5 @@ function baz(_a, _b) { } function one(_a, _b) { } function two(_a, _b) { - var a = _b[0], b = _b[1], c = _b[2]; + var _c = __read(_b, 3), a = _c[0], b = _c[1], c = _c[2]; } diff --git a/tests/baselines/reference/destructuringParameterProperties1.js b/tests/baselines/reference/destructuringParameterProperties1.js index cfe16d642d3e2..abdd4c6457b76 100644 --- a/tests/baselines/reference/destructuringParameterProperties1.js +++ b/tests/baselines/reference/destructuringParameterProperties1.js @@ -30,15 +30,23 @@ c3 = new C3({x: 0, "y": "y", z: true}); var [c3_x, c3_y, c3_z] = [c3.x, c3.y, c3.z]; //// [destructuringParameterProperties1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var C1 = (function () { function C1(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } return C1; }()); var C2 = (function () { function C2(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } return C2; }()); diff --git a/tests/baselines/reference/destructuringParameterProperties2.js b/tests/baselines/reference/destructuringParameterProperties2.js index 4dd12bdc317a4..9001137f27f47 100644 --- a/tests/baselines/reference/destructuringParameterProperties2.js +++ b/tests/baselines/reference/destructuringParameterProperties2.js @@ -30,9 +30,17 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; //// [destructuringParameterProperties2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var C1 = (function () { function C1(k, _a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; this.k = k; if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) { this.a = a || k; diff --git a/tests/baselines/reference/destructuringParameterProperties3.js b/tests/baselines/reference/destructuringParameterProperties3.js index d9b0c5aebf6f1..9349c83c4c6e9 100644 --- a/tests/baselines/reference/destructuringParameterProperties3.js +++ b/tests/baselines/reference/destructuringParameterProperties3.js @@ -33,9 +33,17 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; //// [destructuringParameterProperties3.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var C1 = (function () { function C1(k, _a) { - var a = _a[0], b = _a[1], c = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; this.k = k; if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) { this.a = a || k; diff --git a/tests/baselines/reference/destructuringParameterProperties5.js b/tests/baselines/reference/destructuringParameterProperties5.js index f07f6e9f5a531..196df0ba3335c 100644 --- a/tests/baselines/reference/destructuringParameterProperties5.js +++ b/tests/baselines/reference/destructuringParameterProperties5.js @@ -13,9 +13,17 @@ var a = new C1([{ x1: 10, x2: "", x3: true }, "", false]); var [a_x1, a_x2, a_x3, a_y, a_z] = [a.x1, a.x2, a.x3, a.y, a.z]; //// [destructuringParameterProperties5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var C1 = (function () { function C1(_a) { - var _b = _a[0], x1 = _b.x1, x2 = _b.x2, x3 = _b.x3, y = _a[1], z = _a[2]; + var _b = __read(_a, 3), _c = _b[0], x1 = _c.x1, x2 = _c.x2, x3 = _c.x3, y = _b[1], z = _b[2]; var foo = x1 || x2 || x3 || y || z; var bar = this.x1 || this.x2 || this.x3 || this.y || this.z; } diff --git a/tests/baselines/reference/destructuringVariableDeclaration1ES5.js b/tests/baselines/reference/destructuringVariableDeclaration1ES5.js index 6d731538d186c..2bae6e270869b 100644 --- a/tests/baselines/reference/destructuringVariableDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringVariableDeclaration1ES5.js @@ -42,16 +42,28 @@ var {h: {h1 = [undefined, null]}}: { h: { h1: number[] } } = { h: { h1: [1, 2] } //// [destructuringVariableDeclaration1ES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. var _a = { a1: 10, a2: "world" }, a1 = _a.a1, a2 = _a.a2; -var _b = [1, [["hello"]], true], a3 = _b[0], a4 = _b[1][0][0], a5 = _b[2]; +var _b = [1, [["hello"]], true], a3 = _b[0], _c = __read(_b[1], 1), _d = __read(_c[0], 1), a4 = _d[0], a5 = _b[2]; // The type T associated with a destructuring variable declaration is determined as follows: // Otherwise, if the declaration includes an initializer expression, T is the type of that initializer expression. -var _c = { b1: { b11: "world" } }.b1, b11 = (_c === void 0 ? { b11: "string" } : _c).b11; +var _e = { b1: { b11: "world" } }.b1, b11 = (_e === void 0 ? { b11: "string" } : _e).b11; var temp = { t1: true, t2: "false" }; -var _d = [3, false, { t1: false, t2: "hello" }], _e = _d[0], b2 = _e === void 0 ? 3 : _e, _f = _d[1], b3 = _f === void 0 ? true : _f, _g = _d[2], b4 = _g === void 0 ? temp : _g; -var _h = [undefined, undefined, undefined], _j = _h[0], b5 = _j === void 0 ? 3 : _j, _k = _h[1], b6 = _k === void 0 ? true : _k, _l = _h[2], b7 = _l === void 0 ? temp : _l; +var _f = [3, false, { t1: false, t2: "hello" }], _g = _f[0], b2 = _g === void 0 ? 3 : _g, _h = _f[1], b3 = _h === void 0 ? true : _h, _j = _f[2], b4 = _j === void 0 ? temp : _j; +var _k = [undefined, undefined, undefined], _l = _k[0], b5 = _l === void 0 ? 3 : _l, _m = _k[1], b6 = _m === void 0 ? true : _m, _o = _k[2], b7 = _o === void 0 ? temp : _o; // The type T associated with a binding element is determined as follows: // If the binding element is a rest element, T is an array type with // an element type E, where E is the type of the numeric index signature of S. @@ -61,17 +73,17 @@ var c2 = [1, 2, 3, "string"].slice(0); // Otherwise, if S is a tuple- like type (section 3.3.3): // Let N be the zero-based index of the binding element in the array binding pattern. // If S has a property with the numerical name N, T is the type of that property. -var _m = [1, "string"], d1 = _m[0], d2 = _m[1]; +var _p = [1, "string"], d1 = _p[0], d2 = _p[1]; // The type T associated with a binding element is determined as follows: // Otherwise, if S is a tuple- like type (section 3.3.3): // Otherwise, if S has a numeric index signature, T is the type of the numeric index signature. var temp1 = [true, false, true]; -var _o = [1, "string"].concat(temp1), d3 = _o[0], d4 = _o[1]; +var _q = __read(__spread([1, "string"], temp1), 2), d3 = _q[0], d4 = _q[1]; // Combining both forms of destructuring, -var _p = { e: [1, 2, { b1: 4, b4: 0 }] }.e, e1 = _p[0], e2 = _p[1], _q = _p[2], e3 = _q === void 0 ? { b1: 1000, b4: 200 } : _q; -var _r = { f: [1, 2, { f3: 4, f5: 0 }] }.f, f1 = _r[0], f2 = _r[1], _s = _r[2], f4 = _s.f3, f5 = _s.f5; +var _r = __read({ e: [1, 2, { b1: 4, b4: 0 }] }.e, 3), e1 = _r[0], e2 = _r[1], _s = _r[2], e3 = _s === void 0 ? { b1: 1000, b4: 200 } : _s; +var _t = __read({ f: [1, 2, { f3: 4, f5: 0 }] }.f, 4), f1 = _t[0], f2 = _t[1], _u = _t[2], f4 = _u.f3, f5 = _u.f5; // When a destructuring variable declaration, binding property, or binding element specifies // an initializer expression, the type of the initializer expression is required to be assignable // to the widened form of the type associated with the destructuring variable declaration, binding property, or binding element. -var _t = { g: { g1: [1, 2] } }.g.g1, g1 = _t === void 0 ? [undefined, null] : _t; -var _u = { h: { h1: [1, 2] } }.h.h1, h1 = _u === void 0 ? [undefined, null] : _u; +var _v = { g: { g1: [1, 2] } }.g.g1, g1 = _v === void 0 ? [undefined, null] : _v; +var _w = { h: { h1: [1, 2] } }.h.h1, h1 = _w === void 0 ? [undefined, null] : _w; diff --git a/tests/baselines/reference/destructuringVariableDeclaration2.js b/tests/baselines/reference/destructuringVariableDeclaration2.js index a4fadd850d75b..e9fe7865d1419 100644 --- a/tests/baselines/reference/destructuringVariableDeclaration2.js +++ b/tests/baselines/reference/destructuringVariableDeclaration2.js @@ -20,19 +20,27 @@ var [c1, c2, { c3: c4, c5 }, , ...c6] = [1, 2, { c3: 4, c5: 0 }]; // Error var {d: {d1 = ["string", null]}}: { d: { d1: number[] } } = { d: { d1: [1, 2] } }; // Error //// [destructuringVariableDeclaration2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. var _a = { a1: true, a2: 1 }, a1 = _a.a1, a2 = _a.a2; // Error -var _b = [1, [[false]], true], a3 = _b[0], a4 = _b[1][0][0], a5 = _b[2]; // Error +var _b = [1, [[false]], true], a3 = _b[0], _c = __read(_b[1], 1), _d = __read(_c[0], 1), a4 = _d[0], a5 = _b[2]; // Error // The type T associated with a destructuring variable declaration is determined as follows: // Otherwise, if the declaration includes an initializer expression, T is the type of that initializer expression. var temp = { t1: true, t2: "false" }; -var _c = [3, false, { t1: false, t2: 5 }], _d = _c[0], b0 = _d === void 0 ? 3 : _d, _e = _c[1], b1 = _e === void 0 ? true : _e, _f = _c[2], b2 = _f === void 0 ? temp : _f; // Error +var _e = [3, false, { t1: false, t2: 5 }], _f = _e[0], b0 = _f === void 0 ? 3 : _f, _g = _e[1], b1 = _g === void 0 ? true : _g, _h = _e[2], b2 = _h === void 0 ? temp : _h; // Error // The type T associated with a binding element is determined as follows: // If the binding element is a rest element, T is an array type with // an element type E, where E is the type of the numeric index signature of S. -var _g = [1, 2, { c3: 4, c5: 0 }], c1 = _g[0], c2 = _g[1], _h = _g[2], c4 = _h.c3, c5 = _h.c5, c6 = _g.slice(4); // Error +var _j = [1, 2, { c3: 4, c5: 0 }], c1 = _j[0], c2 = _j[1], _k = _j[2], c4 = _k.c3, c5 = _k.c5, c6 = _j.slice(4); // Error // When a destructuring variable declaration, binding property, or binding element specifies // an initializer expression, the type of the initializer expression is required to be assignable // to the widened form of the type associated with the destructuring variable declaration, binding property, or binding element. -var _j = { d: { d1: [1, 2] } }.d.d1, d1 = _j === void 0 ? ["string", null] : _j; // Error +var _l = { d: { d1: [1, 2] } }.d.d1, d1 = _l === void 0 ? ["string", null] : _l; // Error diff --git a/tests/baselines/reference/destructuringWithLiteralInitializers.js b/tests/baselines/reference/destructuringWithLiteralInitializers.js index 740648b04e8fa..744c2c162af74 100644 --- a/tests/baselines/reference/destructuringWithLiteralInitializers.js +++ b/tests/baselines/reference/destructuringWithLiteralInitializers.js @@ -67,6 +67,14 @@ g5([1, 1]); //// [destructuringWithLiteralInitializers.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; // (arg: { x: any, y: any }) => void function f1(_a) { var x = _a.x, y = _a.y; @@ -119,29 +127,29 @@ f7({ a: { y: 1 } }); f7({ a: { x: 1, y: 1 } }); // (arg: [any, any]) => void function g1(_a) { - var x = _a[0], y = _a[1]; + var _b = __read(_a, 2), x = _b[0], y = _b[1]; } g1([1, 1]); // (arg: [number, number]) => void function g2(_a) { - var _b = _a[0], x = _b === void 0 ? 0 : _b, _c = _a[1], y = _c === void 0 ? 0 : _c; + var _b = __read(_a, 2), _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === void 0 ? 0 : _d; } g2([1, 1]); // (arg?: [number, number]) => void function g3(_a) { - var _b = _a === void 0 ? [0, 0] : _a, x = _b[0], y = _b[1]; + var _b = __read(_a === void 0 ? [0, 0] : _a, 2), x = _b[0], y = _b[1]; } g3(); g3([1, 1]); // (arg?: [number, number]) => void function g4(_a) { - var _b = _a === void 0 ? [0] : _a, x = _b[0], _c = _b[1], y = _c === void 0 ? 0 : _c; + var _b = __read(_a === void 0 ? [0] : _a, 2), x = _b[0], _c = _b[1], y = _c === void 0 ? 0 : _c; } g4(); g4([1, 1]); // (arg?: [number, number]) => void function g5(_a) { - var _b = _a === void 0 ? [] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === void 0 ? 0 : _d; + var _b = __read(_a === void 0 ? [] : _a, 2), _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === void 0 ? 0 : _d; } g5(); g5([1, 1]); diff --git a/tests/baselines/reference/downlevelLetConst16.errors.txt b/tests/baselines/reference/downlevelLetConst16.errors.txt index a6ada633016ff..a0ecd0575836e 100644 --- a/tests/baselines/reference/downlevelLetConst16.errors.txt +++ b/tests/baselines/reference/downlevelLetConst16.errors.txt @@ -1,8 +1,8 @@ tests/cases/compiler/downlevelLetConst16.ts(152,15): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. tests/cases/compiler/downlevelLetConst16.ts(165,17): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. -tests/cases/compiler/downlevelLetConst16.ts(196,14): error TS2461: Type 'undefined' is not an array type. +tests/cases/compiler/downlevelLetConst16.ts(196,14): error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/compiler/downlevelLetConst16.ts(203,15): error TS2459: Type 'undefined' has no property 'a' and no string index signature. -tests/cases/compiler/downlevelLetConst16.ts(217,16): error TS2461: Type 'undefined' is not an array type. +tests/cases/compiler/downlevelLetConst16.ts(217,16): error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/compiler/downlevelLetConst16.ts(224,17): error TS2459: Type 'undefined' has no property 'a' and no string index signature. @@ -208,7 +208,7 @@ tests/cases/compiler/downlevelLetConst16.ts(224,17): error TS2459: Type 'undefin function foo8() { for (let [x] of []) { ~~~ -!!! error TS2461: Type 'undefined' is not an array type. +!!! error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. use(x); } use(x); @@ -233,7 +233,7 @@ tests/cases/compiler/downlevelLetConst16.ts(224,17): error TS2459: Type 'undefin function foo11() { for (const [x] of []) { ~~~ -!!! error TS2461: Type 'undefined' is not an array type. +!!! error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. use(x); } use(x); diff --git a/tests/baselines/reference/downlevelLetConst16.js b/tests/baselines/reference/downlevelLetConst16.js index edc778209bef3..9ff4119aa629c 100644 --- a/tests/baselines/reference/downlevelLetConst16.js +++ b/tests/baselines/reference/downlevelLetConst16.js @@ -230,6 +230,14 @@ function foo12() { //// [downlevelLetConst16.js] 'use strict'; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var x = 10; var y; var z; @@ -411,7 +419,7 @@ function foo7() { } function foo8() { for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_12 = _a[_i][0]; + var _b = __read(_a[_i], 1), x_12 = _b[0]; use(x_12); } use(x); @@ -432,7 +440,7 @@ function foo10() { } function foo11() { for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_15 = _a[_i][0]; + var _b = __read(_a[_i], 1), x_15 = _b[0]; use(x_15); } use(x); diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js index 0c1eb5f321005..68a90c72b3390 100644 --- a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js @@ -10,19 +10,27 @@ function f6([f, ...f]) { } function f7(a, func = (a) => { return 1 }) { } // not error //// [duplicateIdentifierBindingElementInParameterDeclaration1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f0(a, _a, _b) { - var a = _a[0], b = _a[1][0]; + var _c = __read(_a, 2), a = _c[0], _d = __read(_c[1], 1), b = _d[0]; var b = _b.b; } function f1(_a) { - var a = _a[0], a = _a[1]; + var _b = __read(_a, 2), a = _b[0], a = _b[1]; } function f2(_a, _b) { var b = _a.b; var b = _b.b; } function f3(_a) { - var c = _a[0], c = _a[1][0], c = _a[2][0][0]; + var _b = __read(_a, 3), c = _b[0], _c = __read(_b[1], 1), c = _c[0], _d = __read(_b[2], 1), _e = __read(_d[0], 1), c = _e[0]; } function f4(_a) { var d = _a.d, d = _a.d.d; @@ -30,14 +38,14 @@ function f4(_a) { function f5(_a, _b, _c) { var e = _a.e, e = _a.e.e; var e = _b.e; - var d = _c[0], e = _c[1], e = _c[2][0][0]; + var _d = __read(_c, 3), d = _d[0], e = _d[1], _e = __read(_d[2], 1), _f = __read(_e[0], 1), e = _f[0]; var e = []; for (var _i = 3; _i < arguments.length; _i++) { e[_i - 3] = arguments[_i]; } } function f6(_a) { - var f = _a[0], f = _a.slice(1); + var _b = __read(_a), f = _b[0], f = _b.slice(1); } function f7(a, func) { if (func === void 0) { func = function (a) { return 1; }; } diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js index e423b035d9d03..8d52eb168eba7 100644 --- a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js @@ -12,19 +12,27 @@ function f7(a, func = (a) => { return 1 }){ } // not error //// [duplicateIdentifierBindingElementInParameterDeclaration2.js] "use strict"; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f0(a, _a, _b) { - var a = _a[0], b = _a[1][0]; + var _c = __read(_a, 2), a = _c[0], _d = __read(_c[1], 1), b = _d[0]; var b = _b.b; } function f1(_a) { - var a = _a[0], a = _a[1]; + var _b = __read(_a, 2), a = _b[0], a = _b[1]; } function f2(_a, _b) { var b = _a.b; var b = _b.b; } function f3(_a) { - var c = _a[0], c = _a[1][0], c = _a[2][0][0]; + var _b = __read(_a, 3), c = _b[0], _c = __read(_b[1], 1), c = _c[0], _d = __read(_b[2], 1), _e = __read(_d[0], 1), c = _e[0]; } function f4(_a) { var d = _a.d, d = _a.d.d; @@ -32,14 +40,14 @@ function f4(_a) { function f5(_a, _b, _c) { var e = _a.e, e = _a.e.e; var e = _b.e; - var d = _c[0], e = _c[1], e = _c[2][0][0]; + var _d = __read(_c, 3), d = _d[0], e = _d[1], _e = __read(_d[2], 1), _f = __read(_e[0], 1), e = _f[0]; var e = []; for (var _i = 3; _i < arguments.length; _i++) { e[_i - 3] = arguments[_i]; } } function f6(_a) { - var f = _a[0], f = _a.slice(1); + var _b = __read(_a), f = _b[0], f = _b.slice(1); } function f7(a, func) { if (func === void 0) { func = function (a) { return 1; }; } diff --git a/tests/baselines/reference/emitCapturingThisInTupleDestructuring1.js b/tests/baselines/reference/emitCapturingThisInTupleDestructuring1.js index 9dd7453ba4f17..8924fc7020672 100644 --- a/tests/baselines/reference/emitCapturingThisInTupleDestructuring1.js +++ b/tests/baselines/reference/emitCapturingThisInTupleDestructuring1.js @@ -5,7 +5,16 @@ wrapper((array: [any]) => { }); //// [emitCapturingThisInTupleDestructuring1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var _this = this; wrapper(function (array) { - _this.test = array[0], _this.test1 = array[1], _this.test2 = array[2]; // even though there is a compiler error, we should still emit lexical capture for "this" + _a = __read(array, 3), _this.test = _a[0], _this.test1 = _a[1], _this.test2 = _a[2]; // even though there is a compiler error, we should still emit lexical capture for "this" + var _a; }); diff --git a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js index 890b9d4c9b843..4922e921ee106 100644 --- a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js +++ b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js @@ -11,13 +11,24 @@ class B { } //// [emitCapturingThisInTupleDestructuring2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var array1 = [1, 2]; var B = (function () { function B() { } B.prototype.method = 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" + (function () { + return _a = __read(array1, 3), _this.test = _a[0], _this.test1 = _a[1], _this.test2 = _a[2], array1; + var _a; + }); // even though there is a compiler error, we should still emit lexical capture for "this" }; return B; }()); diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js index f5434d4a1c344..15f178830de89 100644 --- a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js @@ -7,10 +7,19 @@ let x, y, z, a1, a2, a3; ([] = [ a1, a2, a3] = a); //// [emptyAssignmentPatterns02_ES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a; var x, y, z, a1, a2, a3; (x = a.x, y = a.y, z = a.z); -(a1 = a[0], a2 = a[1], a3 = a[2]); +(_a = __read(a, 3), a1 = _a[0], a2 = _a[1], a3 = _a[2]); +var _a; //// [emptyAssignmentPatterns02_ES5.d.ts] diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js index 91559d18252eb..03c284ce1fb8b 100644 --- a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js @@ -7,10 +7,19 @@ let x, y, z, a1, a2, a3; ([ a1, a2, a3] = [] = a); //// [emptyAssignmentPatterns04_ES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a; var x, y, z, a1, a2, a3; (x = a.x, y = a.y, z = a.z); -(a1 = a[0], a2 = a[1], a3 = a[2]); +(_a = __read(a, 3), a1 = _a[0], a2 = _a[1], a3 = _a[2]); +var _a; //// [emptyAssignmentPatterns04_ES5.d.ts] diff --git a/tests/baselines/reference/es5-asyncFunction.js b/tests/baselines/reference/es5-asyncFunction.js index 5123566dc8c89..b6d0054367953 100644 --- a/tests/baselines/reference/es5-asyncFunction.js +++ b/tests/baselines/reference/es5-asyncFunction.js @@ -19,7 +19,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js b/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js index c8a4733aa94f6..36e4d4bad2198 100644 --- a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js +++ b/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js @@ -36,12 +36,11 @@ async function arrayLiteral7() { //// [es5-asyncFunctionArrayLiterals.js] function arrayLiteral0() { return __awaiter(this, void 0, void 0, function () { - var _a; - return __generator(this, function (_b) { - switch (_b.label) { + return __generator(this, function (_a) { + switch (_a.label) { case 0: return [4 /*yield*/, y]; case 1: - x = [_b.sent(), z]; + x = [_a.sent(), z]; return [2 /*return*/]; } }); @@ -68,7 +67,7 @@ function arrayLiteral2() { switch (_a.label) { case 0: return [4 /*yield*/, y]; case 1: - x = (_a.sent()).concat([z]); + x = __spread.apply(void 0, [(_a.sent()), [z]]); return [2 /*return*/]; } }); @@ -76,14 +75,14 @@ function arrayLiteral2() { } function arrayLiteral3() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d; - return __generator(this, function (_e) { - switch (_e.label) { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _b = (_a = y).concat; + _a = [y]; return [4 /*yield*/, z]; case 1: - x = _b.apply(_a, [[_e.sent()]]); + x = __spread.apply(void 0, _a.concat([[_b.sent()]])); return [2 /*return*/]; } }); @@ -91,12 +90,11 @@ function arrayLiteral3() { } function arrayLiteral4() { return __awaiter(this, void 0, void 0, function () { - var _a; - return __generator(this, function (_b) { - switch (_b.label) { + return __generator(this, function (_a) { + switch (_a.label) { case 0: return [4 /*yield*/, y]; case 1: - x = [_b.sent()].concat(z); + x = __spread.apply(void 0, [[_a.sent()], z]); return [2 /*return*/]; } }); @@ -104,14 +102,14 @@ function arrayLiteral4() { } function arrayLiteral5() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _b = (_a = [y]).concat; + _a = [[y]]; return [4 /*yield*/, z]; case 1: - x = _b.apply(_a, [(_d.sent())]); + x = __spread.apply(void 0, _a.concat([(_b.sent())])); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js index a7aff63025603..83bb14a751030 100644 --- a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js +++ b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js @@ -519,19 +519,19 @@ function binaryCompoundAssignment8() { } function binaryExponentiation() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f; - return __generator(this, function (_g) { - switch (_g.label) { + var _a, _b, _c, _d, _e; + return __generator(this, function (_f) { + switch (_f.label) { case 0: _b = (_a = Math).pow; return [4 /*yield*/, x]; case 1: - _b.apply(_a, [(_g.sent()), y]); - _e = (_d = Math).pow; - _f = [x]; + _b.apply(_a, [(_f.sent()), y]); + _d = (_c = Math).pow; + _e = [x]; return [4 /*yield*/, y]; case 2: - _e.apply(_d, _f.concat([_g.sent()])); + _d.apply(_c, _e.concat([_f.sent()])); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions.js b/tests/baselines/reference/es5-asyncFunctionCallExpressions.js index 93c4dcfd3cbc9..615ef021bf20b 100644 --- a/tests/baselines/reference/es5-asyncFunctionCallExpressions.js +++ b/tests/baselines/reference/es5-asyncFunctionCallExpressions.js @@ -113,14 +113,14 @@ function callExpression1() { } function callExpression2() { return __awaiter(this, void 0, void 0, function () { - var _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: _a = x; return [4 /*yield*/, y]; case 1: - _a.apply(void 0, [_c.sent(), z]); + _a.apply(void 0, [_b.sent(), z]); return [2 /*return*/]; } }); @@ -146,7 +146,7 @@ function callExpression4() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, x.apply(void 0, y.concat([z]))]; + case 0: return [4 /*yield*/, x.apply(void 0, __spread(y, [z]))]; case 1: _a.sent(); return [2 /*return*/]; @@ -160,7 +160,7 @@ function callExpression5() { switch (_a.label) { case 0: return [4 /*yield*/, x]; case 1: - (_a.sent()).apply(void 0, y.concat([z])); + (_a.sent()).apply(void 0, __spread(y, [z])); return [2 /*return*/]; } }); @@ -176,7 +176,7 @@ function callExpression6() { _c = [void 0]; return [4 /*yield*/, y]; case 1: - _b.apply(_a, _c.concat([(_d.sent()).concat([z])])); + _b.apply(_a, _c.concat([__spread.apply(void 0, [(_d.sent()), [z]])])); return [2 /*return*/]; } }); @@ -184,16 +184,16 @@ function callExpression6() { } function callExpression7() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f, _g; - return __generator(this, function (_h) { - switch (_h.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x).apply; _c = [void 0]; - _e = (_d = y).concat; + _d = [y]; return [4 /*yield*/, z]; case 1: - _b.apply(_a, _c.concat([_e.apply(_d, [[_h.sent()]])])); + _b.apply(_a, _c.concat([__spread.apply(void 0, _d.concat([[_e.sent()]]))])); return [2 /*return*/]; } }); @@ -201,15 +201,15 @@ function callExpression7() { } function callExpression8() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d; - return __generator(this, function (_e) { - switch (_e.label) { + var _a, _b, _c; + return __generator(this, function (_d) { + switch (_d.label) { case 0: _b = (_a = x).apply; _c = [void 0]; return [4 /*yield*/, y]; case 1: - _b.apply(_a, _c.concat([[_e.sent()].concat(z)])); + _b.apply(_a, _c.concat([__spread.apply(void 0, [[_d.sent()], z])])); return [2 /*return*/]; } }); @@ -217,16 +217,16 @@ function callExpression8() { } function callExpression9() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f; - return __generator(this, function (_g) { - switch (_g.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x).apply; _c = [void 0]; - _e = (_d = [y]).concat; + _d = [[y]]; return [4 /*yield*/, z]; case 1: - _b.apply(_a, _c.concat([_e.apply(_d, [(_g.sent())])])); + _b.apply(_a, _c.concat([__spread.apply(void 0, _d.concat([(_e.sent())]))])); return [2 /*return*/]; } }); @@ -270,14 +270,14 @@ function callExpression12() { } function callExpression13() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { case 0: _b = (_a = x).a; return [4 /*yield*/, y]; case 1: - _b.apply(_a, [_d.sent(), z]); + _b.apply(_a, [_c.sent(), z]); return [2 /*return*/]; } }); @@ -352,14 +352,14 @@ function callExpression18() { } function callExpression19() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { case 0: _b = (_a = x)[a]; return [4 /*yield*/, y]; case 1: - _b.apply(_a, [_d.sent(), z]); + _b.apply(_a, [_c.sent(), z]); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements.js b/tests/baselines/reference/es5-asyncFunctionForOfStatements.js index e12f1e18d4415..9925ae5cc4361 100644 --- a/tests/baselines/reference/es5-asyncFunctionForOfStatements.js +++ b/tests/baselines/reference/es5-asyncFunctionForOfStatements.js @@ -80,11 +80,17 @@ async function forOfStatement18() { //// [es5-asyncFunctionForOfStatements.js] function forOfStatement0() { return __awaiter(this, void 0, void 0, function () { - var _i, y_1; + var y_1, e_1; return __generator(this, function (_a) { - for (_i = 0, y_1 = y; _i < y_1.length; _i++) { - x = y_1[_i]; - z; + try { + for (y_1 = { iterator: __values(y) }; __step(y_1);) { + x = y_1.result.value; + z; + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(y_1); } finally { if (e_1) throw e_1.error; } } return [2 /*return*/]; }); @@ -92,133 +98,174 @@ function forOfStatement0() { } function forOfStatement1() { return __awaiter(this, void 0, void 0, function () { - var _i, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var iterator_1, _a, _b, e_2; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0; + _c.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _b.sent(); - _b.label = 2; + iterator_1 = (_a.iterator = __values.apply(void 0, [_c.sent()]), _a); + _c.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_1)) return [3 /*break*/, 4]; - x = _a[_i]; + x = iterator_1.result.value; z; - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _c.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _c.sent(); + e_2 = { error: e_2_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement2() { return __awaiter(this, void 0, void 0, function () { - var _i, y_2; - return __generator(this, function (_a) { - switch (_a.label) { + var y_2, _a, e_3; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _i = 0, y_2 = y; - _a.label = 1; + _b.trys.push([0, 5, 6, 7]); + y_2 = { iterator: __values(y) }; + _b.label = 1; case 1: - if (!(_i < y_2.length)) + if (!__step(y_2)) return [3 /*break*/, 4]; - x = y_2[_i]; + x = y_2.result.value; return [4 /*yield*/, z]; case 2: - _a.sent(); - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _b.sent(); + _b.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _b.sent(); + e_3 = { error: e_3_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_2); } finally { if (e_3) throw e_3.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement3() { return __awaiter(this, void 0, void 0, function () { - var _i, y_3; - return __generator(this, function (_a) { - switch (_a.label) { + var y_3, _a, e_4; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _i = 0, y_3 = y; - _a.label = 1; + _b.trys.push([0, 5, 6, 7]); + y_3 = { iterator: __values(y) }; + _b.label = 1; case 1: - if (!(_i < y_3.length)) + if (!__step(y_3)) return [3 /*break*/, 4]; return [4 /*yield*/, x]; case 2: - (_a.sent()).a = y_3[_i]; + (_b.sent()).a = y_3.result.value; z; - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _b.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _b.sent(); + e_4 = { error: e_4_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_3); } finally { if (e_4) throw e_4.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement4() { return __awaiter(this, void 0, void 0, function () { - var _i, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var iterator_2, _a, _b, e_5; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0; + _c.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _b.sent(); - _b.label = 2; + iterator_2 = (_a.iterator = __values.apply(void 0, [_c.sent()]), _a); + _c.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_2)) return [3 /*break*/, 4]; - x.a = _a[_i]; + x.a = iterator_2.result.value; z; - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _c.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _c.sent(); + e_5 = { error: e_5_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_2); } finally { if (e_5) throw e_5.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement5() { return __awaiter(this, void 0, void 0, function () { - var _i, y_4; - return __generator(this, function (_a) { - switch (_a.label) { + var y_4, _a, e_6; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _i = 0, y_4 = y; - _a.label = 1; + _b.trys.push([0, 5, 6, 7]); + y_4 = { iterator: __values(y) }; + _b.label = 1; case 1: - if (!(_i < y_4.length)) + if (!__step(y_4)) return [3 /*break*/, 4]; - x.a = y_4[_i]; + x.a = y_4.result.value; return [4 /*yield*/, z]; case 2: - _a.sent(); - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _b.sent(); + _b.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _b.sent(); + e_6 = { error: e_6_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_4); } finally { if (e_6) throw e_6.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement6() { return __awaiter(this, void 0, void 0, function () { - var _i, y_5, b; + var y_5, b, e_7; return __generator(this, function (_a) { - for (_i = 0, y_5 = y; _i < y_5.length; _i++) { - b = y_5[_i]; - z; + try { + for (y_5 = { iterator: __values(y) }; __step(y_5);) { + b = y_5.result.value; + z; + } + } + catch (e_7_1) { e_7 = { error: e_7_1 }; } + finally { + try { __close(y_5); } finally { if (e_7) throw e_7.error; } } return [2 /*return*/]; }); @@ -226,311 +273,395 @@ function forOfStatement6() { } function forOfStatement7() { return __awaiter(this, void 0, void 0, function () { - var _i, _a, c; - return __generator(this, function (_b) { - switch (_b.label) { + var iterator_3, _a, c, _b, e_8; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0; + _c.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _b.sent(); - _b.label = 2; + iterator_3 = (_a.iterator = __values.apply(void 0, [_c.sent()]), _a); + _c.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_3)) return [3 /*break*/, 4]; - c = _a[_i]; + c = iterator_3.result.value; z; - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _c.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _c.sent(); + e_8 = { error: e_8_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_3); } finally { if (e_8) throw e_8.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement8() { return __awaiter(this, void 0, void 0, function () { - var _i, y_6, d; - return __generator(this, function (_a) { - switch (_a.label) { + var y_6, d, _a, e_9; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _i = 0, y_6 = y; - _a.label = 1; + _b.trys.push([0, 5, 6, 7]); + y_6 = { iterator: __values(y) }; + _b.label = 1; case 1: - if (!(_i < y_6.length)) + if (!__step(y_6)) return [3 /*break*/, 4]; - d = y_6[_i]; + d = y_6.result.value; return [4 /*yield*/, z]; case 2: - _a.sent(); - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _b.sent(); + _b.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _b.sent(); + e_9 = { error: e_9_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_6); } finally { if (e_9) throw e_9.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement9() { return __awaiter(this, void 0, void 0, function () { - var _i, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var iterator_4, _a, _b, _c, e_10; + return __generator(this, function (_d) { + switch (_d.label) { case 0: - _i = 0; + _d.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _b.sent(); - _b.label = 2; + iterator_4 = (_a.iterator = __values.apply(void 0, [_d.sent()]), _a); + _d.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_4)) return [3 /*break*/, 4]; - x = _a[_i][0]; + _c = __read(iterator_4.result.value, 1), x = _c[0]; z; - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _d.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _d.sent(); + e_10 = { error: e_10_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_4); } finally { if (e_10) throw e_10.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement10() { return __awaiter(this, void 0, void 0, function () { - var _i, y_7; - return __generator(this, function (_a) { - switch (_a.label) { + var y_7, _a, _b, e_11; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0, y_7 = y; - _a.label = 1; + _c.trys.push([0, 5, 6, 7]); + y_7 = { iterator: __values(y) }; + _c.label = 1; case 1: - if (!(_i < y_7.length)) + if (!__step(y_7)) return [3 /*break*/, 4]; - x = y_7[_i][0]; + _b = __read(y_7.result.value, 1), x = _b[0]; return [4 /*yield*/, z]; case 2: - _a.sent(); - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _c.sent(); + _c.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _c.sent(); + e_11 = { error: e_11_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_7); } finally { if (e_11) throw e_11.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement11() { return __awaiter(this, void 0, void 0, function () { - var _i, y_8, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var y_8, _a, _b, _c, _d, e_12; + return __generator(this, function (_e) { + switch (_e.label) { case 0: - _i = 0, y_8 = y; - _c.label = 1; + _e.trys.push([0, 7, 8, 9]); + y_8 = { iterator: __values(y) }; + _e.label = 1; case 1: - if (!(_i < y_8.length)) + if (!__step(y_8)) return [3 /*break*/, 6]; - _b = y_8[_i][0]; - if (!(_b === void 0)) + _c = __read(y_8.result.value, 1), _d = _c[0]; + if (!(_d === void 0)) return [3 /*break*/, 3]; return [4 /*yield*/, a]; case 2: - _a = _c.sent(); + _a = _e.sent(); return [3 /*break*/, 4]; case 3: - _a = _b; - _c.label = 4; + _a = _d; + _e.label = 4; case 4: x = _a; z; - _c.label = 5; - case 5: - _i++; - return [3 /*break*/, 1]; - case 6: return [2 /*return*/]; + _e.label = 5; + case 5: return [3 /*break*/, 1]; + case 6: return [3 /*break*/, 9]; + case 7: + _b = _e.sent(); + e_12 = { error: e_12_1 }; + return [3 /*break*/, 9]; + case 8: + try { __close(y_8); } finally { if (e_12) throw e_12.error; } + return [7 /*endfinally*/]; + case 9: return [2 /*return*/]; } }); }); } function forOfStatement12() { return __awaiter(this, void 0, void 0, function () { - var _i, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var iterator_5, _a, _b, _c, _d, e_13; + return __generator(this, function (_e) { + switch (_e.label) { case 0: - _i = 0; + _e.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _c.sent(); - _c.label = 2; + iterator_5 = (_a.iterator = __values.apply(void 0, [_e.sent()]), _a); + _e.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_5)) return [3 /*break*/, 4]; - _b = _a[_i][0], x = _b === void 0 ? a : _b; + _c = __read(iterator_5.result.value, 1), _d = _c[0], x = _d === void 0 ? a : _d; z; - _c.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _e.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _e.sent(); + e_13 = { error: e_13_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_5); } finally { if (e_13) throw e_13.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement13() { return __awaiter(this, void 0, void 0, function () { - var _i, y_9, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var y_9, _a, _b, _c, e_14; + return __generator(this, function (_d) { + switch (_d.label) { case 0: - _i = 0, y_9 = y; - _b.label = 1; + _d.trys.push([0, 5, 6, 7]); + y_9 = { iterator: __values(y) }; + _d.label = 1; case 1: - if (!(_i < y_9.length)) + if (!__step(y_9)) return [3 /*break*/, 4]; - _a = y_9[_i][0], x = _a === void 0 ? a : _a; + _b = __read(y_9.result.value, 1), _c = _b[0], x = _c === void 0 ? a : _c; return [4 /*yield*/, z]; case 2: - _b.sent(); - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _d.sent(); + _d.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _d.sent(); + e_14 = { error: e_14_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_9); } finally { if (e_14) throw e_14.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement14() { return __awaiter(this, void 0, void 0, function () { - var _i, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var iterator_6, _a, _b, e_15; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0; + _c.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _b.sent(); - _b.label = 2; + iterator_6 = (_a.iterator = __values.apply(void 0, [_c.sent()]), _a); + _c.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_6)) return [3 /*break*/, 4]; - x = _a[_i].x; + x = iterator_6.result.value.x; z; - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _c.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _c.sent(); + e_15 = { error: e_15_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_6); } finally { if (e_15) throw e_15.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement15() { return __awaiter(this, void 0, void 0, function () { - var _i, y_10; - return __generator(this, function (_a) { - switch (_a.label) { + var y_10, _a, e_16; + return __generator(this, function (_b) { + switch (_b.label) { case 0: - _i = 0, y_10 = y; - _a.label = 1; + _b.trys.push([0, 5, 6, 7]); + y_10 = { iterator: __values(y) }; + _b.label = 1; case 1: - if (!(_i < y_10.length)) + if (!__step(y_10)) return [3 /*break*/, 4]; - x = y_10[_i].x; + x = y_10.result.value.x; return [4 /*yield*/, z]; case 2: - _a.sent(); - _a.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _b.sent(); + _b.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _b.sent(); + e_16 = { error: e_16_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_10); } finally { if (e_16) throw e_16.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement16() { return __awaiter(this, void 0, void 0, function () { - var _i, y_11, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var y_11, _a, _b, _c, e_17; + return __generator(this, function (_d) { + switch (_d.label) { case 0: - _i = 0, y_11 = y; - _c.label = 1; + _d.trys.push([0, 7, 8, 9]); + y_11 = { iterator: __values(y) }; + _d.label = 1; case 1: - if (!(_i < y_11.length)) + if (!__step(y_11)) return [3 /*break*/, 6]; - _b = y_11[_i].x; - if (!(_b === void 0)) + _c = y_11.result.value.x; + if (!(_c === void 0)) return [3 /*break*/, 3]; return [4 /*yield*/, a]; case 2: - _a = _c.sent(); + _a = _d.sent(); return [3 /*break*/, 4]; case 3: - _a = _b; - _c.label = 4; + _a = _c; + _d.label = 4; case 4: x = _a; z; - _c.label = 5; - case 5: - _i++; - return [3 /*break*/, 1]; - case 6: return [2 /*return*/]; + _d.label = 5; + case 5: return [3 /*break*/, 1]; + case 6: return [3 /*break*/, 9]; + case 7: + _b = _d.sent(); + e_17 = { error: e_17_1 }; + return [3 /*break*/, 9]; + case 8: + try { __close(y_11); } finally { if (e_17) throw e_17.error; } + return [7 /*endfinally*/]; + case 9: return [2 /*return*/]; } }); }); } function forOfStatement17() { return __awaiter(this, void 0, void 0, function () { - var _i, _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var iterator_7, _a, _b, _c, e_18; + return __generator(this, function (_d) { + switch (_d.label) { case 0: - _i = 0; + _d.trys.push([0, 5, 6, 7]); + _a = {}; return [4 /*yield*/, y]; case 1: - _a = _c.sent(); - _c.label = 2; + iterator_7 = (_a.iterator = __values.apply(void 0, [_d.sent()]), _a); + _d.label = 2; case 2: - if (!(_i < _a.length)) + if (!__step(iterator_7)) return [3 /*break*/, 4]; - _b = _a[_i].x, x = _b === void 0 ? a : _b; + _c = iterator_7.result.value.x, x = _c === void 0 ? a : _c; z; - _c.label = 3; - case 3: - _i++; - return [3 /*break*/, 2]; - case 4: return [2 /*return*/]; + _d.label = 3; + case 3: return [3 /*break*/, 2]; + case 4: return [3 /*break*/, 7]; + case 5: + _b = _d.sent(); + e_18 = { error: e_18_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(iterator_7); } finally { if (e_18) throw e_18.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); } function forOfStatement18() { return __awaiter(this, void 0, void 0, function () { - var _i, y_12, _a; - return __generator(this, function (_b) { - switch (_b.label) { + var y_12, _a, _b, e_19; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _i = 0, y_12 = y; - _b.label = 1; + _c.trys.push([0, 5, 6, 7]); + y_12 = { iterator: __values(y) }; + _c.label = 1; case 1: - if (!(_i < y_12.length)) + if (!__step(y_12)) return [3 /*break*/, 4]; - _a = y_12[_i].x, x = _a === void 0 ? a : _a; + _b = y_12.result.value.x, x = _b === void 0 ? a : _b; return [4 /*yield*/, z]; case 2: - _b.sent(); - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/]; + _c.sent(); + _c.label = 3; + case 3: return [3 /*break*/, 1]; + case 4: return [3 /*break*/, 7]; + case 5: + _a = _c.sent(); + e_19 = { error: e_19_1 }; + return [3 /*break*/, 7]; + case 6: + try { __close(y_12); } finally { if (e_19) throw e_19.error; } + return [7 /*endfinally*/]; + case 7: return [2 /*return*/]; } }); }); diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting.js b/tests/baselines/reference/es5-asyncFunctionHoisting.js index 1ee846d0126fc..31453edda0a06 100644 --- a/tests/baselines/reference/es5-asyncFunctionHoisting.js +++ b/tests/baselines/reference/es5-asyncFunctionHoisting.js @@ -58,7 +58,7 @@ function hoisting() { function z() { var b0, b1 = 1; } - var a0, a1, c0, c1, a, b, _i, y_1, c; + var a0, a1, c0, c1, a, b, y_1, c, e_1; return __generator(this, function (_a) { a1 = 1; if (true) { @@ -68,8 +68,14 @@ function hoisting() { } for (b in y) { } - for (_i = 0, y_1 = y; _i < y_1.length; _i++) { - c = y_1[_i]; + try { + for (y_1 = { iterator: __values(y) }; __step(y_1);) { + c = y_1.result.value; + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(y_1); } finally { if (e_1) throw e_1.error; } } return [2 /*return*/]; }); @@ -80,7 +86,7 @@ function hoistingWithAwait() { function z() { var b0, b1 = 1; } - var a0, a1, c0, c1, a, b, _i, y_2, c; + var a0, a1, c0, c1, a, b, y_2, c, e_2; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -95,8 +101,14 @@ function hoistingWithAwait() { } for (b in y) { } - for (_i = 0, y_2 = y; _i < y_2.length; _i++) { - c = y_2[_i]; + try { + for (y_2 = { iterator: __values(y) }; __step(y_2);) { + c = y_2.result.value; + } + } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { __close(y_2); } finally { if (e_2) throw e_2.error; } } return [2 /*return*/]; } diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions.js b/tests/baselines/reference/es5-asyncFunctionNewExpressions.js index 486bf0fdd7f91..592ba1ba56a1c 100644 --- a/tests/baselines/reference/es5-asyncFunctionNewExpressions.js +++ b/tests/baselines/reference/es5-asyncFunctionNewExpressions.js @@ -112,14 +112,14 @@ function newExpression1() { } function newExpression2() { return __awaiter(this, void 0, void 0, function () { - var _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: _a = x.bind; return [4 /*yield*/, y]; case 1: - new (_a.apply(x, [_c.sent(), z]))(); + new (_a.apply(x, [_b.sent(), z]))(); return [2 /*return*/]; } }); @@ -145,7 +145,7 @@ function newExpression4() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, new (x.bind.apply(x, [void 0].concat(y, [z])))()]; + case 0: return [4 /*yield*/, new (x.bind.apply(x, __spread([void 0], y, [z])))()]; case 1: _a.sent(); return [2 /*return*/]; @@ -160,7 +160,7 @@ function newExpression5() { switch (_b.label) { case 0: return [4 /*yield*/, x]; case 1: - new ((_a = (_b.sent())).bind.apply(_a, [void 0].concat(y, [z])))(); + new ((_a = (_b.sent())).bind.apply(_a, __spread([void 0], y, [z])))(); return [2 /*return*/]; } }); @@ -168,16 +168,16 @@ function newExpression5() { } function newExpression6() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f; - return __generator(this, function (_g) { - switch (_g.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x.bind).apply; _c = [x]; - _e = (_d = [void 0]).concat; + _d = [[void 0]]; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, _c.concat([_e.apply(_d, [(_g.sent()), [z]])])))(); + new (_b.apply(_a, _c.concat([__spread.apply(void 0, _d.concat([(_e.sent()), [z]]))])))(); return [2 /*return*/]; } }); @@ -185,17 +185,16 @@ function newExpression6() { } function newExpression7() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f, _g; - return __generator(this, function (_h) { - switch (_h.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x.bind).apply; _c = [x]; - _e = (_d = [void 0]).concat; - _f = [y]; + _d = [[void 0], y]; return [4 /*yield*/, z]; case 1: - new (_b.apply(_a, _c.concat([_e.apply(_d, _f.concat([[_h.sent()]]))])))(); + new (_b.apply(_a, _c.concat([__spread.apply(void 0, _d.concat([[_e.sent()]]))])))(); return [2 /*return*/]; } }); @@ -212,7 +211,7 @@ function newExpression8() { _d = [void 0]; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, _c.concat([_d.concat([_e.sent()]).concat(z)])))(); + new (_b.apply(_a, _c.concat([__spread.apply(void 0, [_d.concat([_e.sent()]), z])])))(); return [2 /*return*/]; } }); @@ -220,16 +219,16 @@ function newExpression8() { } function newExpression9() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c, _d, _e, _f; - return __generator(this, function (_g) { - switch (_g.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x.bind).apply; _c = [x]; - _e = (_d = [void 0, y]).concat; + _d = [[void 0, y]]; return [4 /*yield*/, z]; case 1: - new (_b.apply(_a, _c.concat([_e.apply(_d, [(_g.sent())])])))(); + new (_b.apply(_a, _c.concat([__spread.apply(void 0, _d.concat([(_e.sent())]))])))(); return [2 /*return*/]; } }); @@ -273,14 +272,14 @@ function newExpression12() { } function newExpression13() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { case 0: _b = (_a = x.a).bind; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, [_d.sent(), z]))(); + new (_b.apply(_a, [_c.sent(), z]))(); return [2 /*return*/]; } }); @@ -355,14 +354,14 @@ function newExpression18() { } function newExpression19() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { case 0: _b = (_a = x[a]).bind; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, [_d.sent(), z]))(); + new (_b.apply(_a, [_c.sent(), z]))(); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js b/tests/baselines/reference/es5-importHelpersAsyncFunctions.js index 0fd308cee3b4f..ce448e9196c9f 100644 --- a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions.js @@ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/exportStarForValues10.js b/tests/baselines/reference/exportStarForValues10.js index 3da80002780c6..f7dd6e94ce5a1 100644 --- a/tests/baselines/reference/exportStarForValues10.js +++ b/tests/baselines/reference/exportStarForValues10.js @@ -42,8 +42,7 @@ System.register(["file0"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default") - exports[n] = m[n]; + if (n !== "default") exports[n] = m[n]; } exports_1(exports); } diff --git a/tests/baselines/reference/fallbackToBindingPatternForTypeInference.js b/tests/baselines/reference/fallbackToBindingPatternForTypeInference.js index 1c02ae8398215..72f41d55cb504 100644 --- a/tests/baselines/reference/fallbackToBindingPatternForTypeInference.js +++ b/tests/baselines/reference/fallbackToBindingPatternForTypeInference.js @@ -8,20 +8,28 @@ trans(({a, b = 10}) => a); //// [fallbackToBindingPatternForTypeInference.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; trans(function (_a) { var a = _a.a; return a; }); trans(function (_a) { - var b = _a[0], c = _a[1]; + var _b = __read(_a, 2), b = _b[0], c = _b[1]; return 'foo'; }); trans(function (_a) { - var _b = _a.d, e = _b[0], f = _b[1]; + var _b = __read(_a.d, 2), e = _b[0], f = _b[1]; return 'foo'; }); trans(function (_a) { - var g = _a[0].g, h = _a[1].h; + var _b = __read(_a, 2), g = _b[0].g, h = _b[1].h; return 'foo'; }); trans(function (_a) { diff --git a/tests/baselines/reference/for-inStatementsDestructuring.errors.txt b/tests/baselines/reference/for-inStatementsDestructuring.errors.txt index e54f2c93272a3..7dc3b7b3b73d0 100644 --- a/tests/baselines/reference/for-inStatementsDestructuring.errors.txt +++ b/tests/baselines/reference/for-inStatementsDestructuring.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring.ts(1,10): error TS2461: Type 'string' is not an array type. +tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring.ts(1,10): error TS2461: Type 'string' is not an array type or does not have an '__iterator__()' method that returns an iterator. tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring.ts(1,10): error TS2491: The left-hand side of a 'for...in' statement cannot be a destructuring pattern. ==== tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring.ts (2 errors) ==== for (var [a, b] in []) {} ~~~~~~ -!!! error TS2461: Type 'string' is not an array type. +!!! error TS2461: Type 'string' is not an array type or does not have an '__iterator__()' method that returns an iterator. ~~~~~~ !!! error TS2491: The left-hand side of a 'for...in' statement cannot be a destructuring pattern. \ No newline at end of file diff --git a/tests/baselines/reference/for-inStatementsDestructuring.js b/tests/baselines/reference/for-inStatementsDestructuring.js index e5e00d5b3ab56..745e61b9f1b6d 100644 --- a/tests/baselines/reference/for-inStatementsDestructuring.js +++ b/tests/baselines/reference/for-inStatementsDestructuring.js @@ -2,4 +2,12 @@ for (var [a, b] in []) {} //// [for-inStatementsDestructuring.js] -for (var _a = void 0, a = _a[0], b = _a[1] in []) { } +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +for (var _a = __read(void 0, 2), a = _a[0], b = _a[1] in []) { } diff --git a/tests/baselines/reference/forOfTransformsExpression.js b/tests/baselines/reference/forOfTransformsExpression.js index 4b953b5cba1bc..430a74d83d4a6 100644 --- a/tests/baselines/reference/forOfTransformsExpression.js +++ b/tests/baselines/reference/forOfTransformsExpression.js @@ -6,8 +6,26 @@ for (var item of items.sort((a, b) => a.name.localeCompare(b.name))) { } //// [forOfTransformsExpression.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; // https://github.com/Microsoft/TypeScript/issues/11024 var items = [{ name: "A" }, { name: "C" }, { name: "B" }]; -for (var _i = 0, _a = items.sort(function (a, b) { return a.name.localeCompare(b.name); }); _i < _a.length; _i++) { - var item = _a[_i]; +try { + for (var iterator_1 = { iterator: __values(items.sort(function (a, b) { return a.name.localeCompare(b.name); })) }; __step(iterator_1);) { + var item = iterator_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/functionOverloads43.js b/tests/baselines/reference/functionOverloads43.js index 2bb4b61af145e..a416c92fa1af3 100644 --- a/tests/baselines/reference/functionOverloads43.js +++ b/tests/baselines/reference/functionOverloads43.js @@ -13,8 +13,16 @@ var x = foo([{a: "str"}]); var y = foo([{a: 100}]); //// [functionOverloads43.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo(_a) { - var x = _a[0]; + var _b = __read(_a, 1), x = _b[0]; if (x) { return x.a; } diff --git a/tests/baselines/reference/functionOverloads44.js b/tests/baselines/reference/functionOverloads44.js index 916204d123c88..5d916d13f4f14 100644 --- a/tests/baselines/reference/functionOverloads44.js +++ b/tests/baselines/reference/functionOverloads44.js @@ -23,12 +23,20 @@ var x2 = foo2([{a: "str"}]); var y2 = foo2([{a: 100}]); //// [functionOverloads44.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo1(_a) { - var x = _a[0]; + var _b = __read(_a, 1), x = _b[0]; return undefined; } function foo2(_a) { - var x = _a[0]; + var _b = __read(_a, 1), x = _b[0]; return undefined; } var x1 = foo1([{ a: "str" }]); diff --git a/tests/baselines/reference/functionOverloads45.js b/tests/baselines/reference/functionOverloads45.js index 89bf41893c91b..a051b5f5dee55 100644 --- a/tests/baselines/reference/functionOverloads45.js +++ b/tests/baselines/reference/functionOverloads45.js @@ -23,12 +23,20 @@ var x2 = foo2([{a: "str"}]); var y2 = foo2([{a: 100}]); //// [functionOverloads45.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo1(_a) { - var x = _a[0]; + var _b = __read(_a, 1), x = _b[0]; return undefined; } function foo2(_a) { - var x = _a[0]; + var _b = __read(_a, 1), x = _b[0]; return undefined; } var x1 = foo1([{ a: "str" }]); diff --git a/tests/baselines/reference/generatorTypeCheck1.symbols b/tests/baselines/reference/generatorTypeCheck1.symbols index dbb6db06833aa..7c9dbbf05b467 100644 --- a/tests/baselines/reference/generatorTypeCheck1.symbols +++ b/tests/baselines/reference/generatorTypeCheck1.symbols @@ -1,5 +1,5 @@ === tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck1.ts === function* g1(): Iterator { } >g1 : Symbol(g1, Decl(generatorTypeCheck1.ts, 0, 0)) ->Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterator : Symbol(Iterator, Decl(lib.es5.d.ts, --, --)) diff --git a/tests/baselines/reference/generatorTypeCheck29.symbols b/tests/baselines/reference/generatorTypeCheck29.symbols index 5ea31ccb0cd67..eca0b2c60915f 100644 --- a/tests/baselines/reference/generatorTypeCheck29.symbols +++ b/tests/baselines/reference/generatorTypeCheck29.symbols @@ -1,7 +1,7 @@ === tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck29.ts === function* g2(): Iterator number>> { >g2 : Symbol(g2, Decl(generatorTypeCheck29.ts, 0, 0)) ->Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterator : Symbol(Iterator, Decl(lib.es5.d.ts, --, --)) >Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) >x : Symbol(x, Decl(generatorTypeCheck29.ts, 0, 35)) diff --git a/tests/baselines/reference/generatorTypeCheck30.symbols b/tests/baselines/reference/generatorTypeCheck30.symbols index f1626cf067f86..acb1e8615201f 100644 --- a/tests/baselines/reference/generatorTypeCheck30.symbols +++ b/tests/baselines/reference/generatorTypeCheck30.symbols @@ -1,7 +1,7 @@ === tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck30.ts === function* g2(): Iterator number>> { >g2 : Symbol(g2, Decl(generatorTypeCheck30.ts, 0, 0)) ->Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterator : Symbol(Iterator, Decl(lib.es5.d.ts, --, --)) >Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) >x : Symbol(x, Decl(generatorTypeCheck30.ts, 0, 35)) diff --git a/tests/baselines/reference/generatorTypeCheck45.symbols b/tests/baselines/reference/generatorTypeCheck45.symbols index fa8cdacfcd310..e8d400c6ef7ca 100644 --- a/tests/baselines/reference/generatorTypeCheck45.symbols +++ b/tests/baselines/reference/generatorTypeCheck45.symbols @@ -6,7 +6,7 @@ declare function foo(x: T, fun: () => Iterator<(x: T) => U>, fun2: (y: U) >x : Symbol(x, Decl(generatorTypeCheck45.ts, 0, 27)) >T : Symbol(T, Decl(generatorTypeCheck45.ts, 0, 21)) >fun : Symbol(fun, Decl(generatorTypeCheck45.ts, 0, 32)) ->Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterator : Symbol(Iterator, Decl(lib.es5.d.ts, --, --)) >x : Symbol(x, Decl(generatorTypeCheck45.ts, 0, 54)) >T : Symbol(T, Decl(generatorTypeCheck45.ts, 0, 21)) >U : Symbol(U, Decl(generatorTypeCheck45.ts, 0, 23)) diff --git a/tests/baselines/reference/importHelpersNoHelpers.errors.txt b/tests/baselines/reference/importHelpersNoHelpers.errors.txt index ebb25dbd7c974..9629a215eefcf 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.errors.txt +++ b/tests/baselines/reference/importHelpersNoHelpers.errors.txt @@ -1,15 +1,19 @@ -error TS2305: Module 'tslib' has no exported member '__decorate'. -error TS2305: Module 'tslib' has no exported member '__extends'. -error TS2305: Module 'tslib' has no exported member '__metadata'. -error TS2305: Module 'tslib' has no exported member '__param'. +tests/cases/compiler/external.ts(1,1): error TS2305: Module 'tslib' has no exported member '__decorate'. +tests/cases/compiler/external.ts(1,1): error TS2305: Module 'tslib' has no exported member '__extends'. +tests/cases/compiler/external.ts(1,1): error TS2305: Module 'tslib' has no exported member '__metadata'. +tests/cases/compiler/external.ts(1,1): error TS2305: Module 'tslib' has no exported member '__param'. +==== tests/cases/compiler/external.ts (4 errors) ==== + export class A { } + !!! error TS2305: Module 'tslib' has no exported member '__decorate'. + !!! error TS2305: Module 'tslib' has no exported member '__extends'. + !!! error TS2305: Module 'tslib' has no exported member '__metadata'. + !!! error TS2305: Module 'tslib' has no exported member '__param'. -==== tests/cases/compiler/external.ts (0 errors) ==== - export class A { } export class B extends A { } declare var dec: any; diff --git a/tests/baselines/reference/importHelpersNoModule.errors.txt b/tests/baselines/reference/importHelpersNoModule.errors.txt index d59fd0537ca5d..48d0651bce8bf 100644 --- a/tests/baselines/reference/importHelpersNoModule.errors.txt +++ b/tests/baselines/reference/importHelpersNoModule.errors.txt @@ -1,9 +1,10 @@ -error TS2307: Cannot find module 'tslib'. +tests/cases/compiler/external.ts(1,1): error TS2307: Cannot find module 'tslib'. -!!! error TS2307: Cannot find module 'tslib'. -==== tests/cases/compiler/external.ts (0 errors) ==== +==== tests/cases/compiler/external.ts (1 errors) ==== export class A { } + ~~~~~~ +!!! error TS2307: Cannot find module 'tslib'. export class B extends A { } declare var dec: any; diff --git a/tests/baselines/reference/narrowingByDiscriminantInLoop.js b/tests/baselines/reference/narrowingByDiscriminantInLoop.js index 88cc87772dda4..748e069b87503 100644 --- a/tests/baselines/reference/narrowingByDiscriminantInLoop.js +++ b/tests/baselines/reference/narrowingByDiscriminantInLoop.js @@ -88,25 +88,50 @@ function f2(x: A | B) { //// [narrowingByDiscriminantInLoop.js] // Repro from #9977 +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; function insertInterface(callbackType) { - for (var _i = 0, _a = callbackType.members; _i < _a.length; _i++) { - var memberType = _a[_i]; - if (memberType.type === "const") { - memberType.idlType; // string - } - else if (memberType.type === "operation") { - memberType.idlType.origin; // string - memberType.idlType; + try { + for (var iterator_1 = { iterator: __values(callbackType.members) }; __step(iterator_1);) { + var memberType = iterator_1.result.value; + if (memberType.type === "const") { + memberType.idlType; // string + } + else if (memberType.type === "operation") { + memberType.idlType.origin; // string + memberType.idlType; + } } } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } + } + var e_1; } function insertInterface2(callbackType) { - for (var _i = 0, _a = callbackType.members; _i < _a.length; _i++) { - var memberType = _a[_i]; - if (memberType.type === "operation") { - memberType.idlType.origin; // string + try { + for (var iterator_2 = { iterator: __values(callbackType.members) }; __step(iterator_2);) { + var memberType = iterator_2.result.value; + if (memberType.type === "operation") { + memberType.idlType.origin; // string + } } } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { __close(iterator_2); } finally { if (e_2) throw e_2.error; } + } + var e_2; } function foo(memberType) { if (memberType.type === "const") { diff --git a/tests/baselines/reference/newWithSpread.js b/tests/baselines/reference/newWithSpread.js index 91c502e50b9ec..28845d849abc3 100644 --- a/tests/baselines/reference/newWithSpread.js +++ b/tests/baselines/reference/newWithSpread.js @@ -98,6 +98,18 @@ new i["a-b"][1](1, 2, ...a); new i["a-b"][1](1, 2, ...a, "string"); //// [newWithSpread.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function f(x, y) { var z = []; for (var _i = 2; _i < arguments.length; _i++) { @@ -129,53 +141,53 @@ var h; var i; // Basic expression new f(1, 2, "string"); -new (f.bind.apply(f, [void 0, 1, 2].concat(a)))(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, ["string"])))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a)))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, ["string"])))(); // Multiple spreads arguments -new (f2.bind.apply(f2, [void 0].concat(a, a)))(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, a)))(); +new (f2.bind.apply(f2, __spread([void 0], a, a)))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, a)))(); // Call expression new f(1, 2, "string")(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a)))()(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, ["string"])))()(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a)))()(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, ["string"])))()(); // Property access expression new b.f(1, 2, "string"); -new ((_a = b.f).bind.apply(_a, [void 0, 1, 2].concat(a)))(); -new ((_b = b.f).bind.apply(_b, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_a = b.f).bind.apply(_a, __spread([void 0, 1, 2], a)))(); +new ((_b = b.f).bind.apply(_b, __spread([void 0, 1, 2], a, ["string"])))(); // Parenthesised expression new (b.f)(1, 2, "string"); -new ((_c = (b.f)).bind.apply(_c, [void 0, 1, 2].concat(a)))(); -new ((_d = (b.f)).bind.apply(_d, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_c = (b.f)).bind.apply(_c, __spread([void 0, 1, 2], a)))(); +new ((_d = (b.f)).bind.apply(_d, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression new d[1].f(1, 2, "string"); -new ((_e = d[1].f).bind.apply(_e, [void 0, 1, 2].concat(a)))(); -new ((_f = d[1].f).bind.apply(_f, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_e = d[1].f).bind.apply(_e, __spread([void 0, 1, 2], a)))(); +new ((_f = d[1].f).bind.apply(_f, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a punctuated key new e["a-b"].f(1, 2, "string"); -new ((_g = e["a-b"].f).bind.apply(_g, [void 0, 1, 2].concat(a)))(); -new ((_h = e["a-b"].f).bind.apply(_h, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_g = e["a-b"].f).bind.apply(_g, __spread([void 0, 1, 2], a)))(); +new ((_h = e["a-b"].f).bind.apply(_h, __spread([void 0, 1, 2], a, ["string"])))(); // Basic expression new B(1, 2, "string"); -new (B.bind.apply(B, [void 0, 1, 2].concat(a)))(); -new (B.bind.apply(B, [void 0, 1, 2].concat(a, ["string"])))(); +new (B.bind.apply(B, __spread([void 0, 1, 2], a)))(); +new (B.bind.apply(B, __spread([void 0, 1, 2], a, ["string"])))(); // Property access expression new c["a-b"](1, 2, "string"); -new ((_j = c["a-b"]).bind.apply(_j, [void 0, 1, 2].concat(a)))(); -new ((_k = c["a-b"]).bind.apply(_k, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_j = c["a-b"]).bind.apply(_j, __spread([void 0, 1, 2], a)))(); +new ((_k = c["a-b"]).bind.apply(_k, __spread([void 0, 1, 2], a, ["string"])))(); // Parenthesised expression new (c["a-b"])(1, 2, "string"); -new ((_l = (c["a-b"])).bind.apply(_l, [void 0, 1, 2].concat(a)))(); -new ((_m = (c["a-b"])).bind.apply(_m, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_l = (c["a-b"])).bind.apply(_l, __spread([void 0, 1, 2], a)))(); +new ((_m = (c["a-b"])).bind.apply(_m, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression new g[1]["a-b"](1, 2, "string"); -new ((_o = g[1]["a-b"]).bind.apply(_o, [void 0, 1, 2].concat(a)))(); -new ((_p = g[1]["a-b"]).bind.apply(_p, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_o = g[1]["a-b"]).bind.apply(_o, __spread([void 0, 1, 2], a)))(); +new ((_p = g[1]["a-b"]).bind.apply(_p, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a punctuated key new h["a-b"]["a-b"](1, 2, "string"); -new ((_q = h["a-b"]["a-b"]).bind.apply(_q, [void 0, 1, 2].concat(a)))(); -new ((_r = h["a-b"]["a-b"]).bind.apply(_r, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spread([void 0, 1, 2], a)))(); +new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a number new i["a-b"][1](1, 2, "string"); -new ((_s = i["a-b"][1]).bind.apply(_s, [void 0, 1, 2].concat(a)))(); -new ((_t = i["a-b"][1]).bind.apply(_t, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_s = i["a-b"][1]).bind.apply(_s, __spread([void 0, 1, 2], a)))(); +new ((_t = i["a-b"][1]).bind.apply(_t, __spread([void 0, 1, 2], a, ["string"])))(); var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; diff --git a/tests/baselines/reference/newWithSpreadES5.js b/tests/baselines/reference/newWithSpreadES5.js index 92904062d0a30..bf4e57721e3bc 100644 --- a/tests/baselines/reference/newWithSpreadES5.js +++ b/tests/baselines/reference/newWithSpreadES5.js @@ -97,6 +97,18 @@ new i["a-b"][1](1, 2, ...a); new i["a-b"][1](1, 2, ...a, "string"); //// [newWithSpreadES5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function f(x, y) { var z = []; for (var _i = 2; _i < arguments.length; _i++) { @@ -128,53 +140,53 @@ var h; var i; // Basic expression new f(1, 2, "string"); -new (f.bind.apply(f, [void 0, 1, 2].concat(a)))(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, ["string"])))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a)))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, ["string"])))(); // Multiple spreads arguments -new (f2.bind.apply(f2, [void 0].concat(a, a)))(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, a)))(); +new (f2.bind.apply(f2, __spread([void 0], a, a)))(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, a)))(); // Call expression new f(1, 2, "string")(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a)))()(); -new (f.bind.apply(f, [void 0, 1, 2].concat(a, ["string"])))()(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a)))()(); +new (f.bind.apply(f, __spread([void 0, 1, 2], a, ["string"])))()(); // Property access expression new b.f(1, 2, "string"); -new ((_a = b.f).bind.apply(_a, [void 0, 1, 2].concat(a)))(); -new ((_b = b.f).bind.apply(_b, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_a = b.f).bind.apply(_a, __spread([void 0, 1, 2], a)))(); +new ((_b = b.f).bind.apply(_b, __spread([void 0, 1, 2], a, ["string"])))(); // Parenthesised expression new (b.f)(1, 2, "string"); -new ((_c = (b.f)).bind.apply(_c, [void 0, 1, 2].concat(a)))(); -new ((_d = (b.f)).bind.apply(_d, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_c = (b.f)).bind.apply(_c, __spread([void 0, 1, 2], a)))(); +new ((_d = (b.f)).bind.apply(_d, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression new d[1].f(1, 2, "string"); -new ((_e = d[1].f).bind.apply(_e, [void 0, 1, 2].concat(a)))(); -new ((_f = d[1].f).bind.apply(_f, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_e = d[1].f).bind.apply(_e, __spread([void 0, 1, 2], a)))(); +new ((_f = d[1].f).bind.apply(_f, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a punctuated key new e["a-b"].f(1, 2, "string"); -new ((_g = e["a-b"].f).bind.apply(_g, [void 0, 1, 2].concat(a)))(); -new ((_h = e["a-b"].f).bind.apply(_h, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_g = e["a-b"].f).bind.apply(_g, __spread([void 0, 1, 2], a)))(); +new ((_h = e["a-b"].f).bind.apply(_h, __spread([void 0, 1, 2], a, ["string"])))(); // Basic expression new B(1, 2, "string"); -new (B.bind.apply(B, [void 0, 1, 2].concat(a)))(); -new (B.bind.apply(B, [void 0, 1, 2].concat(a, ["string"])))(); +new (B.bind.apply(B, __spread([void 0, 1, 2], a)))(); +new (B.bind.apply(B, __spread([void 0, 1, 2], a, ["string"])))(); // Property access expression new c["a-b"](1, 2, "string"); -new ((_j = c["a-b"]).bind.apply(_j, [void 0, 1, 2].concat(a)))(); -new ((_k = c["a-b"]).bind.apply(_k, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_j = c["a-b"]).bind.apply(_j, __spread([void 0, 1, 2], a)))(); +new ((_k = c["a-b"]).bind.apply(_k, __spread([void 0, 1, 2], a, ["string"])))(); // Parenthesised expression new (c["a-b"])(1, 2, "string"); -new ((_l = (c["a-b"])).bind.apply(_l, [void 0, 1, 2].concat(a)))(); -new ((_m = (c["a-b"])).bind.apply(_m, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_l = (c["a-b"])).bind.apply(_l, __spread([void 0, 1, 2], a)))(); +new ((_m = (c["a-b"])).bind.apply(_m, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression new g[1]["a-b"](1, 2, "string"); -new ((_o = g[1]["a-b"]).bind.apply(_o, [void 0, 1, 2].concat(a)))(); -new ((_p = g[1]["a-b"]).bind.apply(_p, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_o = g[1]["a-b"]).bind.apply(_o, __spread([void 0, 1, 2], a)))(); +new ((_p = g[1]["a-b"]).bind.apply(_p, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a punctuated key new h["a-b"]["a-b"](1, 2, "string"); -new ((_q = h["a-b"]["a-b"]).bind.apply(_q, [void 0, 1, 2].concat(a)))(); -new ((_r = h["a-b"]["a-b"]).bind.apply(_r, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spread([void 0, 1, 2], a)))(); +new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spread([void 0, 1, 2], a, ["string"])))(); // Element access expression with a number new i["a-b"][1](1, 2, "string"); -new ((_s = i["a-b"][1]).bind.apply(_s, [void 0, 1, 2].concat(a)))(); -new ((_t = i["a-b"][1]).bind.apply(_t, [void 0, 1, 2].concat(a, ["string"])))(); +new ((_s = i["a-b"][1]).bind.apply(_s, __spread([void 0, 1, 2], a)))(); +new ((_t = i["a-b"][1]).bind.apply(_t, __spread([void 0, 1, 2], a, ["string"])))(); var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; diff --git a/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.js b/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.js index d587f8789a971..4a235539b68c0 100644 --- a/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.js +++ b/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.js @@ -11,25 +11,33 @@ function f5([a1] = [undefined], {b1} = { b1: null }, c1 = undefined, d1 = null) } //// [noImplicitAnyDestructuringParameterDeclaration.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f1(_a, _b, c, d) { - var a = _a[0]; + var _c = __read(_a, 1), a = _c[0]; var b = _b.b; } function f2(_a, _b, c, d) { - var _c = _a[0], a = _c === void 0 ? undefined : _c; - var _d = _b.b, b = _d === void 0 ? null : _d; + var _c = __read(_a, 1), _d = _c[0], a = _d === void 0 ? undefined : _d; + var _e = _b.b, b = _e === void 0 ? null : _e; if (c === void 0) { c = undefined; } if (d === void 0) { d = null; } } function f3(_a, _b, c, d) { - var a = _a[0]; + var _c = __read(_a, 1), a = _c[0]; var b = _b.b; } function f4(_a, x) { var b = _a.b; } function f5(_a, _b, c1, d1) { - var a1 = (_a === void 0 ? [undefined] : _a)[0]; + var _c = __read(_a === void 0 ? [undefined] : _a, 1), a1 = _c[0]; var b1 = (_b === void 0 ? { b1: null } : _b).b1; if (c1 === void 0) { c1 = undefined; } if (d1 === void 0) { d1 = null; } diff --git a/tests/baselines/reference/noImplicitAnyDestructuringVarDeclaration.js b/tests/baselines/reference/noImplicitAnyDestructuringVarDeclaration.js index 85358df666ede..7e9eeccc1332a 100644 --- a/tests/baselines/reference/noImplicitAnyDestructuringVarDeclaration.js +++ b/tests/baselines/reference/noImplicitAnyDestructuringVarDeclaration.js @@ -12,9 +12,17 @@ var [a4] = [undefined], {b4} = { b4: null }, c4 = undefined, d4 = null; // error var [a5 = undefined] = []; // error //// [noImplicitAnyDestructuringVarDeclaration.js] -var a = (void 0)[0], b = (void 0).b, c, d; // error -var _a = (void 0)[0], a1 = _a === void 0 ? undefined : _a, _b = (void 0).b1, b1 = _b === void 0 ? null : _b, c1 = undefined, d1 = null; // error -var a2 = (void 0)[0], b2 = (void 0).b2, c2, d2; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var _a = __read(void 0, 1), a = _a[0], b = (void 0).b, c, d; // error +var _b = __read(void 0, 1), _c = _b[0], a1 = _c === void 0 ? undefined : _c, _d = (void 0).b1, b1 = _d === void 0 ? null : _d, c1 = undefined, d1 = null; // error +var _e = __read(void 0, 1), a2 = _e[0], b2 = (void 0).b2, c2, d2; var b3 = (void 0).b3, c3; // error in type instead var a4 = [undefined][0], b4 = { b4: null }.b4, c4 = undefined, d4 = null; // error -var _c = [][0], a5 = _c === void 0 ? undefined : _c; // error +var _f = [][0], a5 = _f === void 0 ? undefined : _f; // error diff --git a/tests/baselines/reference/optionalBindingParameters1.js b/tests/baselines/reference/optionalBindingParameters1.js index 536cb1e567a43..ca100aff6a67a 100644 --- a/tests/baselines/reference/optionalBindingParameters1.js +++ b/tests/baselines/reference/optionalBindingParameters1.js @@ -9,8 +9,16 @@ foo(["", 0, false]); foo([false, 0, ""]); //// [optionalBindingParameters1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo(_a) { - var x = _a[0], y = _a[1], z = _a[2]; + var _b = __read(_a, 3), x = _b[0], y = _b[1], z = _b[2]; } foo(["", 0, false]); foo([false, 0, ""]); diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.js b/tests/baselines/reference/parameterNamesInTypeParameterList.js index f4d74b89782f1..5bab0743a17e6 100644 --- a/tests/baselines/reference/parameterNamesInTypeParameterList.js +++ b/tests/baselines/reference/parameterNamesInTypeParameterList.js @@ -24,6 +24,14 @@ class A { } //// [parameterNamesInTypeParameterList.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f0(a) { a.b; } @@ -32,7 +40,7 @@ function f1(_a) { a.b; } function f2(_a) { - var a = _a[0]; + var _b = __read(_a, 1), a = _b[0]; a.b; } var A = (function () { @@ -46,7 +54,7 @@ var A = (function () { a.b; }; A.prototype.m2 = function (_a) { - var a = _a[0]; + var _b = __read(_a, 1), a = _b[0]; a.b; }; return A; diff --git a/tests/baselines/reference/parserES5ForOfStatement10.js b/tests/baselines/reference/parserES5ForOfStatement10.js index 36c505b0a12c0..013524511eb2d 100644 --- a/tests/baselines/reference/parserES5ForOfStatement10.js +++ b/tests/baselines/reference/parserES5ForOfStatement10.js @@ -3,6 +3,24 @@ for (const v of X) { } //// [parserES5ForOfStatement10.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var v = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var v = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement11.js b/tests/baselines/reference/parserES5ForOfStatement11.js index e3bac1584fca1..1dd9de5f401d4 100644 --- a/tests/baselines/reference/parserES5ForOfStatement11.js +++ b/tests/baselines/reference/parserES5ForOfStatement11.js @@ -3,6 +3,32 @@ for (const [a, b] of X) { } //// [parserES5ForOfStatement11.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a[0], b = _a[1]; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = __read(X_1.result.value, 2), a = _a[0], b = _a[1]; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement12.js b/tests/baselines/reference/parserES5ForOfStatement12.js index 2a43ca2dea3df..72495ecb7db61 100644 --- a/tests/baselines/reference/parserES5ForOfStatement12.js +++ b/tests/baselines/reference/parserES5ForOfStatement12.js @@ -3,6 +3,24 @@ for (const {a, b} of X) { } //// [parserES5ForOfStatement12.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a.a, b = _a.b; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = X_1.result.value, a = _a.a, b = _a.b; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement13.js b/tests/baselines/reference/parserES5ForOfStatement13.js index 2f1f280090fa3..5ffbe9b556863 100644 --- a/tests/baselines/reference/parserES5ForOfStatement13.js +++ b/tests/baselines/reference/parserES5ForOfStatement13.js @@ -3,6 +3,24 @@ for (let {a, b} of X) { } //// [parserES5ForOfStatement13.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a.a, b = _a.b; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = X_1.result.value, a = _a.a, b = _a.b; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement14.js b/tests/baselines/reference/parserES5ForOfStatement14.js index cb753328937bf..cf8ec58455c61 100644 --- a/tests/baselines/reference/parserES5ForOfStatement14.js +++ b/tests/baselines/reference/parserES5ForOfStatement14.js @@ -3,6 +3,32 @@ for (let [a, b] of X) { } //// [parserES5ForOfStatement14.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a[0], b = _a[1]; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = __read(X_1.result.value, 2), a = _a[0], b = _a[1]; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement15.js b/tests/baselines/reference/parserES5ForOfStatement15.js index c7c4db351a61f..77800ac5266c4 100644 --- a/tests/baselines/reference/parserES5ForOfStatement15.js +++ b/tests/baselines/reference/parserES5ForOfStatement15.js @@ -3,6 +3,32 @@ for (var [a, b] of X) { } //// [parserES5ForOfStatement15.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a[0], b = _a[1]; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = __read(X_1.result.value, 2), a = _a[0], b = _a[1]; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement16.js b/tests/baselines/reference/parserES5ForOfStatement16.js index 149b6ce3df706..d1e3b4b513845 100644 --- a/tests/baselines/reference/parserES5ForOfStatement16.js +++ b/tests/baselines/reference/parserES5ForOfStatement16.js @@ -3,6 +3,24 @@ for (var {a, b} of X) { } //// [parserES5ForOfStatement16.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i], a = _a.a, b = _a.b; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = X_1.result.value, a = _a.a, b = _a.b; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement18.js b/tests/baselines/reference/parserES5ForOfStatement18.js index 0427adb52d844..2b6f5e3344a49 100644 --- a/tests/baselines/reference/parserES5ForOfStatement18.js +++ b/tests/baselines/reference/parserES5ForOfStatement18.js @@ -2,6 +2,24 @@ for (var of of of) { } //// [parserES5ForOfStatement18.js] -for (var _i = 0, of_1 = of; _i < of_1.length; _i++) { - var of = of_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var of_1 = { iterator: __values(of) }; __step(of_1);) { + var of = of_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(of_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement2.js b/tests/baselines/reference/parserES5ForOfStatement2.js index 43b557d9c8f9d..49706052d9a3a 100644 --- a/tests/baselines/reference/parserES5ForOfStatement2.js +++ b/tests/baselines/reference/parserES5ForOfStatement2.js @@ -3,6 +3,24 @@ for (var of X) { } //// [parserES5ForOfStatement2.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var _a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var _a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement21.js b/tests/baselines/reference/parserES5ForOfStatement21.js index e5d7ebcac2125..f88ca07cf0805 100644 --- a/tests/baselines/reference/parserES5ForOfStatement21.js +++ b/tests/baselines/reference/parserES5ForOfStatement21.js @@ -2,6 +2,24 @@ for (var of of) { } //// [parserES5ForOfStatement21.js] -for (var _i = 0, of_1 = of; _i < of_1.length; _i++) { - var _a = of_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var of_1 = { iterator: __values(of) }; __step(of_1);) { + var _a = of_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(of_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement3.js b/tests/baselines/reference/parserES5ForOfStatement3.js index 953a59fb9b8a9..7b1cef0eee9c8 100644 --- a/tests/baselines/reference/parserES5ForOfStatement3.js +++ b/tests/baselines/reference/parserES5ForOfStatement3.js @@ -3,6 +3,24 @@ for (var a, b of X) { } //// [parserES5ForOfStatement3.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement4.js b/tests/baselines/reference/parserES5ForOfStatement4.js index 79bee90168d9c..233a14c488337 100644 --- a/tests/baselines/reference/parserES5ForOfStatement4.js +++ b/tests/baselines/reference/parserES5ForOfStatement4.js @@ -3,6 +3,24 @@ for (var a = 1 of X) { } //// [parserES5ForOfStatement4.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement5.js b/tests/baselines/reference/parserES5ForOfStatement5.js index 3138b05e49922..40afa79dd41db 100644 --- a/tests/baselines/reference/parserES5ForOfStatement5.js +++ b/tests/baselines/reference/parserES5ForOfStatement5.js @@ -3,6 +3,24 @@ for (var a: number of X) { } //// [parserES5ForOfStatement5.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement6.js b/tests/baselines/reference/parserES5ForOfStatement6.js index fd3c20d948428..20dae688cff0e 100644 --- a/tests/baselines/reference/parserES5ForOfStatement6.js +++ b/tests/baselines/reference/parserES5ForOfStatement6.js @@ -3,6 +3,24 @@ for (var a = 1, b = 2 of X) { } //// [parserES5ForOfStatement6.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement7.js b/tests/baselines/reference/parserES5ForOfStatement7.js index f1c0fd394db7f..129f0220b5bda 100644 --- a/tests/baselines/reference/parserES5ForOfStatement7.js +++ b/tests/baselines/reference/parserES5ForOfStatement7.js @@ -3,6 +3,24 @@ for (var a: number = 1, b: string = "" of X) { } //// [parserES5ForOfStatement7.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var a = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var a = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement8.js b/tests/baselines/reference/parserES5ForOfStatement8.js index 7aa61972601d1..9e74d3a8730cf 100644 --- a/tests/baselines/reference/parserES5ForOfStatement8.js +++ b/tests/baselines/reference/parserES5ForOfStatement8.js @@ -3,6 +3,24 @@ for (var v of X) { } //// [parserES5ForOfStatement8.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var v = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var v = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserES5ForOfStatement9.js b/tests/baselines/reference/parserES5ForOfStatement9.js index 8202d2812c1db..0036d65126248 100644 --- a/tests/baselines/reference/parserES5ForOfStatement9.js +++ b/tests/baselines/reference/parserES5ForOfStatement9.js @@ -3,6 +3,24 @@ for (let v of X) { } //// [parserES5ForOfStatement9.js] -for (var _i = 0, X_1 = X; _i < X_1.length; _i++) { - var v = X_1[_i]; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; +try { + for (var X_1 = { iterator: __values(X) }; __step(X_1);) { + var v = X_1.result.value; + } } +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(X_1); } finally { if (e_1) throw e_1.error; } +} +var e_1; diff --git a/tests/baselines/reference/parserMissingLambdaOpenBrace1.errors.txt b/tests/baselines/reference/parserMissingLambdaOpenBrace1.errors.txt index d39986c9c015d..6f01085be227f 100644 --- a/tests/baselines/reference/parserMissingLambdaOpenBrace1.errors.txt +++ b/tests/baselines/reference/parserMissingLambdaOpenBrace1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts(2,19): error TS2304: Cannot find name 'Iterator'. +tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts(2,19): error TS2314: Generic type 'Iterator' requires 1 type argument(s). tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts(2,42): error TS2304: Cannot find name 'Query'. tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts(3,16): error TS2304: Cannot find name 'fromDoWhile'. tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts(4,13): error TS1005: '{' expected. @@ -8,8 +8,8 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpen ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts (5 errors) ==== class C { where(filter: Iterator): Query { - ~~~~~~~~ -!!! error TS2304: Cannot find name 'Iterator'. + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS2314: Generic type 'Iterator' requires 1 type argument(s). ~~~~~ !!! error TS2304: Cannot find name 'Query'. return fromDoWhile(test => diff --git a/tests/baselines/reference/restElementWithAssignmentPattern3.js b/tests/baselines/reference/restElementWithAssignmentPattern3.js index 1ca504fbd6dab..17c59088ccfc2 100644 --- a/tests/baselines/reference/restElementWithAssignmentPattern3.js +++ b/tests/baselines/reference/restElementWithAssignmentPattern3.js @@ -4,7 +4,15 @@ var tuple: [string, number] = ["", 1]; [...[a, b = 0]] = tuple; //// [restElementWithAssignmentPattern3.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a, b; var tuple = ["", 1]; -_a = tuple.slice(0), a = _a[0], _b = _a[1], b = _b === void 0 ? 0 : _b; -var _a, _b; +_a = __read(tuple), _b = __read(_a.slice(0), 2), a = _b[0], _c = _b[1], b = _c === void 0 ? 0 : _c; +var _a, _b, _c; diff --git a/tests/baselines/reference/restElementWithAssignmentPattern4.js b/tests/baselines/reference/restElementWithAssignmentPattern4.js index b47a2adea0119..7d90521eb49d8 100644 --- a/tests/baselines/reference/restElementWithAssignmentPattern4.js +++ b/tests/baselines/reference/restElementWithAssignmentPattern4.js @@ -4,7 +4,15 @@ var tuple: [string, number] = ["", 1]; [...{ 0: a = "", b }] = tuple; //// [restElementWithAssignmentPattern4.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a, b; var tuple = ["", 1]; -_a = tuple.slice(0), _b = _a[0], a = _b === void 0 ? "" : _b, b = _a.b; -var _a, _b; +_a = __read(tuple), _b = _a.slice(0), _c = _b[0], a = _c === void 0 ? "" : _c, b = _b.b; +var _a, _b, _c; diff --git a/tests/baselines/reference/restElementWithAssignmentPattern5.js b/tests/baselines/reference/restElementWithAssignmentPattern5.js index e0985d54b1c9e..846afb2ab40dc 100644 --- a/tests/baselines/reference/restElementWithAssignmentPattern5.js +++ b/tests/baselines/reference/restElementWithAssignmentPattern5.js @@ -3,6 +3,14 @@ var s: string, s2: string; [...[s, s2]] = ["", ""]; //// [restElementWithAssignmentPattern5.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var s, s2; -_a = ["", ""].slice(0), s = _a[0], s2 = _a[1]; +_a = __read(["", ""].slice(0), 2), s = _a[0], s2 = _a[1]; var _a; diff --git a/tests/baselines/reference/restElementWithBindingPattern.js b/tests/baselines/reference/restElementWithBindingPattern.js index fbdb4bdb3a71e..2107a3bbb9fc0 100644 --- a/tests/baselines/reference/restElementWithBindingPattern.js +++ b/tests/baselines/reference/restElementWithBindingPattern.js @@ -2,4 +2,12 @@ var [...[a, b]] = [0, 1]; //// [restElementWithBindingPattern.js] -var _a = [0, 1].slice(0), a = _a[0], b = _a[1]; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var _a = __read([0, 1].slice(0), 2), a = _a[0], b = _a[1]; diff --git a/tests/baselines/reference/restElementWithInitializer1.js b/tests/baselines/reference/restElementWithInitializer1.js index b0d35cdf47fd8..ba8b7970f9388 100644 --- a/tests/baselines/reference/restElementWithInitializer1.js +++ b/tests/baselines/reference/restElementWithInitializer1.js @@ -4,5 +4,13 @@ var [...x = a] = a; // Error, rest element cannot have initializer //// [restElementWithInitializer1.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a; -var _a = a.slice(0), x = _a === void 0 ? a : _a; // Error, rest element cannot have initializer +var _a = __read(a), _b = _a.slice(0), x = _b === void 0 ? a : _b; // Error, rest element cannot have initializer diff --git a/tests/baselines/reference/restElementWithInitializer2.js b/tests/baselines/reference/restElementWithInitializer2.js index 09ec76bdfb4d5..472132287552a 100644 --- a/tests/baselines/reference/restElementWithInitializer2.js +++ b/tests/baselines/reference/restElementWithInitializer2.js @@ -5,7 +5,15 @@ var x: number[]; //// [restElementWithInitializer2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var a; var x; -_a = a.slice(0), x = _a === void 0 ? a : _a; // Error, rest element cannot have initializer -var _a; +_a = __read(a), _b = _a.slice(0), x = _b === void 0 ? a : _b; // Error, rest element cannot have initializer +var _a, _b; diff --git a/tests/baselines/reference/restElementWithNullInitializer.errors.txt b/tests/baselines/reference/restElementWithNullInitializer.errors.txt index 4658acc5ff40a..31a853aed2b2d 100644 --- a/tests/baselines/reference/restElementWithNullInitializer.errors.txt +++ b/tests/baselines/reference/restElementWithNullInitializer.errors.txt @@ -1,22 +1,22 @@ -tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(1,15): error TS2461: Type 'null' is not an array type. -tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(4,15): error TS2461: Type 'undefined' is not an array type. -tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(7,15): error TS2461: Type '{}' is not an array type. +tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(1,15): error TS2461: Type 'null' is not an array type or does not have an '__iterator__()' method that returns an iterator. +tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(4,15): error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. +tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts(7,15): error TS2461: Type '{}' is not an array type or does not have an '__iterator__()' method that returns an iterator. ==== tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts (3 errors) ==== function foo1([...r] = null) { ~~~~~~ -!!! error TS2461: Type 'null' is not an array type. +!!! error TS2461: Type 'null' is not an array type or does not have an '__iterator__()' method that returns an iterator. } function foo2([...r] = undefined) { ~~~~~~ -!!! error TS2461: Type 'undefined' is not an array type. +!!! error TS2461: Type 'undefined' is not an array type or does not have an '__iterator__()' method that returns an iterator. } function foo3([...r] = {}) { ~~~~~~ -!!! error TS2461: Type '{}' is not an array type. +!!! error TS2461: Type '{}' is not an array type or does not have an '__iterator__()' method that returns an iterator. } function foo4([...r] = []) { diff --git a/tests/baselines/reference/restElementWithNullInitializer.js b/tests/baselines/reference/restElementWithNullInitializer.js index ac378b0905bb5..5dfe017329992 100644 --- a/tests/baselines/reference/restElementWithNullInitializer.js +++ b/tests/baselines/reference/restElementWithNullInitializer.js @@ -13,15 +13,23 @@ function foo4([...r] = []) { //// [restElementWithNullInitializer.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function foo1(_a) { - var r = (_a === void 0 ? null : _a).slice(0); + var _b = __read(_a === void 0 ? null : _a), r = _b.slice(0); } function foo2(_a) { - var r = (_a === void 0 ? undefined : _a).slice(0); + var _b = __read(_a === void 0 ? undefined : _a), r = _b.slice(0); } function foo3(_a) { - var r = (_a === void 0 ? {} : _a).slice(0); + var _b = __read(_a === void 0 ? {} : _a), r = _b.slice(0); } function foo4(_a) { - var r = (_a === void 0 ? [] : _a).slice(0); + var _b = __read(_a === void 0 ? [] : _a), r = _b.slice(0); } diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js index 407af9c08a090..e43c252351760 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js @@ -93,6 +93,14 @@ for (let [...multiRobotAInfo] = ["trimmer", ["trimming", "edging"]], i = 0; i < } //// [sourceMapValidationDestructuringForArrayBindingPattern.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function getRobot() { return robotA; @@ -102,73 +110,73 @@ var multiRobotB = ["trimmer", ["trimming", "edging"]]; function getMultiRobot() { return multiRobotA; } -for (var nameA = robotA[1], i = 0; i < 1; i++) { +for (var _a = __read(robotA, 2), nameA = _a[1], i = 0; i < 1; i++) { console.log(nameA); } -for (var _a = getRobot(), nameA = _a[1], i = 0; i < 1; i++) { +for (var _b = __read(getRobot(), 2), nameA = _b[1], i = 0; i < 1; i++) { console.log(nameA); } -for (var _b = [2, "trimmer", "trimming"], nameA = _b[1], i = 0; i < 1; i++) { +for (var _c = [2, "trimmer", "trimming"], nameA = _c[1], i = 0; i < 1; i++) { console.log(nameA); } -for (var _c = multiRobotA[1], primarySkillA = _c[0], secondarySkillA = _c[1], i = 0; i < 1; i++) { +for (var _d = __read(multiRobotA, 2), _e = __read(_d[1], 2), primarySkillA = _e[0], secondarySkillA = _e[1], i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var _d = getMultiRobot(), _e = _d[1], primarySkillA = _e[0], secondarySkillA = _e[1], i = 0; i < 1; i++) { +for (var _f = __read(getMultiRobot(), 2), _g = __read(_f[1], 2), primarySkillA = _g[0], secondarySkillA = _g[1], i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var _f = ["trimmer", ["trimming", "edging"]], _g = _f[1], primarySkillA = _g[0], secondarySkillA = _g[1], i = 0; i < 1; i++) { +for (var _h = ["trimmer", ["trimming", "edging"]], _j = __read(_h[1], 2), primarySkillA = _j[0], secondarySkillA = _j[1], i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var numberB = robotA[0], i = 0; i < 1; i++) { +for (var _k = __read(robotA, 1), numberB = _k[0], i = 0; i < 1; i++) { console.log(numberB); } -for (var numberB = getRobot()[0], i = 0; i < 1; i++) { +for (var _l = __read(getRobot(), 1), numberB = _l[0], i = 0; i < 1; i++) { console.log(numberB); } for (var numberB = [2, "trimmer", "trimming"][0], i = 0; i < 1; i++) { console.log(numberB); } -for (var nameB = multiRobotA[0], i = 0; i < 1; i++) { +for (var _m = __read(multiRobotA, 1), nameB = _m[0], i = 0; i < 1; i++) { console.log(nameB); } -for (var nameB = getMultiRobot()[0], i = 0; i < 1; i++) { +for (var _o = __read(getMultiRobot(), 1), nameB = _o[0], i = 0; i < 1; i++) { console.log(nameB); } for (var nameB = ["trimmer", ["trimming", "edging"]][0], i = 0; i < 1; i++) { console.log(nameB); } -for (var numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2], i = 0; i < 1; i++) { +for (var _p = __read(robotA, 3), numberA2 = _p[0], nameA2 = _p[1], skillA2 = _p[2], i = 0; i < 1; i++) { console.log(nameA2); } -for (var _h = getRobot(), numberA2 = _h[0], nameA2 = _h[1], skillA2 = _h[2], i = 0; i < 1; i++) { +for (var _q = __read(getRobot(), 3), numberA2 = _q[0], nameA2 = _q[1], skillA2 = _q[2], i = 0; i < 1; i++) { console.log(nameA2); } -for (var _j = [2, "trimmer", "trimming"], numberA2 = _j[0], nameA2 = _j[1], skillA2 = _j[2], i = 0; i < 1; i++) { +for (var _r = [2, "trimmer", "trimming"], numberA2 = _r[0], nameA2 = _r[1], skillA2 = _r[2], i = 0; i < 1; i++) { console.log(nameA2); } -for (var nameMA = multiRobotA[0], _k = multiRobotA[1], primarySkillA = _k[0], secondarySkillA = _k[1], i = 0; i < 1; i++) { +for (var _s = __read(multiRobotA, 2), nameMA = _s[0], _t = __read(_s[1], 2), primarySkillA = _t[0], secondarySkillA = _t[1], i = 0; i < 1; i++) { console.log(nameMA); } -for (var _l = getMultiRobot(), nameMA = _l[0], _m = _l[1], primarySkillA = _m[0], secondarySkillA = _m[1], i = 0; i < 1; i++) { +for (var _u = __read(getMultiRobot(), 2), nameMA = _u[0], _v = __read(_u[1], 2), primarySkillA = _v[0], secondarySkillA = _v[1], i = 0; i < 1; i++) { console.log(nameMA); } -for (var _o = ["trimmer", ["trimming", "edging"]], nameMA = _o[0], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1], i = 0; i < 1; i++) { +for (var _w = ["trimmer", ["trimming", "edging"]], nameMA = _w[0], _x = __read(_w[1], 2), primarySkillA = _x[0], secondarySkillA = _x[1], i = 0; i < 1; i++) { console.log(nameMA); } -for (var numberA3 = robotA[0], robotAInfo = robotA.slice(1), i = 0; i < 1; i++) { +for (var _y = __read(robotA), numberA3 = _y[0], robotAInfo = _y.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } -for (var _q = getRobot(), numberA3 = _q[0], robotAInfo = _q.slice(1), i = 0; i < 1; i++) { +for (var _z = __read(getRobot()), numberA3 = _z[0], robotAInfo = _z.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } -for (var _r = [2, "trimmer", "trimming"], numberA3 = _r[0], robotAInfo = _r.slice(1), i = 0; i < 1; i++) { +for (var _0 = [2, "trimmer", "trimming"], numberA3 = _0[0], robotAInfo = _0.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } -for (var multiRobotAInfo = multiRobotA.slice(0), i = 0; i < 1; i++) { +for (var _1 = __read(multiRobotA), multiRobotAInfo = _1.slice(0), i = 0; i < 1; i++) { console.log(multiRobotAInfo); } -for (var multiRobotAInfo = getMultiRobot().slice(0), i = 0; i < 1; i++) { +for (var _2 = __read(getMultiRobot()), multiRobotAInfo = _2.slice(0), i = 0; i < 1; i++) { console.log(multiRobotAInfo); } for (var multiRobotAInfo = ["trimmer", ["trimming", "edging"]].slice(0), i = 0; i < 1; i++) { diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js.map index 79073166e0f5d..69f2c4ea95423 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForArrayBindingPattern.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPattern.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAQ,IAAA,iBAAK,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,eAAsB,EAAnB,aAAK,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAsC,EAAnC,aAAK,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAQ,IAAA,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,oBAAsD,EAAnD,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAA0E,EAAvE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,mBAAO,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,uBAAO,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,uCAAO,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,sBAAK,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,0BAAK,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,8CAAK,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,oBAAQ,EAAE,kBAAM,EAAE,mBAAO,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,eAAwC,EAAvC,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAwD,EAAvD,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,uBAAM,EAAE,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,oBAA4D,EAA3D,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAAgF,EAA/E,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3G,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,oBAAQ,EAAE,4BAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,eAAsC,EAArC,gBAAQ,EAAE,wBAAa,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAsD,EAArD,gBAAQ,EAAE,wBAAa,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,sCAAkB,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,0CAAkB,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,8DAAkB,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrF,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPattern.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAAkB,EAAf,aAAK,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,0BAAsB,EAAnB,aAAK,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAsC,EAAnC,aAAK,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAAkD,EAA/C,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAsD,EAAnD,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAA0E,EAAvE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAAkB,EAAjB,eAAO,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,0BAAsB,EAArB,eAAO,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,uCAAO,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAAqB,EAApB,aAAK,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAyB,EAAxB,aAAK,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,8CAAK,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAAoC,EAAnC,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,0BAAwC,EAAvC,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAwD,EAAvD,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAAwD,EAAvD,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAA4D,EAA3D,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAAgF,EAA/E,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3G,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,mBAAkC,EAAjC,gBAAQ,EAAE,wBAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,uBAAsC,EAArC,gBAAQ,EAAE,wBAAa,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAsD,EAArD,gBAAQ,EAAE,wBAAa,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wBAAkC,EAAjC,6BAAkB,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,4BAAsC,EAArC,6BAAkB,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,8DAAkB,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrF,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.sourcemap.txt index d0dbc25229cc1..ee43184efcac6 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringForArrayBindingPattern.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPattern.js sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -39,25 +47,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>function getRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(2, 1) Source(8, 1) + SourceIndex(0) +1 >Emitted(10, 1) Source(8, 1) + SourceIndex(0) --- >>> return robotA; 1->^^^^ @@ -71,11 +79,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 3 > 4 > robotA 5 > ; -1->Emitted(3, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(3, 12) Source(9, 12) + SourceIndex(0) -4 >Emitted(3, 18) Source(9, 18) + SourceIndex(0) -5 >Emitted(3, 19) Source(9, 19) + SourceIndex(0) +1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(11, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(11, 19) Source(9, 19) + SourceIndex(0) --- >>>} 1 > @@ -84,8 +92,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(10, 2) + SourceIndex(0) +1 >Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(10, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -119,20 +127,20 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 12> ] 13> ] 14> ; -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 16) Source(12, 16) + SourceIndex(0) -4 >Emitted(5, 19) Source(12, 38) + SourceIndex(0) -5 >Emitted(5, 20) Source(12, 39) + SourceIndex(0) -6 >Emitted(5, 27) Source(12, 46) + SourceIndex(0) -7 >Emitted(5, 29) Source(12, 48) + SourceIndex(0) -8 >Emitted(5, 30) Source(12, 49) + SourceIndex(0) -9 >Emitted(5, 38) Source(12, 57) + SourceIndex(0) -10>Emitted(5, 40) Source(12, 59) + SourceIndex(0) -11>Emitted(5, 42) Source(12, 61) + SourceIndex(0) -12>Emitted(5, 43) Source(12, 62) + SourceIndex(0) -13>Emitted(5, 44) Source(12, 63) + SourceIndex(0) -14>Emitted(5, 45) Source(12, 64) + SourceIndex(0) +1->Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(12, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(12, 38) + SourceIndex(0) +5 >Emitted(13, 20) Source(12, 39) + SourceIndex(0) +6 >Emitted(13, 27) Source(12, 46) + SourceIndex(0) +7 >Emitted(13, 29) Source(12, 48) + SourceIndex(0) +8 >Emitted(13, 30) Source(12, 49) + SourceIndex(0) +9 >Emitted(13, 38) Source(12, 57) + SourceIndex(0) +10>Emitted(13, 40) Source(12, 59) + SourceIndex(0) +11>Emitted(13, 42) Source(12, 61) + SourceIndex(0) +12>Emitted(13, 43) Source(12, 62) + SourceIndex(0) +13>Emitted(13, 44) Source(12, 63) + SourceIndex(0) +14>Emitted(13, 45) Source(12, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -164,27 +172,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 12> ] 13> ] 14> ; -1->Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 16) Source(13, 16) + SourceIndex(0) -4 >Emitted(6, 19) Source(13, 38) + SourceIndex(0) -5 >Emitted(6, 20) Source(13, 39) + SourceIndex(0) -6 >Emitted(6, 29) Source(13, 48) + SourceIndex(0) -7 >Emitted(6, 31) Source(13, 50) + SourceIndex(0) -8 >Emitted(6, 32) Source(13, 51) + SourceIndex(0) -9 >Emitted(6, 42) Source(13, 61) + SourceIndex(0) -10>Emitted(6, 44) Source(13, 63) + SourceIndex(0) -11>Emitted(6, 52) Source(13, 71) + SourceIndex(0) -12>Emitted(6, 53) Source(13, 72) + SourceIndex(0) -13>Emitted(6, 54) Source(13, 73) + SourceIndex(0) -14>Emitted(6, 55) Source(13, 74) + SourceIndex(0) +1->Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 16) Source(13, 16) + SourceIndex(0) +4 >Emitted(14, 19) Source(13, 38) + SourceIndex(0) +5 >Emitted(14, 20) Source(13, 39) + SourceIndex(0) +6 >Emitted(14, 29) Source(13, 48) + SourceIndex(0) +7 >Emitted(14, 31) Source(13, 50) + SourceIndex(0) +8 >Emitted(14, 32) Source(13, 51) + SourceIndex(0) +9 >Emitted(14, 42) Source(13, 61) + SourceIndex(0) +10>Emitted(14, 44) Source(13, 63) + SourceIndex(0) +11>Emitted(14, 52) Source(13, 71) + SourceIndex(0) +12>Emitted(14, 53) Source(13, 72) + SourceIndex(0) +13>Emitted(14, 54) Source(13, 73) + SourceIndex(0) +14>Emitted(14, 55) Source(13, 74) + SourceIndex(0) --- >>>function getMultiRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(0) --- >>> return multiRobotA; 1->^^^^ @@ -198,82 +206,88 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 3 > 4 > multiRobotA 5 > ; -1->Emitted(8, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(15, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(15, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(15, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(15, 24) + SourceIndex(0) +1->Emitted(16, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(15, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(15, 12) + SourceIndex(0) +4 >Emitted(16, 23) Source(15, 23) + SourceIndex(0) +5 >Emitted(16, 24) Source(15, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(16, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(16, 2) + SourceIndex(0) --- ->>>for (var nameA = robotA[1], i = 0; i < 1; i++) { +>>>for (var _a = __read(robotA, 2), nameA = _a[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > > 2 >for 3 > -4 > (let [, +4 > (let 5 > -6 > nameA -7 > ] = robotA, -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(10, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(10, 4) Source(18, 4) + SourceIndex(0) -3 >Emitted(10, 5) Source(18, 5) + SourceIndex(0) -4 >Emitted(10, 6) Source(18, 13) + SourceIndex(0) -5 >Emitted(10, 10) Source(18, 13) + SourceIndex(0) -6 >Emitted(10, 27) Source(18, 18) + SourceIndex(0) -7 >Emitted(10, 29) Source(18, 30) + SourceIndex(0) -8 >Emitted(10, 30) Source(18, 31) + SourceIndex(0) -9 >Emitted(10, 33) Source(18, 34) + SourceIndex(0) -10>Emitted(10, 34) Source(18, 35) + SourceIndex(0) -11>Emitted(10, 36) Source(18, 37) + SourceIndex(0) -12>Emitted(10, 37) Source(18, 38) + SourceIndex(0) -13>Emitted(10, 40) Source(18, 41) + SourceIndex(0) -14>Emitted(10, 41) Source(18, 42) + SourceIndex(0) -15>Emitted(10, 43) Source(18, 44) + SourceIndex(0) -16>Emitted(10, 44) Source(18, 45) + SourceIndex(0) -17>Emitted(10, 46) Source(18, 47) + SourceIndex(0) -18>Emitted(10, 48) Source(18, 49) + SourceIndex(0) -19>Emitted(10, 49) Source(18, 50) + SourceIndex(0) +6 > [, nameA] = robotA +7 > +8 > nameA +9 > ] = robotA, +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(18, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(18, 4) Source(18, 4) + SourceIndex(0) +3 >Emitted(18, 5) Source(18, 5) + SourceIndex(0) +4 >Emitted(18, 6) Source(18, 10) + SourceIndex(0) +5 >Emitted(18, 10) Source(18, 10) + SourceIndex(0) +6 >Emitted(18, 32) Source(18, 28) + SourceIndex(0) +7 >Emitted(18, 34) Source(18, 13) + SourceIndex(0) +8 >Emitted(18, 47) Source(18, 18) + SourceIndex(0) +9 >Emitted(18, 49) Source(18, 30) + SourceIndex(0) +10>Emitted(18, 50) Source(18, 31) + SourceIndex(0) +11>Emitted(18, 53) Source(18, 34) + SourceIndex(0) +12>Emitted(18, 54) Source(18, 35) + SourceIndex(0) +13>Emitted(18, 56) Source(18, 37) + SourceIndex(0) +14>Emitted(18, 57) Source(18, 38) + SourceIndex(0) +15>Emitted(18, 60) Source(18, 41) + SourceIndex(0) +16>Emitted(18, 61) Source(18, 42) + SourceIndex(0) +17>Emitted(18, 63) Source(18, 44) + SourceIndex(0) +18>Emitted(18, 64) Source(18, 45) + SourceIndex(0) +19>Emitted(18, 66) Source(18, 47) + SourceIndex(0) +20>Emitted(18, 68) Source(18, 49) + SourceIndex(0) +21>Emitted(18, 69) Source(18, 50) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -293,47 +307,47 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(11, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(11, 12) Source(19, 12) + SourceIndex(0) -3 >Emitted(11, 13) Source(19, 13) + SourceIndex(0) -4 >Emitted(11, 16) Source(19, 16) + SourceIndex(0) -5 >Emitted(11, 17) Source(19, 17) + SourceIndex(0) -6 >Emitted(11, 22) Source(19, 22) + SourceIndex(0) -7 >Emitted(11, 23) Source(19, 23) + SourceIndex(0) -8 >Emitted(11, 24) Source(19, 24) + SourceIndex(0) +1 >Emitted(19, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 12) Source(19, 12) + SourceIndex(0) +3 >Emitted(19, 13) Source(19, 13) + SourceIndex(0) +4 >Emitted(19, 16) Source(19, 16) + SourceIndex(0) +5 >Emitted(19, 17) Source(19, 17) + SourceIndex(0) +6 >Emitted(19, 22) Source(19, 22) + SourceIndex(0) +7 >Emitted(19, 23) Source(19, 23) + SourceIndex(0) +8 >Emitted(19, 24) Source(19, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(20, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(20, 2) + SourceIndex(0) --- ->>>for (var _a = getRobot(), nameA = _a[1], i = 0; i < 1; i++) { +>>>for (var _b = __read(getRobot(), 2), nameA = _b[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for @@ -341,42 +355,42 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 4 > (let 5 > 6 > [, nameA] = getRobot() -7 > -8 > nameA -9 > ] = getRobot(), -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 4) Source(21, 4) + SourceIndex(0) -3 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -4 >Emitted(13, 6) Source(21, 10) + SourceIndex(0) -5 >Emitted(13, 10) Source(21, 10) + SourceIndex(0) -6 >Emitted(13, 25) Source(21, 32) + SourceIndex(0) -7 >Emitted(13, 27) Source(21, 13) + SourceIndex(0) -8 >Emitted(13, 40) Source(21, 18) + SourceIndex(0) -9 >Emitted(13, 42) Source(21, 34) + SourceIndex(0) -10>Emitted(13, 43) Source(21, 35) + SourceIndex(0) -11>Emitted(13, 46) Source(21, 38) + SourceIndex(0) -12>Emitted(13, 47) Source(21, 39) + SourceIndex(0) -13>Emitted(13, 49) Source(21, 41) + SourceIndex(0) -14>Emitted(13, 50) Source(21, 42) + SourceIndex(0) -15>Emitted(13, 53) Source(21, 45) + SourceIndex(0) -16>Emitted(13, 54) Source(21, 46) + SourceIndex(0) -17>Emitted(13, 56) Source(21, 48) + SourceIndex(0) -18>Emitted(13, 57) Source(21, 49) + SourceIndex(0) -19>Emitted(13, 59) Source(21, 51) + SourceIndex(0) -20>Emitted(13, 61) Source(21, 53) + SourceIndex(0) -21>Emitted(13, 62) Source(21, 54) + SourceIndex(0) +7 > +8 > nameA +9 > ] = getRobot(), +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(21, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(21, 4) Source(21, 4) + SourceIndex(0) +3 >Emitted(21, 5) Source(21, 5) + SourceIndex(0) +4 >Emitted(21, 6) Source(21, 10) + SourceIndex(0) +5 >Emitted(21, 10) Source(21, 10) + SourceIndex(0) +6 >Emitted(21, 36) Source(21, 32) + SourceIndex(0) +7 >Emitted(21, 38) Source(21, 13) + SourceIndex(0) +8 >Emitted(21, 51) Source(21, 18) + SourceIndex(0) +9 >Emitted(21, 53) Source(21, 34) + SourceIndex(0) +10>Emitted(21, 54) Source(21, 35) + SourceIndex(0) +11>Emitted(21, 57) Source(21, 38) + SourceIndex(0) +12>Emitted(21, 58) Source(21, 39) + SourceIndex(0) +13>Emitted(21, 60) Source(21, 41) + SourceIndex(0) +14>Emitted(21, 61) Source(21, 42) + SourceIndex(0) +15>Emitted(21, 64) Source(21, 45) + SourceIndex(0) +16>Emitted(21, 65) Source(21, 46) + SourceIndex(0) +17>Emitted(21, 67) Source(21, 48) + SourceIndex(0) +18>Emitted(21, 68) Source(21, 49) + SourceIndex(0) +19>Emitted(21, 70) Source(21, 51) + SourceIndex(0) +20>Emitted(21, 72) Source(21, 53) + SourceIndex(0) +21>Emitted(21, 73) Source(21, 54) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -396,14 +410,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(14, 12) Source(22, 12) + SourceIndex(0) -3 >Emitted(14, 13) Source(22, 13) + SourceIndex(0) -4 >Emitted(14, 16) Source(22, 16) + SourceIndex(0) -5 >Emitted(14, 17) Source(22, 17) + SourceIndex(0) -6 >Emitted(14, 22) Source(22, 22) + SourceIndex(0) -7 >Emitted(14, 23) Source(22, 23) + SourceIndex(0) -8 >Emitted(14, 24) Source(22, 24) + SourceIndex(0) +1 >Emitted(22, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(22, 12) Source(22, 12) + SourceIndex(0) +3 >Emitted(22, 13) Source(22, 13) + SourceIndex(0) +4 >Emitted(22, 16) Source(22, 16) + SourceIndex(0) +5 >Emitted(22, 17) Source(22, 17) + SourceIndex(0) +6 >Emitted(22, 22) Source(22, 22) + SourceIndex(0) +7 >Emitted(22, 23) Source(22, 23) + SourceIndex(0) +8 >Emitted(22, 24) Source(22, 24) + SourceIndex(0) --- >>>} 1 > @@ -412,10 +426,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(15, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(15, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(23, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(23, 2) Source(23, 2) + SourceIndex(0) --- ->>>for (var _b = [2, "trimmer", "trimming"], nameA = _b[1], i = 0; i < 1; i++) { +>>>for (var _c = [2, "trimmer", "trimming"], nameA = _c[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -459,27 +473,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 19> ++ 20> ) 21> { -1->Emitted(16, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(16, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(16, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(16, 6) Source(24, 10) + SourceIndex(0) -5 >Emitted(16, 10) Source(24, 10) + SourceIndex(0) -6 >Emitted(16, 41) Source(24, 48) + SourceIndex(0) -7 >Emitted(16, 43) Source(24, 13) + SourceIndex(0) -8 >Emitted(16, 56) Source(24, 18) + SourceIndex(0) -9 >Emitted(16, 58) Source(24, 50) + SourceIndex(0) -10>Emitted(16, 59) Source(24, 51) + SourceIndex(0) -11>Emitted(16, 62) Source(24, 54) + SourceIndex(0) -12>Emitted(16, 63) Source(24, 55) + SourceIndex(0) -13>Emitted(16, 65) Source(24, 57) + SourceIndex(0) -14>Emitted(16, 66) Source(24, 58) + SourceIndex(0) -15>Emitted(16, 69) Source(24, 61) + SourceIndex(0) -16>Emitted(16, 70) Source(24, 62) + SourceIndex(0) -17>Emitted(16, 72) Source(24, 64) + SourceIndex(0) -18>Emitted(16, 73) Source(24, 65) + SourceIndex(0) -19>Emitted(16, 75) Source(24, 67) + SourceIndex(0) -20>Emitted(16, 77) Source(24, 69) + SourceIndex(0) -21>Emitted(16, 78) Source(24, 70) + SourceIndex(0) +1->Emitted(24, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(24, 4) Source(24, 4) + SourceIndex(0) +3 >Emitted(24, 5) Source(24, 5) + SourceIndex(0) +4 >Emitted(24, 6) Source(24, 10) + SourceIndex(0) +5 >Emitted(24, 10) Source(24, 10) + SourceIndex(0) +6 >Emitted(24, 41) Source(24, 48) + SourceIndex(0) +7 >Emitted(24, 43) Source(24, 13) + SourceIndex(0) +8 >Emitted(24, 56) Source(24, 18) + SourceIndex(0) +9 >Emitted(24, 58) Source(24, 50) + SourceIndex(0) +10>Emitted(24, 59) Source(24, 51) + SourceIndex(0) +11>Emitted(24, 62) Source(24, 54) + SourceIndex(0) +12>Emitted(24, 63) Source(24, 55) + SourceIndex(0) +13>Emitted(24, 65) Source(24, 57) + SourceIndex(0) +14>Emitted(24, 66) Source(24, 58) + SourceIndex(0) +15>Emitted(24, 69) Source(24, 61) + SourceIndex(0) +16>Emitted(24, 70) Source(24, 62) + SourceIndex(0) +17>Emitted(24, 72) Source(24, 64) + SourceIndex(0) +18>Emitted(24, 73) Source(24, 65) + SourceIndex(0) +19>Emitted(24, 75) Source(24, 67) + SourceIndex(0) +20>Emitted(24, 77) Source(24, 69) + SourceIndex(0) +21>Emitted(24, 78) Source(24, 70) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -499,96 +513,102 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(17, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(17, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(17, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(17, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(17, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(17, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(17, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(17, 24) Source(25, 24) + SourceIndex(0) +1 >Emitted(25, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(25, 12) Source(25, 12) + SourceIndex(0) +3 >Emitted(25, 13) Source(25, 13) + SourceIndex(0) +4 >Emitted(25, 16) Source(25, 16) + SourceIndex(0) +5 >Emitted(25, 17) Source(25, 17) + SourceIndex(0) +6 >Emitted(25, 22) Source(25, 22) + SourceIndex(0) +7 >Emitted(25, 23) Source(25, 23) + SourceIndex(0) +8 >Emitted(25, 24) Source(25, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(18, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(26, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(26, 2) Source(26, 2) + SourceIndex(0) --- ->>>for (var _c = multiRobotA[1], primarySkillA = _c[0], secondarySkillA = _c[1], i = 0; i < 1; i++) { +>>>for (var _d = __read(multiRobotA, 2), _e = __read(_d[1], 2), primarySkillA = _e[0], secondarySkillA = _e[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^ -22> ^^ -23> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > 2 >for 3 > -4 > (let [, +4 > (let 5 > -6 > [primarySkillA, secondarySkillA] -7 > -8 > primarySkillA -9 > , -10> secondarySkillA -11> ]] = multiRobotA, -12> i -13> = -14> 0 -15> ; -16> i -17> < -18> 1 -19> ; -20> i -21> ++ -22> ) -23> { -1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(19, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(19, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(19, 6) Source(27, 13) + SourceIndex(0) -5 >Emitted(19, 10) Source(27, 13) + SourceIndex(0) -6 >Emitted(19, 29) Source(27, 45) + SourceIndex(0) -7 >Emitted(19, 31) Source(27, 14) + SourceIndex(0) -8 >Emitted(19, 52) Source(27, 27) + SourceIndex(0) -9 >Emitted(19, 54) Source(27, 29) + SourceIndex(0) -10>Emitted(19, 77) Source(27, 44) + SourceIndex(0) -11>Emitted(19, 79) Source(27, 62) + SourceIndex(0) -12>Emitted(19, 80) Source(27, 63) + SourceIndex(0) -13>Emitted(19, 83) Source(27, 66) + SourceIndex(0) -14>Emitted(19, 84) Source(27, 67) + SourceIndex(0) -15>Emitted(19, 86) Source(27, 69) + SourceIndex(0) -16>Emitted(19, 87) Source(27, 70) + SourceIndex(0) -17>Emitted(19, 90) Source(27, 73) + SourceIndex(0) -18>Emitted(19, 91) Source(27, 74) + SourceIndex(0) -19>Emitted(19, 93) Source(27, 76) + SourceIndex(0) -20>Emitted(19, 94) Source(27, 77) + SourceIndex(0) -21>Emitted(19, 96) Source(27, 79) + SourceIndex(0) -22>Emitted(19, 98) Source(27, 81) + SourceIndex(0) -23>Emitted(19, 99) Source(27, 82) + SourceIndex(0) +6 > [, [primarySkillA, secondarySkillA]] = multiRobotA +7 > +8 > [primarySkillA, secondarySkillA] +9 > +10> primarySkillA +11> , +12> secondarySkillA +13> ]] = multiRobotA, +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(27, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(27, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(27, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(27, 6) Source(27, 10) + SourceIndex(0) +5 >Emitted(27, 10) Source(27, 10) + SourceIndex(0) +6 >Emitted(27, 37) Source(27, 60) + SourceIndex(0) +7 >Emitted(27, 39) Source(27, 13) + SourceIndex(0) +8 >Emitted(27, 60) Source(27, 45) + SourceIndex(0) +9 >Emitted(27, 62) Source(27, 14) + SourceIndex(0) +10>Emitted(27, 83) Source(27, 27) + SourceIndex(0) +11>Emitted(27, 85) Source(27, 29) + SourceIndex(0) +12>Emitted(27, 108) Source(27, 44) + SourceIndex(0) +13>Emitted(27, 110) Source(27, 62) + SourceIndex(0) +14>Emitted(27, 111) Source(27, 63) + SourceIndex(0) +15>Emitted(27, 114) Source(27, 66) + SourceIndex(0) +16>Emitted(27, 115) Source(27, 67) + SourceIndex(0) +17>Emitted(27, 117) Source(27, 69) + SourceIndex(0) +18>Emitted(27, 118) Source(27, 70) + SourceIndex(0) +19>Emitted(27, 121) Source(27, 73) + SourceIndex(0) +20>Emitted(27, 122) Source(27, 74) + SourceIndex(0) +21>Emitted(27, 124) Source(27, 76) + SourceIndex(0) +22>Emitted(27, 125) Source(27, 77) + SourceIndex(0) +23>Emitted(27, 127) Source(27, 79) + SourceIndex(0) +24>Emitted(27, 129) Source(27, 81) + SourceIndex(0) +25>Emitted(27, 130) Source(27, 82) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -608,51 +628,51 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(20, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(20, 12) Source(28, 12) + SourceIndex(0) -3 >Emitted(20, 13) Source(28, 13) + SourceIndex(0) -4 >Emitted(20, 16) Source(28, 16) + SourceIndex(0) -5 >Emitted(20, 17) Source(28, 17) + SourceIndex(0) -6 >Emitted(20, 30) Source(28, 30) + SourceIndex(0) -7 >Emitted(20, 31) Source(28, 31) + SourceIndex(0) -8 >Emitted(20, 32) Source(28, 32) + SourceIndex(0) +1 >Emitted(28, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(28, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(28, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(28, 16) Source(28, 16) + SourceIndex(0) +5 >Emitted(28, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(28, 30) Source(28, 30) + SourceIndex(0) +7 >Emitted(28, 31) Source(28, 31) + SourceIndex(0) +8 >Emitted(28, 32) Source(28, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(21, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(29, 2) + SourceIndex(0) +1 >Emitted(29, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(29, 2) Source(29, 2) + SourceIndex(0) --- ->>>for (var _d = getMultiRobot(), _e = _d[1], primarySkillA = _e[0], secondarySkillA = _e[1], i = 0; i < 1; i++) { +>>>for (var _f = __read(getMultiRobot(), 2), _g = __read(_f[1], 2), primarySkillA = _g[0], secondarySkillA = _g[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^ -24> ^^ -25> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > 2 >for @@ -660,50 +680,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 4 > (let 5 > 6 > [, [primarySkillA, secondarySkillA]] = getMultiRobot() -7 > -8 > [primarySkillA, secondarySkillA] -9 > -10> primarySkillA -11> , -12> secondarySkillA -13> ]] = getMultiRobot(), -14> i -15> = -16> 0 -17> ; -18> i -19> < -20> 1 -21> ; -22> i -23> ++ -24> ) -25> { -1->Emitted(22, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(22, 4) Source(30, 4) + SourceIndex(0) -3 >Emitted(22, 5) Source(30, 5) + SourceIndex(0) -4 >Emitted(22, 6) Source(30, 10) + SourceIndex(0) -5 >Emitted(22, 10) Source(30, 10) + SourceIndex(0) -6 >Emitted(22, 30) Source(30, 64) + SourceIndex(0) -7 >Emitted(22, 32) Source(30, 13) + SourceIndex(0) -8 >Emitted(22, 42) Source(30, 45) + SourceIndex(0) -9 >Emitted(22, 44) Source(30, 14) + SourceIndex(0) -10>Emitted(22, 65) Source(30, 27) + SourceIndex(0) -11>Emitted(22, 67) Source(30, 29) + SourceIndex(0) -12>Emitted(22, 90) Source(30, 44) + SourceIndex(0) -13>Emitted(22, 92) Source(30, 66) + SourceIndex(0) -14>Emitted(22, 93) Source(30, 67) + SourceIndex(0) -15>Emitted(22, 96) Source(30, 70) + SourceIndex(0) -16>Emitted(22, 97) Source(30, 71) + SourceIndex(0) -17>Emitted(22, 99) Source(30, 73) + SourceIndex(0) -18>Emitted(22, 100) Source(30, 74) + SourceIndex(0) -19>Emitted(22, 103) Source(30, 77) + SourceIndex(0) -20>Emitted(22, 104) Source(30, 78) + SourceIndex(0) -21>Emitted(22, 106) Source(30, 80) + SourceIndex(0) -22>Emitted(22, 107) Source(30, 81) + SourceIndex(0) -23>Emitted(22, 109) Source(30, 83) + SourceIndex(0) -24>Emitted(22, 111) Source(30, 85) + SourceIndex(0) -25>Emitted(22, 112) Source(30, 86) + SourceIndex(0) +7 > +8 > [primarySkillA, secondarySkillA] +9 > +10> primarySkillA +11> , +12> secondarySkillA +13> ]] = getMultiRobot(), +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(30, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(30, 4) Source(30, 4) + SourceIndex(0) +3 >Emitted(30, 5) Source(30, 5) + SourceIndex(0) +4 >Emitted(30, 6) Source(30, 10) + SourceIndex(0) +5 >Emitted(30, 10) Source(30, 10) + SourceIndex(0) +6 >Emitted(30, 41) Source(30, 64) + SourceIndex(0) +7 >Emitted(30, 43) Source(30, 13) + SourceIndex(0) +8 >Emitted(30, 64) Source(30, 45) + SourceIndex(0) +9 >Emitted(30, 66) Source(30, 14) + SourceIndex(0) +10>Emitted(30, 87) Source(30, 27) + SourceIndex(0) +11>Emitted(30, 89) Source(30, 29) + SourceIndex(0) +12>Emitted(30, 112) Source(30, 44) + SourceIndex(0) +13>Emitted(30, 114) Source(30, 66) + SourceIndex(0) +14>Emitted(30, 115) Source(30, 67) + SourceIndex(0) +15>Emitted(30, 118) Source(30, 70) + SourceIndex(0) +16>Emitted(30, 119) Source(30, 71) + SourceIndex(0) +17>Emitted(30, 121) Source(30, 73) + SourceIndex(0) +18>Emitted(30, 122) Source(30, 74) + SourceIndex(0) +19>Emitted(30, 125) Source(30, 77) + SourceIndex(0) +20>Emitted(30, 126) Source(30, 78) + SourceIndex(0) +21>Emitted(30, 128) Source(30, 80) + SourceIndex(0) +22>Emitted(30, 129) Source(30, 81) + SourceIndex(0) +23>Emitted(30, 131) Source(30, 83) + SourceIndex(0) +24>Emitted(30, 133) Source(30, 85) + SourceIndex(0) +25>Emitted(30, 134) Source(30, 86) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -723,26 +743,26 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(23, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(31, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(31, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(31, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(31, 17) + SourceIndex(0) -6 >Emitted(23, 30) Source(31, 30) + SourceIndex(0) -7 >Emitted(23, 31) Source(31, 31) + SourceIndex(0) -8 >Emitted(23, 32) Source(31, 32) + SourceIndex(0) +1 >Emitted(31, 5) Source(31, 5) + SourceIndex(0) +2 >Emitted(31, 12) Source(31, 12) + SourceIndex(0) +3 >Emitted(31, 13) Source(31, 13) + SourceIndex(0) +4 >Emitted(31, 16) Source(31, 16) + SourceIndex(0) +5 >Emitted(31, 17) Source(31, 17) + SourceIndex(0) +6 >Emitted(31, 30) Source(31, 30) + SourceIndex(0) +7 >Emitted(31, 31) Source(31, 31) + SourceIndex(0) +8 >Emitted(31, 32) Source(31, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(24, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(24, 2) Source(32, 2) + SourceIndex(0) +1 >Emitted(32, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 2) Source(32, 2) + SourceIndex(0) --- ->>>for (var _f = ["trimmer", ["trimming", "edging"]], _g = _f[1], primarySkillA = _g[0], secondarySkillA = _g[1], i = 0; i < 1; i++) { +>>>for (var _h = ["trimmer", ["trimming", "edging"]], _j = __read(_h[1], 2), primarySkillA = _j[0], secondarySkillA = _j[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -750,24 +770,24 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 5 > ^^^^ 6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^ -24> ^^ -25> ^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > 2 >for @@ -777,48 +797,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > [, [primarySkillA, secondarySkillA]] = ["trimmer", ["trimming", "edging"]] 7 > 8 > [primarySkillA, secondarySkillA] -9 > -10> primarySkillA -11> , -12> secondarySkillA -13> ]] = ["trimmer", ["trimming", "edging"]], -14> i -15> = -16> 0 -17> ; -18> i -19> < -20> 1 -21> ; -22> i -23> ++ -24> ) -25> { -1->Emitted(25, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(33, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(33, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(33, 10) + SourceIndex(0) -5 >Emitted(25, 10) Source(33, 10) + SourceIndex(0) -6 >Emitted(25, 50) Source(33, 84) + SourceIndex(0) -7 >Emitted(25, 52) Source(33, 13) + SourceIndex(0) -8 >Emitted(25, 62) Source(33, 45) + SourceIndex(0) -9 >Emitted(25, 64) Source(33, 14) + SourceIndex(0) -10>Emitted(25, 85) Source(33, 27) + SourceIndex(0) -11>Emitted(25, 87) Source(33, 29) + SourceIndex(0) -12>Emitted(25, 110) Source(33, 44) + SourceIndex(0) -13>Emitted(25, 112) Source(33, 86) + SourceIndex(0) -14>Emitted(25, 113) Source(33, 87) + SourceIndex(0) -15>Emitted(25, 116) Source(33, 90) + SourceIndex(0) -16>Emitted(25, 117) Source(33, 91) + SourceIndex(0) -17>Emitted(25, 119) Source(33, 93) + SourceIndex(0) -18>Emitted(25, 120) Source(33, 94) + SourceIndex(0) -19>Emitted(25, 123) Source(33, 97) + SourceIndex(0) -20>Emitted(25, 124) Source(33, 98) + SourceIndex(0) -21>Emitted(25, 126) Source(33, 100) + SourceIndex(0) -22>Emitted(25, 127) Source(33, 101) + SourceIndex(0) -23>Emitted(25, 129) Source(33, 103) + SourceIndex(0) -24>Emitted(25, 131) Source(33, 105) + SourceIndex(0) -25>Emitted(25, 132) Source(33, 106) + SourceIndex(0) +9 > +10> primarySkillA +11> , +12> secondarySkillA +13> ]] = ["trimmer", ["trimming", "edging"]], +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(33, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(33, 4) Source(33, 4) + SourceIndex(0) +3 >Emitted(33, 5) Source(33, 5) + SourceIndex(0) +4 >Emitted(33, 6) Source(33, 10) + SourceIndex(0) +5 >Emitted(33, 10) Source(33, 10) + SourceIndex(0) +6 >Emitted(33, 50) Source(33, 84) + SourceIndex(0) +7 >Emitted(33, 52) Source(33, 13) + SourceIndex(0) +8 >Emitted(33, 73) Source(33, 45) + SourceIndex(0) +9 >Emitted(33, 75) Source(33, 14) + SourceIndex(0) +10>Emitted(33, 96) Source(33, 27) + SourceIndex(0) +11>Emitted(33, 98) Source(33, 29) + SourceIndex(0) +12>Emitted(33, 121) Source(33, 44) + SourceIndex(0) +13>Emitted(33, 123) Source(33, 86) + SourceIndex(0) +14>Emitted(33, 124) Source(33, 87) + SourceIndex(0) +15>Emitted(33, 127) Source(33, 90) + SourceIndex(0) +16>Emitted(33, 128) Source(33, 91) + SourceIndex(0) +17>Emitted(33, 130) Source(33, 93) + SourceIndex(0) +18>Emitted(33, 131) Source(33, 94) + SourceIndex(0) +19>Emitted(33, 134) Source(33, 97) + SourceIndex(0) +20>Emitted(33, 135) Source(33, 98) + SourceIndex(0) +21>Emitted(33, 137) Source(33, 100) + SourceIndex(0) +22>Emitted(33, 138) Source(33, 101) + SourceIndex(0) +23>Emitted(33, 140) Source(33, 103) + SourceIndex(0) +24>Emitted(33, 142) Source(33, 105) + SourceIndex(0) +25>Emitted(33, 143) Source(33, 106) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -838,85 +858,91 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(26, 5) Source(34, 5) + SourceIndex(0) -2 >Emitted(26, 12) Source(34, 12) + SourceIndex(0) -3 >Emitted(26, 13) Source(34, 13) + SourceIndex(0) -4 >Emitted(26, 16) Source(34, 16) + SourceIndex(0) -5 >Emitted(26, 17) Source(34, 17) + SourceIndex(0) -6 >Emitted(26, 30) Source(34, 30) + SourceIndex(0) -7 >Emitted(26, 31) Source(34, 31) + SourceIndex(0) -8 >Emitted(26, 32) Source(34, 32) + SourceIndex(0) +1 >Emitted(34, 5) Source(34, 5) + SourceIndex(0) +2 >Emitted(34, 12) Source(34, 12) + SourceIndex(0) +3 >Emitted(34, 13) Source(34, 13) + SourceIndex(0) +4 >Emitted(34, 16) Source(34, 16) + SourceIndex(0) +5 >Emitted(34, 17) Source(34, 17) + SourceIndex(0) +6 >Emitted(34, 30) Source(34, 30) + SourceIndex(0) +7 >Emitted(34, 31) Source(34, 31) + SourceIndex(0) +8 >Emitted(34, 32) Source(34, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(27, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(35, 2) + SourceIndex(0) +1 >Emitted(35, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(35, 2) Source(35, 2) + SourceIndex(0) --- ->>>for (var numberB = robotA[0], i = 0; i < 1; i++) { +>>>for (var _k = __read(robotA, 1), numberB = _k[0], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberB -7 > ] = robotA, -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(28, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(28, 4) Source(37, 4) + SourceIndex(0) -3 >Emitted(28, 5) Source(37, 5) + SourceIndex(0) -4 >Emitted(28, 6) Source(37, 11) + SourceIndex(0) -5 >Emitted(28, 10) Source(37, 11) + SourceIndex(0) -6 >Emitted(28, 29) Source(37, 18) + SourceIndex(0) -7 >Emitted(28, 31) Source(37, 30) + SourceIndex(0) -8 >Emitted(28, 32) Source(37, 31) + SourceIndex(0) -9 >Emitted(28, 35) Source(37, 34) + SourceIndex(0) -10>Emitted(28, 36) Source(37, 35) + SourceIndex(0) -11>Emitted(28, 38) Source(37, 37) + SourceIndex(0) -12>Emitted(28, 39) Source(37, 38) + SourceIndex(0) -13>Emitted(28, 42) Source(37, 41) + SourceIndex(0) -14>Emitted(28, 43) Source(37, 42) + SourceIndex(0) -15>Emitted(28, 45) Source(37, 44) + SourceIndex(0) -16>Emitted(28, 46) Source(37, 45) + SourceIndex(0) -17>Emitted(28, 48) Source(37, 47) + SourceIndex(0) -18>Emitted(28, 50) Source(37, 49) + SourceIndex(0) -19>Emitted(28, 51) Source(37, 50) + SourceIndex(0) +6 > [numberB] = robotA +7 > +8 > numberB +9 > ] = robotA, +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(36, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(36, 4) Source(37, 4) + SourceIndex(0) +3 >Emitted(36, 5) Source(37, 5) + SourceIndex(0) +4 >Emitted(36, 6) Source(37, 10) + SourceIndex(0) +5 >Emitted(36, 10) Source(37, 10) + SourceIndex(0) +6 >Emitted(36, 32) Source(37, 28) + SourceIndex(0) +7 >Emitted(36, 34) Source(37, 11) + SourceIndex(0) +8 >Emitted(36, 49) Source(37, 18) + SourceIndex(0) +9 >Emitted(36, 51) Source(37, 30) + SourceIndex(0) +10>Emitted(36, 52) Source(37, 31) + SourceIndex(0) +11>Emitted(36, 55) Source(37, 34) + SourceIndex(0) +12>Emitted(36, 56) Source(37, 35) + SourceIndex(0) +13>Emitted(36, 58) Source(37, 37) + SourceIndex(0) +14>Emitted(36, 59) Source(37, 38) + SourceIndex(0) +15>Emitted(36, 62) Source(37, 41) + SourceIndex(0) +16>Emitted(36, 63) Source(37, 42) + SourceIndex(0) +17>Emitted(36, 65) Source(37, 44) + SourceIndex(0) +18>Emitted(36, 66) Source(37, 45) + SourceIndex(0) +19>Emitted(36, 68) Source(37, 47) + SourceIndex(0) +20>Emitted(36, 70) Source(37, 49) + SourceIndex(0) +21>Emitted(36, 71) Source(37, 50) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -936,84 +962,90 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(29, 5) Source(38, 5) + SourceIndex(0) -2 >Emitted(29, 12) Source(38, 12) + SourceIndex(0) -3 >Emitted(29, 13) Source(38, 13) + SourceIndex(0) -4 >Emitted(29, 16) Source(38, 16) + SourceIndex(0) -5 >Emitted(29, 17) Source(38, 17) + SourceIndex(0) -6 >Emitted(29, 24) Source(38, 24) + SourceIndex(0) -7 >Emitted(29, 25) Source(38, 25) + SourceIndex(0) -8 >Emitted(29, 26) Source(38, 26) + SourceIndex(0) +1 >Emitted(37, 5) Source(38, 5) + SourceIndex(0) +2 >Emitted(37, 12) Source(38, 12) + SourceIndex(0) +3 >Emitted(37, 13) Source(38, 13) + SourceIndex(0) +4 >Emitted(37, 16) Source(38, 16) + SourceIndex(0) +5 >Emitted(37, 17) Source(38, 17) + SourceIndex(0) +6 >Emitted(37, 24) Source(38, 24) + SourceIndex(0) +7 >Emitted(37, 25) Source(38, 25) + SourceIndex(0) +8 >Emitted(37, 26) Source(38, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(30, 1) Source(39, 1) + SourceIndex(0) -2 >Emitted(30, 2) Source(39, 2) + SourceIndex(0) +1 >Emitted(38, 1) Source(39, 1) + SourceIndex(0) +2 >Emitted(38, 2) Source(39, 2) + SourceIndex(0) --- ->>>for (var numberB = getRobot()[0], i = 0; i < 1; i++) { +>>>for (var _l = __read(getRobot(), 1), numberB = _l[0], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberB -7 > ] = getRobot(), -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(31, 1) Source(40, 1) + SourceIndex(0) -2 >Emitted(31, 4) Source(40, 4) + SourceIndex(0) -3 >Emitted(31, 5) Source(40, 5) + SourceIndex(0) -4 >Emitted(31, 6) Source(40, 11) + SourceIndex(0) -5 >Emitted(31, 10) Source(40, 11) + SourceIndex(0) -6 >Emitted(31, 33) Source(40, 18) + SourceIndex(0) -7 >Emitted(31, 35) Source(40, 34) + SourceIndex(0) -8 >Emitted(31, 36) Source(40, 35) + SourceIndex(0) -9 >Emitted(31, 39) Source(40, 38) + SourceIndex(0) -10>Emitted(31, 40) Source(40, 39) + SourceIndex(0) -11>Emitted(31, 42) Source(40, 41) + SourceIndex(0) -12>Emitted(31, 43) Source(40, 42) + SourceIndex(0) -13>Emitted(31, 46) Source(40, 45) + SourceIndex(0) -14>Emitted(31, 47) Source(40, 46) + SourceIndex(0) -15>Emitted(31, 49) Source(40, 48) + SourceIndex(0) -16>Emitted(31, 50) Source(40, 49) + SourceIndex(0) -17>Emitted(31, 52) Source(40, 51) + SourceIndex(0) -18>Emitted(31, 54) Source(40, 53) + SourceIndex(0) -19>Emitted(31, 55) Source(40, 54) + SourceIndex(0) +6 > [numberB] = getRobot() +7 > +8 > numberB +9 > ] = getRobot(), +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(39, 1) Source(40, 1) + SourceIndex(0) +2 >Emitted(39, 4) Source(40, 4) + SourceIndex(0) +3 >Emitted(39, 5) Source(40, 5) + SourceIndex(0) +4 >Emitted(39, 6) Source(40, 10) + SourceIndex(0) +5 >Emitted(39, 10) Source(40, 10) + SourceIndex(0) +6 >Emitted(39, 36) Source(40, 32) + SourceIndex(0) +7 >Emitted(39, 38) Source(40, 11) + SourceIndex(0) +8 >Emitted(39, 53) Source(40, 18) + SourceIndex(0) +9 >Emitted(39, 55) Source(40, 34) + SourceIndex(0) +10>Emitted(39, 56) Source(40, 35) + SourceIndex(0) +11>Emitted(39, 59) Source(40, 38) + SourceIndex(0) +12>Emitted(39, 60) Source(40, 39) + SourceIndex(0) +13>Emitted(39, 62) Source(40, 41) + SourceIndex(0) +14>Emitted(39, 63) Source(40, 42) + SourceIndex(0) +15>Emitted(39, 66) Source(40, 45) + SourceIndex(0) +16>Emitted(39, 67) Source(40, 46) + SourceIndex(0) +17>Emitted(39, 69) Source(40, 48) + SourceIndex(0) +18>Emitted(39, 70) Source(40, 49) + SourceIndex(0) +19>Emitted(39, 72) Source(40, 51) + SourceIndex(0) +20>Emitted(39, 74) Source(40, 53) + SourceIndex(0) +21>Emitted(39, 75) Source(40, 54) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1033,14 +1065,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(32, 5) Source(41, 5) + SourceIndex(0) -2 >Emitted(32, 12) Source(41, 12) + SourceIndex(0) -3 >Emitted(32, 13) Source(41, 13) + SourceIndex(0) -4 >Emitted(32, 16) Source(41, 16) + SourceIndex(0) -5 >Emitted(32, 17) Source(41, 17) + SourceIndex(0) -6 >Emitted(32, 24) Source(41, 24) + SourceIndex(0) -7 >Emitted(32, 25) Source(41, 25) + SourceIndex(0) -8 >Emitted(32, 26) Source(41, 26) + SourceIndex(0) +1 >Emitted(40, 5) Source(41, 5) + SourceIndex(0) +2 >Emitted(40, 12) Source(41, 12) + SourceIndex(0) +3 >Emitted(40, 13) Source(41, 13) + SourceIndex(0) +4 >Emitted(40, 16) Source(41, 16) + SourceIndex(0) +5 >Emitted(40, 17) Source(41, 17) + SourceIndex(0) +6 >Emitted(40, 24) Source(41, 24) + SourceIndex(0) +7 >Emitted(40, 25) Source(41, 25) + SourceIndex(0) +8 >Emitted(40, 26) Source(41, 26) + SourceIndex(0) --- >>>} 1 > @@ -1049,8 +1081,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(33, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(33, 2) Source(42, 2) + SourceIndex(0) +1 >Emitted(41, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(42, 2) + SourceIndex(0) --- >>>for (var numberB = [2, "trimmer", "trimming"][0], i = 0; i < 1; i++) { 1-> @@ -1092,25 +1124,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 17> ++ 18> ) 19> { -1->Emitted(34, 1) Source(43, 1) + SourceIndex(0) -2 >Emitted(34, 4) Source(43, 4) + SourceIndex(0) -3 >Emitted(34, 5) Source(43, 5) + SourceIndex(0) -4 >Emitted(34, 6) Source(43, 11) + SourceIndex(0) -5 >Emitted(34, 10) Source(43, 11) + SourceIndex(0) -6 >Emitted(34, 49) Source(43, 18) + SourceIndex(0) -7 >Emitted(34, 51) Source(43, 50) + SourceIndex(0) -8 >Emitted(34, 52) Source(43, 51) + SourceIndex(0) -9 >Emitted(34, 55) Source(43, 54) + SourceIndex(0) -10>Emitted(34, 56) Source(43, 55) + SourceIndex(0) -11>Emitted(34, 58) Source(43, 57) + SourceIndex(0) -12>Emitted(34, 59) Source(43, 58) + SourceIndex(0) -13>Emitted(34, 62) Source(43, 61) + SourceIndex(0) -14>Emitted(34, 63) Source(43, 62) + SourceIndex(0) -15>Emitted(34, 65) Source(43, 64) + SourceIndex(0) -16>Emitted(34, 66) Source(43, 65) + SourceIndex(0) -17>Emitted(34, 68) Source(43, 67) + SourceIndex(0) -18>Emitted(34, 70) Source(43, 69) + SourceIndex(0) -19>Emitted(34, 71) Source(43, 70) + SourceIndex(0) +1->Emitted(42, 1) Source(43, 1) + SourceIndex(0) +2 >Emitted(42, 4) Source(43, 4) + SourceIndex(0) +3 >Emitted(42, 5) Source(43, 5) + SourceIndex(0) +4 >Emitted(42, 6) Source(43, 11) + SourceIndex(0) +5 >Emitted(42, 10) Source(43, 11) + SourceIndex(0) +6 >Emitted(42, 49) Source(43, 18) + SourceIndex(0) +7 >Emitted(42, 51) Source(43, 50) + SourceIndex(0) +8 >Emitted(42, 52) Source(43, 51) + SourceIndex(0) +9 >Emitted(42, 55) Source(43, 54) + SourceIndex(0) +10>Emitted(42, 56) Source(43, 55) + SourceIndex(0) +11>Emitted(42, 58) Source(43, 57) + SourceIndex(0) +12>Emitted(42, 59) Source(43, 58) + SourceIndex(0) +13>Emitted(42, 62) Source(43, 61) + SourceIndex(0) +14>Emitted(42, 63) Source(43, 62) + SourceIndex(0) +15>Emitted(42, 65) Source(43, 64) + SourceIndex(0) +16>Emitted(42, 66) Source(43, 65) + SourceIndex(0) +17>Emitted(42, 68) Source(43, 67) + SourceIndex(0) +18>Emitted(42, 70) Source(43, 69) + SourceIndex(0) +19>Emitted(42, 71) Source(43, 70) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1130,84 +1162,90 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(35, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(44, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(44, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(44, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(44, 17) + SourceIndex(0) -6 >Emitted(35, 24) Source(44, 24) + SourceIndex(0) -7 >Emitted(35, 25) Source(44, 25) + SourceIndex(0) -8 >Emitted(35, 26) Source(44, 26) + SourceIndex(0) +1 >Emitted(43, 5) Source(44, 5) + SourceIndex(0) +2 >Emitted(43, 12) Source(44, 12) + SourceIndex(0) +3 >Emitted(43, 13) Source(44, 13) + SourceIndex(0) +4 >Emitted(43, 16) Source(44, 16) + SourceIndex(0) +5 >Emitted(43, 17) Source(44, 17) + SourceIndex(0) +6 >Emitted(43, 24) Source(44, 24) + SourceIndex(0) +7 >Emitted(43, 25) Source(44, 25) + SourceIndex(0) +8 >Emitted(43, 26) Source(44, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(36, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(45, 2) + SourceIndex(0) +1 >Emitted(44, 1) Source(45, 1) + SourceIndex(0) +2 >Emitted(44, 2) Source(45, 2) + SourceIndex(0) --- ->>>for (var nameB = multiRobotA[0], i = 0; i < 1; i++) { +>>>for (var _m = __read(multiRobotA, 1), nameB = _m[0], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > nameB -7 > ] = multiRobotA, -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(37, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(46, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(46, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(46, 11) + SourceIndex(0) -5 >Emitted(37, 10) Source(46, 11) + SourceIndex(0) -6 >Emitted(37, 32) Source(46, 16) + SourceIndex(0) -7 >Emitted(37, 34) Source(46, 33) + SourceIndex(0) -8 >Emitted(37, 35) Source(46, 34) + SourceIndex(0) -9 >Emitted(37, 38) Source(46, 37) + SourceIndex(0) -10>Emitted(37, 39) Source(46, 38) + SourceIndex(0) -11>Emitted(37, 41) Source(46, 40) + SourceIndex(0) -12>Emitted(37, 42) Source(46, 41) + SourceIndex(0) -13>Emitted(37, 45) Source(46, 44) + SourceIndex(0) -14>Emitted(37, 46) Source(46, 45) + SourceIndex(0) -15>Emitted(37, 48) Source(46, 47) + SourceIndex(0) -16>Emitted(37, 49) Source(46, 48) + SourceIndex(0) -17>Emitted(37, 51) Source(46, 50) + SourceIndex(0) -18>Emitted(37, 53) Source(46, 52) + SourceIndex(0) -19>Emitted(37, 54) Source(46, 53) + SourceIndex(0) +6 > [nameB] = multiRobotA +7 > +8 > nameB +9 > ] = multiRobotA, +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(45, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(45, 4) Source(46, 4) + SourceIndex(0) +3 >Emitted(45, 5) Source(46, 5) + SourceIndex(0) +4 >Emitted(45, 6) Source(46, 10) + SourceIndex(0) +5 >Emitted(45, 10) Source(46, 10) + SourceIndex(0) +6 >Emitted(45, 37) Source(46, 31) + SourceIndex(0) +7 >Emitted(45, 39) Source(46, 11) + SourceIndex(0) +8 >Emitted(45, 52) Source(46, 16) + SourceIndex(0) +9 >Emitted(45, 54) Source(46, 33) + SourceIndex(0) +10>Emitted(45, 55) Source(46, 34) + SourceIndex(0) +11>Emitted(45, 58) Source(46, 37) + SourceIndex(0) +12>Emitted(45, 59) Source(46, 38) + SourceIndex(0) +13>Emitted(45, 61) Source(46, 40) + SourceIndex(0) +14>Emitted(45, 62) Source(46, 41) + SourceIndex(0) +15>Emitted(45, 65) Source(46, 44) + SourceIndex(0) +16>Emitted(45, 66) Source(46, 45) + SourceIndex(0) +17>Emitted(45, 68) Source(46, 47) + SourceIndex(0) +18>Emitted(45, 69) Source(46, 48) + SourceIndex(0) +19>Emitted(45, 71) Source(46, 50) + SourceIndex(0) +20>Emitted(45, 73) Source(46, 52) + SourceIndex(0) +21>Emitted(45, 74) Source(46, 53) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1227,84 +1265,90 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(38, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(38, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(38, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(38, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(38, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(38, 22) Source(47, 22) + SourceIndex(0) -7 >Emitted(38, 23) Source(47, 23) + SourceIndex(0) -8 >Emitted(38, 24) Source(47, 24) + SourceIndex(0) +1 >Emitted(46, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(46, 12) Source(47, 12) + SourceIndex(0) +3 >Emitted(46, 13) Source(47, 13) + SourceIndex(0) +4 >Emitted(46, 16) Source(47, 16) + SourceIndex(0) +5 >Emitted(46, 17) Source(47, 17) + SourceIndex(0) +6 >Emitted(46, 22) Source(47, 22) + SourceIndex(0) +7 >Emitted(46, 23) Source(47, 23) + SourceIndex(0) +8 >Emitted(46, 24) Source(47, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(39, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(39, 2) Source(48, 2) + SourceIndex(0) +1 >Emitted(47, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(47, 2) Source(48, 2) + SourceIndex(0) --- ->>>for (var nameB = getMultiRobot()[0], i = 0; i < 1; i++) { +>>>for (var _o = __read(getMultiRobot(), 1), nameB = _o[0], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > nameB -7 > ] = getMultiRobot(), -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(40, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(40, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(40, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(40, 6) Source(49, 11) + SourceIndex(0) -5 >Emitted(40, 10) Source(49, 11) + SourceIndex(0) -6 >Emitted(40, 36) Source(49, 16) + SourceIndex(0) -7 >Emitted(40, 38) Source(49, 37) + SourceIndex(0) -8 >Emitted(40, 39) Source(49, 38) + SourceIndex(0) -9 >Emitted(40, 42) Source(49, 41) + SourceIndex(0) -10>Emitted(40, 43) Source(49, 42) + SourceIndex(0) -11>Emitted(40, 45) Source(49, 44) + SourceIndex(0) -12>Emitted(40, 46) Source(49, 45) + SourceIndex(0) -13>Emitted(40, 49) Source(49, 48) + SourceIndex(0) -14>Emitted(40, 50) Source(49, 49) + SourceIndex(0) -15>Emitted(40, 52) Source(49, 51) + SourceIndex(0) -16>Emitted(40, 53) Source(49, 52) + SourceIndex(0) -17>Emitted(40, 55) Source(49, 54) + SourceIndex(0) -18>Emitted(40, 57) Source(49, 56) + SourceIndex(0) -19>Emitted(40, 58) Source(49, 57) + SourceIndex(0) +6 > [nameB] = getMultiRobot() +7 > +8 > nameB +9 > ] = getMultiRobot(), +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(48, 1) Source(49, 1) + SourceIndex(0) +2 >Emitted(48, 4) Source(49, 4) + SourceIndex(0) +3 >Emitted(48, 5) Source(49, 5) + SourceIndex(0) +4 >Emitted(48, 6) Source(49, 10) + SourceIndex(0) +5 >Emitted(48, 10) Source(49, 10) + SourceIndex(0) +6 >Emitted(48, 41) Source(49, 35) + SourceIndex(0) +7 >Emitted(48, 43) Source(49, 11) + SourceIndex(0) +8 >Emitted(48, 56) Source(49, 16) + SourceIndex(0) +9 >Emitted(48, 58) Source(49, 37) + SourceIndex(0) +10>Emitted(48, 59) Source(49, 38) + SourceIndex(0) +11>Emitted(48, 62) Source(49, 41) + SourceIndex(0) +12>Emitted(48, 63) Source(49, 42) + SourceIndex(0) +13>Emitted(48, 65) Source(49, 44) + SourceIndex(0) +14>Emitted(48, 66) Source(49, 45) + SourceIndex(0) +15>Emitted(48, 69) Source(49, 48) + SourceIndex(0) +16>Emitted(48, 70) Source(49, 49) + SourceIndex(0) +17>Emitted(48, 72) Source(49, 51) + SourceIndex(0) +18>Emitted(48, 73) Source(49, 52) + SourceIndex(0) +19>Emitted(48, 75) Source(49, 54) + SourceIndex(0) +20>Emitted(48, 77) Source(49, 56) + SourceIndex(0) +21>Emitted(48, 78) Source(49, 57) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1324,14 +1368,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(41, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(41, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(41, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(41, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(41, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(41, 22) Source(50, 22) + SourceIndex(0) -7 >Emitted(41, 23) Source(50, 23) + SourceIndex(0) -8 >Emitted(41, 24) Source(50, 24) + SourceIndex(0) +1 >Emitted(49, 5) Source(50, 5) + SourceIndex(0) +2 >Emitted(49, 12) Source(50, 12) + SourceIndex(0) +3 >Emitted(49, 13) Source(50, 13) + SourceIndex(0) +4 >Emitted(49, 16) Source(50, 16) + SourceIndex(0) +5 >Emitted(49, 17) Source(50, 17) + SourceIndex(0) +6 >Emitted(49, 22) Source(50, 22) + SourceIndex(0) +7 >Emitted(49, 23) Source(50, 23) + SourceIndex(0) +8 >Emitted(49, 24) Source(50, 24) + SourceIndex(0) --- >>>} 1 > @@ -1340,8 +1384,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(42, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(42, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(50, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(50, 2) Source(51, 2) + SourceIndex(0) --- >>>for (var nameB = ["trimmer", ["trimming", "edging"]][0], i = 0; i < 1; i++) { 1-> @@ -1383,25 +1427,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 17> ++ 18> ) 19> { -1->Emitted(43, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(43, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(43, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(43, 6) Source(52, 11) + SourceIndex(0) -5 >Emitted(43, 10) Source(52, 11) + SourceIndex(0) -6 >Emitted(43, 56) Source(52, 16) + SourceIndex(0) -7 >Emitted(43, 58) Source(52, 57) + SourceIndex(0) -8 >Emitted(43, 59) Source(52, 58) + SourceIndex(0) -9 >Emitted(43, 62) Source(52, 61) + SourceIndex(0) -10>Emitted(43, 63) Source(52, 62) + SourceIndex(0) -11>Emitted(43, 65) Source(52, 64) + SourceIndex(0) -12>Emitted(43, 66) Source(52, 65) + SourceIndex(0) -13>Emitted(43, 69) Source(52, 68) + SourceIndex(0) -14>Emitted(43, 70) Source(52, 69) + SourceIndex(0) -15>Emitted(43, 72) Source(52, 71) + SourceIndex(0) -16>Emitted(43, 73) Source(52, 72) + SourceIndex(0) -17>Emitted(43, 75) Source(52, 74) + SourceIndex(0) -18>Emitted(43, 77) Source(52, 76) + SourceIndex(0) -19>Emitted(43, 78) Source(52, 77) + SourceIndex(0) +1->Emitted(51, 1) Source(52, 1) + SourceIndex(0) +2 >Emitted(51, 4) Source(52, 4) + SourceIndex(0) +3 >Emitted(51, 5) Source(52, 5) + SourceIndex(0) +4 >Emitted(51, 6) Source(52, 11) + SourceIndex(0) +5 >Emitted(51, 10) Source(52, 11) + SourceIndex(0) +6 >Emitted(51, 56) Source(52, 16) + SourceIndex(0) +7 >Emitted(51, 58) Source(52, 57) + SourceIndex(0) +8 >Emitted(51, 59) Source(52, 58) + SourceIndex(0) +9 >Emitted(51, 62) Source(52, 61) + SourceIndex(0) +10>Emitted(51, 63) Source(52, 62) + SourceIndex(0) +11>Emitted(51, 65) Source(52, 64) + SourceIndex(0) +12>Emitted(51, 66) Source(52, 65) + SourceIndex(0) +13>Emitted(51, 69) Source(52, 68) + SourceIndex(0) +14>Emitted(51, 70) Source(52, 69) + SourceIndex(0) +15>Emitted(51, 72) Source(52, 71) + SourceIndex(0) +16>Emitted(51, 73) Source(52, 72) + SourceIndex(0) +17>Emitted(51, 75) Source(52, 74) + SourceIndex(0) +18>Emitted(51, 77) Source(52, 76) + SourceIndex(0) +19>Emitted(51, 78) Source(52, 77) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1421,97 +1465,103 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(44, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(44, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(44, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(44, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(44, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(44, 22) Source(53, 22) + SourceIndex(0) -7 >Emitted(44, 23) Source(53, 23) + SourceIndex(0) -8 >Emitted(44, 24) Source(53, 24) + SourceIndex(0) +1 >Emitted(52, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(52, 12) Source(53, 12) + SourceIndex(0) +3 >Emitted(52, 13) Source(53, 13) + SourceIndex(0) +4 >Emitted(52, 16) Source(53, 16) + SourceIndex(0) +5 >Emitted(52, 17) Source(53, 17) + SourceIndex(0) +6 >Emitted(52, 22) Source(53, 22) + SourceIndex(0) +7 >Emitted(52, 23) Source(53, 23) + SourceIndex(0) +8 >Emitted(52, 24) Source(53, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(45, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(45, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(53, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(53, 2) Source(54, 2) + SourceIndex(0) --- ->>>for (var numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2], i = 0; i < 1; i++) { +>>>for (var _p = __read(robotA, 3), numberA2 = _p[0], nameA2 = _p[1], skillA2 = _p[2], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^ 9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^ -22> ^^ -23> ^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberA2 -7 > , -8 > nameA2 +6 > [numberA2, nameA2, skillA2] = robotA +7 > +8 > numberA2 9 > , -10> skillA2 -11> ] = robotA, -12> i -13> = -14> 0 -15> ; -16> i -17> < -18> 1 -19> ; -20> i -21> ++ -22> ) -23> { -1->Emitted(46, 1) Source(56, 1) + SourceIndex(0) -2 >Emitted(46, 4) Source(56, 4) + SourceIndex(0) -3 >Emitted(46, 5) Source(56, 5) + SourceIndex(0) -4 >Emitted(46, 6) Source(56, 11) + SourceIndex(0) -5 >Emitted(46, 10) Source(56, 11) + SourceIndex(0) -6 >Emitted(46, 30) Source(56, 19) + SourceIndex(0) -7 >Emitted(46, 32) Source(56, 21) + SourceIndex(0) -8 >Emitted(46, 50) Source(56, 27) + SourceIndex(0) -9 >Emitted(46, 52) Source(56, 29) + SourceIndex(0) -10>Emitted(46, 71) Source(56, 36) + SourceIndex(0) -11>Emitted(46, 73) Source(56, 48) + SourceIndex(0) -12>Emitted(46, 74) Source(56, 49) + SourceIndex(0) -13>Emitted(46, 77) Source(56, 52) + SourceIndex(0) -14>Emitted(46, 78) Source(56, 53) + SourceIndex(0) -15>Emitted(46, 80) Source(56, 55) + SourceIndex(0) -16>Emitted(46, 81) Source(56, 56) + SourceIndex(0) -17>Emitted(46, 84) Source(56, 59) + SourceIndex(0) -18>Emitted(46, 85) Source(56, 60) + SourceIndex(0) -19>Emitted(46, 87) Source(56, 62) + SourceIndex(0) -20>Emitted(46, 88) Source(56, 63) + SourceIndex(0) -21>Emitted(46, 90) Source(56, 65) + SourceIndex(0) -22>Emitted(46, 92) Source(56, 67) + SourceIndex(0) -23>Emitted(46, 93) Source(56, 68) + SourceIndex(0) +10> nameA2 +11> , +12> skillA2 +13> ] = robotA, +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(54, 1) Source(56, 1) + SourceIndex(0) +2 >Emitted(54, 4) Source(56, 4) + SourceIndex(0) +3 >Emitted(54, 5) Source(56, 5) + SourceIndex(0) +4 >Emitted(54, 6) Source(56, 10) + SourceIndex(0) +5 >Emitted(54, 10) Source(56, 10) + SourceIndex(0) +6 >Emitted(54, 32) Source(56, 46) + SourceIndex(0) +7 >Emitted(54, 34) Source(56, 11) + SourceIndex(0) +8 >Emitted(54, 50) Source(56, 19) + SourceIndex(0) +9 >Emitted(54, 52) Source(56, 21) + SourceIndex(0) +10>Emitted(54, 66) Source(56, 27) + SourceIndex(0) +11>Emitted(54, 68) Source(56, 29) + SourceIndex(0) +12>Emitted(54, 83) Source(56, 36) + SourceIndex(0) +13>Emitted(54, 85) Source(56, 48) + SourceIndex(0) +14>Emitted(54, 86) Source(56, 49) + SourceIndex(0) +15>Emitted(54, 89) Source(56, 52) + SourceIndex(0) +16>Emitted(54, 90) Source(56, 53) + SourceIndex(0) +17>Emitted(54, 92) Source(56, 55) + SourceIndex(0) +18>Emitted(54, 93) Source(56, 56) + SourceIndex(0) +19>Emitted(54, 96) Source(56, 59) + SourceIndex(0) +20>Emitted(54, 97) Source(56, 60) + SourceIndex(0) +21>Emitted(54, 99) Source(56, 62) + SourceIndex(0) +22>Emitted(54, 100) Source(56, 63) + SourceIndex(0) +23>Emitted(54, 102) Source(56, 65) + SourceIndex(0) +24>Emitted(54, 104) Source(56, 67) + SourceIndex(0) +25>Emitted(54, 105) Source(56, 68) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1531,51 +1581,51 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(47, 5) Source(57, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(57, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(57, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(57, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(57, 17) + SourceIndex(0) -6 >Emitted(47, 23) Source(57, 23) + SourceIndex(0) -7 >Emitted(47, 24) Source(57, 24) + SourceIndex(0) -8 >Emitted(47, 25) Source(57, 25) + SourceIndex(0) +1 >Emitted(55, 5) Source(57, 5) + SourceIndex(0) +2 >Emitted(55, 12) Source(57, 12) + SourceIndex(0) +3 >Emitted(55, 13) Source(57, 13) + SourceIndex(0) +4 >Emitted(55, 16) Source(57, 16) + SourceIndex(0) +5 >Emitted(55, 17) Source(57, 17) + SourceIndex(0) +6 >Emitted(55, 23) Source(57, 23) + SourceIndex(0) +7 >Emitted(55, 24) Source(57, 24) + SourceIndex(0) +8 >Emitted(55, 25) Source(57, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(48, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(48, 2) Source(58, 2) + SourceIndex(0) +1 >Emitted(56, 1) Source(58, 1) + SourceIndex(0) +2 >Emitted(56, 2) Source(58, 2) + SourceIndex(0) --- ->>>for (var _h = getRobot(), numberA2 = _h[0], nameA2 = _h[1], skillA2 = _h[2], i = 0; i < 1; i++) { +>>>for (var _q = __read(getRobot(), 3), numberA2 = _q[0], nameA2 = _q[1], skillA2 = _q[2], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^ -24> ^^ -25> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > 2 >for @@ -1583,50 +1633,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 4 > (let 5 > 6 > [numberA2, nameA2, skillA2] = getRobot() -7 > -8 > numberA2 -9 > , -10> nameA2 -11> , -12> skillA2 -13> ] = getRobot(), -14> i -15> = -16> 0 -17> ; -18> i -19> < -20> 1 -21> ; -22> i -23> ++ -24> ) -25> { -1->Emitted(49, 1) Source(59, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(59, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(59, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(59, 10) + SourceIndex(0) -5 >Emitted(49, 10) Source(59, 10) + SourceIndex(0) -6 >Emitted(49, 25) Source(59, 50) + SourceIndex(0) -7 >Emitted(49, 27) Source(59, 11) + SourceIndex(0) -8 >Emitted(49, 43) Source(59, 19) + SourceIndex(0) -9 >Emitted(49, 45) Source(59, 21) + SourceIndex(0) -10>Emitted(49, 59) Source(59, 27) + SourceIndex(0) -11>Emitted(49, 61) Source(59, 29) + SourceIndex(0) -12>Emitted(49, 76) Source(59, 36) + SourceIndex(0) -13>Emitted(49, 78) Source(59, 52) + SourceIndex(0) -14>Emitted(49, 79) Source(59, 53) + SourceIndex(0) -15>Emitted(49, 82) Source(59, 56) + SourceIndex(0) -16>Emitted(49, 83) Source(59, 57) + SourceIndex(0) -17>Emitted(49, 85) Source(59, 59) + SourceIndex(0) -18>Emitted(49, 86) Source(59, 60) + SourceIndex(0) -19>Emitted(49, 89) Source(59, 63) + SourceIndex(0) -20>Emitted(49, 90) Source(59, 64) + SourceIndex(0) -21>Emitted(49, 92) Source(59, 66) + SourceIndex(0) -22>Emitted(49, 93) Source(59, 67) + SourceIndex(0) -23>Emitted(49, 95) Source(59, 69) + SourceIndex(0) -24>Emitted(49, 97) Source(59, 71) + SourceIndex(0) -25>Emitted(49, 98) Source(59, 72) + SourceIndex(0) +7 > +8 > numberA2 +9 > , +10> nameA2 +11> , +12> skillA2 +13> ] = getRobot(), +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(57, 1) Source(59, 1) + SourceIndex(0) +2 >Emitted(57, 4) Source(59, 4) + SourceIndex(0) +3 >Emitted(57, 5) Source(59, 5) + SourceIndex(0) +4 >Emitted(57, 6) Source(59, 10) + SourceIndex(0) +5 >Emitted(57, 10) Source(59, 10) + SourceIndex(0) +6 >Emitted(57, 36) Source(59, 50) + SourceIndex(0) +7 >Emitted(57, 38) Source(59, 11) + SourceIndex(0) +8 >Emitted(57, 54) Source(59, 19) + SourceIndex(0) +9 >Emitted(57, 56) Source(59, 21) + SourceIndex(0) +10>Emitted(57, 70) Source(59, 27) + SourceIndex(0) +11>Emitted(57, 72) Source(59, 29) + SourceIndex(0) +12>Emitted(57, 87) Source(59, 36) + SourceIndex(0) +13>Emitted(57, 89) Source(59, 52) + SourceIndex(0) +14>Emitted(57, 90) Source(59, 53) + SourceIndex(0) +15>Emitted(57, 93) Source(59, 56) + SourceIndex(0) +16>Emitted(57, 94) Source(59, 57) + SourceIndex(0) +17>Emitted(57, 96) Source(59, 59) + SourceIndex(0) +18>Emitted(57, 97) Source(59, 60) + SourceIndex(0) +19>Emitted(57, 100) Source(59, 63) + SourceIndex(0) +20>Emitted(57, 101) Source(59, 64) + SourceIndex(0) +21>Emitted(57, 103) Source(59, 66) + SourceIndex(0) +22>Emitted(57, 104) Source(59, 67) + SourceIndex(0) +23>Emitted(57, 106) Source(59, 69) + SourceIndex(0) +24>Emitted(57, 108) Source(59, 71) + SourceIndex(0) +25>Emitted(57, 109) Source(59, 72) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1646,14 +1696,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(50, 5) Source(60, 5) + SourceIndex(0) -2 >Emitted(50, 12) Source(60, 12) + SourceIndex(0) -3 >Emitted(50, 13) Source(60, 13) + SourceIndex(0) -4 >Emitted(50, 16) Source(60, 16) + SourceIndex(0) -5 >Emitted(50, 17) Source(60, 17) + SourceIndex(0) -6 >Emitted(50, 23) Source(60, 23) + SourceIndex(0) -7 >Emitted(50, 24) Source(60, 24) + SourceIndex(0) -8 >Emitted(50, 25) Source(60, 25) + SourceIndex(0) +1 >Emitted(58, 5) Source(60, 5) + SourceIndex(0) +2 >Emitted(58, 12) Source(60, 12) + SourceIndex(0) +3 >Emitted(58, 13) Source(60, 13) + SourceIndex(0) +4 >Emitted(58, 16) Source(60, 16) + SourceIndex(0) +5 >Emitted(58, 17) Source(60, 17) + SourceIndex(0) +6 >Emitted(58, 23) Source(60, 23) + SourceIndex(0) +7 >Emitted(58, 24) Source(60, 24) + SourceIndex(0) +8 >Emitted(58, 25) Source(60, 25) + SourceIndex(0) --- >>>} 1 > @@ -1662,10 +1712,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(51, 1) Source(61, 1) + SourceIndex(0) -2 >Emitted(51, 2) Source(61, 2) + SourceIndex(0) +1 >Emitted(59, 1) Source(61, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(61, 2) + SourceIndex(0) --- ->>>for (var _j = [2, "trimmer", "trimming"], numberA2 = _j[0], nameA2 = _j[1], skillA2 = _j[2], i = 0; i < 1; i++) { +>>>for (var _r = [2, "trimmer", "trimming"], numberA2 = _r[0], nameA2 = _r[1], skillA2 = _r[2], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -1717,31 +1767,31 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 23> ++ 24> ) 25> { -1->Emitted(52, 1) Source(62, 1) + SourceIndex(0) -2 >Emitted(52, 4) Source(62, 4) + SourceIndex(0) -3 >Emitted(52, 5) Source(62, 5) + SourceIndex(0) -4 >Emitted(52, 6) Source(62, 10) + SourceIndex(0) -5 >Emitted(52, 10) Source(62, 10) + SourceIndex(0) -6 >Emitted(52, 41) Source(62, 66) + SourceIndex(0) -7 >Emitted(52, 43) Source(62, 11) + SourceIndex(0) -8 >Emitted(52, 59) Source(62, 19) + SourceIndex(0) -9 >Emitted(52, 61) Source(62, 21) + SourceIndex(0) -10>Emitted(52, 75) Source(62, 27) + SourceIndex(0) -11>Emitted(52, 77) Source(62, 29) + SourceIndex(0) -12>Emitted(52, 92) Source(62, 36) + SourceIndex(0) -13>Emitted(52, 94) Source(62, 68) + SourceIndex(0) -14>Emitted(52, 95) Source(62, 69) + SourceIndex(0) -15>Emitted(52, 98) Source(62, 72) + SourceIndex(0) -16>Emitted(52, 99) Source(62, 73) + SourceIndex(0) -17>Emitted(52, 101) Source(62, 75) + SourceIndex(0) -18>Emitted(52, 102) Source(62, 76) + SourceIndex(0) -19>Emitted(52, 105) Source(62, 79) + SourceIndex(0) -20>Emitted(52, 106) Source(62, 80) + SourceIndex(0) -21>Emitted(52, 108) Source(62, 82) + SourceIndex(0) -22>Emitted(52, 109) Source(62, 83) + SourceIndex(0) -23>Emitted(52, 111) Source(62, 85) + SourceIndex(0) -24>Emitted(52, 113) Source(62, 87) + SourceIndex(0) -25>Emitted(52, 114) Source(62, 88) + SourceIndex(0) +1->Emitted(60, 1) Source(62, 1) + SourceIndex(0) +2 >Emitted(60, 4) Source(62, 4) + SourceIndex(0) +3 >Emitted(60, 5) Source(62, 5) + SourceIndex(0) +4 >Emitted(60, 6) Source(62, 10) + SourceIndex(0) +5 >Emitted(60, 10) Source(62, 10) + SourceIndex(0) +6 >Emitted(60, 41) Source(62, 66) + SourceIndex(0) +7 >Emitted(60, 43) Source(62, 11) + SourceIndex(0) +8 >Emitted(60, 59) Source(62, 19) + SourceIndex(0) +9 >Emitted(60, 61) Source(62, 21) + SourceIndex(0) +10>Emitted(60, 75) Source(62, 27) + SourceIndex(0) +11>Emitted(60, 77) Source(62, 29) + SourceIndex(0) +12>Emitted(60, 92) Source(62, 36) + SourceIndex(0) +13>Emitted(60, 94) Source(62, 68) + SourceIndex(0) +14>Emitted(60, 95) Source(62, 69) + SourceIndex(0) +15>Emitted(60, 98) Source(62, 72) + SourceIndex(0) +16>Emitted(60, 99) Source(62, 73) + SourceIndex(0) +17>Emitted(60, 101) Source(62, 75) + SourceIndex(0) +18>Emitted(60, 102) Source(62, 76) + SourceIndex(0) +19>Emitted(60, 105) Source(62, 79) + SourceIndex(0) +20>Emitted(60, 106) Source(62, 80) + SourceIndex(0) +21>Emitted(60, 108) Source(62, 82) + SourceIndex(0) +22>Emitted(60, 109) Source(62, 83) + SourceIndex(0) +23>Emitted(60, 111) Source(62, 85) + SourceIndex(0) +24>Emitted(60, 113) Source(62, 87) + SourceIndex(0) +25>Emitted(60, 114) Source(62, 88) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1761,102 +1811,108 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(53, 5) Source(63, 5) + SourceIndex(0) -2 >Emitted(53, 12) Source(63, 12) + SourceIndex(0) -3 >Emitted(53, 13) Source(63, 13) + SourceIndex(0) -4 >Emitted(53, 16) Source(63, 16) + SourceIndex(0) -5 >Emitted(53, 17) Source(63, 17) + SourceIndex(0) -6 >Emitted(53, 23) Source(63, 23) + SourceIndex(0) -7 >Emitted(53, 24) Source(63, 24) + SourceIndex(0) -8 >Emitted(53, 25) Source(63, 25) + SourceIndex(0) +1 >Emitted(61, 5) Source(63, 5) + SourceIndex(0) +2 >Emitted(61, 12) Source(63, 12) + SourceIndex(0) +3 >Emitted(61, 13) Source(63, 13) + SourceIndex(0) +4 >Emitted(61, 16) Source(63, 16) + SourceIndex(0) +5 >Emitted(61, 17) Source(63, 17) + SourceIndex(0) +6 >Emitted(61, 23) Source(63, 23) + SourceIndex(0) +7 >Emitted(61, 24) Source(63, 24) + SourceIndex(0) +8 >Emitted(61, 25) Source(63, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(54, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(54, 2) Source(64, 2) + SourceIndex(0) +1 >Emitted(62, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(62, 2) Source(64, 2) + SourceIndex(0) --- ->>>for (var nameMA = multiRobotA[0], _k = multiRobotA[1], primarySkillA = _k[0], secondarySkillA = _k[1], i = 0; i < 1; i++) { +>>>for (var _s = __read(multiRobotA, 2), nameMA = _s[0], _t = __read(_s[1], 2), primarySkillA = _t[0], secondarySkillA = _t[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^ -24> ^^ -25> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^ +26> ^^ +27> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > nameMA -7 > , -8 > [primarySkillA, secondarySkillA] -9 > -10> primarySkillA -11> , -12> secondarySkillA -13> ]] = multiRobotA, -14> i -15> = -16> 0 -17> ; -18> i -19> < -20> 1 -21> ; -22> i -23> ++ -24> ) -25> { -1->Emitted(55, 1) Source(65, 1) + SourceIndex(0) -2 >Emitted(55, 4) Source(65, 4) + SourceIndex(0) -3 >Emitted(55, 5) Source(65, 5) + SourceIndex(0) -4 >Emitted(55, 6) Source(65, 11) + SourceIndex(0) -5 >Emitted(55, 10) Source(65, 11) + SourceIndex(0) -6 >Emitted(55, 33) Source(65, 17) + SourceIndex(0) -7 >Emitted(55, 35) Source(65, 19) + SourceIndex(0) -8 >Emitted(55, 54) Source(65, 51) + SourceIndex(0) -9 >Emitted(55, 56) Source(65, 20) + SourceIndex(0) -10>Emitted(55, 77) Source(65, 33) + SourceIndex(0) -11>Emitted(55, 79) Source(65, 35) + SourceIndex(0) -12>Emitted(55, 102) Source(65, 50) + SourceIndex(0) -13>Emitted(55, 104) Source(65, 68) + SourceIndex(0) -14>Emitted(55, 105) Source(65, 69) + SourceIndex(0) -15>Emitted(55, 108) Source(65, 72) + SourceIndex(0) -16>Emitted(55, 109) Source(65, 73) + SourceIndex(0) -17>Emitted(55, 111) Source(65, 75) + SourceIndex(0) -18>Emitted(55, 112) Source(65, 76) + SourceIndex(0) -19>Emitted(55, 115) Source(65, 79) + SourceIndex(0) -20>Emitted(55, 116) Source(65, 80) + SourceIndex(0) -21>Emitted(55, 118) Source(65, 82) + SourceIndex(0) -22>Emitted(55, 119) Source(65, 83) + SourceIndex(0) -23>Emitted(55, 121) Source(65, 85) + SourceIndex(0) -24>Emitted(55, 123) Source(65, 87) + SourceIndex(0) -25>Emitted(55, 124) Source(65, 88) + SourceIndex(0) +6 > [nameMA, [primarySkillA, secondarySkillA]] = multiRobotA +7 > +8 > nameMA +9 > , +10> [primarySkillA, secondarySkillA] +11> +12> primarySkillA +13> , +14> secondarySkillA +15> ]] = multiRobotA, +16> i +17> = +18> 0 +19> ; +20> i +21> < +22> 1 +23> ; +24> i +25> ++ +26> ) +27> { +1->Emitted(63, 1) Source(65, 1) + SourceIndex(0) +2 >Emitted(63, 4) Source(65, 4) + SourceIndex(0) +3 >Emitted(63, 5) Source(65, 5) + SourceIndex(0) +4 >Emitted(63, 6) Source(65, 10) + SourceIndex(0) +5 >Emitted(63, 10) Source(65, 10) + SourceIndex(0) +6 >Emitted(63, 37) Source(65, 66) + SourceIndex(0) +7 >Emitted(63, 39) Source(65, 11) + SourceIndex(0) +8 >Emitted(63, 53) Source(65, 17) + SourceIndex(0) +9 >Emitted(63, 55) Source(65, 19) + SourceIndex(0) +10>Emitted(63, 76) Source(65, 51) + SourceIndex(0) +11>Emitted(63, 78) Source(65, 20) + SourceIndex(0) +12>Emitted(63, 99) Source(65, 33) + SourceIndex(0) +13>Emitted(63, 101) Source(65, 35) + SourceIndex(0) +14>Emitted(63, 124) Source(65, 50) + SourceIndex(0) +15>Emitted(63, 126) Source(65, 68) + SourceIndex(0) +16>Emitted(63, 127) Source(65, 69) + SourceIndex(0) +17>Emitted(63, 130) Source(65, 72) + SourceIndex(0) +18>Emitted(63, 131) Source(65, 73) + SourceIndex(0) +19>Emitted(63, 133) Source(65, 75) + SourceIndex(0) +20>Emitted(63, 134) Source(65, 76) + SourceIndex(0) +21>Emitted(63, 137) Source(65, 79) + SourceIndex(0) +22>Emitted(63, 138) Source(65, 80) + SourceIndex(0) +23>Emitted(63, 140) Source(65, 82) + SourceIndex(0) +24>Emitted(63, 141) Source(65, 83) + SourceIndex(0) +25>Emitted(63, 143) Source(65, 85) + SourceIndex(0) +26>Emitted(63, 145) Source(65, 87) + SourceIndex(0) +27>Emitted(63, 146) Source(65, 88) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -1876,53 +1932,53 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(56, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(56, 12) Source(66, 12) + SourceIndex(0) -3 >Emitted(56, 13) Source(66, 13) + SourceIndex(0) -4 >Emitted(56, 16) Source(66, 16) + SourceIndex(0) -5 >Emitted(56, 17) Source(66, 17) + SourceIndex(0) -6 >Emitted(56, 23) Source(66, 23) + SourceIndex(0) -7 >Emitted(56, 24) Source(66, 24) + SourceIndex(0) -8 >Emitted(56, 25) Source(66, 25) + SourceIndex(0) +1 >Emitted(64, 5) Source(66, 5) + SourceIndex(0) +2 >Emitted(64, 12) Source(66, 12) + SourceIndex(0) +3 >Emitted(64, 13) Source(66, 13) + SourceIndex(0) +4 >Emitted(64, 16) Source(66, 16) + SourceIndex(0) +5 >Emitted(64, 17) Source(66, 17) + SourceIndex(0) +6 >Emitted(64, 23) Source(66, 23) + SourceIndex(0) +7 >Emitted(64, 24) Source(66, 24) + SourceIndex(0) +8 >Emitted(64, 25) Source(66, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(57, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(57, 2) Source(67, 2) + SourceIndex(0) +1 >Emitted(65, 1) Source(67, 1) + SourceIndex(0) +2 >Emitted(65, 2) Source(67, 2) + SourceIndex(0) --- ->>>for (var _l = getMultiRobot(), nameMA = _l[0], _m = _l[1], primarySkillA = _m[0], secondarySkillA = _m[1], i = 0; i < 1; i++) { +>>>for (var _u = __read(getMultiRobot(), 2), nameMA = _u[0], _v = __read(_u[1], 2), primarySkillA = _v[0], secondarySkillA = _v[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^ -26> ^^ -27> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^ +26> ^^ +27> ^ 1-> > 2 >for @@ -1930,54 +1986,54 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 4 > (let 5 > 6 > [nameMA, [primarySkillA, secondarySkillA]] = getMultiRobot() -7 > -8 > nameMA -9 > , -10> [primarySkillA, secondarySkillA] -11> -12> primarySkillA -13> , -14> secondarySkillA -15> ]] = getMultiRobot(), -16> i -17> = -18> 0 -19> ; -20> i -21> < -22> 1 -23> ; -24> i -25> ++ -26> ) -27> { -1->Emitted(58, 1) Source(68, 1) + SourceIndex(0) -2 >Emitted(58, 4) Source(68, 4) + SourceIndex(0) -3 >Emitted(58, 5) Source(68, 5) + SourceIndex(0) -4 >Emitted(58, 6) Source(68, 10) + SourceIndex(0) -5 >Emitted(58, 10) Source(68, 10) + SourceIndex(0) -6 >Emitted(58, 30) Source(68, 70) + SourceIndex(0) -7 >Emitted(58, 32) Source(68, 11) + SourceIndex(0) -8 >Emitted(58, 46) Source(68, 17) + SourceIndex(0) -9 >Emitted(58, 48) Source(68, 19) + SourceIndex(0) -10>Emitted(58, 58) Source(68, 51) + SourceIndex(0) -11>Emitted(58, 60) Source(68, 20) + SourceIndex(0) -12>Emitted(58, 81) Source(68, 33) + SourceIndex(0) -13>Emitted(58, 83) Source(68, 35) + SourceIndex(0) -14>Emitted(58, 106) Source(68, 50) + SourceIndex(0) -15>Emitted(58, 108) Source(68, 72) + SourceIndex(0) -16>Emitted(58, 109) Source(68, 73) + SourceIndex(0) -17>Emitted(58, 112) Source(68, 76) + SourceIndex(0) -18>Emitted(58, 113) Source(68, 77) + SourceIndex(0) -19>Emitted(58, 115) Source(68, 79) + SourceIndex(0) -20>Emitted(58, 116) Source(68, 80) + SourceIndex(0) -21>Emitted(58, 119) Source(68, 83) + SourceIndex(0) -22>Emitted(58, 120) Source(68, 84) + SourceIndex(0) -23>Emitted(58, 122) Source(68, 86) + SourceIndex(0) -24>Emitted(58, 123) Source(68, 87) + SourceIndex(0) -25>Emitted(58, 125) Source(68, 89) + SourceIndex(0) -26>Emitted(58, 127) Source(68, 91) + SourceIndex(0) -27>Emitted(58, 128) Source(68, 92) + SourceIndex(0) +7 > +8 > nameMA +9 > , +10> [primarySkillA, secondarySkillA] +11> +12> primarySkillA +13> , +14> secondarySkillA +15> ]] = getMultiRobot(), +16> i +17> = +18> 0 +19> ; +20> i +21> < +22> 1 +23> ; +24> i +25> ++ +26> ) +27> { +1->Emitted(66, 1) Source(68, 1) + SourceIndex(0) +2 >Emitted(66, 4) Source(68, 4) + SourceIndex(0) +3 >Emitted(66, 5) Source(68, 5) + SourceIndex(0) +4 >Emitted(66, 6) Source(68, 10) + SourceIndex(0) +5 >Emitted(66, 10) Source(68, 10) + SourceIndex(0) +6 >Emitted(66, 41) Source(68, 70) + SourceIndex(0) +7 >Emitted(66, 43) Source(68, 11) + SourceIndex(0) +8 >Emitted(66, 57) Source(68, 17) + SourceIndex(0) +9 >Emitted(66, 59) Source(68, 19) + SourceIndex(0) +10>Emitted(66, 80) Source(68, 51) + SourceIndex(0) +11>Emitted(66, 82) Source(68, 20) + SourceIndex(0) +12>Emitted(66, 103) Source(68, 33) + SourceIndex(0) +13>Emitted(66, 105) Source(68, 35) + SourceIndex(0) +14>Emitted(66, 128) Source(68, 50) + SourceIndex(0) +15>Emitted(66, 130) Source(68, 72) + SourceIndex(0) +16>Emitted(66, 131) Source(68, 73) + SourceIndex(0) +17>Emitted(66, 134) Source(68, 76) + SourceIndex(0) +18>Emitted(66, 135) Source(68, 77) + SourceIndex(0) +19>Emitted(66, 137) Source(68, 79) + SourceIndex(0) +20>Emitted(66, 138) Source(68, 80) + SourceIndex(0) +21>Emitted(66, 141) Source(68, 83) + SourceIndex(0) +22>Emitted(66, 142) Source(68, 84) + SourceIndex(0) +23>Emitted(66, 144) Source(68, 86) + SourceIndex(0) +24>Emitted(66, 145) Source(68, 87) + SourceIndex(0) +25>Emitted(66, 147) Source(68, 89) + SourceIndex(0) +26>Emitted(66, 149) Source(68, 91) + SourceIndex(0) +27>Emitted(66, 150) Source(68, 92) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -1997,26 +2053,26 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(59, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(59, 23) Source(69, 23) + SourceIndex(0) -7 >Emitted(59, 24) Source(69, 24) + SourceIndex(0) -8 >Emitted(59, 25) Source(69, 25) + SourceIndex(0) +1 >Emitted(67, 5) Source(69, 5) + SourceIndex(0) +2 >Emitted(67, 12) Source(69, 12) + SourceIndex(0) +3 >Emitted(67, 13) Source(69, 13) + SourceIndex(0) +4 >Emitted(67, 16) Source(69, 16) + SourceIndex(0) +5 >Emitted(67, 17) Source(69, 17) + SourceIndex(0) +6 >Emitted(67, 23) Source(69, 23) + SourceIndex(0) +7 >Emitted(67, 24) Source(69, 24) + SourceIndex(0) +8 >Emitted(67, 25) Source(69, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(60, 1) Source(70, 1) + SourceIndex(0) -2 >Emitted(60, 2) Source(70, 2) + SourceIndex(0) +1 >Emitted(68, 1) Source(70, 1) + SourceIndex(0) +2 >Emitted(68, 2) Source(70, 2) + SourceIndex(0) --- ->>>for (var _o = ["trimmer", ["trimming", "edging"]], nameMA = _o[0], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1], i = 0; i < 1; i++) { +>>>for (var _w = ["trimmer", ["trimming", "edging"]], nameMA = _w[0], _x = __read(_w[1], 2), primarySkillA = _x[0], secondarySkillA = _x[1], i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -2026,24 +2082,24 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 7 > ^^ 8 > ^^^^^^^^^^^^^^ 9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^ -26> ^^ -27> ^ +10> ^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^ +26> ^^ +27> ^ 1-> > 2 >for @@ -2055,50 +2111,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 8 > nameMA 9 > , 10> [primarySkillA, secondarySkillA] -11> -12> primarySkillA -13> , -14> secondarySkillA -15> ]] = ["trimmer", ["trimming", "edging"]], -16> i -17> = -18> 0 -19> ; -20> i -21> < -22> 1 -23> ; -24> i -25> ++ -26> ) -27> { -1->Emitted(61, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(71, 10) + SourceIndex(0) -5 >Emitted(61, 10) Source(71, 10) + SourceIndex(0) -6 >Emitted(61, 50) Source(71, 90) + SourceIndex(0) -7 >Emitted(61, 52) Source(71, 11) + SourceIndex(0) -8 >Emitted(61, 66) Source(71, 17) + SourceIndex(0) -9 >Emitted(61, 68) Source(71, 19) + SourceIndex(0) -10>Emitted(61, 78) Source(71, 51) + SourceIndex(0) -11>Emitted(61, 80) Source(71, 20) + SourceIndex(0) -12>Emitted(61, 101) Source(71, 33) + SourceIndex(0) -13>Emitted(61, 103) Source(71, 35) + SourceIndex(0) -14>Emitted(61, 126) Source(71, 50) + SourceIndex(0) -15>Emitted(61, 128) Source(71, 92) + SourceIndex(0) -16>Emitted(61, 129) Source(71, 93) + SourceIndex(0) -17>Emitted(61, 132) Source(71, 96) + SourceIndex(0) -18>Emitted(61, 133) Source(71, 97) + SourceIndex(0) -19>Emitted(61, 135) Source(71, 99) + SourceIndex(0) -20>Emitted(61, 136) Source(71, 100) + SourceIndex(0) -21>Emitted(61, 139) Source(71, 103) + SourceIndex(0) -22>Emitted(61, 140) Source(71, 104) + SourceIndex(0) -23>Emitted(61, 142) Source(71, 106) + SourceIndex(0) -24>Emitted(61, 143) Source(71, 107) + SourceIndex(0) -25>Emitted(61, 145) Source(71, 109) + SourceIndex(0) -26>Emitted(61, 147) Source(71, 111) + SourceIndex(0) -27>Emitted(61, 148) Source(71, 112) + SourceIndex(0) +11> +12> primarySkillA +13> , +14> secondarySkillA +15> ]] = ["trimmer", ["trimming", "edging"]], +16> i +17> = +18> 0 +19> ; +20> i +21> < +22> 1 +23> ; +24> i +25> ++ +26> ) +27> { +1->Emitted(69, 1) Source(71, 1) + SourceIndex(0) +2 >Emitted(69, 4) Source(71, 4) + SourceIndex(0) +3 >Emitted(69, 5) Source(71, 5) + SourceIndex(0) +4 >Emitted(69, 6) Source(71, 10) + SourceIndex(0) +5 >Emitted(69, 10) Source(71, 10) + SourceIndex(0) +6 >Emitted(69, 50) Source(71, 90) + SourceIndex(0) +7 >Emitted(69, 52) Source(71, 11) + SourceIndex(0) +8 >Emitted(69, 66) Source(71, 17) + SourceIndex(0) +9 >Emitted(69, 68) Source(71, 19) + SourceIndex(0) +10>Emitted(69, 89) Source(71, 51) + SourceIndex(0) +11>Emitted(69, 91) Source(71, 20) + SourceIndex(0) +12>Emitted(69, 112) Source(71, 33) + SourceIndex(0) +13>Emitted(69, 114) Source(71, 35) + SourceIndex(0) +14>Emitted(69, 137) Source(71, 50) + SourceIndex(0) +15>Emitted(69, 139) Source(71, 92) + SourceIndex(0) +16>Emitted(69, 140) Source(71, 93) + SourceIndex(0) +17>Emitted(69, 143) Source(71, 96) + SourceIndex(0) +18>Emitted(69, 144) Source(71, 97) + SourceIndex(0) +19>Emitted(69, 146) Source(71, 99) + SourceIndex(0) +20>Emitted(69, 147) Source(71, 100) + SourceIndex(0) +21>Emitted(69, 150) Source(71, 103) + SourceIndex(0) +22>Emitted(69, 151) Source(71, 104) + SourceIndex(0) +23>Emitted(69, 153) Source(71, 106) + SourceIndex(0) +24>Emitted(69, 154) Source(71, 107) + SourceIndex(0) +25>Emitted(69, 156) Source(71, 109) + SourceIndex(0) +26>Emitted(69, 158) Source(71, 111) + SourceIndex(0) +27>Emitted(69, 159) Source(71, 112) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2118,91 +2174,97 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(62, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(62, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(62, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(62, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(62, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(62, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(62, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(62, 25) Source(72, 25) + SourceIndex(0) +1 >Emitted(70, 5) Source(72, 5) + SourceIndex(0) +2 >Emitted(70, 12) Source(72, 12) + SourceIndex(0) +3 >Emitted(70, 13) Source(72, 13) + SourceIndex(0) +4 >Emitted(70, 16) Source(72, 16) + SourceIndex(0) +5 >Emitted(70, 17) Source(72, 17) + SourceIndex(0) +6 >Emitted(70, 23) Source(72, 23) + SourceIndex(0) +7 >Emitted(70, 24) Source(72, 24) + SourceIndex(0) +8 >Emitted(70, 25) Source(72, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(63, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(63, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(71, 1) Source(73, 1) + SourceIndex(0) +2 >Emitted(71, 2) Source(73, 2) + SourceIndex(0) --- ->>>for (var numberA3 = robotA[0], robotAInfo = robotA.slice(1), i = 0; i < 1; i++) { +>>>for (var _y = __read(robotA), numberA3 = _y[0], robotAInfo = _y.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberA3 -7 > , -8 > ...robotAInfo -9 > ] = robotA, -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(64, 1) Source(75, 1) + SourceIndex(0) -2 >Emitted(64, 4) Source(75, 4) + SourceIndex(0) -3 >Emitted(64, 5) Source(75, 5) + SourceIndex(0) -4 >Emitted(64, 6) Source(75, 11) + SourceIndex(0) -5 >Emitted(64, 10) Source(75, 11) + SourceIndex(0) -6 >Emitted(64, 30) Source(75, 19) + SourceIndex(0) -7 >Emitted(64, 32) Source(75, 21) + SourceIndex(0) -8 >Emitted(64, 60) Source(75, 34) + SourceIndex(0) -9 >Emitted(64, 62) Source(75, 46) + SourceIndex(0) -10>Emitted(64, 63) Source(75, 47) + SourceIndex(0) -11>Emitted(64, 66) Source(75, 50) + SourceIndex(0) -12>Emitted(64, 67) Source(75, 51) + SourceIndex(0) -13>Emitted(64, 69) Source(75, 53) + SourceIndex(0) -14>Emitted(64, 70) Source(75, 54) + SourceIndex(0) -15>Emitted(64, 73) Source(75, 57) + SourceIndex(0) -16>Emitted(64, 74) Source(75, 58) + SourceIndex(0) -17>Emitted(64, 76) Source(75, 60) + SourceIndex(0) -18>Emitted(64, 77) Source(75, 61) + SourceIndex(0) -19>Emitted(64, 79) Source(75, 63) + SourceIndex(0) -20>Emitted(64, 81) Source(75, 65) + SourceIndex(0) -21>Emitted(64, 82) Source(75, 66) + SourceIndex(0) +6 > [numberA3, ...robotAInfo] = robotA +7 > +8 > numberA3 +9 > , +10> ...robotAInfo +11> ] = robotA, +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(72, 1) Source(75, 1) + SourceIndex(0) +2 >Emitted(72, 4) Source(75, 4) + SourceIndex(0) +3 >Emitted(72, 5) Source(75, 5) + SourceIndex(0) +4 >Emitted(72, 6) Source(75, 10) + SourceIndex(0) +5 >Emitted(72, 10) Source(75, 10) + SourceIndex(0) +6 >Emitted(72, 29) Source(75, 44) + SourceIndex(0) +7 >Emitted(72, 31) Source(75, 11) + SourceIndex(0) +8 >Emitted(72, 47) Source(75, 19) + SourceIndex(0) +9 >Emitted(72, 49) Source(75, 21) + SourceIndex(0) +10>Emitted(72, 73) Source(75, 34) + SourceIndex(0) +11>Emitted(72, 75) Source(75, 46) + SourceIndex(0) +12>Emitted(72, 76) Source(75, 47) + SourceIndex(0) +13>Emitted(72, 79) Source(75, 50) + SourceIndex(0) +14>Emitted(72, 80) Source(75, 51) + SourceIndex(0) +15>Emitted(72, 82) Source(75, 53) + SourceIndex(0) +16>Emitted(72, 83) Source(75, 54) + SourceIndex(0) +17>Emitted(72, 86) Source(75, 57) + SourceIndex(0) +18>Emitted(72, 87) Source(75, 58) + SourceIndex(0) +19>Emitted(72, 89) Source(75, 60) + SourceIndex(0) +20>Emitted(72, 90) Source(75, 61) + SourceIndex(0) +21>Emitted(72, 92) Source(75, 63) + SourceIndex(0) +22>Emitted(72, 94) Source(75, 65) + SourceIndex(0) +23>Emitted(72, 95) Source(75, 66) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2222,49 +2284,49 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(65, 5) Source(76, 5) + SourceIndex(0) -2 >Emitted(65, 12) Source(76, 12) + SourceIndex(0) -3 >Emitted(65, 13) Source(76, 13) + SourceIndex(0) -4 >Emitted(65, 16) Source(76, 16) + SourceIndex(0) -5 >Emitted(65, 17) Source(76, 17) + SourceIndex(0) -6 >Emitted(65, 25) Source(76, 25) + SourceIndex(0) -7 >Emitted(65, 26) Source(76, 26) + SourceIndex(0) -8 >Emitted(65, 27) Source(76, 27) + SourceIndex(0) +1 >Emitted(73, 5) Source(76, 5) + SourceIndex(0) +2 >Emitted(73, 12) Source(76, 12) + SourceIndex(0) +3 >Emitted(73, 13) Source(76, 13) + SourceIndex(0) +4 >Emitted(73, 16) Source(76, 16) + SourceIndex(0) +5 >Emitted(73, 17) Source(76, 17) + SourceIndex(0) +6 >Emitted(73, 25) Source(76, 25) + SourceIndex(0) +7 >Emitted(73, 26) Source(76, 26) + SourceIndex(0) +8 >Emitted(73, 27) Source(76, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(66, 1) Source(77, 1) + SourceIndex(0) -2 >Emitted(66, 2) Source(77, 2) + SourceIndex(0) +1 >Emitted(74, 1) Source(77, 1) + SourceIndex(0) +2 >Emitted(74, 2) Source(77, 2) + SourceIndex(0) --- ->>>for (var _q = getRobot(), numberA3 = _q[0], robotAInfo = _q.slice(1), i = 0; i < 1; i++) { +>>>for (var _z = __read(getRobot()), numberA3 = _z[0], robotAInfo = _z.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^ -22> ^^ -23> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > 2 >for @@ -2272,46 +2334,46 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 4 > (let 5 > 6 > [numberA3, ...robotAInfo] = getRobot() -7 > -8 > numberA3 -9 > , -10> ...robotAInfo -11> ] = getRobot(), -12> i -13> = -14> 0 -15> ; -16> i -17> < -18> 1 -19> ; -20> i -21> ++ -22> ) -23> { -1->Emitted(67, 1) Source(78, 1) + SourceIndex(0) -2 >Emitted(67, 4) Source(78, 4) + SourceIndex(0) -3 >Emitted(67, 5) Source(78, 5) + SourceIndex(0) -4 >Emitted(67, 6) Source(78, 10) + SourceIndex(0) -5 >Emitted(67, 10) Source(78, 10) + SourceIndex(0) -6 >Emitted(67, 25) Source(78, 48) + SourceIndex(0) -7 >Emitted(67, 27) Source(78, 11) + SourceIndex(0) -8 >Emitted(67, 43) Source(78, 19) + SourceIndex(0) -9 >Emitted(67, 45) Source(78, 21) + SourceIndex(0) -10>Emitted(67, 69) Source(78, 34) + SourceIndex(0) -11>Emitted(67, 71) Source(78, 50) + SourceIndex(0) -12>Emitted(67, 72) Source(78, 51) + SourceIndex(0) -13>Emitted(67, 75) Source(78, 54) + SourceIndex(0) -14>Emitted(67, 76) Source(78, 55) + SourceIndex(0) -15>Emitted(67, 78) Source(78, 57) + SourceIndex(0) -16>Emitted(67, 79) Source(78, 58) + SourceIndex(0) -17>Emitted(67, 82) Source(78, 61) + SourceIndex(0) -18>Emitted(67, 83) Source(78, 62) + SourceIndex(0) -19>Emitted(67, 85) Source(78, 64) + SourceIndex(0) -20>Emitted(67, 86) Source(78, 65) + SourceIndex(0) -21>Emitted(67, 88) Source(78, 67) + SourceIndex(0) -22>Emitted(67, 90) Source(78, 69) + SourceIndex(0) -23>Emitted(67, 91) Source(78, 70) + SourceIndex(0) +7 > +8 > numberA3 +9 > , +10> ...robotAInfo +11> ] = getRobot(), +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(75, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(75, 4) Source(78, 4) + SourceIndex(0) +3 >Emitted(75, 5) Source(78, 5) + SourceIndex(0) +4 >Emitted(75, 6) Source(78, 10) + SourceIndex(0) +5 >Emitted(75, 10) Source(78, 10) + SourceIndex(0) +6 >Emitted(75, 33) Source(78, 48) + SourceIndex(0) +7 >Emitted(75, 35) Source(78, 11) + SourceIndex(0) +8 >Emitted(75, 51) Source(78, 19) + SourceIndex(0) +9 >Emitted(75, 53) Source(78, 21) + SourceIndex(0) +10>Emitted(75, 77) Source(78, 34) + SourceIndex(0) +11>Emitted(75, 79) Source(78, 50) + SourceIndex(0) +12>Emitted(75, 80) Source(78, 51) + SourceIndex(0) +13>Emitted(75, 83) Source(78, 54) + SourceIndex(0) +14>Emitted(75, 84) Source(78, 55) + SourceIndex(0) +15>Emitted(75, 86) Source(78, 57) + SourceIndex(0) +16>Emitted(75, 87) Source(78, 58) + SourceIndex(0) +17>Emitted(75, 90) Source(78, 61) + SourceIndex(0) +18>Emitted(75, 91) Source(78, 62) + SourceIndex(0) +19>Emitted(75, 93) Source(78, 64) + SourceIndex(0) +20>Emitted(75, 94) Source(78, 65) + SourceIndex(0) +21>Emitted(75, 96) Source(78, 67) + SourceIndex(0) +22>Emitted(75, 98) Source(78, 69) + SourceIndex(0) +23>Emitted(75, 99) Source(78, 70) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2331,14 +2393,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(68, 5) Source(79, 5) + SourceIndex(0) -2 >Emitted(68, 12) Source(79, 12) + SourceIndex(0) -3 >Emitted(68, 13) Source(79, 13) + SourceIndex(0) -4 >Emitted(68, 16) Source(79, 16) + SourceIndex(0) -5 >Emitted(68, 17) Source(79, 17) + SourceIndex(0) -6 >Emitted(68, 25) Source(79, 25) + SourceIndex(0) -7 >Emitted(68, 26) Source(79, 26) + SourceIndex(0) -8 >Emitted(68, 27) Source(79, 27) + SourceIndex(0) +1 >Emitted(76, 5) Source(79, 5) + SourceIndex(0) +2 >Emitted(76, 12) Source(79, 12) + SourceIndex(0) +3 >Emitted(76, 13) Source(79, 13) + SourceIndex(0) +4 >Emitted(76, 16) Source(79, 16) + SourceIndex(0) +5 >Emitted(76, 17) Source(79, 17) + SourceIndex(0) +6 >Emitted(76, 25) Source(79, 25) + SourceIndex(0) +7 >Emitted(76, 26) Source(79, 26) + SourceIndex(0) +8 >Emitted(76, 27) Source(79, 27) + SourceIndex(0) --- >>>} 1 > @@ -2347,10 +2409,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(69, 1) Source(80, 1) + SourceIndex(0) -2 >Emitted(69, 2) Source(80, 2) + SourceIndex(0) +1 >Emitted(77, 1) Source(80, 1) + SourceIndex(0) +2 >Emitted(77, 2) Source(80, 2) + SourceIndex(0) --- ->>>for (var _r = [2, "trimmer", "trimming"], numberA3 = _r[0], robotAInfo = _r.slice(1), i = 0; i < 1; i++) { +>>>for (var _0 = [2, "trimmer", "trimming"], numberA3 = _0[0], robotAInfo = _0.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -2398,29 +2460,29 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 21> ++ 22> ) 23> { -1->Emitted(70, 1) Source(81, 1) + SourceIndex(0) -2 >Emitted(70, 4) Source(81, 4) + SourceIndex(0) -3 >Emitted(70, 5) Source(81, 5) + SourceIndex(0) -4 >Emitted(70, 6) Source(81, 10) + SourceIndex(0) -5 >Emitted(70, 10) Source(81, 10) + SourceIndex(0) -6 >Emitted(70, 41) Source(81, 64) + SourceIndex(0) -7 >Emitted(70, 43) Source(81, 11) + SourceIndex(0) -8 >Emitted(70, 59) Source(81, 19) + SourceIndex(0) -9 >Emitted(70, 61) Source(81, 21) + SourceIndex(0) -10>Emitted(70, 85) Source(81, 34) + SourceIndex(0) -11>Emitted(70, 87) Source(81, 66) + SourceIndex(0) -12>Emitted(70, 88) Source(81, 67) + SourceIndex(0) -13>Emitted(70, 91) Source(81, 70) + SourceIndex(0) -14>Emitted(70, 92) Source(81, 71) + SourceIndex(0) -15>Emitted(70, 94) Source(81, 73) + SourceIndex(0) -16>Emitted(70, 95) Source(81, 74) + SourceIndex(0) -17>Emitted(70, 98) Source(81, 77) + SourceIndex(0) -18>Emitted(70, 99) Source(81, 78) + SourceIndex(0) -19>Emitted(70, 101) Source(81, 80) + SourceIndex(0) -20>Emitted(70, 102) Source(81, 81) + SourceIndex(0) -21>Emitted(70, 104) Source(81, 83) + SourceIndex(0) -22>Emitted(70, 106) Source(81, 85) + SourceIndex(0) -23>Emitted(70, 107) Source(81, 86) + SourceIndex(0) +1->Emitted(78, 1) Source(81, 1) + SourceIndex(0) +2 >Emitted(78, 4) Source(81, 4) + SourceIndex(0) +3 >Emitted(78, 5) Source(81, 5) + SourceIndex(0) +4 >Emitted(78, 6) Source(81, 10) + SourceIndex(0) +5 >Emitted(78, 10) Source(81, 10) + SourceIndex(0) +6 >Emitted(78, 41) Source(81, 64) + SourceIndex(0) +7 >Emitted(78, 43) Source(81, 11) + SourceIndex(0) +8 >Emitted(78, 59) Source(81, 19) + SourceIndex(0) +9 >Emitted(78, 61) Source(81, 21) + SourceIndex(0) +10>Emitted(78, 85) Source(81, 34) + SourceIndex(0) +11>Emitted(78, 87) Source(81, 66) + SourceIndex(0) +12>Emitted(78, 88) Source(81, 67) + SourceIndex(0) +13>Emitted(78, 91) Source(81, 70) + SourceIndex(0) +14>Emitted(78, 92) Source(81, 71) + SourceIndex(0) +15>Emitted(78, 94) Source(81, 73) + SourceIndex(0) +16>Emitted(78, 95) Source(81, 74) + SourceIndex(0) +17>Emitted(78, 98) Source(81, 77) + SourceIndex(0) +18>Emitted(78, 99) Source(81, 78) + SourceIndex(0) +19>Emitted(78, 101) Source(81, 80) + SourceIndex(0) +20>Emitted(78, 102) Source(81, 81) + SourceIndex(0) +21>Emitted(78, 104) Source(81, 83) + SourceIndex(0) +22>Emitted(78, 106) Source(81, 85) + SourceIndex(0) +23>Emitted(78, 107) Source(81, 86) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2440,84 +2502,90 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(71, 5) Source(82, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(82, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(82, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(82, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(82, 17) + SourceIndex(0) -6 >Emitted(71, 25) Source(82, 25) + SourceIndex(0) -7 >Emitted(71, 26) Source(82, 26) + SourceIndex(0) -8 >Emitted(71, 27) Source(82, 27) + SourceIndex(0) +1 >Emitted(79, 5) Source(82, 5) + SourceIndex(0) +2 >Emitted(79, 12) Source(82, 12) + SourceIndex(0) +3 >Emitted(79, 13) Source(82, 13) + SourceIndex(0) +4 >Emitted(79, 16) Source(82, 16) + SourceIndex(0) +5 >Emitted(79, 17) Source(82, 17) + SourceIndex(0) +6 >Emitted(79, 25) Source(82, 25) + SourceIndex(0) +7 >Emitted(79, 26) Source(82, 26) + SourceIndex(0) +8 >Emitted(79, 27) Source(82, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(72, 1) Source(83, 1) + SourceIndex(0) -2 >Emitted(72, 2) Source(83, 2) + SourceIndex(0) +1 >Emitted(80, 1) Source(83, 1) + SourceIndex(0) +2 >Emitted(80, 2) Source(83, 2) + SourceIndex(0) --- ->>>for (var multiRobotAInfo = multiRobotA.slice(0), i = 0; i < 1; i++) { +>>>for (var _1 = __read(multiRobotA), multiRobotAInfo = _1.slice(0), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > ...multiRobotAInfo -7 > ] = multiRobotA, -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(73, 1) Source(84, 1) + SourceIndex(0) -2 >Emitted(73, 4) Source(84, 4) + SourceIndex(0) -3 >Emitted(73, 5) Source(84, 5) + SourceIndex(0) -4 >Emitted(73, 6) Source(84, 11) + SourceIndex(0) -5 >Emitted(73, 10) Source(84, 11) + SourceIndex(0) -6 >Emitted(73, 48) Source(84, 29) + SourceIndex(0) -7 >Emitted(73, 50) Source(84, 46) + SourceIndex(0) -8 >Emitted(73, 51) Source(84, 47) + SourceIndex(0) -9 >Emitted(73, 54) Source(84, 50) + SourceIndex(0) -10>Emitted(73, 55) Source(84, 51) + SourceIndex(0) -11>Emitted(73, 57) Source(84, 53) + SourceIndex(0) -12>Emitted(73, 58) Source(84, 54) + SourceIndex(0) -13>Emitted(73, 61) Source(84, 57) + SourceIndex(0) -14>Emitted(73, 62) Source(84, 58) + SourceIndex(0) -15>Emitted(73, 64) Source(84, 60) + SourceIndex(0) -16>Emitted(73, 65) Source(84, 61) + SourceIndex(0) -17>Emitted(73, 67) Source(84, 63) + SourceIndex(0) -18>Emitted(73, 69) Source(84, 65) + SourceIndex(0) -19>Emitted(73, 70) Source(84, 66) + SourceIndex(0) +6 > [...multiRobotAInfo] = multiRobotA +7 > +8 > ...multiRobotAInfo +9 > ] = multiRobotA, +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(81, 1) Source(84, 1) + SourceIndex(0) +2 >Emitted(81, 4) Source(84, 4) + SourceIndex(0) +3 >Emitted(81, 5) Source(84, 5) + SourceIndex(0) +4 >Emitted(81, 6) Source(84, 10) + SourceIndex(0) +5 >Emitted(81, 10) Source(84, 10) + SourceIndex(0) +6 >Emitted(81, 34) Source(84, 44) + SourceIndex(0) +7 >Emitted(81, 36) Source(84, 11) + SourceIndex(0) +8 >Emitted(81, 65) Source(84, 29) + SourceIndex(0) +9 >Emitted(81, 67) Source(84, 46) + SourceIndex(0) +10>Emitted(81, 68) Source(84, 47) + SourceIndex(0) +11>Emitted(81, 71) Source(84, 50) + SourceIndex(0) +12>Emitted(81, 72) Source(84, 51) + SourceIndex(0) +13>Emitted(81, 74) Source(84, 53) + SourceIndex(0) +14>Emitted(81, 75) Source(84, 54) + SourceIndex(0) +15>Emitted(81, 78) Source(84, 57) + SourceIndex(0) +16>Emitted(81, 79) Source(84, 58) + SourceIndex(0) +17>Emitted(81, 81) Source(84, 60) + SourceIndex(0) +18>Emitted(81, 82) Source(84, 61) + SourceIndex(0) +19>Emitted(81, 84) Source(84, 63) + SourceIndex(0) +20>Emitted(81, 86) Source(84, 65) + SourceIndex(0) +21>Emitted(81, 87) Source(84, 66) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2537,84 +2605,90 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(74, 5) Source(85, 5) + SourceIndex(0) -2 >Emitted(74, 12) Source(85, 12) + SourceIndex(0) -3 >Emitted(74, 13) Source(85, 13) + SourceIndex(0) -4 >Emitted(74, 16) Source(85, 16) + SourceIndex(0) -5 >Emitted(74, 17) Source(85, 17) + SourceIndex(0) -6 >Emitted(74, 32) Source(85, 32) + SourceIndex(0) -7 >Emitted(74, 33) Source(85, 33) + SourceIndex(0) -8 >Emitted(74, 34) Source(85, 34) + SourceIndex(0) +1 >Emitted(82, 5) Source(85, 5) + SourceIndex(0) +2 >Emitted(82, 12) Source(85, 12) + SourceIndex(0) +3 >Emitted(82, 13) Source(85, 13) + SourceIndex(0) +4 >Emitted(82, 16) Source(85, 16) + SourceIndex(0) +5 >Emitted(82, 17) Source(85, 17) + SourceIndex(0) +6 >Emitted(82, 32) Source(85, 32) + SourceIndex(0) +7 >Emitted(82, 33) Source(85, 33) + SourceIndex(0) +8 >Emitted(82, 34) Source(85, 34) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(75, 1) Source(86, 1) + SourceIndex(0) -2 >Emitted(75, 2) Source(86, 2) + SourceIndex(0) +1 >Emitted(83, 1) Source(86, 1) + SourceIndex(0) +2 >Emitted(83, 2) Source(86, 2) + SourceIndex(0) --- ->>>for (var multiRobotAInfo = getMultiRobot().slice(0), i = 0; i < 1; i++) { +>>>for (var _2 = __read(getMultiRobot()), multiRobotAInfo = _2.slice(0), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -9 > ^^^ -10> ^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^ -18> ^^ -19> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^ +20> ^^ +21> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > ...multiRobotAInfo -7 > ] = getMultiRobot(), -8 > i -9 > = -10> 0 -11> ; -12> i -13> < -14> 1 -15> ; -16> i -17> ++ -18> ) -19> { -1->Emitted(76, 1) Source(87, 1) + SourceIndex(0) -2 >Emitted(76, 4) Source(87, 4) + SourceIndex(0) -3 >Emitted(76, 5) Source(87, 5) + SourceIndex(0) -4 >Emitted(76, 6) Source(87, 11) + SourceIndex(0) -5 >Emitted(76, 10) Source(87, 11) + SourceIndex(0) -6 >Emitted(76, 52) Source(87, 29) + SourceIndex(0) -7 >Emitted(76, 54) Source(87, 50) + SourceIndex(0) -8 >Emitted(76, 55) Source(87, 51) + SourceIndex(0) -9 >Emitted(76, 58) Source(87, 54) + SourceIndex(0) -10>Emitted(76, 59) Source(87, 55) + SourceIndex(0) -11>Emitted(76, 61) Source(87, 57) + SourceIndex(0) -12>Emitted(76, 62) Source(87, 58) + SourceIndex(0) -13>Emitted(76, 65) Source(87, 61) + SourceIndex(0) -14>Emitted(76, 66) Source(87, 62) + SourceIndex(0) -15>Emitted(76, 68) Source(87, 64) + SourceIndex(0) -16>Emitted(76, 69) Source(87, 65) + SourceIndex(0) -17>Emitted(76, 71) Source(87, 67) + SourceIndex(0) -18>Emitted(76, 73) Source(87, 69) + SourceIndex(0) -19>Emitted(76, 74) Source(87, 70) + SourceIndex(0) +6 > [...multiRobotAInfo] = getMultiRobot() +7 > +8 > ...multiRobotAInfo +9 > ] = getMultiRobot(), +10> i +11> = +12> 0 +13> ; +14> i +15> < +16> 1 +17> ; +18> i +19> ++ +20> ) +21> { +1->Emitted(84, 1) Source(87, 1) + SourceIndex(0) +2 >Emitted(84, 4) Source(87, 4) + SourceIndex(0) +3 >Emitted(84, 5) Source(87, 5) + SourceIndex(0) +4 >Emitted(84, 6) Source(87, 10) + SourceIndex(0) +5 >Emitted(84, 10) Source(87, 10) + SourceIndex(0) +6 >Emitted(84, 38) Source(87, 48) + SourceIndex(0) +7 >Emitted(84, 40) Source(87, 11) + SourceIndex(0) +8 >Emitted(84, 69) Source(87, 29) + SourceIndex(0) +9 >Emitted(84, 71) Source(87, 50) + SourceIndex(0) +10>Emitted(84, 72) Source(87, 51) + SourceIndex(0) +11>Emitted(84, 75) Source(87, 54) + SourceIndex(0) +12>Emitted(84, 76) Source(87, 55) + SourceIndex(0) +13>Emitted(84, 78) Source(87, 57) + SourceIndex(0) +14>Emitted(84, 79) Source(87, 58) + SourceIndex(0) +15>Emitted(84, 82) Source(87, 61) + SourceIndex(0) +16>Emitted(84, 83) Source(87, 62) + SourceIndex(0) +17>Emitted(84, 85) Source(87, 64) + SourceIndex(0) +18>Emitted(84, 86) Source(87, 65) + SourceIndex(0) +19>Emitted(84, 88) Source(87, 67) + SourceIndex(0) +20>Emitted(84, 90) Source(87, 69) + SourceIndex(0) +21>Emitted(84, 91) Source(87, 70) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2634,14 +2708,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(77, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(77, 12) Source(88, 12) + SourceIndex(0) -3 >Emitted(77, 13) Source(88, 13) + SourceIndex(0) -4 >Emitted(77, 16) Source(88, 16) + SourceIndex(0) -5 >Emitted(77, 17) Source(88, 17) + SourceIndex(0) -6 >Emitted(77, 32) Source(88, 32) + SourceIndex(0) -7 >Emitted(77, 33) Source(88, 33) + SourceIndex(0) -8 >Emitted(77, 34) Source(88, 34) + SourceIndex(0) +1 >Emitted(85, 5) Source(88, 5) + SourceIndex(0) +2 >Emitted(85, 12) Source(88, 12) + SourceIndex(0) +3 >Emitted(85, 13) Source(88, 13) + SourceIndex(0) +4 >Emitted(85, 16) Source(88, 16) + SourceIndex(0) +5 >Emitted(85, 17) Source(88, 17) + SourceIndex(0) +6 >Emitted(85, 32) Source(88, 32) + SourceIndex(0) +7 >Emitted(85, 33) Source(88, 33) + SourceIndex(0) +8 >Emitted(85, 34) Source(88, 34) + SourceIndex(0) --- >>>} 1 > @@ -2650,8 +2724,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(78, 1) Source(89, 1) + SourceIndex(0) -2 >Emitted(78, 2) Source(89, 2) + SourceIndex(0) +1 >Emitted(86, 1) Source(89, 1) + SourceIndex(0) +2 >Emitted(86, 2) Source(89, 2) + SourceIndex(0) --- >>>for (var multiRobotAInfo = ["trimmer", ["trimming", "edging"]].slice(0), i = 0; i < 1; i++) { 1-> @@ -2693,25 +2767,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 17> ++ 18> ) 19> { -1->Emitted(79, 1) Source(90, 1) + SourceIndex(0) -2 >Emitted(79, 4) Source(90, 4) + SourceIndex(0) -3 >Emitted(79, 5) Source(90, 5) + SourceIndex(0) -4 >Emitted(79, 6) Source(90, 11) + SourceIndex(0) -5 >Emitted(79, 10) Source(90, 11) + SourceIndex(0) -6 >Emitted(79, 72) Source(90, 29) + SourceIndex(0) -7 >Emitted(79, 74) Source(90, 70) + SourceIndex(0) -8 >Emitted(79, 75) Source(90, 71) + SourceIndex(0) -9 >Emitted(79, 78) Source(90, 74) + SourceIndex(0) -10>Emitted(79, 79) Source(90, 75) + SourceIndex(0) -11>Emitted(79, 81) Source(90, 77) + SourceIndex(0) -12>Emitted(79, 82) Source(90, 78) + SourceIndex(0) -13>Emitted(79, 85) Source(90, 81) + SourceIndex(0) -14>Emitted(79, 86) Source(90, 82) + SourceIndex(0) -15>Emitted(79, 88) Source(90, 84) + SourceIndex(0) -16>Emitted(79, 89) Source(90, 85) + SourceIndex(0) -17>Emitted(79, 91) Source(90, 87) + SourceIndex(0) -18>Emitted(79, 93) Source(90, 89) + SourceIndex(0) -19>Emitted(79, 94) Source(90, 90) + SourceIndex(0) +1->Emitted(87, 1) Source(90, 1) + SourceIndex(0) +2 >Emitted(87, 4) Source(90, 4) + SourceIndex(0) +3 >Emitted(87, 5) Source(90, 5) + SourceIndex(0) +4 >Emitted(87, 6) Source(90, 11) + SourceIndex(0) +5 >Emitted(87, 10) Source(90, 11) + SourceIndex(0) +6 >Emitted(87, 72) Source(90, 29) + SourceIndex(0) +7 >Emitted(87, 74) Source(90, 70) + SourceIndex(0) +8 >Emitted(87, 75) Source(90, 71) + SourceIndex(0) +9 >Emitted(87, 78) Source(90, 74) + SourceIndex(0) +10>Emitted(87, 79) Source(90, 75) + SourceIndex(0) +11>Emitted(87, 81) Source(90, 77) + SourceIndex(0) +12>Emitted(87, 82) Source(90, 78) + SourceIndex(0) +13>Emitted(87, 85) Source(90, 81) + SourceIndex(0) +14>Emitted(87, 86) Source(90, 82) + SourceIndex(0) +15>Emitted(87, 88) Source(90, 84) + SourceIndex(0) +16>Emitted(87, 89) Source(90, 85) + SourceIndex(0) +17>Emitted(87, 91) Source(90, 87) + SourceIndex(0) +18>Emitted(87, 93) Source(90, 89) + SourceIndex(0) +19>Emitted(87, 94) Source(90, 90) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2731,14 +2805,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(80, 5) Source(91, 5) + SourceIndex(0) -2 >Emitted(80, 12) Source(91, 12) + SourceIndex(0) -3 >Emitted(80, 13) Source(91, 13) + SourceIndex(0) -4 >Emitted(80, 16) Source(91, 16) + SourceIndex(0) -5 >Emitted(80, 17) Source(91, 17) + SourceIndex(0) -6 >Emitted(80, 32) Source(91, 32) + SourceIndex(0) -7 >Emitted(80, 33) Source(91, 33) + SourceIndex(0) -8 >Emitted(80, 34) Source(91, 34) + SourceIndex(0) +1 >Emitted(88, 5) Source(91, 5) + SourceIndex(0) +2 >Emitted(88, 12) Source(91, 12) + SourceIndex(0) +3 >Emitted(88, 13) Source(91, 13) + SourceIndex(0) +4 >Emitted(88, 16) Source(91, 16) + SourceIndex(0) +5 >Emitted(88, 17) Source(91, 17) + SourceIndex(0) +6 >Emitted(88, 32) Source(91, 32) + SourceIndex(0) +7 >Emitted(88, 33) Source(91, 33) + SourceIndex(0) +8 >Emitted(88, 34) Source(91, 34) + SourceIndex(0) --- >>>} 1 > @@ -2747,7 +2821,7 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(81, 1) Source(92, 1) + SourceIndex(0) -2 >Emitted(81, 2) Source(92, 2) + SourceIndex(0) +1 >Emitted(89, 1) Source(92, 1) + SourceIndex(0) +2 >Emitted(89, 2) Source(92, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js index 8030ead0bbaf5..24b262779fc73 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js @@ -99,6 +99,14 @@ for ([...multiRobotAInfo] = ["trimmer", ["trimming", "edging" } //// [sourceMapValidationDestructuringForArrayBindingPattern2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function getRobot() { return robotA; @@ -113,77 +121,77 @@ var numberB, nameB; var numberA2, nameA2, skillA2, nameMA; var numberA3, robotAInfo, multiRobotAInfo; var i; -for (nameA = robotA[1], robotA, i = 0; i < 1; i++) { +for (_a = __read(robotA, 2), nameA = _a[1], robotA, i = 0; i < 1; i++) { console.log(nameA); } -for (_a = getRobot(), nameA = _a[1], _a, i = 0; i < 1; i++) { +for (_b = getRobot(), _c = __read(_b, 2), nameA = _c[1], _b, i = 0; i < 1; i++) { console.log(nameA); } -for (_b = [2, "trimmer", "trimming"], nameA = _b[1], _b, i = 0; i < 1; i++) { +for (_d = [2, "trimmer", "trimming"], _e = __read(_d, 2), nameA = _e[1], _d, i = 0; i < 1; i++) { console.log(nameA); } -for (_c = multiRobotA[1], primarySkillA = _c[0], secondarySkillA = _c[1], multiRobotA, i = 0; i < 1; i++) { +for (_f = __read(multiRobotA, 2), _g = __read(_f[1], 2), primarySkillA = _g[0], secondarySkillA = _g[1], multiRobotA, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (_d = getMultiRobot(), _e = _d[1], primarySkillA = _e[0], secondarySkillA = _e[1], _d, i = 0; i < 1; i++) { +for (_h = getMultiRobot(), _j = __read(_h, 2), _k = __read(_j[1], 2), primarySkillA = _k[0], secondarySkillA = _k[1], _h, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (_f = ["trimmer", ["trimming", "edging"]], _g = _f[1], primarySkillA = _g[0], secondarySkillA = _g[1], _f, i = 0; i < 1; i++) { +for (_l = ["trimmer", ["trimming", "edging"]], _m = __read(_l, 2), _o = __read(_m[1], 2), primarySkillA = _o[0], secondarySkillA = _o[1], _l, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (numberB = robotA[0], robotA, i = 0; i < 1; i++) { +for (_p = __read(robotA, 1), numberB = _p[0], robotA, i = 0; i < 1; i++) { console.log(numberB); } -for (_h = getRobot(), numberB = _h[0], _h, i = 0; i < 1; i++) { +for (_q = getRobot(), _r = __read(_q, 1), numberB = _r[0], _q, i = 0; i < 1; i++) { console.log(numberB); } -for (_j = [2, "trimmer", "trimming"], numberB = _j[0], _j, i = 0; i < 1; i++) { +for (_s = [2, "trimmer", "trimming"], _t = __read(_s, 1), numberB = _t[0], _s, i = 0; i < 1; i++) { console.log(numberB); } -for (nameB = multiRobotA[0], multiRobotA, i = 0; i < 1; i++) { +for (_u = __read(multiRobotA, 1), nameB = _u[0], multiRobotA, i = 0; i < 1; i++) { console.log(nameB); } -for (_k = getMultiRobot(), nameB = _k[0], _k, i = 0; i < 1; i++) { +for (_v = getMultiRobot(), _w = __read(_v, 1), nameB = _w[0], _v, i = 0; i < 1; i++) { console.log(nameB); } -for (_l = ["trimmer", ["trimming", "edging"]], nameB = _l[0], _l, i = 0; i < 1; i++) { +for (_x = ["trimmer", ["trimming", "edging"]], _y = __read(_x, 1), nameB = _y[0], _x, i = 0; i < 1; i++) { console.log(nameB); } -for (numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2], robotA, i = 0; i < 1; i++) { +for (_z = __read(robotA, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2], robotA, i = 0; i < 1; i++) { console.log(nameA2); } -for (_m = getRobot(), numberA2 = _m[0], nameA2 = _m[1], skillA2 = _m[2], _m, i = 0; i < 1; i++) { +for (_0 = getRobot(), _1 = __read(_0, 3), numberA2 = _1[0], nameA2 = _1[1], skillA2 = _1[2], _0, i = 0; i < 1; i++) { console.log(nameA2); } -for (_o = [2, "trimmer", "trimming"], numberA2 = _o[0], nameA2 = _o[1], skillA2 = _o[2], _o, i = 0; i < 1; i++) { +for (_2 = [2, "trimmer", "trimming"], _3 = __read(_2, 3), numberA2 = _3[0], nameA2 = _3[1], skillA2 = _3[2], _2, i = 0; i < 1; i++) { console.log(nameA2); } -for (nameMA = multiRobotA[0], _p = multiRobotA[1], primarySkillA = _p[0], secondarySkillA = _p[1], multiRobotA, i = 0; i < 1; i++) { +for (_4 = __read(multiRobotA, 2), nameMA = _4[0], _5 = __read(_4[1], 2), primarySkillA = _5[0], secondarySkillA = _5[1], multiRobotA, i = 0; i < 1; i++) { console.log(nameMA); } -for (_q = getMultiRobot(), nameMA = _q[0], _r = _q[1], primarySkillA = _r[0], secondarySkillA = _r[1], _q, i = 0; i < 1; i++) { +for (_6 = getMultiRobot(), _7 = __read(_6, 2), nameMA = _7[0], _8 = __read(_7[1], 2), primarySkillA = _8[0], secondarySkillA = _8[1], _6, i = 0; i < 1; i++) { console.log(nameMA); } -for (_s = ["trimmer", ["trimming", "edging"]], nameMA = _s[0], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1], _s, i = 0; i < 1; i++) { +for (_9 = ["trimmer", ["trimming", "edging"]], _10 = __read(_9, 2), nameMA = _10[0], _11 = __read(_10[1], 2), primarySkillA = _11[0], secondarySkillA = _11[1], _9, i = 0; i < 1; i++) { console.log(nameMA); } -for (numberA3 = robotA[0], robotAInfo = robotA.slice(1), robotA, i = 0; i < 1; i++) { +for (_12 = __read(robotA), numberA3 = _12[0], robotAInfo = _12.slice(1), robotA, i = 0; i < 1; i++) { console.log(numberA3); } -for (_u = getRobot(), numberA3 = _u[0], robotAInfo = _u.slice(1), _u, i = 0; i < 1; i++) { +for (_13 = getRobot(), _14 = __read(_13), numberA3 = _14[0], robotAInfo = _14.slice(1), _13, i = 0; i < 1; i++) { console.log(numberA3); } -for (_v = [2, "trimmer", "trimming"], numberA3 = _v[0], robotAInfo = _v.slice(1), _v, i = 0; i < 1; i++) { +for (_15 = [2, "trimmer", "trimming"], _16 = __read(_15), numberA3 = _16[0], robotAInfo = _16.slice(1), _15, i = 0; i < 1; i++) { console.log(numberA3); } -for (multiRobotAInfo = multiRobotA.slice(0), multiRobotA, i = 0; i < 1; i++) { +for (_17 = __read(multiRobotA), multiRobotAInfo = _17.slice(0), multiRobotA, i = 0; i < 1; i++) { console.log(multiRobotAInfo); } -for (_w = getMultiRobot(), multiRobotAInfo = _w.slice(0), _w, i = 0; i < 1; i++) { +for (_18 = getMultiRobot(), _19 = __read(_18), multiRobotAInfo = _19.slice(0), _18, i = 0; i < 1; i++) { console.log(multiRobotAInfo); } -for (_x = ["trimmer", ["trimming", "edging"]], multiRobotAInfo = _x.slice(0), _x, i = 0; i < 1; i++) { +for (_20 = ["trimmer", ["trimming", "edging"]], _21 = __read(_20), multiRobotAInfo = _21.slice(0), _20, i = 0; i < 1; i++) { console.log(multiRobotAInfo); } -var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21; //# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js.map index 4e060bd1d9ac4..c7379f4640eb9 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForArrayBindingPattern2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPattern2.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AACtG,IAAI,CAAS,CAAC;AAEd,GAAG,CAAC,CAAI,iBAAK,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,eAAsB,EAAnB,aAAK,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAsC,EAAnC,aAAK,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAI,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAK,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,oBAAsD,EAAnD,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,wCAA0E,EAAvE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAE,mBAAO,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,eAAsB,EAArB,eAAO,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAsC,EAArC,eAAO,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAE,sBAAK,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,oBAAyB,EAAxB,aAAK,MAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,wCAA6C,EAA5C,aAAK,MAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAE,oBAAQ,EAAE,kBAAM,EAAE,mBAAO,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,eAAwC,EAAvC,gBAAQ,EAAE,cAAM,EAAE,eAAO,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAwD,EAAvD,gBAAQ,EAAE,cAAM,EAAE,eAAO,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAE,uBAAM,EAAE,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAK,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,oBAA4D,EAA3D,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,wCAAgF,EAA/E,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAE,oBAAQ,EAAE,4BAAa,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,eAAsC,EAArC,gBAAQ,EAAE,wBAAa,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,+BAA6D,EAA5D,gBAAQ,EAAE,wBAAa,MAAuC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAE,sCAAkB,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAC,oBAAsC,EAArC,6BAAkB,MAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAC,wCAA6E,EAA5E,6BAAkB,MAA4D,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPattern2.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AACtG,IAAI,CAAS,CAAC;AAEd,GAAG,CAAC,CAAC,sBAAkB,EAAf,aAAK,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,eAAsB,EAAtB,kBAAsB,EAAnB,aAAK,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAsC,EAAtC,kBAAsC,EAAnC,aAAK,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,2BAAkD,EAA/C,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAK,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,oBAAsD,EAAtD,kBAAsD,EAAnD,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,wCAA0E,EAA1E,kBAA0E,EAAvE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAC,sBAAkB,EAAjB,eAAO,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,eAAsB,EAAtB,kBAAsB,EAArB,eAAO,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAsC,EAAtC,kBAAsC,EAArC,eAAO,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,2BAAqB,EAApB,aAAK,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,oBAAyB,EAAzB,kBAAyB,EAAxB,aAAK,MAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,wCAA6C,EAA7C,kBAA6C,EAA5C,aAAK,MAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAC,sBAAoC,EAAnC,gBAAQ,EAAE,cAAM,EAAE,eAAO,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,eAAwC,EAAxC,kBAAwC,EAAvC,gBAAQ,EAAE,cAAM,EAAE,eAAO,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,+BAAwD,EAAxD,kBAAwD,EAAvD,gBAAQ,EAAE,cAAM,EAAE,eAAO,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,2BAAwD,EAAvD,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,EAAK,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,oBAA4D,EAA5D,kBAA4D,EAA3D,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,MAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,wCAAgF,EAAhF,mBAAgF,EAA/E,eAAM,EAAE,uBAAgC,EAA/B,sBAAa,EAAE,wBAAe,MAA0C,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAC,oBAAkC,EAAjC,iBAAQ,EAAE,yBAAa,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gBAAsC,EAAtC,iBAAsC,EAArC,iBAAQ,EAAE,yBAAa,OAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gCAA6D,EAA7D,iBAA6D,EAA5D,iBAAQ,EAAE,yBAAa,OAAuC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,yBAAkC,EAAjC,8BAAkB,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAC,qBAAsC,EAAtC,iBAAsC,EAArC,8BAAkB,OAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AACD,GAAG,CAAC,CAAC,yCAA6E,EAA7E,iBAA6E,EAA5E,8BAAkB,OAA4D,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACpG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.sourcemap.txt index 9b6f6146cadd2..9cb592cac49f5 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringForArrayBindingPattern2.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPattern2.js sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -39,25 +47,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>function getRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(2, 1) Source(8, 1) + SourceIndex(0) +1 >Emitted(10, 1) Source(8, 1) + SourceIndex(0) --- >>> return robotA; 1->^^^^ @@ -71,11 +79,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 3 > 4 > robotA 5 > ; -1->Emitted(3, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(3, 12) Source(9, 12) + SourceIndex(0) -4 >Emitted(3, 18) Source(9, 18) + SourceIndex(0) -5 >Emitted(3, 19) Source(9, 19) + SourceIndex(0) +1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(11, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(11, 19) Source(9, 19) + SourceIndex(0) --- >>>} 1 > @@ -84,8 +92,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(10, 2) + SourceIndex(0) +1 >Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(10, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -119,20 +127,20 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 12> ] 13> ] 14> ; -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 16) Source(12, 16) + SourceIndex(0) -4 >Emitted(5, 19) Source(12, 38) + SourceIndex(0) -5 >Emitted(5, 20) Source(12, 39) + SourceIndex(0) -6 >Emitted(5, 27) Source(12, 46) + SourceIndex(0) -7 >Emitted(5, 29) Source(12, 48) + SourceIndex(0) -8 >Emitted(5, 30) Source(12, 49) + SourceIndex(0) -9 >Emitted(5, 38) Source(12, 57) + SourceIndex(0) -10>Emitted(5, 40) Source(12, 59) + SourceIndex(0) -11>Emitted(5, 42) Source(12, 61) + SourceIndex(0) -12>Emitted(5, 43) Source(12, 62) + SourceIndex(0) -13>Emitted(5, 44) Source(12, 63) + SourceIndex(0) -14>Emitted(5, 45) Source(12, 64) + SourceIndex(0) +1->Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(12, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(12, 38) + SourceIndex(0) +5 >Emitted(13, 20) Source(12, 39) + SourceIndex(0) +6 >Emitted(13, 27) Source(12, 46) + SourceIndex(0) +7 >Emitted(13, 29) Source(12, 48) + SourceIndex(0) +8 >Emitted(13, 30) Source(12, 49) + SourceIndex(0) +9 >Emitted(13, 38) Source(12, 57) + SourceIndex(0) +10>Emitted(13, 40) Source(12, 59) + SourceIndex(0) +11>Emitted(13, 42) Source(12, 61) + SourceIndex(0) +12>Emitted(13, 43) Source(12, 62) + SourceIndex(0) +13>Emitted(13, 44) Source(12, 63) + SourceIndex(0) +14>Emitted(13, 45) Source(12, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -164,27 +172,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 12> ] 13> ] 14> ; -1->Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 16) Source(13, 16) + SourceIndex(0) -4 >Emitted(6, 19) Source(13, 38) + SourceIndex(0) -5 >Emitted(6, 20) Source(13, 39) + SourceIndex(0) -6 >Emitted(6, 29) Source(13, 48) + SourceIndex(0) -7 >Emitted(6, 31) Source(13, 50) + SourceIndex(0) -8 >Emitted(6, 32) Source(13, 51) + SourceIndex(0) -9 >Emitted(6, 42) Source(13, 61) + SourceIndex(0) -10>Emitted(6, 44) Source(13, 63) + SourceIndex(0) -11>Emitted(6, 52) Source(13, 71) + SourceIndex(0) -12>Emitted(6, 53) Source(13, 72) + SourceIndex(0) -13>Emitted(6, 54) Source(13, 73) + SourceIndex(0) -14>Emitted(6, 55) Source(13, 74) + SourceIndex(0) +1->Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 16) Source(13, 16) + SourceIndex(0) +4 >Emitted(14, 19) Source(13, 38) + SourceIndex(0) +5 >Emitted(14, 20) Source(13, 39) + SourceIndex(0) +6 >Emitted(14, 29) Source(13, 48) + SourceIndex(0) +7 >Emitted(14, 31) Source(13, 50) + SourceIndex(0) +8 >Emitted(14, 32) Source(13, 51) + SourceIndex(0) +9 >Emitted(14, 42) Source(13, 61) + SourceIndex(0) +10>Emitted(14, 44) Source(13, 63) + SourceIndex(0) +11>Emitted(14, 52) Source(13, 71) + SourceIndex(0) +12>Emitted(14, 53) Source(13, 72) + SourceIndex(0) +13>Emitted(14, 54) Source(13, 73) + SourceIndex(0) +14>Emitted(14, 55) Source(13, 74) + SourceIndex(0) --- >>>function getMultiRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(0) --- >>> return multiRobotA; 1->^^^^ @@ -198,11 +206,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 3 > 4 > multiRobotA 5 > ; -1->Emitted(8, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(15, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(15, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(15, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(15, 24) + SourceIndex(0) +1->Emitted(16, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(15, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(15, 12) + SourceIndex(0) +4 >Emitted(16, 23) Source(15, 23) + SourceIndex(0) +5 >Emitted(16, 24) Source(15, 24) + SourceIndex(0) --- >>>} 1 > @@ -211,8 +219,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(16, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(16, 2) + SourceIndex(0) --- >>>var nameA, primarySkillA, secondarySkillA; 1-> @@ -233,14 +241,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > , 7 > secondarySkillA: string 8 > ; -1->Emitted(10, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 18) + SourceIndex(0) -4 >Emitted(10, 12) Source(18, 20) + SourceIndex(0) -5 >Emitted(10, 25) Source(18, 41) + SourceIndex(0) -6 >Emitted(10, 27) Source(18, 43) + SourceIndex(0) -7 >Emitted(10, 42) Source(18, 66) + SourceIndex(0) -8 >Emitted(10, 43) Source(18, 67) + SourceIndex(0) +1->Emitted(18, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(18, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(18, 10) Source(18, 18) + SourceIndex(0) +4 >Emitted(18, 12) Source(18, 20) + SourceIndex(0) +5 >Emitted(18, 25) Source(18, 41) + SourceIndex(0) +6 >Emitted(18, 27) Source(18, 43) + SourceIndex(0) +7 >Emitted(18, 42) Source(18, 66) + SourceIndex(0) +8 >Emitted(18, 43) Source(18, 67) + SourceIndex(0) --- >>>var numberB, nameB; 1 > @@ -257,12 +265,12 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > , 5 > nameB: string 6 > ; -1 >Emitted(11, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(19, 5) + SourceIndex(0) -3 >Emitted(11, 12) Source(19, 20) + SourceIndex(0) -4 >Emitted(11, 14) Source(19, 22) + SourceIndex(0) -5 >Emitted(11, 19) Source(19, 35) + SourceIndex(0) -6 >Emitted(11, 20) Source(19, 36) + SourceIndex(0) +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(19, 5) + SourceIndex(0) +3 >Emitted(19, 12) Source(19, 20) + SourceIndex(0) +4 >Emitted(19, 14) Source(19, 22) + SourceIndex(0) +5 >Emitted(19, 19) Source(19, 35) + SourceIndex(0) +6 >Emitted(19, 20) Source(19, 36) + SourceIndex(0) --- >>>var numberA2, nameA2, skillA2, nameMA; 1-> @@ -287,16 +295,16 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 8 > , 9 > nameMA: string 10> ; -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(20, 5) + SourceIndex(0) -3 >Emitted(12, 13) Source(20, 21) + SourceIndex(0) -4 >Emitted(12, 15) Source(20, 23) + SourceIndex(0) -5 >Emitted(12, 21) Source(20, 37) + SourceIndex(0) -6 >Emitted(12, 23) Source(20, 39) + SourceIndex(0) -7 >Emitted(12, 30) Source(20, 54) + SourceIndex(0) -8 >Emitted(12, 32) Source(20, 56) + SourceIndex(0) -9 >Emitted(12, 38) Source(20, 70) + SourceIndex(0) -10>Emitted(12, 39) Source(20, 71) + SourceIndex(0) +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 5) + SourceIndex(0) +3 >Emitted(20, 13) Source(20, 21) + SourceIndex(0) +4 >Emitted(20, 15) Source(20, 23) + SourceIndex(0) +5 >Emitted(20, 21) Source(20, 37) + SourceIndex(0) +6 >Emitted(20, 23) Source(20, 39) + SourceIndex(0) +7 >Emitted(20, 30) Source(20, 54) + SourceIndex(0) +8 >Emitted(20, 32) Source(20, 56) + SourceIndex(0) +9 >Emitted(20, 38) Source(20, 70) + SourceIndex(0) +10>Emitted(20, 39) Source(20, 71) + SourceIndex(0) --- >>>var numberA3, robotAInfo, multiRobotAInfo; 1-> @@ -316,94 +324,100 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > , 7 > multiRobotAInfo: (string | [string, string])[] 8 > ; -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -3 >Emitted(13, 13) Source(21, 21) + SourceIndex(0) -4 >Emitted(13, 15) Source(21, 23) + SourceIndex(0) -5 >Emitted(13, 25) Source(21, 54) + SourceIndex(0) -6 >Emitted(13, 27) Source(21, 56) + SourceIndex(0) -7 >Emitted(13, 42) Source(21, 102) + SourceIndex(0) -8 >Emitted(13, 43) Source(21, 103) + SourceIndex(0) +1->Emitted(21, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(21, 5) + SourceIndex(0) +3 >Emitted(21, 13) Source(21, 21) + SourceIndex(0) +4 >Emitted(21, 15) Source(21, 23) + SourceIndex(0) +5 >Emitted(21, 25) Source(21, 54) + SourceIndex(0) +6 >Emitted(21, 27) Source(21, 56) + SourceIndex(0) +7 >Emitted(21, 42) Source(21, 102) + SourceIndex(0) +8 >Emitted(21, 43) Source(21, 103) + SourceIndex(0) --- >>>var i; 1 > 2 >^^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let 3 > i: number 4 > ; -1 >Emitted(14, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -3 >Emitted(14, 6) Source(22, 14) + SourceIndex(0) -4 >Emitted(14, 7) Source(22, 15) + SourceIndex(0) +1 >Emitted(22, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(22, 5) + SourceIndex(0) +3 >Emitted(22, 6) Source(22, 14) + SourceIndex(0) +4 >Emitted(22, 7) Source(22, 15) + SourceIndex(0) --- ->>>for (nameA = robotA[1], robotA, i = 0; i < 1; i++) { +>>>for (_a = __read(robotA, 2), nameA = _a[1], robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^ +10> ^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > > 2 >for 3 > -4 > ([, -5 > nameA -6 > ] = -7 > robotA -8 > , -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(15, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(15, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(15, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(15, 6) Source(24, 9) + SourceIndex(0) -5 >Emitted(15, 23) Source(24, 14) + SourceIndex(0) -6 >Emitted(15, 25) Source(24, 18) + SourceIndex(0) -7 >Emitted(15, 31) Source(24, 24) + SourceIndex(0) -8 >Emitted(15, 33) Source(24, 26) + SourceIndex(0) -9 >Emitted(15, 34) Source(24, 27) + SourceIndex(0) -10>Emitted(15, 37) Source(24, 30) + SourceIndex(0) -11>Emitted(15, 38) Source(24, 31) + SourceIndex(0) -12>Emitted(15, 40) Source(24, 33) + SourceIndex(0) -13>Emitted(15, 41) Source(24, 34) + SourceIndex(0) -14>Emitted(15, 44) Source(24, 37) + SourceIndex(0) -15>Emitted(15, 45) Source(24, 38) + SourceIndex(0) -16>Emitted(15, 47) Source(24, 40) + SourceIndex(0) -17>Emitted(15, 48) Source(24, 41) + SourceIndex(0) -18>Emitted(15, 50) Source(24, 43) + SourceIndex(0) -19>Emitted(15, 52) Source(24, 45) + SourceIndex(0) -20>Emitted(15, 53) Source(24, 46) + SourceIndex(0) +4 > ( +5 > [, nameA] = robotA +6 > +7 > nameA +8 > ] = +9 > robotA +10> , +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(23, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(23, 4) Source(24, 4) + SourceIndex(0) +3 >Emitted(23, 5) Source(24, 5) + SourceIndex(0) +4 >Emitted(23, 6) Source(24, 6) + SourceIndex(0) +5 >Emitted(23, 28) Source(24, 24) + SourceIndex(0) +6 >Emitted(23, 30) Source(24, 9) + SourceIndex(0) +7 >Emitted(23, 43) Source(24, 14) + SourceIndex(0) +8 >Emitted(23, 45) Source(24, 18) + SourceIndex(0) +9 >Emitted(23, 51) Source(24, 24) + SourceIndex(0) +10>Emitted(23, 53) Source(24, 26) + SourceIndex(0) +11>Emitted(23, 54) Source(24, 27) + SourceIndex(0) +12>Emitted(23, 57) Source(24, 30) + SourceIndex(0) +13>Emitted(23, 58) Source(24, 31) + SourceIndex(0) +14>Emitted(23, 60) Source(24, 33) + SourceIndex(0) +15>Emitted(23, 61) Source(24, 34) + SourceIndex(0) +16>Emitted(23, 64) Source(24, 37) + SourceIndex(0) +17>Emitted(23, 65) Source(24, 38) + SourceIndex(0) +18>Emitted(23, 67) Source(24, 40) + SourceIndex(0) +19>Emitted(23, 68) Source(24, 41) + SourceIndex(0) +20>Emitted(23, 70) Source(24, 43) + SourceIndex(0) +21>Emitted(23, 72) Source(24, 45) + SourceIndex(0) +22>Emitted(23, 73) Source(24, 46) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -423,46 +437,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(16, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(16, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(16, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(16, 24) Source(25, 24) + SourceIndex(0) +1 >Emitted(24, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(24, 12) Source(25, 12) + SourceIndex(0) +3 >Emitted(24, 13) Source(25, 13) + SourceIndex(0) +4 >Emitted(24, 16) Source(25, 16) + SourceIndex(0) +5 >Emitted(24, 17) Source(25, 17) + SourceIndex(0) +6 >Emitted(24, 22) Source(25, 22) + SourceIndex(0) +7 >Emitted(24, 23) Source(25, 23) + SourceIndex(0) +8 >Emitted(24, 24) Source(25, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(17, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(26, 2) + SourceIndex(0) --- ->>>for (_a = getRobot(), nameA = _a[1], _a, i = 0; i < 1; i++) { +>>>for (_b = getRobot(), _c = __read(_b, 2), nameA = _c[1], _b, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -470,40 +486,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [, nameA] = getRobot() 6 > -7 > nameA -8 > ] = getRobot(), -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(18, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(18, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(18, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(18, 6) Source(27, 6) + SourceIndex(0) -5 >Emitted(18, 21) Source(27, 28) + SourceIndex(0) -6 >Emitted(18, 23) Source(27, 9) + SourceIndex(0) -7 >Emitted(18, 36) Source(27, 14) + SourceIndex(0) -8 >Emitted(18, 42) Source(27, 30) + SourceIndex(0) -9 >Emitted(18, 43) Source(27, 31) + SourceIndex(0) -10>Emitted(18, 46) Source(27, 34) + SourceIndex(0) -11>Emitted(18, 47) Source(27, 35) + SourceIndex(0) -12>Emitted(18, 49) Source(27, 37) + SourceIndex(0) -13>Emitted(18, 50) Source(27, 38) + SourceIndex(0) -14>Emitted(18, 53) Source(27, 41) + SourceIndex(0) -15>Emitted(18, 54) Source(27, 42) + SourceIndex(0) -16>Emitted(18, 56) Source(27, 44) + SourceIndex(0) -17>Emitted(18, 57) Source(27, 45) + SourceIndex(0) -18>Emitted(18, 59) Source(27, 47) + SourceIndex(0) -19>Emitted(18, 61) Source(27, 49) + SourceIndex(0) -20>Emitted(18, 62) Source(27, 50) + SourceIndex(0) +7 > [, nameA] = getRobot() +8 > +9 > nameA +10> ] = getRobot(), +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(26, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(26, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(26, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(26, 6) Source(27, 6) + SourceIndex(0) +5 >Emitted(26, 21) Source(27, 28) + SourceIndex(0) +6 >Emitted(26, 23) Source(27, 6) + SourceIndex(0) +7 >Emitted(26, 41) Source(27, 28) + SourceIndex(0) +8 >Emitted(26, 43) Source(27, 9) + SourceIndex(0) +9 >Emitted(26, 56) Source(27, 14) + SourceIndex(0) +10>Emitted(26, 62) Source(27, 30) + SourceIndex(0) +11>Emitted(26, 63) Source(27, 31) + SourceIndex(0) +12>Emitted(26, 66) Source(27, 34) + SourceIndex(0) +13>Emitted(26, 67) Source(27, 35) + SourceIndex(0) +14>Emitted(26, 69) Source(27, 37) + SourceIndex(0) +15>Emitted(26, 70) Source(27, 38) + SourceIndex(0) +16>Emitted(26, 73) Source(27, 41) + SourceIndex(0) +17>Emitted(26, 74) Source(27, 42) + SourceIndex(0) +18>Emitted(26, 76) Source(27, 44) + SourceIndex(0) +19>Emitted(26, 77) Source(27, 45) + SourceIndex(0) +20>Emitted(26, 79) Source(27, 47) + SourceIndex(0) +21>Emitted(26, 81) Source(27, 49) + SourceIndex(0) +22>Emitted(26, 82) Source(27, 50) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -523,46 +543,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(19, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(28, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(28, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(28, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(28, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(28, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(28, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(28, 24) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(27, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(27, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(27, 16) Source(28, 16) + SourceIndex(0) +5 >Emitted(27, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(27, 22) Source(28, 22) + SourceIndex(0) +7 >Emitted(27, 23) Source(28, 23) + SourceIndex(0) +8 >Emitted(27, 24) Source(28, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(20, 2) Source(29, 2) + SourceIndex(0) +1 >Emitted(28, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(28, 2) Source(29, 2) + SourceIndex(0) --- ->>>for (_b = [2, "trimmer", "trimming"], nameA = _b[1], _b, i = 0; i < 1; i++) { +>>>for (_d = [2, "trimmer", "trimming"], _e = __read(_d, 2), nameA = _e[1], _d, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -570,40 +592,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [, nameA] = [2, "trimmer", "trimming"] 6 > -7 > nameA -8 > ] = [2, "trimmer", "trimming"], -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(21, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(30, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(30, 6) + SourceIndex(0) -5 >Emitted(21, 37) Source(30, 44) + SourceIndex(0) -6 >Emitted(21, 39) Source(30, 9) + SourceIndex(0) -7 >Emitted(21, 52) Source(30, 14) + SourceIndex(0) -8 >Emitted(21, 58) Source(30, 46) + SourceIndex(0) -9 >Emitted(21, 59) Source(30, 47) + SourceIndex(0) -10>Emitted(21, 62) Source(30, 50) + SourceIndex(0) -11>Emitted(21, 63) Source(30, 51) + SourceIndex(0) -12>Emitted(21, 65) Source(30, 53) + SourceIndex(0) -13>Emitted(21, 66) Source(30, 54) + SourceIndex(0) -14>Emitted(21, 69) Source(30, 57) + SourceIndex(0) -15>Emitted(21, 70) Source(30, 58) + SourceIndex(0) -16>Emitted(21, 72) Source(30, 60) + SourceIndex(0) -17>Emitted(21, 73) Source(30, 61) + SourceIndex(0) -18>Emitted(21, 75) Source(30, 63) + SourceIndex(0) -19>Emitted(21, 77) Source(30, 65) + SourceIndex(0) -20>Emitted(21, 78) Source(30, 66) + SourceIndex(0) +7 > [, nameA] = [2, "trimmer", "trimming"] +8 > +9 > nameA +10> ] = [2, "trimmer", "trimming"], +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(29, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(29, 4) Source(30, 4) + SourceIndex(0) +3 >Emitted(29, 5) Source(30, 5) + SourceIndex(0) +4 >Emitted(29, 6) Source(30, 6) + SourceIndex(0) +5 >Emitted(29, 37) Source(30, 44) + SourceIndex(0) +6 >Emitted(29, 39) Source(30, 6) + SourceIndex(0) +7 >Emitted(29, 57) Source(30, 44) + SourceIndex(0) +8 >Emitted(29, 59) Source(30, 9) + SourceIndex(0) +9 >Emitted(29, 72) Source(30, 14) + SourceIndex(0) +10>Emitted(29, 78) Source(30, 46) + SourceIndex(0) +11>Emitted(29, 79) Source(30, 47) + SourceIndex(0) +12>Emitted(29, 82) Source(30, 50) + SourceIndex(0) +13>Emitted(29, 83) Source(30, 51) + SourceIndex(0) +14>Emitted(29, 85) Source(30, 53) + SourceIndex(0) +15>Emitted(29, 86) Source(30, 54) + SourceIndex(0) +16>Emitted(29, 89) Source(30, 57) + SourceIndex(0) +17>Emitted(29, 90) Source(30, 58) + SourceIndex(0) +18>Emitted(29, 92) Source(30, 60) + SourceIndex(0) +19>Emitted(29, 93) Source(30, 61) + SourceIndex(0) +20>Emitted(29, 95) Source(30, 63) + SourceIndex(0) +21>Emitted(29, 97) Source(30, 65) + SourceIndex(0) +22>Emitted(29, 98) Source(30, 66) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -623,99 +649,105 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(22, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(22, 12) Source(31, 12) + SourceIndex(0) -3 >Emitted(22, 13) Source(31, 13) + SourceIndex(0) -4 >Emitted(22, 16) Source(31, 16) + SourceIndex(0) -5 >Emitted(22, 17) Source(31, 17) + SourceIndex(0) -6 >Emitted(22, 22) Source(31, 22) + SourceIndex(0) -7 >Emitted(22, 23) Source(31, 23) + SourceIndex(0) -8 >Emitted(22, 24) Source(31, 24) + SourceIndex(0) +1 >Emitted(30, 5) Source(31, 5) + SourceIndex(0) +2 >Emitted(30, 12) Source(31, 12) + SourceIndex(0) +3 >Emitted(30, 13) Source(31, 13) + SourceIndex(0) +4 >Emitted(30, 16) Source(31, 16) + SourceIndex(0) +5 >Emitted(30, 17) Source(31, 17) + SourceIndex(0) +6 >Emitted(30, 22) Source(31, 22) + SourceIndex(0) +7 >Emitted(30, 23) Source(31, 23) + SourceIndex(0) +8 >Emitted(30, 24) Source(31, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(23, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(23, 2) Source(32, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(32, 2) + SourceIndex(0) --- ->>>for (_c = multiRobotA[1], primarySkillA = _c[0], secondarySkillA = _c[1], multiRobotA, i = 0; i < 1; i++) { +>>>for (_f = __read(multiRobotA, 2), _g = __read(_f[1], 2), primarySkillA = _g[0], secondarySkillA = _g[1], multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for 3 > -4 > ([, -5 > [primarySkillA, secondarySkillA] -6 > -7 > primarySkillA -8 > , -9 > secondarySkillA -10> ]] = -11> multiRobotA -12> , -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(24, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(24, 4) Source(33, 4) + SourceIndex(0) -3 >Emitted(24, 5) Source(33, 5) + SourceIndex(0) -4 >Emitted(24, 6) Source(33, 9) + SourceIndex(0) -5 >Emitted(24, 25) Source(33, 41) + SourceIndex(0) -6 >Emitted(24, 27) Source(33, 10) + SourceIndex(0) -7 >Emitted(24, 48) Source(33, 23) + SourceIndex(0) -8 >Emitted(24, 50) Source(33, 25) + SourceIndex(0) -9 >Emitted(24, 73) Source(33, 40) + SourceIndex(0) -10>Emitted(24, 75) Source(33, 45) + SourceIndex(0) -11>Emitted(24, 86) Source(33, 56) + SourceIndex(0) -12>Emitted(24, 88) Source(33, 58) + SourceIndex(0) -13>Emitted(24, 89) Source(33, 59) + SourceIndex(0) -14>Emitted(24, 92) Source(33, 62) + SourceIndex(0) -15>Emitted(24, 93) Source(33, 63) + SourceIndex(0) -16>Emitted(24, 95) Source(33, 65) + SourceIndex(0) -17>Emitted(24, 96) Source(33, 66) + SourceIndex(0) -18>Emitted(24, 99) Source(33, 69) + SourceIndex(0) -19>Emitted(24, 100) Source(33, 70) + SourceIndex(0) -20>Emitted(24, 102) Source(33, 72) + SourceIndex(0) -21>Emitted(24, 103) Source(33, 73) + SourceIndex(0) -22>Emitted(24, 105) Source(33, 75) + SourceIndex(0) -23>Emitted(24, 107) Source(33, 77) + SourceIndex(0) -24>Emitted(24, 108) Source(33, 78) + SourceIndex(0) +4 > ( +5 > [, [primarySkillA, secondarySkillA]] = multiRobotA +6 > +7 > [primarySkillA, secondarySkillA] +8 > +9 > primarySkillA +10> , +11> secondarySkillA +12> ]] = +13> multiRobotA +14> , +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(32, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(32, 4) Source(33, 4) + SourceIndex(0) +3 >Emitted(32, 5) Source(33, 5) + SourceIndex(0) +4 >Emitted(32, 6) Source(33, 6) + SourceIndex(0) +5 >Emitted(32, 33) Source(33, 56) + SourceIndex(0) +6 >Emitted(32, 35) Source(33, 9) + SourceIndex(0) +7 >Emitted(32, 56) Source(33, 41) + SourceIndex(0) +8 >Emitted(32, 58) Source(33, 10) + SourceIndex(0) +9 >Emitted(32, 79) Source(33, 23) + SourceIndex(0) +10>Emitted(32, 81) Source(33, 25) + SourceIndex(0) +11>Emitted(32, 104) Source(33, 40) + SourceIndex(0) +12>Emitted(32, 106) Source(33, 45) + SourceIndex(0) +13>Emitted(32, 117) Source(33, 56) + SourceIndex(0) +14>Emitted(32, 119) Source(33, 58) + SourceIndex(0) +15>Emitted(32, 120) Source(33, 59) + SourceIndex(0) +16>Emitted(32, 123) Source(33, 62) + SourceIndex(0) +17>Emitted(32, 124) Source(33, 63) + SourceIndex(0) +18>Emitted(32, 126) Source(33, 65) + SourceIndex(0) +19>Emitted(32, 127) Source(33, 66) + SourceIndex(0) +20>Emitted(32, 130) Source(33, 69) + SourceIndex(0) +21>Emitted(32, 131) Source(33, 70) + SourceIndex(0) +22>Emitted(32, 133) Source(33, 72) + SourceIndex(0) +23>Emitted(32, 134) Source(33, 73) + SourceIndex(0) +24>Emitted(32, 136) Source(33, 75) + SourceIndex(0) +25>Emitted(32, 138) Source(33, 77) + SourceIndex(0) +26>Emitted(32, 139) Source(33, 78) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -735,50 +767,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(25, 5) Source(34, 5) + SourceIndex(0) -2 >Emitted(25, 12) Source(34, 12) + SourceIndex(0) -3 >Emitted(25, 13) Source(34, 13) + SourceIndex(0) -4 >Emitted(25, 16) Source(34, 16) + SourceIndex(0) -5 >Emitted(25, 17) Source(34, 17) + SourceIndex(0) -6 >Emitted(25, 30) Source(34, 30) + SourceIndex(0) -7 >Emitted(25, 31) Source(34, 31) + SourceIndex(0) -8 >Emitted(25, 32) Source(34, 32) + SourceIndex(0) +1 >Emitted(33, 5) Source(34, 5) + SourceIndex(0) +2 >Emitted(33, 12) Source(34, 12) + SourceIndex(0) +3 >Emitted(33, 13) Source(34, 13) + SourceIndex(0) +4 >Emitted(33, 16) Source(34, 16) + SourceIndex(0) +5 >Emitted(33, 17) Source(34, 17) + SourceIndex(0) +6 >Emitted(33, 30) Source(34, 30) + SourceIndex(0) +7 >Emitted(33, 31) Source(34, 31) + SourceIndex(0) +8 >Emitted(33, 32) Source(34, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(26, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(26, 2) Source(35, 2) + SourceIndex(0) +1 >Emitted(34, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(34, 2) Source(35, 2) + SourceIndex(0) --- ->>>for (_d = getMultiRobot(), _e = _d[1], primarySkillA = _e[0], secondarySkillA = _e[1], _d, i = 0; i < 1; i++) { +>>>for (_h = getMultiRobot(), _j = __read(_h, 2), _k = __read(_j[1], 2), primarySkillA = _k[0], secondarySkillA = _k[1], _h, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -786,48 +820,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [, [primarySkillA, secondarySkillA]] = getMultiRobot() 6 > -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -12> ]] = getMultiRobot(), -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(27, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(27, 4) Source(36, 4) + SourceIndex(0) -3 >Emitted(27, 5) Source(36, 5) + SourceIndex(0) -4 >Emitted(27, 6) Source(36, 6) + SourceIndex(0) -5 >Emitted(27, 26) Source(36, 60) + SourceIndex(0) -6 >Emitted(27, 28) Source(36, 9) + SourceIndex(0) -7 >Emitted(27, 38) Source(36, 41) + SourceIndex(0) -8 >Emitted(27, 40) Source(36, 10) + SourceIndex(0) -9 >Emitted(27, 61) Source(36, 23) + SourceIndex(0) -10>Emitted(27, 63) Source(36, 25) + SourceIndex(0) -11>Emitted(27, 86) Source(36, 40) + SourceIndex(0) -12>Emitted(27, 92) Source(36, 62) + SourceIndex(0) -13>Emitted(27, 93) Source(36, 63) + SourceIndex(0) -14>Emitted(27, 96) Source(36, 66) + SourceIndex(0) -15>Emitted(27, 97) Source(36, 67) + SourceIndex(0) -16>Emitted(27, 99) Source(36, 69) + SourceIndex(0) -17>Emitted(27, 100) Source(36, 70) + SourceIndex(0) -18>Emitted(27, 103) Source(36, 73) + SourceIndex(0) -19>Emitted(27, 104) Source(36, 74) + SourceIndex(0) -20>Emitted(27, 106) Source(36, 76) + SourceIndex(0) -21>Emitted(27, 107) Source(36, 77) + SourceIndex(0) -22>Emitted(27, 109) Source(36, 79) + SourceIndex(0) -23>Emitted(27, 111) Source(36, 81) + SourceIndex(0) -24>Emitted(27, 112) Source(36, 82) + SourceIndex(0) +7 > [, [primarySkillA, secondarySkillA]] = getMultiRobot() +8 > +9 > [primarySkillA, secondarySkillA] +10> +11> primarySkillA +12> , +13> secondarySkillA +14> ]] = getMultiRobot(), +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(35, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(35, 4) Source(36, 4) + SourceIndex(0) +3 >Emitted(35, 5) Source(36, 5) + SourceIndex(0) +4 >Emitted(35, 6) Source(36, 6) + SourceIndex(0) +5 >Emitted(35, 26) Source(36, 60) + SourceIndex(0) +6 >Emitted(35, 28) Source(36, 6) + SourceIndex(0) +7 >Emitted(35, 46) Source(36, 60) + SourceIndex(0) +8 >Emitted(35, 48) Source(36, 9) + SourceIndex(0) +9 >Emitted(35, 69) Source(36, 41) + SourceIndex(0) +10>Emitted(35, 71) Source(36, 10) + SourceIndex(0) +11>Emitted(35, 92) Source(36, 23) + SourceIndex(0) +12>Emitted(35, 94) Source(36, 25) + SourceIndex(0) +13>Emitted(35, 117) Source(36, 40) + SourceIndex(0) +14>Emitted(35, 123) Source(36, 62) + SourceIndex(0) +15>Emitted(35, 124) Source(36, 63) + SourceIndex(0) +16>Emitted(35, 127) Source(36, 66) + SourceIndex(0) +17>Emitted(35, 128) Source(36, 67) + SourceIndex(0) +18>Emitted(35, 130) Source(36, 69) + SourceIndex(0) +19>Emitted(35, 131) Source(36, 70) + SourceIndex(0) +20>Emitted(35, 134) Source(36, 73) + SourceIndex(0) +21>Emitted(35, 135) Source(36, 74) + SourceIndex(0) +22>Emitted(35, 137) Source(36, 76) + SourceIndex(0) +23>Emitted(35, 138) Source(36, 77) + SourceIndex(0) +24>Emitted(35, 140) Source(36, 79) + SourceIndex(0) +25>Emitted(35, 142) Source(36, 81) + SourceIndex(0) +26>Emitted(35, 143) Source(36, 82) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -847,50 +885,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(28, 5) Source(37, 5) + SourceIndex(0) -2 >Emitted(28, 12) Source(37, 12) + SourceIndex(0) -3 >Emitted(28, 13) Source(37, 13) + SourceIndex(0) -4 >Emitted(28, 16) Source(37, 16) + SourceIndex(0) -5 >Emitted(28, 17) Source(37, 17) + SourceIndex(0) -6 >Emitted(28, 30) Source(37, 30) + SourceIndex(0) -7 >Emitted(28, 31) Source(37, 31) + SourceIndex(0) -8 >Emitted(28, 32) Source(37, 32) + SourceIndex(0) +1 >Emitted(36, 5) Source(37, 5) + SourceIndex(0) +2 >Emitted(36, 12) Source(37, 12) + SourceIndex(0) +3 >Emitted(36, 13) Source(37, 13) + SourceIndex(0) +4 >Emitted(36, 16) Source(37, 16) + SourceIndex(0) +5 >Emitted(36, 17) Source(37, 17) + SourceIndex(0) +6 >Emitted(36, 30) Source(37, 30) + SourceIndex(0) +7 >Emitted(36, 31) Source(37, 31) + SourceIndex(0) +8 >Emitted(36, 32) Source(37, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(29, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(29, 2) Source(38, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(38, 2) + SourceIndex(0) --- ->>>for (_f = ["trimmer", ["trimming", "edging"]], _g = _f[1], primarySkillA = _g[0], secondarySkillA = _g[1], _f, i = 0; i < 1; i++) { +>>>for (_l = ["trimmer", ["trimming", "edging"]], _m = __read(_l, 2), _o = __read(_m[1], 2), primarySkillA = _o[0], secondarySkillA = _o[1], _l, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -898,48 +938,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [, [primarySkillA, secondarySkillA]] = ["trimmer", ["trimming", "edging"]] 6 > -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -12> ]] = ["trimmer", ["trimming", "edging"]], -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(30, 1) Source(39, 1) + SourceIndex(0) -2 >Emitted(30, 4) Source(39, 4) + SourceIndex(0) -3 >Emitted(30, 5) Source(39, 5) + SourceIndex(0) -4 >Emitted(30, 6) Source(39, 6) + SourceIndex(0) -5 >Emitted(30, 46) Source(39, 80) + SourceIndex(0) -6 >Emitted(30, 48) Source(39, 9) + SourceIndex(0) -7 >Emitted(30, 58) Source(39, 41) + SourceIndex(0) -8 >Emitted(30, 60) Source(39, 10) + SourceIndex(0) -9 >Emitted(30, 81) Source(39, 23) + SourceIndex(0) -10>Emitted(30, 83) Source(39, 25) + SourceIndex(0) -11>Emitted(30, 106) Source(39, 40) + SourceIndex(0) -12>Emitted(30, 112) Source(39, 82) + SourceIndex(0) -13>Emitted(30, 113) Source(39, 83) + SourceIndex(0) -14>Emitted(30, 116) Source(39, 86) + SourceIndex(0) -15>Emitted(30, 117) Source(39, 87) + SourceIndex(0) -16>Emitted(30, 119) Source(39, 89) + SourceIndex(0) -17>Emitted(30, 120) Source(39, 90) + SourceIndex(0) -18>Emitted(30, 123) Source(39, 93) + SourceIndex(0) -19>Emitted(30, 124) Source(39, 94) + SourceIndex(0) -20>Emitted(30, 126) Source(39, 96) + SourceIndex(0) -21>Emitted(30, 127) Source(39, 97) + SourceIndex(0) -22>Emitted(30, 129) Source(39, 99) + SourceIndex(0) -23>Emitted(30, 131) Source(39, 101) + SourceIndex(0) -24>Emitted(30, 132) Source(39, 102) + SourceIndex(0) +7 > [, [primarySkillA, secondarySkillA]] = ["trimmer", ["trimming", "edging"]] +8 > +9 > [primarySkillA, secondarySkillA] +10> +11> primarySkillA +12> , +13> secondarySkillA +14> ]] = ["trimmer", ["trimming", "edging"]], +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(38, 1) Source(39, 1) + SourceIndex(0) +2 >Emitted(38, 4) Source(39, 4) + SourceIndex(0) +3 >Emitted(38, 5) Source(39, 5) + SourceIndex(0) +4 >Emitted(38, 6) Source(39, 6) + SourceIndex(0) +5 >Emitted(38, 46) Source(39, 80) + SourceIndex(0) +6 >Emitted(38, 48) Source(39, 6) + SourceIndex(0) +7 >Emitted(38, 66) Source(39, 80) + SourceIndex(0) +8 >Emitted(38, 68) Source(39, 9) + SourceIndex(0) +9 >Emitted(38, 89) Source(39, 41) + SourceIndex(0) +10>Emitted(38, 91) Source(39, 10) + SourceIndex(0) +11>Emitted(38, 112) Source(39, 23) + SourceIndex(0) +12>Emitted(38, 114) Source(39, 25) + SourceIndex(0) +13>Emitted(38, 137) Source(39, 40) + SourceIndex(0) +14>Emitted(38, 143) Source(39, 82) + SourceIndex(0) +15>Emitted(38, 144) Source(39, 83) + SourceIndex(0) +16>Emitted(38, 147) Source(39, 86) + SourceIndex(0) +17>Emitted(38, 148) Source(39, 87) + SourceIndex(0) +18>Emitted(38, 150) Source(39, 89) + SourceIndex(0) +19>Emitted(38, 151) Source(39, 90) + SourceIndex(0) +20>Emitted(38, 154) Source(39, 93) + SourceIndex(0) +21>Emitted(38, 155) Source(39, 94) + SourceIndex(0) +22>Emitted(38, 157) Source(39, 96) + SourceIndex(0) +23>Emitted(38, 158) Source(39, 97) + SourceIndex(0) +24>Emitted(38, 160) Source(39, 99) + SourceIndex(0) +25>Emitted(38, 162) Source(39, 101) + SourceIndex(0) +26>Emitted(38, 163) Source(39, 102) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -959,88 +1003,94 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(31, 5) Source(40, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(40, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(40, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(40, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(40, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(40, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(40, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(40, 32) + SourceIndex(0) +1 >Emitted(39, 5) Source(40, 5) + SourceIndex(0) +2 >Emitted(39, 12) Source(40, 12) + SourceIndex(0) +3 >Emitted(39, 13) Source(40, 13) + SourceIndex(0) +4 >Emitted(39, 16) Source(40, 16) + SourceIndex(0) +5 >Emitted(39, 17) Source(40, 17) + SourceIndex(0) +6 >Emitted(39, 30) Source(40, 30) + SourceIndex(0) +7 >Emitted(39, 31) Source(40, 31) + SourceIndex(0) +8 >Emitted(39, 32) Source(40, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(32, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(32, 2) Source(41, 2) + SourceIndex(0) +1 >Emitted(40, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(40, 2) Source(41, 2) + SourceIndex(0) --- ->>>for (numberB = robotA[0], robotA, i = 0; i < 1; i++) { +>>>for (_p = __read(robotA, 1), numberB = _p[0], robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^ +10> ^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberB -6 > ] = -7 > robotA -8 > , -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(33, 1) Source(43, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(43, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(43, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(43, 7) + SourceIndex(0) -5 >Emitted(33, 25) Source(43, 14) + SourceIndex(0) -6 >Emitted(33, 27) Source(43, 18) + SourceIndex(0) -7 >Emitted(33, 33) Source(43, 24) + SourceIndex(0) -8 >Emitted(33, 35) Source(43, 26) + SourceIndex(0) -9 >Emitted(33, 36) Source(43, 27) + SourceIndex(0) -10>Emitted(33, 39) Source(43, 30) + SourceIndex(0) -11>Emitted(33, 40) Source(43, 31) + SourceIndex(0) -12>Emitted(33, 42) Source(43, 33) + SourceIndex(0) -13>Emitted(33, 43) Source(43, 34) + SourceIndex(0) -14>Emitted(33, 46) Source(43, 37) + SourceIndex(0) -15>Emitted(33, 47) Source(43, 38) + SourceIndex(0) -16>Emitted(33, 49) Source(43, 40) + SourceIndex(0) -17>Emitted(33, 50) Source(43, 41) + SourceIndex(0) -18>Emitted(33, 52) Source(43, 43) + SourceIndex(0) -19>Emitted(33, 54) Source(43, 45) + SourceIndex(0) -20>Emitted(33, 55) Source(43, 46) + SourceIndex(0) +4 > ( +5 > [numberB] = robotA +6 > +7 > numberB +8 > ] = +9 > robotA +10> , +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(41, 1) Source(43, 1) + SourceIndex(0) +2 >Emitted(41, 4) Source(43, 4) + SourceIndex(0) +3 >Emitted(41, 5) Source(43, 5) + SourceIndex(0) +4 >Emitted(41, 6) Source(43, 6) + SourceIndex(0) +5 >Emitted(41, 28) Source(43, 24) + SourceIndex(0) +6 >Emitted(41, 30) Source(43, 7) + SourceIndex(0) +7 >Emitted(41, 45) Source(43, 14) + SourceIndex(0) +8 >Emitted(41, 47) Source(43, 18) + SourceIndex(0) +9 >Emitted(41, 53) Source(43, 24) + SourceIndex(0) +10>Emitted(41, 55) Source(43, 26) + SourceIndex(0) +11>Emitted(41, 56) Source(43, 27) + SourceIndex(0) +12>Emitted(41, 59) Source(43, 30) + SourceIndex(0) +13>Emitted(41, 60) Source(43, 31) + SourceIndex(0) +14>Emitted(41, 62) Source(43, 33) + SourceIndex(0) +15>Emitted(41, 63) Source(43, 34) + SourceIndex(0) +16>Emitted(41, 66) Source(43, 37) + SourceIndex(0) +17>Emitted(41, 67) Source(43, 38) + SourceIndex(0) +18>Emitted(41, 69) Source(43, 40) + SourceIndex(0) +19>Emitted(41, 70) Source(43, 41) + SourceIndex(0) +20>Emitted(41, 72) Source(43, 43) + SourceIndex(0) +21>Emitted(41, 74) Source(43, 45) + SourceIndex(0) +22>Emitted(41, 75) Source(43, 46) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1060,46 +1110,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(34, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(34, 12) Source(44, 12) + SourceIndex(0) -3 >Emitted(34, 13) Source(44, 13) + SourceIndex(0) -4 >Emitted(34, 16) Source(44, 16) + SourceIndex(0) -5 >Emitted(34, 17) Source(44, 17) + SourceIndex(0) -6 >Emitted(34, 24) Source(44, 24) + SourceIndex(0) -7 >Emitted(34, 25) Source(44, 25) + SourceIndex(0) -8 >Emitted(34, 26) Source(44, 26) + SourceIndex(0) +1 >Emitted(42, 5) Source(44, 5) + SourceIndex(0) +2 >Emitted(42, 12) Source(44, 12) + SourceIndex(0) +3 >Emitted(42, 13) Source(44, 13) + SourceIndex(0) +4 >Emitted(42, 16) Source(44, 16) + SourceIndex(0) +5 >Emitted(42, 17) Source(44, 17) + SourceIndex(0) +6 >Emitted(42, 24) Source(44, 24) + SourceIndex(0) +7 >Emitted(42, 25) Source(44, 25) + SourceIndex(0) +8 >Emitted(42, 26) Source(44, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(35, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(35, 2) Source(45, 2) + SourceIndex(0) +1 >Emitted(43, 1) Source(45, 1) + SourceIndex(0) +2 >Emitted(43, 2) Source(45, 2) + SourceIndex(0) --- ->>>for (_h = getRobot(), numberB = _h[0], _h, i = 0; i < 1; i++) { +>>>for (_q = getRobot(), _r = __read(_q, 1), numberB = _r[0], _q, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -1107,40 +1159,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [numberB] = getRobot() 6 > -7 > numberB -8 > ] = getRobot(), -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(36, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(36, 4) Source(46, 4) + SourceIndex(0) -3 >Emitted(36, 5) Source(46, 5) + SourceIndex(0) -4 >Emitted(36, 6) Source(46, 6) + SourceIndex(0) -5 >Emitted(36, 21) Source(46, 28) + SourceIndex(0) -6 >Emitted(36, 23) Source(46, 7) + SourceIndex(0) -7 >Emitted(36, 38) Source(46, 14) + SourceIndex(0) -8 >Emitted(36, 44) Source(46, 30) + SourceIndex(0) -9 >Emitted(36, 45) Source(46, 31) + SourceIndex(0) -10>Emitted(36, 48) Source(46, 34) + SourceIndex(0) -11>Emitted(36, 49) Source(46, 35) + SourceIndex(0) -12>Emitted(36, 51) Source(46, 37) + SourceIndex(0) -13>Emitted(36, 52) Source(46, 38) + SourceIndex(0) -14>Emitted(36, 55) Source(46, 41) + SourceIndex(0) -15>Emitted(36, 56) Source(46, 42) + SourceIndex(0) -16>Emitted(36, 58) Source(46, 44) + SourceIndex(0) -17>Emitted(36, 59) Source(46, 45) + SourceIndex(0) -18>Emitted(36, 61) Source(46, 47) + SourceIndex(0) -19>Emitted(36, 63) Source(46, 49) + SourceIndex(0) -20>Emitted(36, 64) Source(46, 50) + SourceIndex(0) +7 > [numberB] = getRobot() +8 > +9 > numberB +10> ] = getRobot(), +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(44, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(44, 4) Source(46, 4) + SourceIndex(0) +3 >Emitted(44, 5) Source(46, 5) + SourceIndex(0) +4 >Emitted(44, 6) Source(46, 6) + SourceIndex(0) +5 >Emitted(44, 21) Source(46, 28) + SourceIndex(0) +6 >Emitted(44, 23) Source(46, 6) + SourceIndex(0) +7 >Emitted(44, 41) Source(46, 28) + SourceIndex(0) +8 >Emitted(44, 43) Source(46, 7) + SourceIndex(0) +9 >Emitted(44, 58) Source(46, 14) + SourceIndex(0) +10>Emitted(44, 64) Source(46, 30) + SourceIndex(0) +11>Emitted(44, 65) Source(46, 31) + SourceIndex(0) +12>Emitted(44, 68) Source(46, 34) + SourceIndex(0) +13>Emitted(44, 69) Source(46, 35) + SourceIndex(0) +14>Emitted(44, 71) Source(46, 37) + SourceIndex(0) +15>Emitted(44, 72) Source(46, 38) + SourceIndex(0) +16>Emitted(44, 75) Source(46, 41) + SourceIndex(0) +17>Emitted(44, 76) Source(46, 42) + SourceIndex(0) +18>Emitted(44, 78) Source(46, 44) + SourceIndex(0) +19>Emitted(44, 79) Source(46, 45) + SourceIndex(0) +20>Emitted(44, 81) Source(46, 47) + SourceIndex(0) +21>Emitted(44, 83) Source(46, 49) + SourceIndex(0) +22>Emitted(44, 84) Source(46, 50) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1160,46 +1216,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(37, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(37, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(37, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(37, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(37, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(37, 24) Source(47, 24) + SourceIndex(0) -7 >Emitted(37, 25) Source(47, 25) + SourceIndex(0) -8 >Emitted(37, 26) Source(47, 26) + SourceIndex(0) +1 >Emitted(45, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(45, 12) Source(47, 12) + SourceIndex(0) +3 >Emitted(45, 13) Source(47, 13) + SourceIndex(0) +4 >Emitted(45, 16) Source(47, 16) + SourceIndex(0) +5 >Emitted(45, 17) Source(47, 17) + SourceIndex(0) +6 >Emitted(45, 24) Source(47, 24) + SourceIndex(0) +7 >Emitted(45, 25) Source(47, 25) + SourceIndex(0) +8 >Emitted(45, 26) Source(47, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(38, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(48, 2) + SourceIndex(0) +1 >Emitted(46, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(46, 2) Source(48, 2) + SourceIndex(0) --- ->>>for (_j = [2, "trimmer", "trimming"], numberB = _j[0], _j, i = 0; i < 1; i++) { +>>>for (_s = [2, "trimmer", "trimming"], _t = __read(_s, 1), numberB = _t[0], _s, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -1207,40 +1265,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [numberB] = [2, "trimmer", "trimming"] 6 > -7 > numberB -8 > ] = [2, "trimmer", "trimming"], -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(39, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(39, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(39, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(39, 6) Source(49, 6) + SourceIndex(0) -5 >Emitted(39, 37) Source(49, 44) + SourceIndex(0) -6 >Emitted(39, 39) Source(49, 7) + SourceIndex(0) -7 >Emitted(39, 54) Source(49, 14) + SourceIndex(0) -8 >Emitted(39, 60) Source(49, 46) + SourceIndex(0) -9 >Emitted(39, 61) Source(49, 47) + SourceIndex(0) -10>Emitted(39, 64) Source(49, 50) + SourceIndex(0) -11>Emitted(39, 65) Source(49, 51) + SourceIndex(0) -12>Emitted(39, 67) Source(49, 53) + SourceIndex(0) -13>Emitted(39, 68) Source(49, 54) + SourceIndex(0) -14>Emitted(39, 71) Source(49, 57) + SourceIndex(0) -15>Emitted(39, 72) Source(49, 58) + SourceIndex(0) -16>Emitted(39, 74) Source(49, 60) + SourceIndex(0) -17>Emitted(39, 75) Source(49, 61) + SourceIndex(0) -18>Emitted(39, 77) Source(49, 63) + SourceIndex(0) -19>Emitted(39, 79) Source(49, 65) + SourceIndex(0) -20>Emitted(39, 80) Source(49, 66) + SourceIndex(0) +7 > [numberB] = [2, "trimmer", "trimming"] +8 > +9 > numberB +10> ] = [2, "trimmer", "trimming"], +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(47, 1) Source(49, 1) + SourceIndex(0) +2 >Emitted(47, 4) Source(49, 4) + SourceIndex(0) +3 >Emitted(47, 5) Source(49, 5) + SourceIndex(0) +4 >Emitted(47, 6) Source(49, 6) + SourceIndex(0) +5 >Emitted(47, 37) Source(49, 44) + SourceIndex(0) +6 >Emitted(47, 39) Source(49, 6) + SourceIndex(0) +7 >Emitted(47, 57) Source(49, 44) + SourceIndex(0) +8 >Emitted(47, 59) Source(49, 7) + SourceIndex(0) +9 >Emitted(47, 74) Source(49, 14) + SourceIndex(0) +10>Emitted(47, 80) Source(49, 46) + SourceIndex(0) +11>Emitted(47, 81) Source(49, 47) + SourceIndex(0) +12>Emitted(47, 84) Source(49, 50) + SourceIndex(0) +13>Emitted(47, 85) Source(49, 51) + SourceIndex(0) +14>Emitted(47, 87) Source(49, 53) + SourceIndex(0) +15>Emitted(47, 88) Source(49, 54) + SourceIndex(0) +16>Emitted(47, 91) Source(49, 57) + SourceIndex(0) +17>Emitted(47, 92) Source(49, 58) + SourceIndex(0) +18>Emitted(47, 94) Source(49, 60) + SourceIndex(0) +19>Emitted(47, 95) Source(49, 61) + SourceIndex(0) +20>Emitted(47, 97) Source(49, 63) + SourceIndex(0) +21>Emitted(47, 99) Source(49, 65) + SourceIndex(0) +22>Emitted(47, 100) Source(49, 66) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1260,87 +1322,93 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(40, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(40, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(40, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(40, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(40, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(40, 24) Source(50, 24) + SourceIndex(0) -7 >Emitted(40, 25) Source(50, 25) + SourceIndex(0) -8 >Emitted(40, 26) Source(50, 26) + SourceIndex(0) +1 >Emitted(48, 5) Source(50, 5) + SourceIndex(0) +2 >Emitted(48, 12) Source(50, 12) + SourceIndex(0) +3 >Emitted(48, 13) Source(50, 13) + SourceIndex(0) +4 >Emitted(48, 16) Source(50, 16) + SourceIndex(0) +5 >Emitted(48, 17) Source(50, 17) + SourceIndex(0) +6 >Emitted(48, 24) Source(50, 24) + SourceIndex(0) +7 >Emitted(48, 25) Source(50, 25) + SourceIndex(0) +8 >Emitted(48, 26) Source(50, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(41, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(49, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(49, 2) Source(51, 2) + SourceIndex(0) --- ->>>for (nameB = multiRobotA[0], multiRobotA, i = 0; i < 1; i++) { +>>>for (_u = __read(multiRobotA, 1), nameB = _u[0], multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^ -8 > ^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^ +10> ^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for 3 > -4 > ([ -5 > nameB -6 > ] = -7 > multiRobotA -8 > , -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(42, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(42, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(42, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(42, 6) Source(52, 7) + SourceIndex(0) -5 >Emitted(42, 28) Source(52, 12) + SourceIndex(0) -6 >Emitted(42, 30) Source(52, 16) + SourceIndex(0) -7 >Emitted(42, 41) Source(52, 27) + SourceIndex(0) -8 >Emitted(42, 43) Source(52, 29) + SourceIndex(0) -9 >Emitted(42, 44) Source(52, 30) + SourceIndex(0) -10>Emitted(42, 47) Source(52, 33) + SourceIndex(0) -11>Emitted(42, 48) Source(52, 34) + SourceIndex(0) -12>Emitted(42, 50) Source(52, 36) + SourceIndex(0) -13>Emitted(42, 51) Source(52, 37) + SourceIndex(0) -14>Emitted(42, 54) Source(52, 40) + SourceIndex(0) -15>Emitted(42, 55) Source(52, 41) + SourceIndex(0) -16>Emitted(42, 57) Source(52, 43) + SourceIndex(0) -17>Emitted(42, 58) Source(52, 44) + SourceIndex(0) -18>Emitted(42, 60) Source(52, 46) + SourceIndex(0) -19>Emitted(42, 62) Source(52, 48) + SourceIndex(0) -20>Emitted(42, 63) Source(52, 49) + SourceIndex(0) +4 > ( +5 > [nameB] = multiRobotA +6 > +7 > nameB +8 > ] = +9 > multiRobotA +10> , +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(50, 1) Source(52, 1) + SourceIndex(0) +2 >Emitted(50, 4) Source(52, 4) + SourceIndex(0) +3 >Emitted(50, 5) Source(52, 5) + SourceIndex(0) +4 >Emitted(50, 6) Source(52, 6) + SourceIndex(0) +5 >Emitted(50, 33) Source(52, 27) + SourceIndex(0) +6 >Emitted(50, 35) Source(52, 7) + SourceIndex(0) +7 >Emitted(50, 48) Source(52, 12) + SourceIndex(0) +8 >Emitted(50, 50) Source(52, 16) + SourceIndex(0) +9 >Emitted(50, 61) Source(52, 27) + SourceIndex(0) +10>Emitted(50, 63) Source(52, 29) + SourceIndex(0) +11>Emitted(50, 64) Source(52, 30) + SourceIndex(0) +12>Emitted(50, 67) Source(52, 33) + SourceIndex(0) +13>Emitted(50, 68) Source(52, 34) + SourceIndex(0) +14>Emitted(50, 70) Source(52, 36) + SourceIndex(0) +15>Emitted(50, 71) Source(52, 37) + SourceIndex(0) +16>Emitted(50, 74) Source(52, 40) + SourceIndex(0) +17>Emitted(50, 75) Source(52, 41) + SourceIndex(0) +18>Emitted(50, 77) Source(52, 43) + SourceIndex(0) +19>Emitted(50, 78) Source(52, 44) + SourceIndex(0) +20>Emitted(50, 80) Source(52, 46) + SourceIndex(0) +21>Emitted(50, 82) Source(52, 48) + SourceIndex(0) +22>Emitted(50, 83) Source(52, 49) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1360,46 +1428,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(43, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(43, 22) Source(53, 22) + SourceIndex(0) -7 >Emitted(43, 23) Source(53, 23) + SourceIndex(0) -8 >Emitted(43, 24) Source(53, 24) + SourceIndex(0) +1 >Emitted(51, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(51, 12) Source(53, 12) + SourceIndex(0) +3 >Emitted(51, 13) Source(53, 13) + SourceIndex(0) +4 >Emitted(51, 16) Source(53, 16) + SourceIndex(0) +5 >Emitted(51, 17) Source(53, 17) + SourceIndex(0) +6 >Emitted(51, 22) Source(53, 22) + SourceIndex(0) +7 >Emitted(51, 23) Source(53, 23) + SourceIndex(0) +8 >Emitted(51, 24) Source(53, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(44, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(44, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(52, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(52, 2) Source(54, 2) + SourceIndex(0) --- ->>>for (_k = getMultiRobot(), nameB = _k[0], _k, i = 0; i < 1; i++) { +>>>for (_v = getMultiRobot(), _w = __read(_v, 1), nameB = _w[0], _v, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -1407,40 +1477,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [nameB] = getMultiRobot() 6 > -7 > nameB -8 > ] = getMultiRobot(), -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(45, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(55, 6) + SourceIndex(0) -5 >Emitted(45, 26) Source(55, 31) + SourceIndex(0) -6 >Emitted(45, 28) Source(55, 7) + SourceIndex(0) -7 >Emitted(45, 41) Source(55, 12) + SourceIndex(0) -8 >Emitted(45, 47) Source(55, 33) + SourceIndex(0) -9 >Emitted(45, 48) Source(55, 34) + SourceIndex(0) -10>Emitted(45, 51) Source(55, 37) + SourceIndex(0) -11>Emitted(45, 52) Source(55, 38) + SourceIndex(0) -12>Emitted(45, 54) Source(55, 40) + SourceIndex(0) -13>Emitted(45, 55) Source(55, 41) + SourceIndex(0) -14>Emitted(45, 58) Source(55, 44) + SourceIndex(0) -15>Emitted(45, 59) Source(55, 45) + SourceIndex(0) -16>Emitted(45, 61) Source(55, 47) + SourceIndex(0) -17>Emitted(45, 62) Source(55, 48) + SourceIndex(0) -18>Emitted(45, 64) Source(55, 50) + SourceIndex(0) -19>Emitted(45, 66) Source(55, 52) + SourceIndex(0) -20>Emitted(45, 67) Source(55, 53) + SourceIndex(0) +7 > [nameB] = getMultiRobot() +8 > +9 > nameB +10> ] = getMultiRobot(), +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(53, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(53, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(53, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(53, 6) Source(55, 6) + SourceIndex(0) +5 >Emitted(53, 26) Source(55, 31) + SourceIndex(0) +6 >Emitted(53, 28) Source(55, 6) + SourceIndex(0) +7 >Emitted(53, 46) Source(55, 31) + SourceIndex(0) +8 >Emitted(53, 48) Source(55, 7) + SourceIndex(0) +9 >Emitted(53, 61) Source(55, 12) + SourceIndex(0) +10>Emitted(53, 67) Source(55, 33) + SourceIndex(0) +11>Emitted(53, 68) Source(55, 34) + SourceIndex(0) +12>Emitted(53, 71) Source(55, 37) + SourceIndex(0) +13>Emitted(53, 72) Source(55, 38) + SourceIndex(0) +14>Emitted(53, 74) Source(55, 40) + SourceIndex(0) +15>Emitted(53, 75) Source(55, 41) + SourceIndex(0) +16>Emitted(53, 78) Source(55, 44) + SourceIndex(0) +17>Emitted(53, 79) Source(55, 45) + SourceIndex(0) +18>Emitted(53, 81) Source(55, 47) + SourceIndex(0) +19>Emitted(53, 82) Source(55, 48) + SourceIndex(0) +20>Emitted(53, 84) Source(55, 50) + SourceIndex(0) +21>Emitted(53, 86) Source(55, 52) + SourceIndex(0) +22>Emitted(53, 87) Source(55, 53) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1460,46 +1534,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(46, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(46, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(46, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(46, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(46, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(46, 22) Source(56, 22) + SourceIndex(0) -7 >Emitted(46, 23) Source(56, 23) + SourceIndex(0) -8 >Emitted(46, 24) Source(56, 24) + SourceIndex(0) +1 >Emitted(54, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(54, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(54, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(54, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(54, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(54, 22) Source(56, 22) + SourceIndex(0) +7 >Emitted(54, 23) Source(56, 23) + SourceIndex(0) +8 >Emitted(54, 24) Source(56, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(47, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(47, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(55, 1) Source(57, 1) + SourceIndex(0) +2 >Emitted(55, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (_l = ["trimmer", ["trimming", "edging"]], nameB = _l[0], _l, i = 0; i < 1; i++) { +>>>for (_x = ["trimmer", ["trimming", "edging"]], _y = __read(_x, 1), nameB = _y[0], _x, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for @@ -1507,40 +1583,44 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [nameB] = ["trimmer", ["trimming", "edging"]] 6 > -7 > nameB -8 > ] = ["trimmer", ["trimming", "edging"]], -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(48, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(48, 4) Source(58, 4) + SourceIndex(0) -3 >Emitted(48, 5) Source(58, 5) + SourceIndex(0) -4 >Emitted(48, 6) Source(58, 6) + SourceIndex(0) -5 >Emitted(48, 46) Source(58, 51) + SourceIndex(0) -6 >Emitted(48, 48) Source(58, 7) + SourceIndex(0) -7 >Emitted(48, 61) Source(58, 12) + SourceIndex(0) -8 >Emitted(48, 67) Source(58, 53) + SourceIndex(0) -9 >Emitted(48, 68) Source(58, 54) + SourceIndex(0) -10>Emitted(48, 71) Source(58, 57) + SourceIndex(0) -11>Emitted(48, 72) Source(58, 58) + SourceIndex(0) -12>Emitted(48, 74) Source(58, 60) + SourceIndex(0) -13>Emitted(48, 75) Source(58, 61) + SourceIndex(0) -14>Emitted(48, 78) Source(58, 64) + SourceIndex(0) -15>Emitted(48, 79) Source(58, 65) + SourceIndex(0) -16>Emitted(48, 81) Source(58, 67) + SourceIndex(0) -17>Emitted(48, 82) Source(58, 68) + SourceIndex(0) -18>Emitted(48, 84) Source(58, 70) + SourceIndex(0) -19>Emitted(48, 86) Source(58, 72) + SourceIndex(0) -20>Emitted(48, 87) Source(58, 73) + SourceIndex(0) +7 > [nameB] = ["trimmer", ["trimming", "edging"]] +8 > +9 > nameB +10> ] = ["trimmer", ["trimming", "edging"]], +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(56, 1) Source(58, 1) + SourceIndex(0) +2 >Emitted(56, 4) Source(58, 4) + SourceIndex(0) +3 >Emitted(56, 5) Source(58, 5) + SourceIndex(0) +4 >Emitted(56, 6) Source(58, 6) + SourceIndex(0) +5 >Emitted(56, 46) Source(58, 51) + SourceIndex(0) +6 >Emitted(56, 48) Source(58, 6) + SourceIndex(0) +7 >Emitted(56, 66) Source(58, 51) + SourceIndex(0) +8 >Emitted(56, 68) Source(58, 7) + SourceIndex(0) +9 >Emitted(56, 81) Source(58, 12) + SourceIndex(0) +10>Emitted(56, 87) Source(58, 53) + SourceIndex(0) +11>Emitted(56, 88) Source(58, 54) + SourceIndex(0) +12>Emitted(56, 91) Source(58, 57) + SourceIndex(0) +13>Emitted(56, 92) Source(58, 58) + SourceIndex(0) +14>Emitted(56, 94) Source(58, 60) + SourceIndex(0) +15>Emitted(56, 95) Source(58, 61) + SourceIndex(0) +16>Emitted(56, 98) Source(58, 64) + SourceIndex(0) +17>Emitted(56, 99) Source(58, 65) + SourceIndex(0) +18>Emitted(56, 101) Source(58, 67) + SourceIndex(0) +19>Emitted(56, 102) Source(58, 68) + SourceIndex(0) +20>Emitted(56, 104) Source(58, 70) + SourceIndex(0) +21>Emitted(56, 106) Source(58, 72) + SourceIndex(0) +22>Emitted(56, 107) Source(58, 73) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1560,100 +1640,106 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(49, 5) Source(59, 5) + SourceIndex(0) -2 >Emitted(49, 12) Source(59, 12) + SourceIndex(0) -3 >Emitted(49, 13) Source(59, 13) + SourceIndex(0) -4 >Emitted(49, 16) Source(59, 16) + SourceIndex(0) -5 >Emitted(49, 17) Source(59, 17) + SourceIndex(0) -6 >Emitted(49, 22) Source(59, 22) + SourceIndex(0) -7 >Emitted(49, 23) Source(59, 23) + SourceIndex(0) -8 >Emitted(49, 24) Source(59, 24) + SourceIndex(0) +1 >Emitted(57, 5) Source(59, 5) + SourceIndex(0) +2 >Emitted(57, 12) Source(59, 12) + SourceIndex(0) +3 >Emitted(57, 13) Source(59, 13) + SourceIndex(0) +4 >Emitted(57, 16) Source(59, 16) + SourceIndex(0) +5 >Emitted(57, 17) Source(59, 17) + SourceIndex(0) +6 >Emitted(57, 22) Source(59, 22) + SourceIndex(0) +7 >Emitted(57, 23) Source(59, 23) + SourceIndex(0) +8 >Emitted(57, 24) Source(59, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(50, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(50, 2) Source(60, 2) + SourceIndex(0) +1 >Emitted(58, 1) Source(60, 1) + SourceIndex(0) +2 >Emitted(58, 2) Source(60, 2) + SourceIndex(0) --- ->>>for (numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2], robotA, i = 0; i < 1; i++) { +>>>for (_z = __read(robotA, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2], robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^ 8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +9 > ^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberA2 -6 > , -7 > nameA2 +4 > ( +5 > [numberA2, nameA2, skillA2] = robotA +6 > +7 > numberA2 8 > , -9 > skillA2 -10> ] = -11> robotA -12> , -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(51, 1) Source(62, 1) + SourceIndex(0) -2 >Emitted(51, 4) Source(62, 4) + SourceIndex(0) -3 >Emitted(51, 5) Source(62, 5) + SourceIndex(0) -4 >Emitted(51, 6) Source(62, 7) + SourceIndex(0) -5 >Emitted(51, 26) Source(62, 15) + SourceIndex(0) -6 >Emitted(51, 28) Source(62, 17) + SourceIndex(0) -7 >Emitted(51, 46) Source(62, 23) + SourceIndex(0) -8 >Emitted(51, 48) Source(62, 25) + SourceIndex(0) -9 >Emitted(51, 67) Source(62, 32) + SourceIndex(0) -10>Emitted(51, 69) Source(62, 36) + SourceIndex(0) -11>Emitted(51, 75) Source(62, 42) + SourceIndex(0) -12>Emitted(51, 77) Source(62, 44) + SourceIndex(0) -13>Emitted(51, 78) Source(62, 45) + SourceIndex(0) -14>Emitted(51, 81) Source(62, 48) + SourceIndex(0) -15>Emitted(51, 82) Source(62, 49) + SourceIndex(0) -16>Emitted(51, 84) Source(62, 51) + SourceIndex(0) -17>Emitted(51, 85) Source(62, 52) + SourceIndex(0) -18>Emitted(51, 88) Source(62, 55) + SourceIndex(0) -19>Emitted(51, 89) Source(62, 56) + SourceIndex(0) -20>Emitted(51, 91) Source(62, 58) + SourceIndex(0) -21>Emitted(51, 92) Source(62, 59) + SourceIndex(0) -22>Emitted(51, 94) Source(62, 61) + SourceIndex(0) -23>Emitted(51, 96) Source(62, 63) + SourceIndex(0) -24>Emitted(51, 97) Source(62, 64) + SourceIndex(0) +9 > nameA2 +10> , +11> skillA2 +12> ] = +13> robotA +14> , +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(59, 1) Source(62, 1) + SourceIndex(0) +2 >Emitted(59, 4) Source(62, 4) + SourceIndex(0) +3 >Emitted(59, 5) Source(62, 5) + SourceIndex(0) +4 >Emitted(59, 6) Source(62, 6) + SourceIndex(0) +5 >Emitted(59, 28) Source(62, 42) + SourceIndex(0) +6 >Emitted(59, 30) Source(62, 7) + SourceIndex(0) +7 >Emitted(59, 46) Source(62, 15) + SourceIndex(0) +8 >Emitted(59, 48) Source(62, 17) + SourceIndex(0) +9 >Emitted(59, 62) Source(62, 23) + SourceIndex(0) +10>Emitted(59, 64) Source(62, 25) + SourceIndex(0) +11>Emitted(59, 79) Source(62, 32) + SourceIndex(0) +12>Emitted(59, 81) Source(62, 36) + SourceIndex(0) +13>Emitted(59, 87) Source(62, 42) + SourceIndex(0) +14>Emitted(59, 89) Source(62, 44) + SourceIndex(0) +15>Emitted(59, 90) Source(62, 45) + SourceIndex(0) +16>Emitted(59, 93) Source(62, 48) + SourceIndex(0) +17>Emitted(59, 94) Source(62, 49) + SourceIndex(0) +18>Emitted(59, 96) Source(62, 51) + SourceIndex(0) +19>Emitted(59, 97) Source(62, 52) + SourceIndex(0) +20>Emitted(59, 100) Source(62, 55) + SourceIndex(0) +21>Emitted(59, 101) Source(62, 56) + SourceIndex(0) +22>Emitted(59, 103) Source(62, 58) + SourceIndex(0) +23>Emitted(59, 104) Source(62, 59) + SourceIndex(0) +24>Emitted(59, 106) Source(62, 61) + SourceIndex(0) +25>Emitted(59, 108) Source(62, 63) + SourceIndex(0) +26>Emitted(59, 109) Source(62, 64) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1673,50 +1759,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(52, 5) Source(63, 5) + SourceIndex(0) -2 >Emitted(52, 12) Source(63, 12) + SourceIndex(0) -3 >Emitted(52, 13) Source(63, 13) + SourceIndex(0) -4 >Emitted(52, 16) Source(63, 16) + SourceIndex(0) -5 >Emitted(52, 17) Source(63, 17) + SourceIndex(0) -6 >Emitted(52, 23) Source(63, 23) + SourceIndex(0) -7 >Emitted(52, 24) Source(63, 24) + SourceIndex(0) -8 >Emitted(52, 25) Source(63, 25) + SourceIndex(0) +1 >Emitted(60, 5) Source(63, 5) + SourceIndex(0) +2 >Emitted(60, 12) Source(63, 12) + SourceIndex(0) +3 >Emitted(60, 13) Source(63, 13) + SourceIndex(0) +4 >Emitted(60, 16) Source(63, 16) + SourceIndex(0) +5 >Emitted(60, 17) Source(63, 17) + SourceIndex(0) +6 >Emitted(60, 23) Source(63, 23) + SourceIndex(0) +7 >Emitted(60, 24) Source(63, 24) + SourceIndex(0) +8 >Emitted(60, 25) Source(63, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(53, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(53, 2) Source(64, 2) + SourceIndex(0) +1 >Emitted(61, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(61, 2) Source(64, 2) + SourceIndex(0) --- ->>>for (_m = getRobot(), numberA2 = _m[0], nameA2 = _m[1], skillA2 = _m[2], _m, i = 0; i < 1; i++) { +>>>for (_0 = getRobot(), _1 = __read(_0, 3), numberA2 = _1[0], nameA2 = _1[1], skillA2 = _1[2], _0, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^ -12> ^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^ +14> ^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -1724,48 +1812,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [numberA2, nameA2, skillA2] = getRobot() 6 > -7 > numberA2 -8 > , -9 > nameA2 -10> , -11> skillA2 -12> ] = getRobot(), -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(54, 1) Source(65, 1) + SourceIndex(0) -2 >Emitted(54, 4) Source(65, 4) + SourceIndex(0) -3 >Emitted(54, 5) Source(65, 5) + SourceIndex(0) -4 >Emitted(54, 6) Source(65, 6) + SourceIndex(0) -5 >Emitted(54, 21) Source(65, 46) + SourceIndex(0) -6 >Emitted(54, 23) Source(65, 7) + SourceIndex(0) -7 >Emitted(54, 39) Source(65, 15) + SourceIndex(0) -8 >Emitted(54, 41) Source(65, 17) + SourceIndex(0) -9 >Emitted(54, 55) Source(65, 23) + SourceIndex(0) -10>Emitted(54, 57) Source(65, 25) + SourceIndex(0) -11>Emitted(54, 72) Source(65, 32) + SourceIndex(0) -12>Emitted(54, 78) Source(65, 48) + SourceIndex(0) -13>Emitted(54, 79) Source(65, 49) + SourceIndex(0) -14>Emitted(54, 82) Source(65, 52) + SourceIndex(0) -15>Emitted(54, 83) Source(65, 53) + SourceIndex(0) -16>Emitted(54, 85) Source(65, 55) + SourceIndex(0) -17>Emitted(54, 86) Source(65, 56) + SourceIndex(0) -18>Emitted(54, 89) Source(65, 59) + SourceIndex(0) -19>Emitted(54, 90) Source(65, 60) + SourceIndex(0) -20>Emitted(54, 92) Source(65, 62) + SourceIndex(0) -21>Emitted(54, 93) Source(65, 63) + SourceIndex(0) -22>Emitted(54, 95) Source(65, 65) + SourceIndex(0) -23>Emitted(54, 97) Source(65, 67) + SourceIndex(0) -24>Emitted(54, 98) Source(65, 68) + SourceIndex(0) +7 > [numberA2, nameA2, skillA2] = getRobot() +8 > +9 > numberA2 +10> , +11> nameA2 +12> , +13> skillA2 +14> ] = getRobot(), +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(62, 1) Source(65, 1) + SourceIndex(0) +2 >Emitted(62, 4) Source(65, 4) + SourceIndex(0) +3 >Emitted(62, 5) Source(65, 5) + SourceIndex(0) +4 >Emitted(62, 6) Source(65, 6) + SourceIndex(0) +5 >Emitted(62, 21) Source(65, 46) + SourceIndex(0) +6 >Emitted(62, 23) Source(65, 6) + SourceIndex(0) +7 >Emitted(62, 41) Source(65, 46) + SourceIndex(0) +8 >Emitted(62, 43) Source(65, 7) + SourceIndex(0) +9 >Emitted(62, 59) Source(65, 15) + SourceIndex(0) +10>Emitted(62, 61) Source(65, 17) + SourceIndex(0) +11>Emitted(62, 75) Source(65, 23) + SourceIndex(0) +12>Emitted(62, 77) Source(65, 25) + SourceIndex(0) +13>Emitted(62, 92) Source(65, 32) + SourceIndex(0) +14>Emitted(62, 98) Source(65, 48) + SourceIndex(0) +15>Emitted(62, 99) Source(65, 49) + SourceIndex(0) +16>Emitted(62, 102) Source(65, 52) + SourceIndex(0) +17>Emitted(62, 103) Source(65, 53) + SourceIndex(0) +18>Emitted(62, 105) Source(65, 55) + SourceIndex(0) +19>Emitted(62, 106) Source(65, 56) + SourceIndex(0) +20>Emitted(62, 109) Source(65, 59) + SourceIndex(0) +21>Emitted(62, 110) Source(65, 60) + SourceIndex(0) +22>Emitted(62, 112) Source(65, 62) + SourceIndex(0) +23>Emitted(62, 113) Source(65, 63) + SourceIndex(0) +24>Emitted(62, 115) Source(65, 65) + SourceIndex(0) +25>Emitted(62, 117) Source(65, 67) + SourceIndex(0) +26>Emitted(62, 118) Source(65, 68) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1785,50 +1877,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(55, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(66, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(66, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(66, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(66, 17) + SourceIndex(0) -6 >Emitted(55, 23) Source(66, 23) + SourceIndex(0) -7 >Emitted(55, 24) Source(66, 24) + SourceIndex(0) -8 >Emitted(55, 25) Source(66, 25) + SourceIndex(0) +1 >Emitted(63, 5) Source(66, 5) + SourceIndex(0) +2 >Emitted(63, 12) Source(66, 12) + SourceIndex(0) +3 >Emitted(63, 13) Source(66, 13) + SourceIndex(0) +4 >Emitted(63, 16) Source(66, 16) + SourceIndex(0) +5 >Emitted(63, 17) Source(66, 17) + SourceIndex(0) +6 >Emitted(63, 23) Source(66, 23) + SourceIndex(0) +7 >Emitted(63, 24) Source(66, 24) + SourceIndex(0) +8 >Emitted(63, 25) Source(66, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(56, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(56, 2) Source(67, 2) + SourceIndex(0) +1 >Emitted(64, 1) Source(67, 1) + SourceIndex(0) +2 >Emitted(64, 2) Source(67, 2) + SourceIndex(0) --- ->>>for (_o = [2, "trimmer", "trimming"], numberA2 = _o[0], nameA2 = _o[1], skillA2 = _o[2], _o, i = 0; i < 1; i++) { +>>>for (_2 = [2, "trimmer", "trimming"], _3 = __read(_2, 3), numberA2 = _3[0], nameA2 = _3[1], skillA2 = _3[2], _2, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^ -12> ^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^ +14> ^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -1836,48 +1930,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [numberA2, nameA2, skillA2] = [2, "trimmer", "trimming"] 6 > -7 > numberA2 -8 > , -9 > nameA2 -10> , -11> skillA2 -12> ] = [2, "trimmer", "trimming"], -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(57, 1) Source(68, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(68, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(68, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(68, 6) + SourceIndex(0) -5 >Emitted(57, 37) Source(68, 62) + SourceIndex(0) -6 >Emitted(57, 39) Source(68, 7) + SourceIndex(0) -7 >Emitted(57, 55) Source(68, 15) + SourceIndex(0) -8 >Emitted(57, 57) Source(68, 17) + SourceIndex(0) -9 >Emitted(57, 71) Source(68, 23) + SourceIndex(0) -10>Emitted(57, 73) Source(68, 25) + SourceIndex(0) -11>Emitted(57, 88) Source(68, 32) + SourceIndex(0) -12>Emitted(57, 94) Source(68, 64) + SourceIndex(0) -13>Emitted(57, 95) Source(68, 65) + SourceIndex(0) -14>Emitted(57, 98) Source(68, 68) + SourceIndex(0) -15>Emitted(57, 99) Source(68, 69) + SourceIndex(0) -16>Emitted(57, 101) Source(68, 71) + SourceIndex(0) -17>Emitted(57, 102) Source(68, 72) + SourceIndex(0) -18>Emitted(57, 105) Source(68, 75) + SourceIndex(0) -19>Emitted(57, 106) Source(68, 76) + SourceIndex(0) -20>Emitted(57, 108) Source(68, 78) + SourceIndex(0) -21>Emitted(57, 109) Source(68, 79) + SourceIndex(0) -22>Emitted(57, 111) Source(68, 81) + SourceIndex(0) -23>Emitted(57, 113) Source(68, 83) + SourceIndex(0) -24>Emitted(57, 114) Source(68, 84) + SourceIndex(0) +7 > [numberA2, nameA2, skillA2] = [2, "trimmer", "trimming"] +8 > +9 > numberA2 +10> , +11> nameA2 +12> , +13> skillA2 +14> ] = [2, "trimmer", "trimming"], +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(65, 1) Source(68, 1) + SourceIndex(0) +2 >Emitted(65, 4) Source(68, 4) + SourceIndex(0) +3 >Emitted(65, 5) Source(68, 5) + SourceIndex(0) +4 >Emitted(65, 6) Source(68, 6) + SourceIndex(0) +5 >Emitted(65, 37) Source(68, 62) + SourceIndex(0) +6 >Emitted(65, 39) Source(68, 6) + SourceIndex(0) +7 >Emitted(65, 57) Source(68, 62) + SourceIndex(0) +8 >Emitted(65, 59) Source(68, 7) + SourceIndex(0) +9 >Emitted(65, 75) Source(68, 15) + SourceIndex(0) +10>Emitted(65, 77) Source(68, 17) + SourceIndex(0) +11>Emitted(65, 91) Source(68, 23) + SourceIndex(0) +12>Emitted(65, 93) Source(68, 25) + SourceIndex(0) +13>Emitted(65, 108) Source(68, 32) + SourceIndex(0) +14>Emitted(65, 114) Source(68, 64) + SourceIndex(0) +15>Emitted(65, 115) Source(68, 65) + SourceIndex(0) +16>Emitted(65, 118) Source(68, 68) + SourceIndex(0) +17>Emitted(65, 119) Source(68, 69) + SourceIndex(0) +18>Emitted(65, 121) Source(68, 71) + SourceIndex(0) +19>Emitted(65, 122) Source(68, 72) + SourceIndex(0) +20>Emitted(65, 125) Source(68, 75) + SourceIndex(0) +21>Emitted(65, 126) Source(68, 76) + SourceIndex(0) +22>Emitted(65, 128) Source(68, 78) + SourceIndex(0) +23>Emitted(65, 129) Source(68, 79) + SourceIndex(0) +24>Emitted(65, 131) Source(68, 81) + SourceIndex(0) +25>Emitted(65, 133) Source(68, 83) + SourceIndex(0) +26>Emitted(65, 134) Source(68, 84) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1897,105 +1995,111 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(58, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(58, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(58, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(58, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(58, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(58, 23) Source(69, 23) + SourceIndex(0) -7 >Emitted(58, 24) Source(69, 24) + SourceIndex(0) -8 >Emitted(58, 25) Source(69, 25) + SourceIndex(0) +1 >Emitted(66, 5) Source(69, 5) + SourceIndex(0) +2 >Emitted(66, 12) Source(69, 12) + SourceIndex(0) +3 >Emitted(66, 13) Source(69, 13) + SourceIndex(0) +4 >Emitted(66, 16) Source(69, 16) + SourceIndex(0) +5 >Emitted(66, 17) Source(69, 17) + SourceIndex(0) +6 >Emitted(66, 23) Source(69, 23) + SourceIndex(0) +7 >Emitted(66, 24) Source(69, 24) + SourceIndex(0) +8 >Emitted(66, 25) Source(69, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(59, 1) Source(70, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(70, 2) + SourceIndex(0) +1 >Emitted(67, 1) Source(70, 1) + SourceIndex(0) +2 >Emitted(67, 2) Source(70, 2) + SourceIndex(0) --- ->>>for (nameMA = multiRobotA[0], _p = multiRobotA[1], primarySkillA = _p[0], secondarySkillA = _p[1], multiRobotA, i = 0; i < 1; i++) { +>>>for (_4 = __read(multiRobotA, 2), nameMA = _4[0], _5 = __read(_4[1], 2), primarySkillA = _5[0], secondarySkillA = _5[1], multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^ -25> ^^ -26> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^ +27> ^^ +28> ^ 1-> > 2 >for 3 > -4 > ([ -5 > nameMA -6 > , -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -12> ]] = -13> multiRobotA -14> , -15> i -16> = -17> 0 -18> ; -19> i -20> < -21> 1 -22> ; -23> i -24> ++ -25> ) -26> { -1->Emitted(60, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(60, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(60, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(60, 6) Source(71, 7) + SourceIndex(0) -5 >Emitted(60, 29) Source(71, 13) + SourceIndex(0) -6 >Emitted(60, 31) Source(71, 15) + SourceIndex(0) -7 >Emitted(60, 50) Source(71, 47) + SourceIndex(0) -8 >Emitted(60, 52) Source(71, 16) + SourceIndex(0) -9 >Emitted(60, 73) Source(71, 29) + SourceIndex(0) -10>Emitted(60, 75) Source(71, 31) + SourceIndex(0) -11>Emitted(60, 98) Source(71, 46) + SourceIndex(0) -12>Emitted(60, 100) Source(71, 51) + SourceIndex(0) -13>Emitted(60, 111) Source(71, 62) + SourceIndex(0) -14>Emitted(60, 113) Source(71, 64) + SourceIndex(0) -15>Emitted(60, 114) Source(71, 65) + SourceIndex(0) -16>Emitted(60, 117) Source(71, 68) + SourceIndex(0) -17>Emitted(60, 118) Source(71, 69) + SourceIndex(0) -18>Emitted(60, 120) Source(71, 71) + SourceIndex(0) -19>Emitted(60, 121) Source(71, 72) + SourceIndex(0) -20>Emitted(60, 124) Source(71, 75) + SourceIndex(0) -21>Emitted(60, 125) Source(71, 76) + SourceIndex(0) -22>Emitted(60, 127) Source(71, 78) + SourceIndex(0) -23>Emitted(60, 128) Source(71, 79) + SourceIndex(0) -24>Emitted(60, 130) Source(71, 81) + SourceIndex(0) -25>Emitted(60, 132) Source(71, 83) + SourceIndex(0) -26>Emitted(60, 133) Source(71, 84) + SourceIndex(0) +4 > ( +5 > [nameMA, [primarySkillA, secondarySkillA]] = multiRobotA +6 > +7 > nameMA +8 > , +9 > [primarySkillA, secondarySkillA] +10> +11> primarySkillA +12> , +13> secondarySkillA +14> ]] = +15> multiRobotA +16> , +17> i +18> = +19> 0 +20> ; +21> i +22> < +23> 1 +24> ; +25> i +26> ++ +27> ) +28> { +1->Emitted(68, 1) Source(71, 1) + SourceIndex(0) +2 >Emitted(68, 4) Source(71, 4) + SourceIndex(0) +3 >Emitted(68, 5) Source(71, 5) + SourceIndex(0) +4 >Emitted(68, 6) Source(71, 6) + SourceIndex(0) +5 >Emitted(68, 33) Source(71, 62) + SourceIndex(0) +6 >Emitted(68, 35) Source(71, 7) + SourceIndex(0) +7 >Emitted(68, 49) Source(71, 13) + SourceIndex(0) +8 >Emitted(68, 51) Source(71, 15) + SourceIndex(0) +9 >Emitted(68, 72) Source(71, 47) + SourceIndex(0) +10>Emitted(68, 74) Source(71, 16) + SourceIndex(0) +11>Emitted(68, 95) Source(71, 29) + SourceIndex(0) +12>Emitted(68, 97) Source(71, 31) + SourceIndex(0) +13>Emitted(68, 120) Source(71, 46) + SourceIndex(0) +14>Emitted(68, 122) Source(71, 51) + SourceIndex(0) +15>Emitted(68, 133) Source(71, 62) + SourceIndex(0) +16>Emitted(68, 135) Source(71, 64) + SourceIndex(0) +17>Emitted(68, 136) Source(71, 65) + SourceIndex(0) +18>Emitted(68, 139) Source(71, 68) + SourceIndex(0) +19>Emitted(68, 140) Source(71, 69) + SourceIndex(0) +20>Emitted(68, 142) Source(71, 71) + SourceIndex(0) +21>Emitted(68, 143) Source(71, 72) + SourceIndex(0) +22>Emitted(68, 146) Source(71, 75) + SourceIndex(0) +23>Emitted(68, 147) Source(71, 76) + SourceIndex(0) +24>Emitted(68, 149) Source(71, 78) + SourceIndex(0) +25>Emitted(68, 150) Source(71, 79) + SourceIndex(0) +26>Emitted(68, 152) Source(71, 81) + SourceIndex(0) +27>Emitted(68, 154) Source(71, 83) + SourceIndex(0) +28>Emitted(68, 155) Source(71, 84) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2015,52 +2119,54 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(61, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(61, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(61, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(61, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(61, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(61, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(61, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(61, 25) Source(72, 25) + SourceIndex(0) +1 >Emitted(69, 5) Source(72, 5) + SourceIndex(0) +2 >Emitted(69, 12) Source(72, 12) + SourceIndex(0) +3 >Emitted(69, 13) Source(72, 13) + SourceIndex(0) +4 >Emitted(69, 16) Source(72, 16) + SourceIndex(0) +5 >Emitted(69, 17) Source(72, 17) + SourceIndex(0) +6 >Emitted(69, 23) Source(72, 23) + SourceIndex(0) +7 >Emitted(69, 24) Source(72, 24) + SourceIndex(0) +8 >Emitted(69, 25) Source(72, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(62, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(62, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(70, 1) Source(73, 1) + SourceIndex(0) +2 >Emitted(70, 2) Source(73, 2) + SourceIndex(0) --- ->>>for (_q = getMultiRobot(), nameMA = _q[0], _r = _q[1], primarySkillA = _r[0], secondarySkillA = _r[1], _q, i = 0; i < 1; i++) { +>>>for (_6 = getMultiRobot(), _7 = __read(_6, 2), nameMA = _7[0], _8 = __read(_7[1], 2), primarySkillA = _8[0], secondarySkillA = _8[1], _6, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^^^^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^ -25> ^^ -26> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^^^^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^ +27> ^^ +28> ^ 1-> > 2 >for @@ -2068,52 +2174,56 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [nameMA, [primarySkillA, secondarySkillA]] = getMultiRobot() 6 > -7 > nameMA -8 > , -9 > [primarySkillA, secondarySkillA] -10> -11> primarySkillA -12> , -13> secondarySkillA -14> ]] = getMultiRobot(), -15> i -16> = -17> 0 -18> ; -19> i -20> < -21> 1 -22> ; -23> i -24> ++ -25> ) -26> { -1->Emitted(63, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(63, 4) Source(74, 4) + SourceIndex(0) -3 >Emitted(63, 5) Source(74, 5) + SourceIndex(0) -4 >Emitted(63, 6) Source(74, 6) + SourceIndex(0) -5 >Emitted(63, 26) Source(74, 66) + SourceIndex(0) -6 >Emitted(63, 28) Source(74, 7) + SourceIndex(0) -7 >Emitted(63, 42) Source(74, 13) + SourceIndex(0) -8 >Emitted(63, 44) Source(74, 15) + SourceIndex(0) -9 >Emitted(63, 54) Source(74, 47) + SourceIndex(0) -10>Emitted(63, 56) Source(74, 16) + SourceIndex(0) -11>Emitted(63, 77) Source(74, 29) + SourceIndex(0) -12>Emitted(63, 79) Source(74, 31) + SourceIndex(0) -13>Emitted(63, 102) Source(74, 46) + SourceIndex(0) -14>Emitted(63, 108) Source(74, 68) + SourceIndex(0) -15>Emitted(63, 109) Source(74, 69) + SourceIndex(0) -16>Emitted(63, 112) Source(74, 72) + SourceIndex(0) -17>Emitted(63, 113) Source(74, 73) + SourceIndex(0) -18>Emitted(63, 115) Source(74, 75) + SourceIndex(0) -19>Emitted(63, 116) Source(74, 76) + SourceIndex(0) -20>Emitted(63, 119) Source(74, 79) + SourceIndex(0) -21>Emitted(63, 120) Source(74, 80) + SourceIndex(0) -22>Emitted(63, 122) Source(74, 82) + SourceIndex(0) -23>Emitted(63, 123) Source(74, 83) + SourceIndex(0) -24>Emitted(63, 125) Source(74, 85) + SourceIndex(0) -25>Emitted(63, 127) Source(74, 87) + SourceIndex(0) -26>Emitted(63, 128) Source(74, 88) + SourceIndex(0) +7 > [nameMA, [primarySkillA, secondarySkillA]] = getMultiRobot() +8 > +9 > nameMA +10> , +11> [primarySkillA, secondarySkillA] +12> +13> primarySkillA +14> , +15> secondarySkillA +16> ]] = getMultiRobot(), +17> i +18> = +19> 0 +20> ; +21> i +22> < +23> 1 +24> ; +25> i +26> ++ +27> ) +28> { +1->Emitted(71, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(71, 4) Source(74, 4) + SourceIndex(0) +3 >Emitted(71, 5) Source(74, 5) + SourceIndex(0) +4 >Emitted(71, 6) Source(74, 6) + SourceIndex(0) +5 >Emitted(71, 26) Source(74, 66) + SourceIndex(0) +6 >Emitted(71, 28) Source(74, 6) + SourceIndex(0) +7 >Emitted(71, 46) Source(74, 66) + SourceIndex(0) +8 >Emitted(71, 48) Source(74, 7) + SourceIndex(0) +9 >Emitted(71, 62) Source(74, 13) + SourceIndex(0) +10>Emitted(71, 64) Source(74, 15) + SourceIndex(0) +11>Emitted(71, 85) Source(74, 47) + SourceIndex(0) +12>Emitted(71, 87) Source(74, 16) + SourceIndex(0) +13>Emitted(71, 108) Source(74, 29) + SourceIndex(0) +14>Emitted(71, 110) Source(74, 31) + SourceIndex(0) +15>Emitted(71, 133) Source(74, 46) + SourceIndex(0) +16>Emitted(71, 139) Source(74, 68) + SourceIndex(0) +17>Emitted(71, 140) Source(74, 69) + SourceIndex(0) +18>Emitted(71, 143) Source(74, 72) + SourceIndex(0) +19>Emitted(71, 144) Source(74, 73) + SourceIndex(0) +20>Emitted(71, 146) Source(74, 75) + SourceIndex(0) +21>Emitted(71, 147) Source(74, 76) + SourceIndex(0) +22>Emitted(71, 150) Source(74, 79) + SourceIndex(0) +23>Emitted(71, 151) Source(74, 80) + SourceIndex(0) +24>Emitted(71, 153) Source(74, 82) + SourceIndex(0) +25>Emitted(71, 154) Source(74, 83) + SourceIndex(0) +26>Emitted(71, 156) Source(74, 85) + SourceIndex(0) +27>Emitted(71, 158) Source(74, 87) + SourceIndex(0) +28>Emitted(71, 159) Source(74, 88) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2133,52 +2243,54 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(64, 5) Source(75, 5) + SourceIndex(0) -2 >Emitted(64, 12) Source(75, 12) + SourceIndex(0) -3 >Emitted(64, 13) Source(75, 13) + SourceIndex(0) -4 >Emitted(64, 16) Source(75, 16) + SourceIndex(0) -5 >Emitted(64, 17) Source(75, 17) + SourceIndex(0) -6 >Emitted(64, 23) Source(75, 23) + SourceIndex(0) -7 >Emitted(64, 24) Source(75, 24) + SourceIndex(0) -8 >Emitted(64, 25) Source(75, 25) + SourceIndex(0) +1 >Emitted(72, 5) Source(75, 5) + SourceIndex(0) +2 >Emitted(72, 12) Source(75, 12) + SourceIndex(0) +3 >Emitted(72, 13) Source(75, 13) + SourceIndex(0) +4 >Emitted(72, 16) Source(75, 16) + SourceIndex(0) +5 >Emitted(72, 17) Source(75, 17) + SourceIndex(0) +6 >Emitted(72, 23) Source(75, 23) + SourceIndex(0) +7 >Emitted(72, 24) Source(75, 24) + SourceIndex(0) +8 >Emitted(72, 25) Source(75, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(65, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(65, 2) Source(76, 2) + SourceIndex(0) +1 >Emitted(73, 1) Source(76, 1) + SourceIndex(0) +2 >Emitted(73, 2) Source(76, 2) + SourceIndex(0) --- ->>>for (_s = ["trimmer", ["trimming", "edging"]], nameMA = _s[0], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1], _s, i = 0; i < 1; i++) { +>>>for (_9 = ["trimmer", ["trimming", "edging"]], _10 = __read(_9, 2), nameMA = _10[0], _11 = __read(_10[1], 2), primarySkillA = _11[0], secondarySkillA = _11[1], _9, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^^^^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^ -25> ^^ -26> ^ +7 > ^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^^^^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^ +27> ^^ +28> ^ 1-> > 2 >for @@ -2186,52 +2298,56 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 4 > ( 5 > [nameMA, [primarySkillA, secondarySkillA]] = ["trimmer", ["trimming", "edging"]] 6 > -7 > nameMA -8 > , -9 > [primarySkillA, secondarySkillA] -10> -11> primarySkillA -12> , -13> secondarySkillA -14> ]] = ["trimmer", ["trimming", "edging"]], -15> i -16> = -17> 0 -18> ; -19> i -20> < -21> 1 -22> ; -23> i -24> ++ -25> ) -26> { -1->Emitted(66, 1) Source(77, 1) + SourceIndex(0) -2 >Emitted(66, 4) Source(77, 4) + SourceIndex(0) -3 >Emitted(66, 5) Source(77, 5) + SourceIndex(0) -4 >Emitted(66, 6) Source(77, 6) + SourceIndex(0) -5 >Emitted(66, 46) Source(77, 86) + SourceIndex(0) -6 >Emitted(66, 48) Source(77, 7) + SourceIndex(0) -7 >Emitted(66, 62) Source(77, 13) + SourceIndex(0) -8 >Emitted(66, 64) Source(77, 15) + SourceIndex(0) -9 >Emitted(66, 74) Source(77, 47) + SourceIndex(0) -10>Emitted(66, 76) Source(77, 16) + SourceIndex(0) -11>Emitted(66, 97) Source(77, 29) + SourceIndex(0) -12>Emitted(66, 99) Source(77, 31) + SourceIndex(0) -13>Emitted(66, 122) Source(77, 46) + SourceIndex(0) -14>Emitted(66, 128) Source(77, 88) + SourceIndex(0) -15>Emitted(66, 129) Source(77, 89) + SourceIndex(0) -16>Emitted(66, 132) Source(77, 92) + SourceIndex(0) -17>Emitted(66, 133) Source(77, 93) + SourceIndex(0) -18>Emitted(66, 135) Source(77, 95) + SourceIndex(0) -19>Emitted(66, 136) Source(77, 96) + SourceIndex(0) -20>Emitted(66, 139) Source(77, 99) + SourceIndex(0) -21>Emitted(66, 140) Source(77, 100) + SourceIndex(0) -22>Emitted(66, 142) Source(77, 102) + SourceIndex(0) -23>Emitted(66, 143) Source(77, 103) + SourceIndex(0) -24>Emitted(66, 145) Source(77, 105) + SourceIndex(0) -25>Emitted(66, 147) Source(77, 107) + SourceIndex(0) -26>Emitted(66, 148) Source(77, 108) + SourceIndex(0) +7 > [nameMA, [primarySkillA, secondarySkillA]] = ["trimmer", ["trimming", "edging"]] +8 > +9 > nameMA +10> , +11> [primarySkillA, secondarySkillA] +12> +13> primarySkillA +14> , +15> secondarySkillA +16> ]] = ["trimmer", ["trimming", "edging"]], +17> i +18> = +19> 0 +20> ; +21> i +22> < +23> 1 +24> ; +25> i +26> ++ +27> ) +28> { +1->Emitted(74, 1) Source(77, 1) + SourceIndex(0) +2 >Emitted(74, 4) Source(77, 4) + SourceIndex(0) +3 >Emitted(74, 5) Source(77, 5) + SourceIndex(0) +4 >Emitted(74, 6) Source(77, 6) + SourceIndex(0) +5 >Emitted(74, 46) Source(77, 86) + SourceIndex(0) +6 >Emitted(74, 48) Source(77, 6) + SourceIndex(0) +7 >Emitted(74, 67) Source(77, 86) + SourceIndex(0) +8 >Emitted(74, 69) Source(77, 7) + SourceIndex(0) +9 >Emitted(74, 84) Source(77, 13) + SourceIndex(0) +10>Emitted(74, 86) Source(77, 15) + SourceIndex(0) +11>Emitted(74, 109) Source(77, 47) + SourceIndex(0) +12>Emitted(74, 111) Source(77, 16) + SourceIndex(0) +13>Emitted(74, 133) Source(77, 29) + SourceIndex(0) +14>Emitted(74, 135) Source(77, 31) + SourceIndex(0) +15>Emitted(74, 159) Source(77, 46) + SourceIndex(0) +16>Emitted(74, 165) Source(77, 88) + SourceIndex(0) +17>Emitted(74, 166) Source(77, 89) + SourceIndex(0) +18>Emitted(74, 169) Source(77, 92) + SourceIndex(0) +19>Emitted(74, 170) Source(77, 93) + SourceIndex(0) +20>Emitted(74, 172) Source(77, 95) + SourceIndex(0) +21>Emitted(74, 173) Source(77, 96) + SourceIndex(0) +22>Emitted(74, 176) Source(77, 99) + SourceIndex(0) +23>Emitted(74, 177) Source(77, 100) + SourceIndex(0) +24>Emitted(74, 179) Source(77, 102) + SourceIndex(0) +25>Emitted(74, 180) Source(77, 103) + SourceIndex(0) +26>Emitted(74, 182) Source(77, 105) + SourceIndex(0) +27>Emitted(74, 184) Source(77, 107) + SourceIndex(0) +28>Emitted(74, 185) Source(77, 108) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2251,94 +2367,100 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(67, 5) Source(78, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(78, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(78, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(78, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(78, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(78, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(78, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(78, 25) + SourceIndex(0) +1 >Emitted(75, 5) Source(78, 5) + SourceIndex(0) +2 >Emitted(75, 12) Source(78, 12) + SourceIndex(0) +3 >Emitted(75, 13) Source(78, 13) + SourceIndex(0) +4 >Emitted(75, 16) Source(78, 16) + SourceIndex(0) +5 >Emitted(75, 17) Source(78, 17) + SourceIndex(0) +6 >Emitted(75, 23) Source(78, 23) + SourceIndex(0) +7 >Emitted(75, 24) Source(78, 24) + SourceIndex(0) +8 >Emitted(75, 25) Source(78, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(68, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(68, 2) Source(79, 2) + SourceIndex(0) +1 >Emitted(76, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(76, 2) Source(79, 2) + SourceIndex(0) --- ->>>for (numberA3 = robotA[0], robotAInfo = robotA.slice(1), robotA, i = 0; i < 1; i++) { +>>>for (_12 = __read(robotA), numberA3 = _12[0], robotAInfo = _12.slice(1), robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^ -10> ^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^ +12> ^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberA3 -6 > , -7 > ...robotAInfo -8 > ] = -9 > robotA -10> , -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(69, 1) Source(81, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(81, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(81, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(81, 7) + SourceIndex(0) -5 >Emitted(69, 26) Source(81, 15) + SourceIndex(0) -6 >Emitted(69, 28) Source(81, 17) + SourceIndex(0) -7 >Emitted(69, 56) Source(81, 30) + SourceIndex(0) -8 >Emitted(69, 58) Source(81, 34) + SourceIndex(0) -9 >Emitted(69, 64) Source(81, 40) + SourceIndex(0) -10>Emitted(69, 66) Source(81, 42) + SourceIndex(0) -11>Emitted(69, 67) Source(81, 43) + SourceIndex(0) -12>Emitted(69, 70) Source(81, 46) + SourceIndex(0) -13>Emitted(69, 71) Source(81, 47) + SourceIndex(0) -14>Emitted(69, 73) Source(81, 49) + SourceIndex(0) -15>Emitted(69, 74) Source(81, 50) + SourceIndex(0) -16>Emitted(69, 77) Source(81, 53) + SourceIndex(0) -17>Emitted(69, 78) Source(81, 54) + SourceIndex(0) -18>Emitted(69, 80) Source(81, 56) + SourceIndex(0) -19>Emitted(69, 81) Source(81, 57) + SourceIndex(0) -20>Emitted(69, 83) Source(81, 59) + SourceIndex(0) -21>Emitted(69, 85) Source(81, 61) + SourceIndex(0) -22>Emitted(69, 86) Source(81, 62) + SourceIndex(0) +4 > ( +5 > [numberA3, ...robotAInfo] = robotA +6 > +7 > numberA3 +8 > , +9 > ...robotAInfo +10> ] = +11> robotA +12> , +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(77, 1) Source(81, 1) + SourceIndex(0) +2 >Emitted(77, 4) Source(81, 4) + SourceIndex(0) +3 >Emitted(77, 5) Source(81, 5) + SourceIndex(0) +4 >Emitted(77, 6) Source(81, 6) + SourceIndex(0) +5 >Emitted(77, 26) Source(81, 40) + SourceIndex(0) +6 >Emitted(77, 28) Source(81, 7) + SourceIndex(0) +7 >Emitted(77, 45) Source(81, 15) + SourceIndex(0) +8 >Emitted(77, 47) Source(81, 17) + SourceIndex(0) +9 >Emitted(77, 72) Source(81, 30) + SourceIndex(0) +10>Emitted(77, 74) Source(81, 34) + SourceIndex(0) +11>Emitted(77, 80) Source(81, 40) + SourceIndex(0) +12>Emitted(77, 82) Source(81, 42) + SourceIndex(0) +13>Emitted(77, 83) Source(81, 43) + SourceIndex(0) +14>Emitted(77, 86) Source(81, 46) + SourceIndex(0) +15>Emitted(77, 87) Source(81, 47) + SourceIndex(0) +16>Emitted(77, 89) Source(81, 49) + SourceIndex(0) +17>Emitted(77, 90) Source(81, 50) + SourceIndex(0) +18>Emitted(77, 93) Source(81, 53) + SourceIndex(0) +19>Emitted(77, 94) Source(81, 54) + SourceIndex(0) +20>Emitted(77, 96) Source(81, 56) + SourceIndex(0) +21>Emitted(77, 97) Source(81, 57) + SourceIndex(0) +22>Emitted(77, 99) Source(81, 59) + SourceIndex(0) +23>Emitted(77, 101) Source(81, 61) + SourceIndex(0) +24>Emitted(77, 102) Source(81, 62) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2358,93 +2480,99 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(70, 5) Source(82, 5) + SourceIndex(0) -2 >Emitted(70, 12) Source(82, 12) + SourceIndex(0) -3 >Emitted(70, 13) Source(82, 13) + SourceIndex(0) -4 >Emitted(70, 16) Source(82, 16) + SourceIndex(0) -5 >Emitted(70, 17) Source(82, 17) + SourceIndex(0) -6 >Emitted(70, 25) Source(82, 25) + SourceIndex(0) -7 >Emitted(70, 26) Source(82, 26) + SourceIndex(0) -8 >Emitted(70, 27) Source(82, 27) + SourceIndex(0) +1 >Emitted(78, 5) Source(82, 5) + SourceIndex(0) +2 >Emitted(78, 12) Source(82, 12) + SourceIndex(0) +3 >Emitted(78, 13) Source(82, 13) + SourceIndex(0) +4 >Emitted(78, 16) Source(82, 16) + SourceIndex(0) +5 >Emitted(78, 17) Source(82, 17) + SourceIndex(0) +6 >Emitted(78, 25) Source(82, 25) + SourceIndex(0) +7 >Emitted(78, 26) Source(82, 26) + SourceIndex(0) +8 >Emitted(78, 27) Source(82, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(71, 1) Source(83, 1) + SourceIndex(0) -2 >Emitted(71, 2) Source(83, 2) + SourceIndex(0) +1 >Emitted(79, 1) Source(83, 1) + SourceIndex(0) +2 >Emitted(79, 2) Source(83, 2) + SourceIndex(0) --- ->>>for (_u = getRobot(), numberA3 = _u[0], robotAInfo = _u.slice(1), _u, i = 0; i < 1; i++) { +>>>for (_13 = getRobot(), _14 = __read(_13), numberA3 = _14[0], robotAInfo = _14.slice(1), _13, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for 3 > 4 > ( 5 > [numberA3, ...robotAInfo] = getRobot() -6 > -7 > numberA3 -8 > , -9 > ...robotAInfo -10> ] = getRobot(), -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(72, 1) Source(84, 1) + SourceIndex(0) -2 >Emitted(72, 4) Source(84, 4) + SourceIndex(0) -3 >Emitted(72, 5) Source(84, 5) + SourceIndex(0) -4 >Emitted(72, 6) Source(84, 6) + SourceIndex(0) -5 >Emitted(72, 21) Source(84, 44) + SourceIndex(0) -6 >Emitted(72, 23) Source(84, 7) + SourceIndex(0) -7 >Emitted(72, 39) Source(84, 15) + SourceIndex(0) -8 >Emitted(72, 41) Source(84, 17) + SourceIndex(0) -9 >Emitted(72, 65) Source(84, 30) + SourceIndex(0) -10>Emitted(72, 71) Source(84, 46) + SourceIndex(0) -11>Emitted(72, 72) Source(84, 47) + SourceIndex(0) -12>Emitted(72, 75) Source(84, 50) + SourceIndex(0) -13>Emitted(72, 76) Source(84, 51) + SourceIndex(0) -14>Emitted(72, 78) Source(84, 53) + SourceIndex(0) -15>Emitted(72, 79) Source(84, 54) + SourceIndex(0) -16>Emitted(72, 82) Source(84, 57) + SourceIndex(0) -17>Emitted(72, 83) Source(84, 58) + SourceIndex(0) -18>Emitted(72, 85) Source(84, 60) + SourceIndex(0) -19>Emitted(72, 86) Source(84, 61) + SourceIndex(0) -20>Emitted(72, 88) Source(84, 63) + SourceIndex(0) -21>Emitted(72, 90) Source(84, 65) + SourceIndex(0) -22>Emitted(72, 91) Source(84, 66) + SourceIndex(0) +6 > +7 > [numberA3, ...robotAInfo] = getRobot() +8 > +9 > numberA3 +10> , +11> ...robotAInfo +12> ] = getRobot(), +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(80, 1) Source(84, 1) + SourceIndex(0) +2 >Emitted(80, 4) Source(84, 4) + SourceIndex(0) +3 >Emitted(80, 5) Source(84, 5) + SourceIndex(0) +4 >Emitted(80, 6) Source(84, 6) + SourceIndex(0) +5 >Emitted(80, 22) Source(84, 44) + SourceIndex(0) +6 >Emitted(80, 24) Source(84, 6) + SourceIndex(0) +7 >Emitted(80, 41) Source(84, 44) + SourceIndex(0) +8 >Emitted(80, 43) Source(84, 7) + SourceIndex(0) +9 >Emitted(80, 60) Source(84, 15) + SourceIndex(0) +10>Emitted(80, 62) Source(84, 17) + SourceIndex(0) +11>Emitted(80, 87) Source(84, 30) + SourceIndex(0) +12>Emitted(80, 94) Source(84, 46) + SourceIndex(0) +13>Emitted(80, 95) Source(84, 47) + SourceIndex(0) +14>Emitted(80, 98) Source(84, 50) + SourceIndex(0) +15>Emitted(80, 99) Source(84, 51) + SourceIndex(0) +16>Emitted(80, 101) Source(84, 53) + SourceIndex(0) +17>Emitted(80, 102) Source(84, 54) + SourceIndex(0) +18>Emitted(80, 105) Source(84, 57) + SourceIndex(0) +19>Emitted(80, 106) Source(84, 58) + SourceIndex(0) +20>Emitted(80, 108) Source(84, 60) + SourceIndex(0) +21>Emitted(80, 109) Source(84, 61) + SourceIndex(0) +22>Emitted(80, 111) Source(84, 63) + SourceIndex(0) +23>Emitted(80, 113) Source(84, 65) + SourceIndex(0) +24>Emitted(80, 114) Source(84, 66) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2464,93 +2592,99 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(73, 5) Source(85, 5) + SourceIndex(0) -2 >Emitted(73, 12) Source(85, 12) + SourceIndex(0) -3 >Emitted(73, 13) Source(85, 13) + SourceIndex(0) -4 >Emitted(73, 16) Source(85, 16) + SourceIndex(0) -5 >Emitted(73, 17) Source(85, 17) + SourceIndex(0) -6 >Emitted(73, 25) Source(85, 25) + SourceIndex(0) -7 >Emitted(73, 26) Source(85, 26) + SourceIndex(0) -8 >Emitted(73, 27) Source(85, 27) + SourceIndex(0) +1 >Emitted(81, 5) Source(85, 5) + SourceIndex(0) +2 >Emitted(81, 12) Source(85, 12) + SourceIndex(0) +3 >Emitted(81, 13) Source(85, 13) + SourceIndex(0) +4 >Emitted(81, 16) Source(85, 16) + SourceIndex(0) +5 >Emitted(81, 17) Source(85, 17) + SourceIndex(0) +6 >Emitted(81, 25) Source(85, 25) + SourceIndex(0) +7 >Emitted(81, 26) Source(85, 26) + SourceIndex(0) +8 >Emitted(81, 27) Source(85, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(74, 1) Source(86, 1) + SourceIndex(0) -2 >Emitted(74, 2) Source(86, 2) + SourceIndex(0) +1 >Emitted(82, 1) Source(86, 1) + SourceIndex(0) +2 >Emitted(82, 2) Source(86, 2) + SourceIndex(0) --- ->>>for (_v = [2, "trimmer", "trimming"], numberA3 = _v[0], robotAInfo = _v.slice(1), _v, i = 0; i < 1; i++) { +>>>for (_15 = [2, "trimmer", "trimming"], _16 = __read(_15), numberA3 = _16[0], robotAInfo = _16.slice(1), _15, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for 3 > 4 > ( 5 > [numberA3, ...robotAInfo] = [2, "trimmer", "trimming"] -6 > -7 > numberA3 -8 > , -9 > ...robotAInfo -10> ] = [2, "trimmer", "trimming"], -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(75, 1) Source(87, 1) + SourceIndex(0) -2 >Emitted(75, 4) Source(87, 4) + SourceIndex(0) -3 >Emitted(75, 5) Source(87, 5) + SourceIndex(0) -4 >Emitted(75, 6) Source(87, 6) + SourceIndex(0) -5 >Emitted(75, 37) Source(87, 67) + SourceIndex(0) -6 >Emitted(75, 39) Source(87, 7) + SourceIndex(0) -7 >Emitted(75, 55) Source(87, 15) + SourceIndex(0) -8 >Emitted(75, 57) Source(87, 17) + SourceIndex(0) -9 >Emitted(75, 81) Source(87, 30) + SourceIndex(0) -10>Emitted(75, 87) Source(87, 69) + SourceIndex(0) -11>Emitted(75, 88) Source(87, 70) + SourceIndex(0) -12>Emitted(75, 91) Source(87, 73) + SourceIndex(0) -13>Emitted(75, 92) Source(87, 74) + SourceIndex(0) -14>Emitted(75, 94) Source(87, 76) + SourceIndex(0) -15>Emitted(75, 95) Source(87, 77) + SourceIndex(0) -16>Emitted(75, 98) Source(87, 80) + SourceIndex(0) -17>Emitted(75, 99) Source(87, 81) + SourceIndex(0) -18>Emitted(75, 101) Source(87, 83) + SourceIndex(0) -19>Emitted(75, 102) Source(87, 84) + SourceIndex(0) -20>Emitted(75, 104) Source(87, 86) + SourceIndex(0) -21>Emitted(75, 106) Source(87, 88) + SourceIndex(0) -22>Emitted(75, 107) Source(87, 89) + SourceIndex(0) +6 > +7 > [numberA3, ...robotAInfo] = [2, "trimmer", "trimming"] +8 > +9 > numberA3 +10> , +11> ...robotAInfo +12> ] = [2, "trimmer", "trimming"], +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(83, 1) Source(87, 1) + SourceIndex(0) +2 >Emitted(83, 4) Source(87, 4) + SourceIndex(0) +3 >Emitted(83, 5) Source(87, 5) + SourceIndex(0) +4 >Emitted(83, 6) Source(87, 6) + SourceIndex(0) +5 >Emitted(83, 38) Source(87, 67) + SourceIndex(0) +6 >Emitted(83, 40) Source(87, 6) + SourceIndex(0) +7 >Emitted(83, 57) Source(87, 67) + SourceIndex(0) +8 >Emitted(83, 59) Source(87, 7) + SourceIndex(0) +9 >Emitted(83, 76) Source(87, 15) + SourceIndex(0) +10>Emitted(83, 78) Source(87, 17) + SourceIndex(0) +11>Emitted(83, 103) Source(87, 30) + SourceIndex(0) +12>Emitted(83, 110) Source(87, 69) + SourceIndex(0) +13>Emitted(83, 111) Source(87, 70) + SourceIndex(0) +14>Emitted(83, 114) Source(87, 73) + SourceIndex(0) +15>Emitted(83, 115) Source(87, 74) + SourceIndex(0) +16>Emitted(83, 117) Source(87, 76) + SourceIndex(0) +17>Emitted(83, 118) Source(87, 77) + SourceIndex(0) +18>Emitted(83, 121) Source(87, 80) + SourceIndex(0) +19>Emitted(83, 122) Source(87, 81) + SourceIndex(0) +20>Emitted(83, 124) Source(87, 83) + SourceIndex(0) +21>Emitted(83, 125) Source(87, 84) + SourceIndex(0) +22>Emitted(83, 127) Source(87, 86) + SourceIndex(0) +23>Emitted(83, 129) Source(87, 88) + SourceIndex(0) +24>Emitted(83, 130) Source(87, 89) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2570,87 +2704,93 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(76, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(76, 12) Source(88, 12) + SourceIndex(0) -3 >Emitted(76, 13) Source(88, 13) + SourceIndex(0) -4 >Emitted(76, 16) Source(88, 16) + SourceIndex(0) -5 >Emitted(76, 17) Source(88, 17) + SourceIndex(0) -6 >Emitted(76, 25) Source(88, 25) + SourceIndex(0) -7 >Emitted(76, 26) Source(88, 26) + SourceIndex(0) -8 >Emitted(76, 27) Source(88, 27) + SourceIndex(0) +1 >Emitted(84, 5) Source(88, 5) + SourceIndex(0) +2 >Emitted(84, 12) Source(88, 12) + SourceIndex(0) +3 >Emitted(84, 13) Source(88, 13) + SourceIndex(0) +4 >Emitted(84, 16) Source(88, 16) + SourceIndex(0) +5 >Emitted(84, 17) Source(88, 17) + SourceIndex(0) +6 >Emitted(84, 25) Source(88, 25) + SourceIndex(0) +7 >Emitted(84, 26) Source(88, 26) + SourceIndex(0) +8 >Emitted(84, 27) Source(88, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(77, 1) Source(89, 1) + SourceIndex(0) -2 >Emitted(77, 2) Source(89, 2) + SourceIndex(0) +1 >Emitted(85, 1) Source(89, 1) + SourceIndex(0) +2 >Emitted(85, 2) Source(89, 2) + SourceIndex(0) --- ->>>for (multiRobotAInfo = multiRobotA.slice(0), multiRobotA, i = 0; i < 1; i++) { +>>>for (_17 = __read(multiRobotA), multiRobotAInfo = _17.slice(0), multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^ -8 > ^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^ +10> ^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for 3 > -4 > ([ -5 > ...multiRobotAInfo -6 > ] = -7 > multiRobotA -8 > , -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(78, 1) Source(90, 1) + SourceIndex(0) -2 >Emitted(78, 4) Source(90, 4) + SourceIndex(0) -3 >Emitted(78, 5) Source(90, 5) + SourceIndex(0) -4 >Emitted(78, 6) Source(90, 7) + SourceIndex(0) -5 >Emitted(78, 44) Source(90, 25) + SourceIndex(0) -6 >Emitted(78, 46) Source(90, 29) + SourceIndex(0) -7 >Emitted(78, 57) Source(90, 40) + SourceIndex(0) -8 >Emitted(78, 59) Source(90, 42) + SourceIndex(0) -9 >Emitted(78, 60) Source(90, 43) + SourceIndex(0) -10>Emitted(78, 63) Source(90, 46) + SourceIndex(0) -11>Emitted(78, 64) Source(90, 47) + SourceIndex(0) -12>Emitted(78, 66) Source(90, 49) + SourceIndex(0) -13>Emitted(78, 67) Source(90, 50) + SourceIndex(0) -14>Emitted(78, 70) Source(90, 53) + SourceIndex(0) -15>Emitted(78, 71) Source(90, 54) + SourceIndex(0) -16>Emitted(78, 73) Source(90, 56) + SourceIndex(0) -17>Emitted(78, 74) Source(90, 57) + SourceIndex(0) -18>Emitted(78, 76) Source(90, 59) + SourceIndex(0) -19>Emitted(78, 78) Source(90, 61) + SourceIndex(0) -20>Emitted(78, 79) Source(90, 62) + SourceIndex(0) +4 > ( +5 > [...multiRobotAInfo] = multiRobotA +6 > +7 > ...multiRobotAInfo +8 > ] = +9 > multiRobotA +10> , +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(86, 1) Source(90, 1) + SourceIndex(0) +2 >Emitted(86, 4) Source(90, 4) + SourceIndex(0) +3 >Emitted(86, 5) Source(90, 5) + SourceIndex(0) +4 >Emitted(86, 6) Source(90, 6) + SourceIndex(0) +5 >Emitted(86, 31) Source(90, 40) + SourceIndex(0) +6 >Emitted(86, 33) Source(90, 7) + SourceIndex(0) +7 >Emitted(86, 63) Source(90, 25) + SourceIndex(0) +8 >Emitted(86, 65) Source(90, 29) + SourceIndex(0) +9 >Emitted(86, 76) Source(90, 40) + SourceIndex(0) +10>Emitted(86, 78) Source(90, 42) + SourceIndex(0) +11>Emitted(86, 79) Source(90, 43) + SourceIndex(0) +12>Emitted(86, 82) Source(90, 46) + SourceIndex(0) +13>Emitted(86, 83) Source(90, 47) + SourceIndex(0) +14>Emitted(86, 85) Source(90, 49) + SourceIndex(0) +15>Emitted(86, 86) Source(90, 50) + SourceIndex(0) +16>Emitted(86, 89) Source(90, 53) + SourceIndex(0) +17>Emitted(86, 90) Source(90, 54) + SourceIndex(0) +18>Emitted(86, 92) Source(90, 56) + SourceIndex(0) +19>Emitted(86, 93) Source(90, 57) + SourceIndex(0) +20>Emitted(86, 95) Source(90, 59) + SourceIndex(0) +21>Emitted(86, 97) Source(90, 61) + SourceIndex(0) +22>Emitted(86, 98) Source(90, 62) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2670,87 +2810,93 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(79, 5) Source(91, 5) + SourceIndex(0) -2 >Emitted(79, 12) Source(91, 12) + SourceIndex(0) -3 >Emitted(79, 13) Source(91, 13) + SourceIndex(0) -4 >Emitted(79, 16) Source(91, 16) + SourceIndex(0) -5 >Emitted(79, 17) Source(91, 17) + SourceIndex(0) -6 >Emitted(79, 32) Source(91, 32) + SourceIndex(0) -7 >Emitted(79, 33) Source(91, 33) + SourceIndex(0) -8 >Emitted(79, 34) Source(91, 34) + SourceIndex(0) +1 >Emitted(87, 5) Source(91, 5) + SourceIndex(0) +2 >Emitted(87, 12) Source(91, 12) + SourceIndex(0) +3 >Emitted(87, 13) Source(91, 13) + SourceIndex(0) +4 >Emitted(87, 16) Source(91, 16) + SourceIndex(0) +5 >Emitted(87, 17) Source(91, 17) + SourceIndex(0) +6 >Emitted(87, 32) Source(91, 32) + SourceIndex(0) +7 >Emitted(87, 33) Source(91, 33) + SourceIndex(0) +8 >Emitted(87, 34) Source(91, 34) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(80, 1) Source(92, 1) + SourceIndex(0) -2 >Emitted(80, 2) Source(92, 2) + SourceIndex(0) +1 >Emitted(88, 1) Source(92, 1) + SourceIndex(0) +2 >Emitted(88, 2) Source(92, 2) + SourceIndex(0) --- ->>>for (_w = getMultiRobot(), multiRobotAInfo = _w.slice(0), _w, i = 0; i < 1; i++) { +>>>for (_18 = getMultiRobot(), _19 = __read(_18), multiRobotAInfo = _19.slice(0), _18, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for 3 > 4 > ( 5 > [...multiRobotAInfo] = getMultiRobot() -6 > -7 > ...multiRobotAInfo -8 > ] = getMultiRobot(), -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(81, 1) Source(93, 1) + SourceIndex(0) -2 >Emitted(81, 4) Source(93, 4) + SourceIndex(0) -3 >Emitted(81, 5) Source(93, 5) + SourceIndex(0) -4 >Emitted(81, 6) Source(93, 6) + SourceIndex(0) -5 >Emitted(81, 26) Source(93, 44) + SourceIndex(0) -6 >Emitted(81, 28) Source(93, 7) + SourceIndex(0) -7 >Emitted(81, 57) Source(93, 25) + SourceIndex(0) -8 >Emitted(81, 63) Source(93, 46) + SourceIndex(0) -9 >Emitted(81, 64) Source(93, 47) + SourceIndex(0) -10>Emitted(81, 67) Source(93, 50) + SourceIndex(0) -11>Emitted(81, 68) Source(93, 51) + SourceIndex(0) -12>Emitted(81, 70) Source(93, 53) + SourceIndex(0) -13>Emitted(81, 71) Source(93, 54) + SourceIndex(0) -14>Emitted(81, 74) Source(93, 57) + SourceIndex(0) -15>Emitted(81, 75) Source(93, 58) + SourceIndex(0) -16>Emitted(81, 77) Source(93, 60) + SourceIndex(0) -17>Emitted(81, 78) Source(93, 61) + SourceIndex(0) -18>Emitted(81, 80) Source(93, 63) + SourceIndex(0) -19>Emitted(81, 82) Source(93, 65) + SourceIndex(0) -20>Emitted(81, 83) Source(93, 66) + SourceIndex(0) +6 > +7 > [...multiRobotAInfo] = getMultiRobot() +8 > +9 > ...multiRobotAInfo +10> ] = getMultiRobot(), +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(89, 1) Source(93, 1) + SourceIndex(0) +2 >Emitted(89, 4) Source(93, 4) + SourceIndex(0) +3 >Emitted(89, 5) Source(93, 5) + SourceIndex(0) +4 >Emitted(89, 6) Source(93, 6) + SourceIndex(0) +5 >Emitted(89, 27) Source(93, 44) + SourceIndex(0) +6 >Emitted(89, 29) Source(93, 6) + SourceIndex(0) +7 >Emitted(89, 46) Source(93, 44) + SourceIndex(0) +8 >Emitted(89, 48) Source(93, 7) + SourceIndex(0) +9 >Emitted(89, 78) Source(93, 25) + SourceIndex(0) +10>Emitted(89, 85) Source(93, 46) + SourceIndex(0) +11>Emitted(89, 86) Source(93, 47) + SourceIndex(0) +12>Emitted(89, 89) Source(93, 50) + SourceIndex(0) +13>Emitted(89, 90) Source(93, 51) + SourceIndex(0) +14>Emitted(89, 92) Source(93, 53) + SourceIndex(0) +15>Emitted(89, 93) Source(93, 54) + SourceIndex(0) +16>Emitted(89, 96) Source(93, 57) + SourceIndex(0) +17>Emitted(89, 97) Source(93, 58) + SourceIndex(0) +18>Emitted(89, 99) Source(93, 60) + SourceIndex(0) +19>Emitted(89, 100) Source(93, 61) + SourceIndex(0) +20>Emitted(89, 102) Source(93, 63) + SourceIndex(0) +21>Emitted(89, 104) Source(93, 65) + SourceIndex(0) +22>Emitted(89, 105) Source(93, 66) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2770,87 +2916,93 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(82, 5) Source(94, 5) + SourceIndex(0) -2 >Emitted(82, 12) Source(94, 12) + SourceIndex(0) -3 >Emitted(82, 13) Source(94, 13) + SourceIndex(0) -4 >Emitted(82, 16) Source(94, 16) + SourceIndex(0) -5 >Emitted(82, 17) Source(94, 17) + SourceIndex(0) -6 >Emitted(82, 32) Source(94, 32) + SourceIndex(0) -7 >Emitted(82, 33) Source(94, 33) + SourceIndex(0) -8 >Emitted(82, 34) Source(94, 34) + SourceIndex(0) +1 >Emitted(90, 5) Source(94, 5) + SourceIndex(0) +2 >Emitted(90, 12) Source(94, 12) + SourceIndex(0) +3 >Emitted(90, 13) Source(94, 13) + SourceIndex(0) +4 >Emitted(90, 16) Source(94, 16) + SourceIndex(0) +5 >Emitted(90, 17) Source(94, 17) + SourceIndex(0) +6 >Emitted(90, 32) Source(94, 32) + SourceIndex(0) +7 >Emitted(90, 33) Source(94, 33) + SourceIndex(0) +8 >Emitted(90, 34) Source(94, 34) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(83, 1) Source(95, 1) + SourceIndex(0) -2 >Emitted(83, 2) Source(95, 2) + SourceIndex(0) +1 >Emitted(91, 1) Source(95, 1) + SourceIndex(0) +2 >Emitted(91, 2) Source(95, 2) + SourceIndex(0) --- ->>>for (_x = ["trimmer", ["trimming", "edging"]], multiRobotAInfo = _x.slice(0), _x, i = 0; i < 1; i++) { +>>>for (_20 = ["trimmer", ["trimming", "edging"]], _21 = __read(_20), multiRobotAInfo = _21.slice(0), _20, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^^^^^ -9 > ^ -10> ^^^ -11> ^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^ -19> ^^ -20> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^^^^^^ +11> ^ +12> ^^^ +13> ^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^ +21> ^^ +22> ^ 1-> > 2 >for 3 > 4 > ( 5 > [...multiRobotAInfo] = ["trimmer", ["trimming", "edging"]] -6 > -7 > ...multiRobotAInfo -8 > ] = ["trimmer", ["trimming", "edging"]], -9 > i -10> = -11> 0 -12> ; -13> i -14> < -15> 1 -16> ; -17> i -18> ++ -19> ) -20> { -1->Emitted(84, 1) Source(96, 1) + SourceIndex(0) -2 >Emitted(84, 4) Source(96, 4) + SourceIndex(0) -3 >Emitted(84, 5) Source(96, 5) + SourceIndex(0) -4 >Emitted(84, 6) Source(96, 6) + SourceIndex(0) -5 >Emitted(84, 46) Source(96, 83) + SourceIndex(0) -6 >Emitted(84, 48) Source(96, 7) + SourceIndex(0) -7 >Emitted(84, 77) Source(96, 25) + SourceIndex(0) -8 >Emitted(84, 83) Source(96, 85) + SourceIndex(0) -9 >Emitted(84, 84) Source(96, 86) + SourceIndex(0) -10>Emitted(84, 87) Source(96, 89) + SourceIndex(0) -11>Emitted(84, 88) Source(96, 90) + SourceIndex(0) -12>Emitted(84, 90) Source(96, 92) + SourceIndex(0) -13>Emitted(84, 91) Source(96, 93) + SourceIndex(0) -14>Emitted(84, 94) Source(96, 96) + SourceIndex(0) -15>Emitted(84, 95) Source(96, 97) + SourceIndex(0) -16>Emitted(84, 97) Source(96, 99) + SourceIndex(0) -17>Emitted(84, 98) Source(96, 100) + SourceIndex(0) -18>Emitted(84, 100) Source(96, 102) + SourceIndex(0) -19>Emitted(84, 102) Source(96, 104) + SourceIndex(0) -20>Emitted(84, 103) Source(96, 105) + SourceIndex(0) +6 > +7 > [...multiRobotAInfo] = ["trimmer", ["trimming", "edging"]] +8 > +9 > ...multiRobotAInfo +10> ] = ["trimmer", ["trimming", "edging"]], +11> i +12> = +13> 0 +14> ; +15> i +16> < +17> 1 +18> ; +19> i +20> ++ +21> ) +22> { +1->Emitted(92, 1) Source(96, 1) + SourceIndex(0) +2 >Emitted(92, 4) Source(96, 4) + SourceIndex(0) +3 >Emitted(92, 5) Source(96, 5) + SourceIndex(0) +4 >Emitted(92, 6) Source(96, 6) + SourceIndex(0) +5 >Emitted(92, 47) Source(96, 83) + SourceIndex(0) +6 >Emitted(92, 49) Source(96, 6) + SourceIndex(0) +7 >Emitted(92, 66) Source(96, 83) + SourceIndex(0) +8 >Emitted(92, 68) Source(96, 7) + SourceIndex(0) +9 >Emitted(92, 98) Source(96, 25) + SourceIndex(0) +10>Emitted(92, 105) Source(96, 85) + SourceIndex(0) +11>Emitted(92, 106) Source(96, 86) + SourceIndex(0) +12>Emitted(92, 109) Source(96, 89) + SourceIndex(0) +13>Emitted(92, 110) Source(96, 90) + SourceIndex(0) +14>Emitted(92, 112) Source(96, 92) + SourceIndex(0) +15>Emitted(92, 113) Source(96, 93) + SourceIndex(0) +16>Emitted(92, 116) Source(96, 96) + SourceIndex(0) +17>Emitted(92, 117) Source(96, 97) + SourceIndex(0) +18>Emitted(92, 119) Source(96, 99) + SourceIndex(0) +19>Emitted(92, 120) Source(96, 100) + SourceIndex(0) +20>Emitted(92, 122) Source(96, 102) + SourceIndex(0) +21>Emitted(92, 124) Source(96, 104) + SourceIndex(0) +22>Emitted(92, 125) Source(96, 105) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2870,24 +3022,24 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPattern2.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(85, 5) Source(97, 5) + SourceIndex(0) -2 >Emitted(85, 12) Source(97, 12) + SourceIndex(0) -3 >Emitted(85, 13) Source(97, 13) + SourceIndex(0) -4 >Emitted(85, 16) Source(97, 16) + SourceIndex(0) -5 >Emitted(85, 17) Source(97, 17) + SourceIndex(0) -6 >Emitted(85, 32) Source(97, 32) + SourceIndex(0) -7 >Emitted(85, 33) Source(97, 33) + SourceIndex(0) -8 >Emitted(85, 34) Source(97, 34) + SourceIndex(0) +1 >Emitted(93, 5) Source(97, 5) + SourceIndex(0) +2 >Emitted(93, 12) Source(97, 12) + SourceIndex(0) +3 >Emitted(93, 13) Source(97, 13) + SourceIndex(0) +4 >Emitted(93, 16) Source(97, 16) + SourceIndex(0) +5 >Emitted(93, 17) Source(97, 17) + SourceIndex(0) +6 >Emitted(93, 32) Source(97, 32) + SourceIndex(0) +7 >Emitted(93, 33) Source(97, 33) + SourceIndex(0) +8 >Emitted(93, 34) Source(97, 34) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(86, 1) Source(98, 1) + SourceIndex(0) -2 >Emitted(86, 2) Source(98, 2) + SourceIndex(0) +1 >Emitted(94, 1) Source(98, 1) + SourceIndex(0) +2 >Emitted(94, 2) Source(98, 2) + SourceIndex(0) --- ->>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; +>>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21; >>>//# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js index 24701d01b0822..4c2b10fad5573 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js @@ -109,6 +109,14 @@ for (let [numberA3 = -1, ...robotAInfo] = [2, "trimmer", "trimming"], i = 0; i < } //// [sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function getRobot() { return robotA; @@ -118,67 +126,67 @@ var multiRobotB = ["trimmer", ["trimming", "edging"]]; function getMultiRobot() { return multiRobotA; } -for (var _a = robotA[1], nameA = _a === void 0 ? "name" : _a, i = 0; i < 1; i++) { +for (var _a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "name" : _b, i = 0; i < 1; i++) { console.log(nameA); } -for (var _b = getRobot(), _c = _b[1], nameA = _c === void 0 ? "name" : _c, i = 0; i < 1; i++) { +for (var _c = __read(getRobot(), 2), _d = _c[1], nameA = _d === void 0 ? "name" : _d, i = 0; i < 1; i++) { console.log(nameA); } -for (var _d = [2, "trimmer", "trimming"], _e = _d[1], nameA = _e === void 0 ? "name" : _e, i = 0; i < 1; i++) { +for (var _e = [2, "trimmer", "trimming"], _f = _e[1], nameA = _f === void 0 ? "name" : _f, i = 0; i < 1; i++) { console.log(nameA); } -for (var _f = multiRobotA[1], _g = _f === void 0 ? ["none", "none"] : _f, _h = _g[0], primarySkillA = _h === void 0 ? "primary" : _h, _j = _g[1], secondarySkillA = _j === void 0 ? "secondary" : _j, i = 0; i < 1; i++) { +for (var _g = __read(multiRobotA, 2), _h = _g[1], _j = __read(_h === void 0 ? ["none", "none"] : _h, 2), _k = _j[0], primarySkillA = _k === void 0 ? "primary" : _k, _l = _j[1], secondarySkillA = _l === void 0 ? "secondary" : _l, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var _k = getMultiRobot(), _l = _k[1], _m = _l === void 0 ? ["none", "none"] : _l, _o = _m[0], primarySkillA = _o === void 0 ? "primary" : _o, _p = _m[1], secondarySkillA = _p === void 0 ? "secondary" : _p, i = 0; i < 1; i++) { +for (var _m = __read(getMultiRobot(), 2), _o = _m[1], _p = __read(_o === void 0 ? ["none", "none"] : _o, 2), _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var _q = ["trimmer", ["trimming", "edging"]], _r = _q[1], _s = _r === void 0 ? ["none", "none"] : _r, _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, i = 0; i < 1; i++) { +for (var _s = ["trimmer", ["trimming", "edging"]], _t = _s[1], _u = __read(_t === void 0 ? ["none", "none"] : _t, 2), _v = _u[0], primarySkillA = _v === void 0 ? "primary" : _v, _w = _u[1], secondarySkillA = _w === void 0 ? "secondary" : _w, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (var _v = robotA[0], numberB = _v === void 0 ? -1 : _v, i = 0; i < 1; i++) { +for (var _x = __read(robotA, 1), _y = _x[0], numberB = _y === void 0 ? -1 : _y, i = 0; i < 1; i++) { console.log(numberB); } -for (var _w = getRobot()[0], numberB = _w === void 0 ? -1 : _w, i = 0; i < 1; i++) { +for (var _z = __read(getRobot(), 1), _0 = _z[0], numberB = _0 === void 0 ? -1 : _0, i = 0; i < 1; i++) { console.log(numberB); } -for (var _x = [2, "trimmer", "trimming"][0], numberB = _x === void 0 ? -1 : _x, i = 0; i < 1; i++) { +for (var _1 = [2, "trimmer", "trimming"][0], numberB = _1 === void 0 ? -1 : _1, i = 0; i < 1; i++) { console.log(numberB); } -for (var _y = multiRobotA[0], nameB = _y === void 0 ? "name" : _y, i = 0; i < 1; i++) { +for (var _2 = __read(multiRobotA, 1), _3 = _2[0], nameB = _3 === void 0 ? "name" : _3, i = 0; i < 1; i++) { console.log(nameB); } -for (var _z = getMultiRobot()[0], nameB = _z === void 0 ? "name" : _z, i = 0; i < 1; i++) { +for (var _4 = __read(getMultiRobot(), 1), _5 = _4[0], nameB = _5 === void 0 ? "name" : _5, i = 0; i < 1; i++) { console.log(nameB); } -for (var _0 = ["trimmer", ["trimming", "edging"]][0], nameB = _0 === void 0 ? "name" : _0, i = 0; i < 1; i++) { +for (var _6 = ["trimmer", ["trimming", "edging"]][0], nameB = _6 === void 0 ? "name" : _6, i = 0; i < 1; i++) { console.log(nameB); } -for (var _1 = robotA[0], numberA2 = _1 === void 0 ? -1 : _1, _2 = robotA[1], nameA2 = _2 === void 0 ? "name" : _2, _3 = robotA[2], skillA2 = _3 === void 0 ? "skill" : _3, i = 0; i < 1; i++) { +for (var _7 = __read(robotA, 3), _8 = _7[0], numberA2 = _8 === void 0 ? -1 : _8, _9 = _7[1], nameA2 = _9 === void 0 ? "name" : _9, _10 = _7[2], skillA2 = _10 === void 0 ? "skill" : _10, i = 0; i < 1; i++) { console.log(nameA2); } -for (var _4 = getRobot(), _5 = _4[0], numberA2 = _5 === void 0 ? -1 : _5, _6 = _4[1], nameA2 = _6 === void 0 ? "name" : _6, _7 = _4[2], skillA2 = _7 === void 0 ? "skill" : _7, i = 0; i < 1; i++) { +for (var _11 = __read(getRobot(), 3), _12 = _11[0], numberA2 = _12 === void 0 ? -1 : _12, _13 = _11[1], nameA2 = _13 === void 0 ? "name" : _13, _14 = _11[2], skillA2 = _14 === void 0 ? "skill" : _14, i = 0; i < 1; i++) { console.log(nameA2); } -for (var _8 = [2, "trimmer", "trimming"], _9 = _8[0], numberA2 = _9 === void 0 ? -1 : _9, _10 = _8[1], nameA2 = _10 === void 0 ? "name" : _10, _11 = _8[2], skillA2 = _11 === void 0 ? "skill" : _11, i = 0; i < 1; i++) { +for (var _15 = [2, "trimmer", "trimming"], _16 = _15[0], numberA2 = _16 === void 0 ? -1 : _16, _17 = _15[1], nameA2 = _17 === void 0 ? "name" : _17, _18 = _15[2], skillA2 = _18 === void 0 ? "skill" : _18, i = 0; i < 1; i++) { console.log(nameA2); } -for (var _12 = multiRobotA[0], nameMA = _12 === void 0 ? "noName" : _12, _13 = multiRobotA[1], _14 = _13 === void 0 ? ["none", "none"] : _13, _15 = _14[0], primarySkillA = _15 === void 0 ? "primary" : _15, _16 = _14[1], secondarySkillA = _16 === void 0 ? "secondary" : _16, i = 0; i < 1; i++) { +for (var _19 = __read(multiRobotA, 2), _20 = _19[0], nameMA = _20 === void 0 ? "noName" : _20, _21 = _19[1], _22 = __read(_21 === void 0 ? ["none", "none"] : _21, 2), _23 = _22[0], primarySkillA = _23 === void 0 ? "primary" : _23, _24 = _22[1], secondarySkillA = _24 === void 0 ? "secondary" : _24, i = 0; i < 1; i++) { console.log(nameMA); } -for (var _17 = getMultiRobot(), _18 = _17[0], nameMA = _18 === void 0 ? "noName" : _18, _19 = _17[1], _20 = _19 === void 0 ? ["none", "none"] : _19, _21 = _20[0], primarySkillA = _21 === void 0 ? "primary" : _21, _22 = _20[1], secondarySkillA = _22 === void 0 ? "secondary" : _22, i = 0; i < 1; i++) { +for (var _25 = __read(getMultiRobot(), 2), _26 = _25[0], nameMA = _26 === void 0 ? "noName" : _26, _27 = _25[1], _28 = __read(_27 === void 0 ? ["none", "none"] : _27, 2), _29 = _28[0], primarySkillA = _29 === void 0 ? "primary" : _29, _30 = _28[1], secondarySkillA = _30 === void 0 ? "secondary" : _30, i = 0; i < 1; i++) { console.log(nameMA); } -for (var _23 = ["trimmer", ["trimming", "edging"]], _24 = _23[0], nameMA = _24 === void 0 ? "noName" : _24, _25 = _23[1], _26 = _25 === void 0 ? ["none", "none"] : _25, _27 = _26[0], primarySkillA = _27 === void 0 ? "primary" : _27, _28 = _26[1], secondarySkillA = _28 === void 0 ? "secondary" : _28, i = 0; i < 1; i++) { +for (var _31 = ["trimmer", ["trimming", "edging"]], _32 = _31[0], nameMA = _32 === void 0 ? "noName" : _32, _33 = _31[1], _34 = __read(_33 === void 0 ? ["none", "none"] : _33, 2), _35 = _34[0], primarySkillA = _35 === void 0 ? "primary" : _35, _36 = _34[1], secondarySkillA = _36 === void 0 ? "secondary" : _36, i = 0; i < 1; i++) { console.log(nameMA); } -for (var _29 = robotA[0], numberA3 = _29 === void 0 ? -1 : _29, robotAInfo = robotA.slice(1), i = 0; i < 1; i++) { +for (var _37 = __read(robotA), _38 = _37[0], numberA3 = _38 === void 0 ? -1 : _38, robotAInfo = _37.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } -for (var _30 = getRobot(), _31 = _30[0], numberA3 = _31 === void 0 ? -1 : _31, robotAInfo = _30.slice(1), i = 0; i < 1; i++) { +for (var _39 = __read(getRobot()), _40 = _39[0], numberA3 = _40 === void 0 ? -1 : _40, robotAInfo = _39.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } -for (var _32 = [2, "trimmer", "trimming"], _33 = _32[0], numberA3 = _33 === void 0 ? -1 : _33, robotAInfo = _32.slice(1), i = 0; i < 1; i++) { +for (var _41 = [2, "trimmer", "trimming"], _42 = _41[0], numberA3 = _42 === void 0 ? -1 : _42, robotAInfo = _41.slice(1), i = 0; i < 1; i++) { console.log(numberA3); } //# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map index 58097c096a55c..cde1227148dbb 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAQ,IAAA,cAAa,EAAb,mCAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,eAA+B,EAA5B,UAAc,EAAd,mCAAc,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAA+C,EAA5C,UAAc,EAAd,mCAAc,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAQ,IAAA,mBAGQ,EAHR,0CAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,oBAG8B,EAH3B,UAGQ,EAHR,0CAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAGkD,EAH/C,UAGQ,EAHR,0CAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EAC4B,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,cAAY,EAAZ,iCAAY,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,kBAAY,EAAZ,iCAAY,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,kCAAY,EAAZ,iCAAY,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,mBAAc,EAAd,mCAAc,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,uBAAc,EAAd,mCAAc,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,2CAAc,EAAd,mCAAc,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,cAAa,EAAb,kCAAa,EAAE,cAAe,EAAf,oCAAe,EAAE,cAAiB,EAAjB,sCAAiB,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,eAAgE,EAA/D,UAAa,EAAb,kCAAa,EAAE,UAAe,EAAf,oCAAe,EAAE,UAAiB,EAAjB,sCAAiB,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3F,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAgF,EAA/E,UAAa,EAAb,kCAAa,EAAE,WAAe,EAAf,sCAAe,EAAE,WAAiB,EAAjB,wCAAiB,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3G,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CACC,IAAA,oBAAiB,EAAjB,wCAAiB,EACd,oBAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEpB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,qBAKW,EALV,YAAiB,EAAjB,wCAAiB,EACvB,YAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEf,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,yCAK+B,EAL9B,YAAiB,EAAjB,wCAAiB,EACvB,YAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAM,IAAA,eAAa,EAAb,oCAAa,EAAE,4BAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,gBAA2C,EAA1C,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,gCAA2D,EAA1D,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAA0B,EAAvB,UAAa,EAAb,mCAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,0BAA+B,EAA5B,UAAc,EAAd,mCAAc,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAA+C,EAA5C,UAAc,EAAd,mCAAc,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAG0B,EAHvB,UAGQ,EAHR,qDAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAG8B,EAH3B,UAGQ,EAHR,qDAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wCAGkD,EAH/C,UAGQ,EAHR,qDAGQ,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EAC4B,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAAuB,EAAtB,UAAY,EAAZ,iCAAY,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,0BAA2B,EAA1B,UAAY,EAAZ,iCAAY,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,kCAAY,EAAZ,iCAAY,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAA8B,EAA7B,UAAc,EAAd,mCAAc,EAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,+BAAkC,EAAjC,UAAc,EAAd,mCAAc,EAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAM,IAAA,2CAAc,EAAd,mCAAc,EAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,sBAA4D,EAA3D,UAAa,EAAb,kCAAa,EAAE,UAAe,EAAf,oCAAe,EAAE,WAAiB,EAAjB,wCAAiB,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,2BAAgE,EAA/D,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3F,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,gCAAgF,EAA/E,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC3G,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CACA,IAAA,4BAKe,EALd,YAAiB,EAAjB,wCAAiB,EACd,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEpB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,gCAKW,EALV,YAAiB,EAAjB,wCAAiB,EACvB,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEf,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,yCAK+B,EAL9B,YAAiB,EAAjB,wCAAiB,EACvB,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,EAEK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAK,IAAA,oBAAuC,EAAtC,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAY,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,wBAA2C,EAA1C,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAK,IAAA,gCAA2D,EAA1D,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.sourcemap.txt index 1a8dde7dee4e0..95d30cc7000ac 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -39,25 +47,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>function getRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(2, 1) Source(8, 1) + SourceIndex(0) +1 >Emitted(10, 1) Source(8, 1) + SourceIndex(0) --- >>> return robotA; 1->^^^^ @@ -71,11 +79,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 3 > 4 > robotA 5 > ; -1->Emitted(3, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(3, 12) Source(9, 12) + SourceIndex(0) -4 >Emitted(3, 18) Source(9, 18) + SourceIndex(0) -5 >Emitted(3, 19) Source(9, 19) + SourceIndex(0) +1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(11, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(11, 19) Source(9, 19) + SourceIndex(0) --- >>>} 1 > @@ -84,8 +92,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(10, 2) + SourceIndex(0) +1 >Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(10, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -119,20 +127,20 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 12> ] 13> ] 14> ; -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 16) Source(12, 16) + SourceIndex(0) -4 >Emitted(5, 19) Source(12, 38) + SourceIndex(0) -5 >Emitted(5, 20) Source(12, 39) + SourceIndex(0) -6 >Emitted(5, 27) Source(12, 46) + SourceIndex(0) -7 >Emitted(5, 29) Source(12, 48) + SourceIndex(0) -8 >Emitted(5, 30) Source(12, 49) + SourceIndex(0) -9 >Emitted(5, 38) Source(12, 57) + SourceIndex(0) -10>Emitted(5, 40) Source(12, 59) + SourceIndex(0) -11>Emitted(5, 42) Source(12, 61) + SourceIndex(0) -12>Emitted(5, 43) Source(12, 62) + SourceIndex(0) -13>Emitted(5, 44) Source(12, 63) + SourceIndex(0) -14>Emitted(5, 45) Source(12, 64) + SourceIndex(0) +1->Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(12, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(12, 38) + SourceIndex(0) +5 >Emitted(13, 20) Source(12, 39) + SourceIndex(0) +6 >Emitted(13, 27) Source(12, 46) + SourceIndex(0) +7 >Emitted(13, 29) Source(12, 48) + SourceIndex(0) +8 >Emitted(13, 30) Source(12, 49) + SourceIndex(0) +9 >Emitted(13, 38) Source(12, 57) + SourceIndex(0) +10>Emitted(13, 40) Source(12, 59) + SourceIndex(0) +11>Emitted(13, 42) Source(12, 61) + SourceIndex(0) +12>Emitted(13, 43) Source(12, 62) + SourceIndex(0) +13>Emitted(13, 44) Source(12, 63) + SourceIndex(0) +14>Emitted(13, 45) Source(12, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -164,27 +172,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 12> ] 13> ] 14> ; -1->Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 16) Source(13, 16) + SourceIndex(0) -4 >Emitted(6, 19) Source(13, 38) + SourceIndex(0) -5 >Emitted(6, 20) Source(13, 39) + SourceIndex(0) -6 >Emitted(6, 29) Source(13, 48) + SourceIndex(0) -7 >Emitted(6, 31) Source(13, 50) + SourceIndex(0) -8 >Emitted(6, 32) Source(13, 51) + SourceIndex(0) -9 >Emitted(6, 42) Source(13, 61) + SourceIndex(0) -10>Emitted(6, 44) Source(13, 63) + SourceIndex(0) -11>Emitted(6, 52) Source(13, 71) + SourceIndex(0) -12>Emitted(6, 53) Source(13, 72) + SourceIndex(0) -13>Emitted(6, 54) Source(13, 73) + SourceIndex(0) -14>Emitted(6, 55) Source(13, 74) + SourceIndex(0) +1->Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 16) Source(13, 16) + SourceIndex(0) +4 >Emitted(14, 19) Source(13, 38) + SourceIndex(0) +5 >Emitted(14, 20) Source(13, 39) + SourceIndex(0) +6 >Emitted(14, 29) Source(13, 48) + SourceIndex(0) +7 >Emitted(14, 31) Source(13, 50) + SourceIndex(0) +8 >Emitted(14, 32) Source(13, 51) + SourceIndex(0) +9 >Emitted(14, 42) Source(13, 61) + SourceIndex(0) +10>Emitted(14, 44) Source(13, 63) + SourceIndex(0) +11>Emitted(14, 52) Source(13, 71) + SourceIndex(0) +12>Emitted(14, 53) Source(13, 72) + SourceIndex(0) +13>Emitted(14, 54) Source(13, 73) + SourceIndex(0) +14>Emitted(14, 55) Source(13, 74) + SourceIndex(0) --- >>>function getMultiRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(0) --- >>> return multiRobotA; 1->^^^^ @@ -198,88 +206,94 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 3 > 4 > multiRobotA 5 > ; -1->Emitted(8, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(15, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(15, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(15, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(15, 24) + SourceIndex(0) +1->Emitted(16, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(15, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(15, 12) + SourceIndex(0) +4 >Emitted(16, 23) Source(15, 23) + SourceIndex(0) +5 >Emitted(16, 24) Source(15, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(16, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(16, 2) + SourceIndex(0) --- ->>>for (var _a = robotA[1], nameA = _a === void 0 ? "name" : _a, i = 0; i < 1; i++) { +>>>for (var _a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "name" : _b, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > > 2 >for 3 > -4 > (let [, +4 > (let 5 > -6 > nameA ="name" -7 > -8 > nameA ="name" -9 > ] = robotA, -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(10, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(10, 4) Source(18, 4) + SourceIndex(0) -3 >Emitted(10, 5) Source(18, 5) + SourceIndex(0) -4 >Emitted(10, 6) Source(18, 13) + SourceIndex(0) -5 >Emitted(10, 10) Source(18, 13) + SourceIndex(0) -6 >Emitted(10, 24) Source(18, 26) + SourceIndex(0) -7 >Emitted(10, 26) Source(18, 13) + SourceIndex(0) -8 >Emitted(10, 61) Source(18, 26) + SourceIndex(0) -9 >Emitted(10, 63) Source(18, 38) + SourceIndex(0) -10>Emitted(10, 64) Source(18, 39) + SourceIndex(0) -11>Emitted(10, 67) Source(18, 42) + SourceIndex(0) -12>Emitted(10, 68) Source(18, 43) + SourceIndex(0) -13>Emitted(10, 70) Source(18, 45) + SourceIndex(0) -14>Emitted(10, 71) Source(18, 46) + SourceIndex(0) -15>Emitted(10, 74) Source(18, 49) + SourceIndex(0) -16>Emitted(10, 75) Source(18, 50) + SourceIndex(0) -17>Emitted(10, 77) Source(18, 52) + SourceIndex(0) -18>Emitted(10, 78) Source(18, 53) + SourceIndex(0) -19>Emitted(10, 80) Source(18, 55) + SourceIndex(0) -20>Emitted(10, 82) Source(18, 57) + SourceIndex(0) -21>Emitted(10, 83) Source(18, 58) + SourceIndex(0) +6 > [, nameA ="name"] = robotA +7 > +8 > nameA ="name" +9 > +10> nameA ="name" +11> ] = robotA, +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(18, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(18, 4) Source(18, 4) + SourceIndex(0) +3 >Emitted(18, 5) Source(18, 5) + SourceIndex(0) +4 >Emitted(18, 6) Source(18, 10) + SourceIndex(0) +5 >Emitted(18, 10) Source(18, 10) + SourceIndex(0) +6 >Emitted(18, 32) Source(18, 36) + SourceIndex(0) +7 >Emitted(18, 34) Source(18, 13) + SourceIndex(0) +8 >Emitted(18, 44) Source(18, 26) + SourceIndex(0) +9 >Emitted(18, 46) Source(18, 13) + SourceIndex(0) +10>Emitted(18, 81) Source(18, 26) + SourceIndex(0) +11>Emitted(18, 83) Source(18, 38) + SourceIndex(0) +12>Emitted(18, 84) Source(18, 39) + SourceIndex(0) +13>Emitted(18, 87) Source(18, 42) + SourceIndex(0) +14>Emitted(18, 88) Source(18, 43) + SourceIndex(0) +15>Emitted(18, 90) Source(18, 45) + SourceIndex(0) +16>Emitted(18, 91) Source(18, 46) + SourceIndex(0) +17>Emitted(18, 94) Source(18, 49) + SourceIndex(0) +18>Emitted(18, 95) Source(18, 50) + SourceIndex(0) +19>Emitted(18, 97) Source(18, 52) + SourceIndex(0) +20>Emitted(18, 98) Source(18, 53) + SourceIndex(0) +21>Emitted(18, 100) Source(18, 55) + SourceIndex(0) +22>Emitted(18, 102) Source(18, 57) + SourceIndex(0) +23>Emitted(18, 103) Source(18, 58) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -299,49 +313,49 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA 7 > ) 8 > ; -1 >Emitted(11, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(11, 12) Source(19, 12) + SourceIndex(0) -3 >Emitted(11, 13) Source(19, 13) + SourceIndex(0) -4 >Emitted(11, 16) Source(19, 16) + SourceIndex(0) -5 >Emitted(11, 17) Source(19, 17) + SourceIndex(0) -6 >Emitted(11, 22) Source(19, 22) + SourceIndex(0) -7 >Emitted(11, 23) Source(19, 23) + SourceIndex(0) -8 >Emitted(11, 24) Source(19, 24) + SourceIndex(0) +1 >Emitted(19, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 12) Source(19, 12) + SourceIndex(0) +3 >Emitted(19, 13) Source(19, 13) + SourceIndex(0) +4 >Emitted(19, 16) Source(19, 16) + SourceIndex(0) +5 >Emitted(19, 17) Source(19, 17) + SourceIndex(0) +6 >Emitted(19, 22) Source(19, 22) + SourceIndex(0) +7 >Emitted(19, 23) Source(19, 23) + SourceIndex(0) +8 >Emitted(19, 24) Source(19, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(20, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(20, 2) + SourceIndex(0) --- ->>>for (var _b = getRobot(), _c = _b[1], nameA = _c === void 0 ? "name" : _c, i = 0; i < 1; i++) { +>>>for (var _c = __read(getRobot(), 2), _d = _c[1], nameA = _d === void 0 ? "name" : _d, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^ -22> ^^ -23> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > 2 >for @@ -349,46 +363,46 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 4 > (let 5 > 6 > [, nameA = "name"] = getRobot() -7 > -8 > nameA = "name" -9 > -10> nameA = "name" -11> ] = getRobot(), -12> i -13> = -14> 0 -15> ; -16> i -17> < -18> 1 -19> ; -20> i -21> ++ -22> ) -23> { -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 4) Source(21, 4) + SourceIndex(0) -3 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -4 >Emitted(13, 6) Source(21, 10) + SourceIndex(0) -5 >Emitted(13, 10) Source(21, 10) + SourceIndex(0) -6 >Emitted(13, 25) Source(21, 41) + SourceIndex(0) -7 >Emitted(13, 27) Source(21, 13) + SourceIndex(0) -8 >Emitted(13, 37) Source(21, 27) + SourceIndex(0) -9 >Emitted(13, 39) Source(21, 13) + SourceIndex(0) -10>Emitted(13, 74) Source(21, 27) + SourceIndex(0) -11>Emitted(13, 76) Source(21, 43) + SourceIndex(0) -12>Emitted(13, 77) Source(21, 44) + SourceIndex(0) -13>Emitted(13, 80) Source(21, 47) + SourceIndex(0) -14>Emitted(13, 81) Source(21, 48) + SourceIndex(0) -15>Emitted(13, 83) Source(21, 50) + SourceIndex(0) -16>Emitted(13, 84) Source(21, 51) + SourceIndex(0) -17>Emitted(13, 87) Source(21, 54) + SourceIndex(0) -18>Emitted(13, 88) Source(21, 55) + SourceIndex(0) -19>Emitted(13, 90) Source(21, 57) + SourceIndex(0) -20>Emitted(13, 91) Source(21, 58) + SourceIndex(0) -21>Emitted(13, 93) Source(21, 60) + SourceIndex(0) -22>Emitted(13, 95) Source(21, 62) + SourceIndex(0) -23>Emitted(13, 96) Source(21, 63) + SourceIndex(0) +7 > +8 > nameA = "name" +9 > +10> nameA = "name" +11> ] = getRobot(), +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(21, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(21, 4) Source(21, 4) + SourceIndex(0) +3 >Emitted(21, 5) Source(21, 5) + SourceIndex(0) +4 >Emitted(21, 6) Source(21, 10) + SourceIndex(0) +5 >Emitted(21, 10) Source(21, 10) + SourceIndex(0) +6 >Emitted(21, 36) Source(21, 41) + SourceIndex(0) +7 >Emitted(21, 38) Source(21, 13) + SourceIndex(0) +8 >Emitted(21, 48) Source(21, 27) + SourceIndex(0) +9 >Emitted(21, 50) Source(21, 13) + SourceIndex(0) +10>Emitted(21, 85) Source(21, 27) + SourceIndex(0) +11>Emitted(21, 87) Source(21, 43) + SourceIndex(0) +12>Emitted(21, 88) Source(21, 44) + SourceIndex(0) +13>Emitted(21, 91) Source(21, 47) + SourceIndex(0) +14>Emitted(21, 92) Source(21, 48) + SourceIndex(0) +15>Emitted(21, 94) Source(21, 50) + SourceIndex(0) +16>Emitted(21, 95) Source(21, 51) + SourceIndex(0) +17>Emitted(21, 98) Source(21, 54) + SourceIndex(0) +18>Emitted(21, 99) Source(21, 55) + SourceIndex(0) +19>Emitted(21, 101) Source(21, 57) + SourceIndex(0) +20>Emitted(21, 102) Source(21, 58) + SourceIndex(0) +21>Emitted(21, 104) Source(21, 60) + SourceIndex(0) +22>Emitted(21, 106) Source(21, 62) + SourceIndex(0) +23>Emitted(21, 107) Source(21, 63) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -408,14 +422,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA 7 > ) 8 > ; -1 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(14, 12) Source(22, 12) + SourceIndex(0) -3 >Emitted(14, 13) Source(22, 13) + SourceIndex(0) -4 >Emitted(14, 16) Source(22, 16) + SourceIndex(0) -5 >Emitted(14, 17) Source(22, 17) + SourceIndex(0) -6 >Emitted(14, 22) Source(22, 22) + SourceIndex(0) -7 >Emitted(14, 23) Source(22, 23) + SourceIndex(0) -8 >Emitted(14, 24) Source(22, 24) + SourceIndex(0) +1 >Emitted(22, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(22, 12) Source(22, 12) + SourceIndex(0) +3 >Emitted(22, 13) Source(22, 13) + SourceIndex(0) +4 >Emitted(22, 16) Source(22, 16) + SourceIndex(0) +5 >Emitted(22, 17) Source(22, 17) + SourceIndex(0) +6 >Emitted(22, 22) Source(22, 22) + SourceIndex(0) +7 >Emitted(22, 23) Source(22, 23) + SourceIndex(0) +8 >Emitted(22, 24) Source(22, 24) + SourceIndex(0) --- >>>} 1 > @@ -424,10 +438,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(15, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(15, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(23, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(23, 2) Source(23, 2) + SourceIndex(0) --- ->>>for (var _d = [2, "trimmer", "trimming"], _e = _d[1], nameA = _e === void 0 ? "name" : _e, i = 0; i < 1; i++) { +>>>for (var _e = [2, "trimmer", "trimming"], _f = _e[1], nameA = _f === void 0 ? "name" : _f, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -475,29 +489,29 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 21> ++ 22> ) 23> { -1->Emitted(16, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(16, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(16, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(16, 6) Source(24, 10) + SourceIndex(0) -5 >Emitted(16, 10) Source(24, 10) + SourceIndex(0) -6 >Emitted(16, 41) Source(24, 57) + SourceIndex(0) -7 >Emitted(16, 43) Source(24, 13) + SourceIndex(0) -8 >Emitted(16, 53) Source(24, 27) + SourceIndex(0) -9 >Emitted(16, 55) Source(24, 13) + SourceIndex(0) -10>Emitted(16, 90) Source(24, 27) + SourceIndex(0) -11>Emitted(16, 92) Source(24, 59) + SourceIndex(0) -12>Emitted(16, 93) Source(24, 60) + SourceIndex(0) -13>Emitted(16, 96) Source(24, 63) + SourceIndex(0) -14>Emitted(16, 97) Source(24, 64) + SourceIndex(0) -15>Emitted(16, 99) Source(24, 66) + SourceIndex(0) -16>Emitted(16, 100) Source(24, 67) + SourceIndex(0) -17>Emitted(16, 103) Source(24, 70) + SourceIndex(0) -18>Emitted(16, 104) Source(24, 71) + SourceIndex(0) -19>Emitted(16, 106) Source(24, 73) + SourceIndex(0) -20>Emitted(16, 107) Source(24, 74) + SourceIndex(0) -21>Emitted(16, 109) Source(24, 76) + SourceIndex(0) -22>Emitted(16, 111) Source(24, 78) + SourceIndex(0) -23>Emitted(16, 112) Source(24, 79) + SourceIndex(0) +1->Emitted(24, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(24, 4) Source(24, 4) + SourceIndex(0) +3 >Emitted(24, 5) Source(24, 5) + SourceIndex(0) +4 >Emitted(24, 6) Source(24, 10) + SourceIndex(0) +5 >Emitted(24, 10) Source(24, 10) + SourceIndex(0) +6 >Emitted(24, 41) Source(24, 57) + SourceIndex(0) +7 >Emitted(24, 43) Source(24, 13) + SourceIndex(0) +8 >Emitted(24, 53) Source(24, 27) + SourceIndex(0) +9 >Emitted(24, 55) Source(24, 13) + SourceIndex(0) +10>Emitted(24, 90) Source(24, 27) + SourceIndex(0) +11>Emitted(24, 92) Source(24, 59) + SourceIndex(0) +12>Emitted(24, 93) Source(24, 60) + SourceIndex(0) +13>Emitted(24, 96) Source(24, 63) + SourceIndex(0) +14>Emitted(24, 97) Source(24, 64) + SourceIndex(0) +15>Emitted(24, 99) Source(24, 66) + SourceIndex(0) +16>Emitted(24, 100) Source(24, 67) + SourceIndex(0) +17>Emitted(24, 103) Source(24, 70) + SourceIndex(0) +18>Emitted(24, 104) Source(24, 71) + SourceIndex(0) +19>Emitted(24, 106) Source(24, 73) + SourceIndex(0) +20>Emitted(24, 107) Source(24, 74) + SourceIndex(0) +21>Emitted(24, 109) Source(24, 76) + SourceIndex(0) +22>Emitted(24, 111) Source(24, 78) + SourceIndex(0) +23>Emitted(24, 112) Source(24, 79) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -517,122 +531,131 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA 7 > ) 8 > ; -1 >Emitted(17, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(17, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(17, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(17, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(17, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(17, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(17, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(17, 24) Source(25, 24) + SourceIndex(0) +1 >Emitted(25, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(25, 12) Source(25, 12) + SourceIndex(0) +3 >Emitted(25, 13) Source(25, 13) + SourceIndex(0) +4 >Emitted(25, 16) Source(25, 16) + SourceIndex(0) +5 >Emitted(25, 17) Source(25, 17) + SourceIndex(0) +6 >Emitted(25, 22) Source(25, 22) + SourceIndex(0) +7 >Emitted(25, 23) Source(25, 23) + SourceIndex(0) +8 >Emitted(25, 24) Source(25, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(18, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(26, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(26, 2) Source(26, 2) + SourceIndex(0) --- ->>>for (var _f = multiRobotA[1], _g = _f === void 0 ? ["none", "none"] : _f, _h = _g[0], primarySkillA = _h === void 0 ? "primary" : _h, _j = _g[1], secondarySkillA = _j === void 0 ? "secondary" : _j, i = 0; i < 1; i++) { +>>>for (var _g = __read(multiRobotA, 2), _h = _g[1], _j = __read(_h === void 0 ? ["none", "none"] : _h, 2), _k = _j[0], primarySkillA = _k === void 0 ? "primary" : _k, _l = _j[1], secondarySkillA = _l === void 0 ? "secondary" : _l, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^^ -24> ^ -25> ^^ -26> ^ -27> ^^ -28> ^^ -29> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > 2 >for 3 > -4 > (let [, +4 > (let 5 > -6 > [ +6 > [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["none", "none"] -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -9 > -10> primarySkillA = "primary" -11> -12> primarySkillA = "primary" -13> , - > -14> secondarySkillA = "secondary" -15> -16> secondarySkillA = "secondary" -17> - > ] = ["none", "none"]] = multiRobotA, -18> i -19> = -20> 0 -21> ; -22> i -23> < -24> 1 -25> ; -26> i -27> ++ -28> ) -29> { -1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(19, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(19, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(19, 6) Source(27, 13) + SourceIndex(0) -5 >Emitted(19, 10) Source(27, 13) + SourceIndex(0) -6 >Emitted(19, 29) Source(30, 21) + SourceIndex(0) -7 >Emitted(19, 31) Source(27, 13) + SourceIndex(0) -8 >Emitted(19, 73) Source(30, 21) + SourceIndex(0) -9 >Emitted(19, 75) Source(28, 5) + SourceIndex(0) -10>Emitted(19, 85) Source(28, 30) + SourceIndex(0) -11>Emitted(19, 87) Source(28, 5) + SourceIndex(0) -12>Emitted(19, 133) Source(28, 30) + SourceIndex(0) -13>Emitted(19, 135) Source(29, 5) + SourceIndex(0) -14>Emitted(19, 145) Source(29, 34) + SourceIndex(0) -15>Emitted(19, 147) Source(29, 5) + SourceIndex(0) -16>Emitted(19, 197) Source(29, 34) + SourceIndex(0) -17>Emitted(19, 199) Source(30, 38) + SourceIndex(0) -18>Emitted(19, 200) Source(30, 39) + SourceIndex(0) -19>Emitted(19, 203) Source(30, 42) + SourceIndex(0) -20>Emitted(19, 204) Source(30, 43) + SourceIndex(0) -21>Emitted(19, 206) Source(30, 45) + SourceIndex(0) -22>Emitted(19, 207) Source(30, 46) + SourceIndex(0) -23>Emitted(19, 210) Source(30, 49) + SourceIndex(0) -24>Emitted(19, 211) Source(30, 50) + SourceIndex(0) -25>Emitted(19, 213) Source(30, 52) + SourceIndex(0) -26>Emitted(19, 214) Source(30, 53) + SourceIndex(0) -27>Emitted(19, 216) Source(30, 55) + SourceIndex(0) -28>Emitted(19, 218) Source(30, 57) + SourceIndex(0) -29>Emitted(19, 219) Source(30, 58) + SourceIndex(0) + > ] = ["none", "none"]] = multiRobotA +7 > +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +9 > +10> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +11> +12> primarySkillA = "primary" +13> +14> primarySkillA = "primary" +15> , + > +16> secondarySkillA = "secondary" +17> +18> secondarySkillA = "secondary" +19> + > ] = ["none", "none"]] = multiRobotA, +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(27, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(27, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(27, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(27, 6) Source(27, 10) + SourceIndex(0) +5 >Emitted(27, 10) Source(27, 10) + SourceIndex(0) +6 >Emitted(27, 37) Source(30, 36) + SourceIndex(0) +7 >Emitted(27, 39) Source(27, 13) + SourceIndex(0) +8 >Emitted(27, 49) Source(30, 21) + SourceIndex(0) +9 >Emitted(27, 51) Source(27, 13) + SourceIndex(0) +10>Emitted(27, 104) Source(30, 21) + SourceIndex(0) +11>Emitted(27, 106) Source(28, 5) + SourceIndex(0) +12>Emitted(27, 116) Source(28, 30) + SourceIndex(0) +13>Emitted(27, 118) Source(28, 5) + SourceIndex(0) +14>Emitted(27, 164) Source(28, 30) + SourceIndex(0) +15>Emitted(27, 166) Source(29, 5) + SourceIndex(0) +16>Emitted(27, 176) Source(29, 34) + SourceIndex(0) +17>Emitted(27, 178) Source(29, 5) + SourceIndex(0) +18>Emitted(27, 228) Source(29, 34) + SourceIndex(0) +19>Emitted(27, 230) Source(30, 38) + SourceIndex(0) +20>Emitted(27, 231) Source(30, 39) + SourceIndex(0) +21>Emitted(27, 234) Source(30, 42) + SourceIndex(0) +22>Emitted(27, 235) Source(30, 43) + SourceIndex(0) +23>Emitted(27, 237) Source(30, 45) + SourceIndex(0) +24>Emitted(27, 238) Source(30, 46) + SourceIndex(0) +25>Emitted(27, 241) Source(30, 49) + SourceIndex(0) +26>Emitted(27, 242) Source(30, 50) + SourceIndex(0) +27>Emitted(27, 244) Source(30, 52) + SourceIndex(0) +28>Emitted(27, 245) Source(30, 53) + SourceIndex(0) +29>Emitted(27, 247) Source(30, 55) + SourceIndex(0) +30>Emitted(27, 249) Source(30, 57) + SourceIndex(0) +31>Emitted(27, 250) Source(30, 58) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -652,57 +675,57 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(20, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(20, 12) Source(31, 12) + SourceIndex(0) -3 >Emitted(20, 13) Source(31, 13) + SourceIndex(0) -4 >Emitted(20, 16) Source(31, 16) + SourceIndex(0) -5 >Emitted(20, 17) Source(31, 17) + SourceIndex(0) -6 >Emitted(20, 30) Source(31, 30) + SourceIndex(0) -7 >Emitted(20, 31) Source(31, 31) + SourceIndex(0) -8 >Emitted(20, 32) Source(31, 32) + SourceIndex(0) +1 >Emitted(28, 5) Source(31, 5) + SourceIndex(0) +2 >Emitted(28, 12) Source(31, 12) + SourceIndex(0) +3 >Emitted(28, 13) Source(31, 13) + SourceIndex(0) +4 >Emitted(28, 16) Source(31, 16) + SourceIndex(0) +5 >Emitted(28, 17) Source(31, 17) + SourceIndex(0) +6 >Emitted(28, 30) Source(31, 30) + SourceIndex(0) +7 >Emitted(28, 31) Source(31, 31) + SourceIndex(0) +8 >Emitted(28, 32) Source(31, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(21, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(32, 2) + SourceIndex(0) +1 >Emitted(29, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(29, 2) Source(32, 2) + SourceIndex(0) --- ->>>for (var _k = getMultiRobot(), _l = _k[1], _m = _l === void 0 ? ["none", "none"] : _l, _o = _m[0], primarySkillA = _o === void 0 ? "primary" : _o, _p = _m[1], secondarySkillA = _p === void 0 ? "secondary" : _p, i = 0; i < 1; i++) { +>>>for (var _m = __read(getMultiRobot(), 2), _o = _m[1], _p = __read(_o === void 0 ? ["none", "none"] : _o, 2), _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^ -30> ^^ -31> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > 2 >for @@ -713,70 +736,70 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["none", "none"]] = getMultiRobot() -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -9 > -10> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -11> -12> primarySkillA = "primary" -13> -14> primarySkillA = "primary" -15> , - > -16> secondarySkillA = "secondary" -17> -18> secondarySkillA = "secondary" -19> - > ] = ["none", "none"]] = getMultiRobot(), -20> i -21> = -22> 0 -23> ; -24> i -25> < -26> 1 -27> ; -28> i -29> ++ -30> ) -31> { -1->Emitted(22, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(22, 4) Source(33, 4) + SourceIndex(0) -3 >Emitted(22, 5) Source(33, 5) + SourceIndex(0) -4 >Emitted(22, 6) Source(33, 10) + SourceIndex(0) -5 >Emitted(22, 10) Source(33, 10) + SourceIndex(0) -6 >Emitted(22, 30) Source(36, 40) + SourceIndex(0) -7 >Emitted(22, 32) Source(33, 13) + SourceIndex(0) -8 >Emitted(22, 42) Source(36, 21) + SourceIndex(0) -9 >Emitted(22, 44) Source(33, 13) + SourceIndex(0) -10>Emitted(22, 86) Source(36, 21) + SourceIndex(0) -11>Emitted(22, 88) Source(34, 5) + SourceIndex(0) -12>Emitted(22, 98) Source(34, 30) + SourceIndex(0) -13>Emitted(22, 100) Source(34, 5) + SourceIndex(0) -14>Emitted(22, 146) Source(34, 30) + SourceIndex(0) -15>Emitted(22, 148) Source(35, 5) + SourceIndex(0) -16>Emitted(22, 158) Source(35, 34) + SourceIndex(0) -17>Emitted(22, 160) Source(35, 5) + SourceIndex(0) -18>Emitted(22, 210) Source(35, 34) + SourceIndex(0) -19>Emitted(22, 212) Source(36, 42) + SourceIndex(0) -20>Emitted(22, 213) Source(36, 43) + SourceIndex(0) -21>Emitted(22, 216) Source(36, 46) + SourceIndex(0) -22>Emitted(22, 217) Source(36, 47) + SourceIndex(0) -23>Emitted(22, 219) Source(36, 49) + SourceIndex(0) -24>Emitted(22, 220) Source(36, 50) + SourceIndex(0) -25>Emitted(22, 223) Source(36, 53) + SourceIndex(0) -26>Emitted(22, 224) Source(36, 54) + SourceIndex(0) -27>Emitted(22, 226) Source(36, 56) + SourceIndex(0) -28>Emitted(22, 227) Source(36, 57) + SourceIndex(0) -29>Emitted(22, 229) Source(36, 59) + SourceIndex(0) -30>Emitted(22, 231) Source(36, 61) + SourceIndex(0) -31>Emitted(22, 232) Source(36, 62) + SourceIndex(0) +7 > +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +9 > +10> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +11> +12> primarySkillA = "primary" +13> +14> primarySkillA = "primary" +15> , + > +16> secondarySkillA = "secondary" +17> +18> secondarySkillA = "secondary" +19> + > ] = ["none", "none"]] = getMultiRobot(), +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(30, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(30, 4) Source(33, 4) + SourceIndex(0) +3 >Emitted(30, 5) Source(33, 5) + SourceIndex(0) +4 >Emitted(30, 6) Source(33, 10) + SourceIndex(0) +5 >Emitted(30, 10) Source(33, 10) + SourceIndex(0) +6 >Emitted(30, 41) Source(36, 40) + SourceIndex(0) +7 >Emitted(30, 43) Source(33, 13) + SourceIndex(0) +8 >Emitted(30, 53) Source(36, 21) + SourceIndex(0) +9 >Emitted(30, 55) Source(33, 13) + SourceIndex(0) +10>Emitted(30, 108) Source(36, 21) + SourceIndex(0) +11>Emitted(30, 110) Source(34, 5) + SourceIndex(0) +12>Emitted(30, 120) Source(34, 30) + SourceIndex(0) +13>Emitted(30, 122) Source(34, 5) + SourceIndex(0) +14>Emitted(30, 168) Source(34, 30) + SourceIndex(0) +15>Emitted(30, 170) Source(35, 5) + SourceIndex(0) +16>Emitted(30, 180) Source(35, 34) + SourceIndex(0) +17>Emitted(30, 182) Source(35, 5) + SourceIndex(0) +18>Emitted(30, 232) Source(35, 34) + SourceIndex(0) +19>Emitted(30, 234) Source(36, 42) + SourceIndex(0) +20>Emitted(30, 235) Source(36, 43) + SourceIndex(0) +21>Emitted(30, 238) Source(36, 46) + SourceIndex(0) +22>Emitted(30, 239) Source(36, 47) + SourceIndex(0) +23>Emitted(30, 241) Source(36, 49) + SourceIndex(0) +24>Emitted(30, 242) Source(36, 50) + SourceIndex(0) +25>Emitted(30, 245) Source(36, 53) + SourceIndex(0) +26>Emitted(30, 246) Source(36, 54) + SourceIndex(0) +27>Emitted(30, 248) Source(36, 56) + SourceIndex(0) +28>Emitted(30, 249) Source(36, 57) + SourceIndex(0) +29>Emitted(30, 251) Source(36, 59) + SourceIndex(0) +30>Emitted(30, 253) Source(36, 61) + SourceIndex(0) +31>Emitted(30, 254) Source(36, 62) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -796,26 +819,26 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(23, 5) Source(37, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(37, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(37, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(37, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(37, 17) + SourceIndex(0) -6 >Emitted(23, 30) Source(37, 30) + SourceIndex(0) -7 >Emitted(23, 31) Source(37, 31) + SourceIndex(0) -8 >Emitted(23, 32) Source(37, 32) + SourceIndex(0) +1 >Emitted(31, 5) Source(37, 5) + SourceIndex(0) +2 >Emitted(31, 12) Source(37, 12) + SourceIndex(0) +3 >Emitted(31, 13) Source(37, 13) + SourceIndex(0) +4 >Emitted(31, 16) Source(37, 16) + SourceIndex(0) +5 >Emitted(31, 17) Source(37, 17) + SourceIndex(0) +6 >Emitted(31, 30) Source(37, 30) + SourceIndex(0) +7 >Emitted(31, 31) Source(37, 31) + SourceIndex(0) +8 >Emitted(31, 32) Source(37, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(24, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(24, 2) Source(38, 2) + SourceIndex(0) +1 >Emitted(32, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(32, 2) Source(38, 2) + SourceIndex(0) --- ->>>for (var _q = ["trimmer", ["trimming", "edging"]], _r = _q[1], _s = _r === void 0 ? ["none", "none"] : _r, _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, i = 0; i < 1; i++) { +>>>for (var _s = ["trimmer", ["trimming", "edging"]], _t = _s[1], _u = __read(_t === void 0 ? ["none", "none"] : _t, 2), _v = _u[0], primarySkillA = _v === void 0 ? "primary" : _v, _w = _u[1], secondarySkillA = _w === void 0 ? "secondary" : _w, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -825,28 +848,28 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 7 > ^^ 8 > ^^^^^^^^^^ 9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^ -30> ^^ -31> ^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > 2 >for @@ -867,60 +890,60 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["none", "none"] -11> -12> primarySkillA = "primary" -13> -14> primarySkillA = "primary" -15> , - > -16> secondarySkillA = "secondary" -17> -18> secondarySkillA = "secondary" -19> - > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]], -20> i -21> = -22> 0 -23> ; -24> i -25> < -26> 1 -27> ; -28> i -29> ++ -30> ) -31> { -1->Emitted(25, 1) Source(39, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(39, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(39, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(39, 10) + SourceIndex(0) -5 >Emitted(25, 10) Source(39, 10) + SourceIndex(0) -6 >Emitted(25, 50) Source(42, 60) + SourceIndex(0) -7 >Emitted(25, 52) Source(39, 13) + SourceIndex(0) -8 >Emitted(25, 62) Source(42, 21) + SourceIndex(0) -9 >Emitted(25, 64) Source(39, 13) + SourceIndex(0) -10>Emitted(25, 106) Source(42, 21) + SourceIndex(0) -11>Emitted(25, 108) Source(40, 5) + SourceIndex(0) -12>Emitted(25, 118) Source(40, 30) + SourceIndex(0) -13>Emitted(25, 120) Source(40, 5) + SourceIndex(0) -14>Emitted(25, 166) Source(40, 30) + SourceIndex(0) -15>Emitted(25, 168) Source(41, 5) + SourceIndex(0) -16>Emitted(25, 178) Source(41, 34) + SourceIndex(0) -17>Emitted(25, 180) Source(41, 5) + SourceIndex(0) -18>Emitted(25, 230) Source(41, 34) + SourceIndex(0) -19>Emitted(25, 232) Source(42, 62) + SourceIndex(0) -20>Emitted(25, 233) Source(42, 63) + SourceIndex(0) -21>Emitted(25, 236) Source(42, 66) + SourceIndex(0) -22>Emitted(25, 237) Source(42, 67) + SourceIndex(0) -23>Emitted(25, 239) Source(42, 69) + SourceIndex(0) -24>Emitted(25, 240) Source(42, 70) + SourceIndex(0) -25>Emitted(25, 243) Source(42, 73) + SourceIndex(0) -26>Emitted(25, 244) Source(42, 74) + SourceIndex(0) -27>Emitted(25, 246) Source(42, 76) + SourceIndex(0) -28>Emitted(25, 247) Source(42, 77) + SourceIndex(0) -29>Emitted(25, 249) Source(42, 79) + SourceIndex(0) -30>Emitted(25, 251) Source(42, 81) + SourceIndex(0) -31>Emitted(25, 252) Source(42, 82) + SourceIndex(0) +11> +12> primarySkillA = "primary" +13> +14> primarySkillA = "primary" +15> , + > +16> secondarySkillA = "secondary" +17> +18> secondarySkillA = "secondary" +19> + > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]], +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(33, 1) Source(39, 1) + SourceIndex(0) +2 >Emitted(33, 4) Source(39, 4) + SourceIndex(0) +3 >Emitted(33, 5) Source(39, 5) + SourceIndex(0) +4 >Emitted(33, 6) Source(39, 10) + SourceIndex(0) +5 >Emitted(33, 10) Source(39, 10) + SourceIndex(0) +6 >Emitted(33, 50) Source(42, 60) + SourceIndex(0) +7 >Emitted(33, 52) Source(39, 13) + SourceIndex(0) +8 >Emitted(33, 62) Source(42, 21) + SourceIndex(0) +9 >Emitted(33, 64) Source(39, 13) + SourceIndex(0) +10>Emitted(33, 117) Source(42, 21) + SourceIndex(0) +11>Emitted(33, 119) Source(40, 5) + SourceIndex(0) +12>Emitted(33, 129) Source(40, 30) + SourceIndex(0) +13>Emitted(33, 131) Source(40, 5) + SourceIndex(0) +14>Emitted(33, 177) Source(40, 30) + SourceIndex(0) +15>Emitted(33, 179) Source(41, 5) + SourceIndex(0) +16>Emitted(33, 189) Source(41, 34) + SourceIndex(0) +17>Emitted(33, 191) Source(41, 5) + SourceIndex(0) +18>Emitted(33, 241) Source(41, 34) + SourceIndex(0) +19>Emitted(33, 243) Source(42, 62) + SourceIndex(0) +20>Emitted(33, 244) Source(42, 63) + SourceIndex(0) +21>Emitted(33, 247) Source(42, 66) + SourceIndex(0) +22>Emitted(33, 248) Source(42, 67) + SourceIndex(0) +23>Emitted(33, 250) Source(42, 69) + SourceIndex(0) +24>Emitted(33, 251) Source(42, 70) + SourceIndex(0) +25>Emitted(33, 254) Source(42, 73) + SourceIndex(0) +26>Emitted(33, 255) Source(42, 74) + SourceIndex(0) +27>Emitted(33, 257) Source(42, 76) + SourceIndex(0) +28>Emitted(33, 258) Source(42, 77) + SourceIndex(0) +29>Emitted(33, 260) Source(42, 79) + SourceIndex(0) +30>Emitted(33, 262) Source(42, 81) + SourceIndex(0) +31>Emitted(33, 263) Source(42, 82) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -940,91 +963,97 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(26, 5) Source(43, 5) + SourceIndex(0) -2 >Emitted(26, 12) Source(43, 12) + SourceIndex(0) -3 >Emitted(26, 13) Source(43, 13) + SourceIndex(0) -4 >Emitted(26, 16) Source(43, 16) + SourceIndex(0) -5 >Emitted(26, 17) Source(43, 17) + SourceIndex(0) -6 >Emitted(26, 30) Source(43, 30) + SourceIndex(0) -7 >Emitted(26, 31) Source(43, 31) + SourceIndex(0) -8 >Emitted(26, 32) Source(43, 32) + SourceIndex(0) +1 >Emitted(34, 5) Source(43, 5) + SourceIndex(0) +2 >Emitted(34, 12) Source(43, 12) + SourceIndex(0) +3 >Emitted(34, 13) Source(43, 13) + SourceIndex(0) +4 >Emitted(34, 16) Source(43, 16) + SourceIndex(0) +5 >Emitted(34, 17) Source(43, 17) + SourceIndex(0) +6 >Emitted(34, 30) Source(43, 30) + SourceIndex(0) +7 >Emitted(34, 31) Source(43, 31) + SourceIndex(0) +8 >Emitted(34, 32) Source(43, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(27, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(44, 2) + SourceIndex(0) +1 >Emitted(35, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(35, 2) Source(44, 2) + SourceIndex(0) --- ->>>for (var _v = robotA[0], numberB = _v === void 0 ? -1 : _v, i = 0; i < 1; i++) { +>>>for (var _x = __read(robotA, 1), _y = _x[0], numberB = _y === void 0 ? -1 : _y, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberB = -1 -7 > -8 > numberB = -1 -9 > ] = robotA, -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(28, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(28, 4) Source(46, 4) + SourceIndex(0) -3 >Emitted(28, 5) Source(46, 5) + SourceIndex(0) -4 >Emitted(28, 6) Source(46, 11) + SourceIndex(0) -5 >Emitted(28, 10) Source(46, 11) + SourceIndex(0) -6 >Emitted(28, 24) Source(46, 23) + SourceIndex(0) -7 >Emitted(28, 26) Source(46, 11) + SourceIndex(0) -8 >Emitted(28, 59) Source(46, 23) + SourceIndex(0) -9 >Emitted(28, 61) Source(46, 35) + SourceIndex(0) -10>Emitted(28, 62) Source(46, 36) + SourceIndex(0) -11>Emitted(28, 65) Source(46, 39) + SourceIndex(0) -12>Emitted(28, 66) Source(46, 40) + SourceIndex(0) -13>Emitted(28, 68) Source(46, 42) + SourceIndex(0) -14>Emitted(28, 69) Source(46, 43) + SourceIndex(0) -15>Emitted(28, 72) Source(46, 46) + SourceIndex(0) -16>Emitted(28, 73) Source(46, 47) + SourceIndex(0) -17>Emitted(28, 75) Source(46, 49) + SourceIndex(0) -18>Emitted(28, 76) Source(46, 50) + SourceIndex(0) -19>Emitted(28, 78) Source(46, 52) + SourceIndex(0) -20>Emitted(28, 80) Source(46, 54) + SourceIndex(0) -21>Emitted(28, 81) Source(46, 55) + SourceIndex(0) +6 > [numberB = -1] = robotA +7 > +8 > numberB = -1 +9 > +10> numberB = -1 +11> ] = robotA, +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(36, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(36, 4) Source(46, 4) + SourceIndex(0) +3 >Emitted(36, 5) Source(46, 5) + SourceIndex(0) +4 >Emitted(36, 6) Source(46, 10) + SourceIndex(0) +5 >Emitted(36, 10) Source(46, 10) + SourceIndex(0) +6 >Emitted(36, 32) Source(46, 33) + SourceIndex(0) +7 >Emitted(36, 34) Source(46, 11) + SourceIndex(0) +8 >Emitted(36, 44) Source(46, 23) + SourceIndex(0) +9 >Emitted(36, 46) Source(46, 11) + SourceIndex(0) +10>Emitted(36, 79) Source(46, 23) + SourceIndex(0) +11>Emitted(36, 81) Source(46, 35) + SourceIndex(0) +12>Emitted(36, 82) Source(46, 36) + SourceIndex(0) +13>Emitted(36, 85) Source(46, 39) + SourceIndex(0) +14>Emitted(36, 86) Source(46, 40) + SourceIndex(0) +15>Emitted(36, 88) Source(46, 42) + SourceIndex(0) +16>Emitted(36, 89) Source(46, 43) + SourceIndex(0) +17>Emitted(36, 92) Source(46, 46) + SourceIndex(0) +18>Emitted(36, 93) Source(46, 47) + SourceIndex(0) +19>Emitted(36, 95) Source(46, 49) + SourceIndex(0) +20>Emitted(36, 96) Source(46, 50) + SourceIndex(0) +21>Emitted(36, 98) Source(46, 52) + SourceIndex(0) +22>Emitted(36, 100) Source(46, 54) + SourceIndex(0) +23>Emitted(36, 101) Source(46, 55) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1044,90 +1073,96 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberB 7 > ) 8 > ; -1 >Emitted(29, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(29, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(29, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(29, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(29, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(29, 24) Source(47, 24) + SourceIndex(0) -7 >Emitted(29, 25) Source(47, 25) + SourceIndex(0) -8 >Emitted(29, 26) Source(47, 26) + SourceIndex(0) +1 >Emitted(37, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(37, 12) Source(47, 12) + SourceIndex(0) +3 >Emitted(37, 13) Source(47, 13) + SourceIndex(0) +4 >Emitted(37, 16) Source(47, 16) + SourceIndex(0) +5 >Emitted(37, 17) Source(47, 17) + SourceIndex(0) +6 >Emitted(37, 24) Source(47, 24) + SourceIndex(0) +7 >Emitted(37, 25) Source(47, 25) + SourceIndex(0) +8 >Emitted(37, 26) Source(47, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(30, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(30, 2) Source(48, 2) + SourceIndex(0) +1 >Emitted(38, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(38, 2) Source(48, 2) + SourceIndex(0) --- ->>>for (var _w = getRobot()[0], numberB = _w === void 0 ? -1 : _w, i = 0; i < 1; i++) { +>>>for (var _z = __read(getRobot(), 1), _0 = _z[0], numberB = _0 === void 0 ? -1 : _0, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberB = -1 -7 > -8 > numberB = -1 -9 > ] = getRobot(), -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(31, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(31, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(31, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(31, 6) Source(49, 11) + SourceIndex(0) -5 >Emitted(31, 10) Source(49, 11) + SourceIndex(0) -6 >Emitted(31, 28) Source(49, 23) + SourceIndex(0) -7 >Emitted(31, 30) Source(49, 11) + SourceIndex(0) -8 >Emitted(31, 63) Source(49, 23) + SourceIndex(0) -9 >Emitted(31, 65) Source(49, 39) + SourceIndex(0) -10>Emitted(31, 66) Source(49, 40) + SourceIndex(0) -11>Emitted(31, 69) Source(49, 43) + SourceIndex(0) -12>Emitted(31, 70) Source(49, 44) + SourceIndex(0) -13>Emitted(31, 72) Source(49, 46) + SourceIndex(0) -14>Emitted(31, 73) Source(49, 47) + SourceIndex(0) -15>Emitted(31, 76) Source(49, 50) + SourceIndex(0) -16>Emitted(31, 77) Source(49, 51) + SourceIndex(0) -17>Emitted(31, 79) Source(49, 53) + SourceIndex(0) -18>Emitted(31, 80) Source(49, 54) + SourceIndex(0) -19>Emitted(31, 82) Source(49, 56) + SourceIndex(0) -20>Emitted(31, 84) Source(49, 58) + SourceIndex(0) -21>Emitted(31, 85) Source(49, 59) + SourceIndex(0) +6 > [numberB = -1] = getRobot() +7 > +8 > numberB = -1 +9 > +10> numberB = -1 +11> ] = getRobot(), +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(39, 1) Source(49, 1) + SourceIndex(0) +2 >Emitted(39, 4) Source(49, 4) + SourceIndex(0) +3 >Emitted(39, 5) Source(49, 5) + SourceIndex(0) +4 >Emitted(39, 6) Source(49, 10) + SourceIndex(0) +5 >Emitted(39, 10) Source(49, 10) + SourceIndex(0) +6 >Emitted(39, 36) Source(49, 37) + SourceIndex(0) +7 >Emitted(39, 38) Source(49, 11) + SourceIndex(0) +8 >Emitted(39, 48) Source(49, 23) + SourceIndex(0) +9 >Emitted(39, 50) Source(49, 11) + SourceIndex(0) +10>Emitted(39, 83) Source(49, 23) + SourceIndex(0) +11>Emitted(39, 85) Source(49, 39) + SourceIndex(0) +12>Emitted(39, 86) Source(49, 40) + SourceIndex(0) +13>Emitted(39, 89) Source(49, 43) + SourceIndex(0) +14>Emitted(39, 90) Source(49, 44) + SourceIndex(0) +15>Emitted(39, 92) Source(49, 46) + SourceIndex(0) +16>Emitted(39, 93) Source(49, 47) + SourceIndex(0) +17>Emitted(39, 96) Source(49, 50) + SourceIndex(0) +18>Emitted(39, 97) Source(49, 51) + SourceIndex(0) +19>Emitted(39, 99) Source(49, 53) + SourceIndex(0) +20>Emitted(39, 100) Source(49, 54) + SourceIndex(0) +21>Emitted(39, 102) Source(49, 56) + SourceIndex(0) +22>Emitted(39, 104) Source(49, 58) + SourceIndex(0) +23>Emitted(39, 105) Source(49, 59) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1147,14 +1182,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberB 7 > ) 8 > ; -1 >Emitted(32, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(32, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(32, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(32, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(32, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(32, 24) Source(50, 24) + SourceIndex(0) -7 >Emitted(32, 25) Source(50, 25) + SourceIndex(0) -8 >Emitted(32, 26) Source(50, 26) + SourceIndex(0) +1 >Emitted(40, 5) Source(50, 5) + SourceIndex(0) +2 >Emitted(40, 12) Source(50, 12) + SourceIndex(0) +3 >Emitted(40, 13) Source(50, 13) + SourceIndex(0) +4 >Emitted(40, 16) Source(50, 16) + SourceIndex(0) +5 >Emitted(40, 17) Source(50, 17) + SourceIndex(0) +6 >Emitted(40, 24) Source(50, 24) + SourceIndex(0) +7 >Emitted(40, 25) Source(50, 25) + SourceIndex(0) +8 >Emitted(40, 26) Source(50, 26) + SourceIndex(0) --- >>>} 1 > @@ -1163,10 +1198,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(33, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(33, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(41, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(51, 2) + SourceIndex(0) --- ->>>for (var _x = [2, "trimmer", "trimming"][0], numberB = _x === void 0 ? -1 : _x, i = 0; i < 1; i++) { +>>>for (var _1 = [2, "trimmer", "trimming"][0], numberB = _1 === void 0 ? -1 : _1, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -1210,27 +1245,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 19> ++ 20> ) 21> { -1->Emitted(34, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(34, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(34, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(34, 6) Source(52, 11) + SourceIndex(0) -5 >Emitted(34, 10) Source(52, 11) + SourceIndex(0) -6 >Emitted(34, 44) Source(52, 23) + SourceIndex(0) -7 >Emitted(34, 46) Source(52, 11) + SourceIndex(0) -8 >Emitted(34, 79) Source(52, 23) + SourceIndex(0) -9 >Emitted(34, 81) Source(52, 55) + SourceIndex(0) -10>Emitted(34, 82) Source(52, 56) + SourceIndex(0) -11>Emitted(34, 85) Source(52, 59) + SourceIndex(0) -12>Emitted(34, 86) Source(52, 60) + SourceIndex(0) -13>Emitted(34, 88) Source(52, 62) + SourceIndex(0) -14>Emitted(34, 89) Source(52, 63) + SourceIndex(0) -15>Emitted(34, 92) Source(52, 66) + SourceIndex(0) -16>Emitted(34, 93) Source(52, 67) + SourceIndex(0) -17>Emitted(34, 95) Source(52, 69) + SourceIndex(0) -18>Emitted(34, 96) Source(52, 70) + SourceIndex(0) -19>Emitted(34, 98) Source(52, 72) + SourceIndex(0) -20>Emitted(34, 100) Source(52, 74) + SourceIndex(0) -21>Emitted(34, 101) Source(52, 75) + SourceIndex(0) +1->Emitted(42, 1) Source(52, 1) + SourceIndex(0) +2 >Emitted(42, 4) Source(52, 4) + SourceIndex(0) +3 >Emitted(42, 5) Source(52, 5) + SourceIndex(0) +4 >Emitted(42, 6) Source(52, 11) + SourceIndex(0) +5 >Emitted(42, 10) Source(52, 11) + SourceIndex(0) +6 >Emitted(42, 44) Source(52, 23) + SourceIndex(0) +7 >Emitted(42, 46) Source(52, 11) + SourceIndex(0) +8 >Emitted(42, 79) Source(52, 23) + SourceIndex(0) +9 >Emitted(42, 81) Source(52, 55) + SourceIndex(0) +10>Emitted(42, 82) Source(52, 56) + SourceIndex(0) +11>Emitted(42, 85) Source(52, 59) + SourceIndex(0) +12>Emitted(42, 86) Source(52, 60) + SourceIndex(0) +13>Emitted(42, 88) Source(52, 62) + SourceIndex(0) +14>Emitted(42, 89) Source(52, 63) + SourceIndex(0) +15>Emitted(42, 92) Source(52, 66) + SourceIndex(0) +16>Emitted(42, 93) Source(52, 67) + SourceIndex(0) +17>Emitted(42, 95) Source(52, 69) + SourceIndex(0) +18>Emitted(42, 96) Source(52, 70) + SourceIndex(0) +19>Emitted(42, 98) Source(52, 72) + SourceIndex(0) +20>Emitted(42, 100) Source(52, 74) + SourceIndex(0) +21>Emitted(42, 101) Source(52, 75) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1250,90 +1285,96 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberB 7 > ) 8 > ; -1 >Emitted(35, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(35, 24) Source(53, 24) + SourceIndex(0) -7 >Emitted(35, 25) Source(53, 25) + SourceIndex(0) -8 >Emitted(35, 26) Source(53, 26) + SourceIndex(0) +1 >Emitted(43, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(43, 12) Source(53, 12) + SourceIndex(0) +3 >Emitted(43, 13) Source(53, 13) + SourceIndex(0) +4 >Emitted(43, 16) Source(53, 16) + SourceIndex(0) +5 >Emitted(43, 17) Source(53, 17) + SourceIndex(0) +6 >Emitted(43, 24) Source(53, 24) + SourceIndex(0) +7 >Emitted(43, 25) Source(53, 25) + SourceIndex(0) +8 >Emitted(43, 26) Source(53, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(36, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(44, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(44, 2) Source(54, 2) + SourceIndex(0) --- ->>>for (var _y = multiRobotA[0], nameB = _y === void 0 ? "name" : _y, i = 0; i < 1; i++) { +>>>for (var _2 = __read(multiRobotA, 1), _3 = _2[0], nameB = _3 === void 0 ? "name" : _3, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > nameB = "name" -7 > -8 > nameB = "name" -9 > ] = multiRobotA, -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(37, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(55, 11) + SourceIndex(0) -5 >Emitted(37, 10) Source(55, 11) + SourceIndex(0) -6 >Emitted(37, 29) Source(55, 25) + SourceIndex(0) -7 >Emitted(37, 31) Source(55, 11) + SourceIndex(0) -8 >Emitted(37, 66) Source(55, 25) + SourceIndex(0) -9 >Emitted(37, 68) Source(55, 42) + SourceIndex(0) -10>Emitted(37, 69) Source(55, 43) + SourceIndex(0) -11>Emitted(37, 72) Source(55, 46) + SourceIndex(0) -12>Emitted(37, 73) Source(55, 47) + SourceIndex(0) -13>Emitted(37, 75) Source(55, 49) + SourceIndex(0) -14>Emitted(37, 76) Source(55, 50) + SourceIndex(0) -15>Emitted(37, 79) Source(55, 53) + SourceIndex(0) -16>Emitted(37, 80) Source(55, 54) + SourceIndex(0) -17>Emitted(37, 82) Source(55, 56) + SourceIndex(0) -18>Emitted(37, 83) Source(55, 57) + SourceIndex(0) -19>Emitted(37, 85) Source(55, 59) + SourceIndex(0) -20>Emitted(37, 87) Source(55, 61) + SourceIndex(0) -21>Emitted(37, 88) Source(55, 62) + SourceIndex(0) +6 > [nameB = "name"] = multiRobotA +7 > +8 > nameB = "name" +9 > +10> nameB = "name" +11> ] = multiRobotA, +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(45, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(45, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(45, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(45, 6) Source(55, 10) + SourceIndex(0) +5 >Emitted(45, 10) Source(55, 10) + SourceIndex(0) +6 >Emitted(45, 37) Source(55, 40) + SourceIndex(0) +7 >Emitted(45, 39) Source(55, 11) + SourceIndex(0) +8 >Emitted(45, 49) Source(55, 25) + SourceIndex(0) +9 >Emitted(45, 51) Source(55, 11) + SourceIndex(0) +10>Emitted(45, 86) Source(55, 25) + SourceIndex(0) +11>Emitted(45, 88) Source(55, 42) + SourceIndex(0) +12>Emitted(45, 89) Source(55, 43) + SourceIndex(0) +13>Emitted(45, 92) Source(55, 46) + SourceIndex(0) +14>Emitted(45, 93) Source(55, 47) + SourceIndex(0) +15>Emitted(45, 95) Source(55, 49) + SourceIndex(0) +16>Emitted(45, 96) Source(55, 50) + SourceIndex(0) +17>Emitted(45, 99) Source(55, 53) + SourceIndex(0) +18>Emitted(45, 100) Source(55, 54) + SourceIndex(0) +19>Emitted(45, 102) Source(55, 56) + SourceIndex(0) +20>Emitted(45, 103) Source(55, 57) + SourceIndex(0) +21>Emitted(45, 105) Source(55, 59) + SourceIndex(0) +22>Emitted(45, 107) Source(55, 61) + SourceIndex(0) +23>Emitted(45, 108) Source(55, 62) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1353,90 +1394,96 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameB 7 > ) 8 > ; -1 >Emitted(38, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(38, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(38, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(38, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(38, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(38, 22) Source(56, 22) + SourceIndex(0) -7 >Emitted(38, 23) Source(56, 23) + SourceIndex(0) -8 >Emitted(38, 24) Source(56, 24) + SourceIndex(0) +1 >Emitted(46, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(46, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(46, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(46, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(46, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(46, 22) Source(56, 22) + SourceIndex(0) +7 >Emitted(46, 23) Source(56, 23) + SourceIndex(0) +8 >Emitted(46, 24) Source(56, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(39, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(39, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(47, 1) Source(57, 1) + SourceIndex(0) +2 >Emitted(47, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (var _z = getMultiRobot()[0], nameB = _z === void 0 ? "name" : _z, i = 0; i < 1; i++) { +>>>for (var _4 = __read(getMultiRobot(), 1), _5 = _4[0], nameB = _5 === void 0 ? "name" : _5, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^ -20> ^^ -21> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^^ +14> ^ +15> ^^ +16> ^ +17> ^^^ +18> ^ +19> ^^ +20> ^ +21> ^^ +22> ^^ +23> ^ 1-> > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > nameB = "name" -7 > -8 > nameB = "name" -9 > ] = getMultiRobot(), -10> i -11> = -12> 0 -13> ; -14> i -15> < -16> 1 -17> ; -18> i -19> ++ -20> ) -21> { -1->Emitted(40, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(40, 4) Source(58, 4) + SourceIndex(0) -3 >Emitted(40, 5) Source(58, 5) + SourceIndex(0) -4 >Emitted(40, 6) Source(58, 11) + SourceIndex(0) -5 >Emitted(40, 10) Source(58, 11) + SourceIndex(0) -6 >Emitted(40, 33) Source(58, 25) + SourceIndex(0) -7 >Emitted(40, 35) Source(58, 11) + SourceIndex(0) -8 >Emitted(40, 70) Source(58, 25) + SourceIndex(0) -9 >Emitted(40, 72) Source(58, 46) + SourceIndex(0) -10>Emitted(40, 73) Source(58, 47) + SourceIndex(0) -11>Emitted(40, 76) Source(58, 50) + SourceIndex(0) -12>Emitted(40, 77) Source(58, 51) + SourceIndex(0) -13>Emitted(40, 79) Source(58, 53) + SourceIndex(0) -14>Emitted(40, 80) Source(58, 54) + SourceIndex(0) -15>Emitted(40, 83) Source(58, 57) + SourceIndex(0) -16>Emitted(40, 84) Source(58, 58) + SourceIndex(0) -17>Emitted(40, 86) Source(58, 60) + SourceIndex(0) -18>Emitted(40, 87) Source(58, 61) + SourceIndex(0) -19>Emitted(40, 89) Source(58, 63) + SourceIndex(0) -20>Emitted(40, 91) Source(58, 65) + SourceIndex(0) -21>Emitted(40, 92) Source(58, 66) + SourceIndex(0) +6 > [nameB = "name"] = getMultiRobot() +7 > +8 > nameB = "name" +9 > +10> nameB = "name" +11> ] = getMultiRobot(), +12> i +13> = +14> 0 +15> ; +16> i +17> < +18> 1 +19> ; +20> i +21> ++ +22> ) +23> { +1->Emitted(48, 1) Source(58, 1) + SourceIndex(0) +2 >Emitted(48, 4) Source(58, 4) + SourceIndex(0) +3 >Emitted(48, 5) Source(58, 5) + SourceIndex(0) +4 >Emitted(48, 6) Source(58, 10) + SourceIndex(0) +5 >Emitted(48, 10) Source(58, 10) + SourceIndex(0) +6 >Emitted(48, 41) Source(58, 44) + SourceIndex(0) +7 >Emitted(48, 43) Source(58, 11) + SourceIndex(0) +8 >Emitted(48, 53) Source(58, 25) + SourceIndex(0) +9 >Emitted(48, 55) Source(58, 11) + SourceIndex(0) +10>Emitted(48, 90) Source(58, 25) + SourceIndex(0) +11>Emitted(48, 92) Source(58, 46) + SourceIndex(0) +12>Emitted(48, 93) Source(58, 47) + SourceIndex(0) +13>Emitted(48, 96) Source(58, 50) + SourceIndex(0) +14>Emitted(48, 97) Source(58, 51) + SourceIndex(0) +15>Emitted(48, 99) Source(58, 53) + SourceIndex(0) +16>Emitted(48, 100) Source(58, 54) + SourceIndex(0) +17>Emitted(48, 103) Source(58, 57) + SourceIndex(0) +18>Emitted(48, 104) Source(58, 58) + SourceIndex(0) +19>Emitted(48, 106) Source(58, 60) + SourceIndex(0) +20>Emitted(48, 107) Source(58, 61) + SourceIndex(0) +21>Emitted(48, 109) Source(58, 63) + SourceIndex(0) +22>Emitted(48, 111) Source(58, 65) + SourceIndex(0) +23>Emitted(48, 112) Source(58, 66) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1456,14 +1503,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameB 7 > ) 8 > ; -1 >Emitted(41, 5) Source(59, 5) + SourceIndex(0) -2 >Emitted(41, 12) Source(59, 12) + SourceIndex(0) -3 >Emitted(41, 13) Source(59, 13) + SourceIndex(0) -4 >Emitted(41, 16) Source(59, 16) + SourceIndex(0) -5 >Emitted(41, 17) Source(59, 17) + SourceIndex(0) -6 >Emitted(41, 22) Source(59, 22) + SourceIndex(0) -7 >Emitted(41, 23) Source(59, 23) + SourceIndex(0) -8 >Emitted(41, 24) Source(59, 24) + SourceIndex(0) +1 >Emitted(49, 5) Source(59, 5) + SourceIndex(0) +2 >Emitted(49, 12) Source(59, 12) + SourceIndex(0) +3 >Emitted(49, 13) Source(59, 13) + SourceIndex(0) +4 >Emitted(49, 16) Source(59, 16) + SourceIndex(0) +5 >Emitted(49, 17) Source(59, 17) + SourceIndex(0) +6 >Emitted(49, 22) Source(59, 22) + SourceIndex(0) +7 >Emitted(49, 23) Source(59, 23) + SourceIndex(0) +8 >Emitted(49, 24) Source(59, 24) + SourceIndex(0) --- >>>} 1 > @@ -1472,10 +1519,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(42, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(42, 2) Source(60, 2) + SourceIndex(0) +1 >Emitted(50, 1) Source(60, 1) + SourceIndex(0) +2 >Emitted(50, 2) Source(60, 2) + SourceIndex(0) --- ->>>for (var _0 = ["trimmer", ["trimming", "edging"]][0], nameB = _0 === void 0 ? "name" : _0, i = 0; i < 1; i++) { +>>>for (var _6 = ["trimmer", ["trimming", "edging"]][0], nameB = _6 === void 0 ? "name" : _6, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -1519,27 +1566,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 19> ++ 20> ) 21> { -1->Emitted(43, 1) Source(61, 1) + SourceIndex(0) -2 >Emitted(43, 4) Source(61, 4) + SourceIndex(0) -3 >Emitted(43, 5) Source(61, 5) + SourceIndex(0) -4 >Emitted(43, 6) Source(61, 11) + SourceIndex(0) -5 >Emitted(43, 10) Source(61, 11) + SourceIndex(0) -6 >Emitted(43, 53) Source(61, 25) + SourceIndex(0) -7 >Emitted(43, 55) Source(61, 11) + SourceIndex(0) -8 >Emitted(43, 90) Source(61, 25) + SourceIndex(0) -9 >Emitted(43, 92) Source(61, 66) + SourceIndex(0) -10>Emitted(43, 93) Source(61, 67) + SourceIndex(0) -11>Emitted(43, 96) Source(61, 70) + SourceIndex(0) -12>Emitted(43, 97) Source(61, 71) + SourceIndex(0) -13>Emitted(43, 99) Source(61, 73) + SourceIndex(0) -14>Emitted(43, 100) Source(61, 74) + SourceIndex(0) -15>Emitted(43, 103) Source(61, 77) + SourceIndex(0) -16>Emitted(43, 104) Source(61, 78) + SourceIndex(0) -17>Emitted(43, 106) Source(61, 80) + SourceIndex(0) -18>Emitted(43, 107) Source(61, 81) + SourceIndex(0) -19>Emitted(43, 109) Source(61, 83) + SourceIndex(0) -20>Emitted(43, 111) Source(61, 85) + SourceIndex(0) -21>Emitted(43, 112) Source(61, 86) + SourceIndex(0) +1->Emitted(51, 1) Source(61, 1) + SourceIndex(0) +2 >Emitted(51, 4) Source(61, 4) + SourceIndex(0) +3 >Emitted(51, 5) Source(61, 5) + SourceIndex(0) +4 >Emitted(51, 6) Source(61, 11) + SourceIndex(0) +5 >Emitted(51, 10) Source(61, 11) + SourceIndex(0) +6 >Emitted(51, 53) Source(61, 25) + SourceIndex(0) +7 >Emitted(51, 55) Source(61, 11) + SourceIndex(0) +8 >Emitted(51, 90) Source(61, 25) + SourceIndex(0) +9 >Emitted(51, 92) Source(61, 66) + SourceIndex(0) +10>Emitted(51, 93) Source(61, 67) + SourceIndex(0) +11>Emitted(51, 96) Source(61, 70) + SourceIndex(0) +12>Emitted(51, 97) Source(61, 71) + SourceIndex(0) +13>Emitted(51, 99) Source(61, 73) + SourceIndex(0) +14>Emitted(51, 100) Source(61, 74) + SourceIndex(0) +15>Emitted(51, 103) Source(61, 77) + SourceIndex(0) +16>Emitted(51, 104) Source(61, 78) + SourceIndex(0) +17>Emitted(51, 106) Source(61, 80) + SourceIndex(0) +18>Emitted(51, 107) Source(61, 81) + SourceIndex(0) +19>Emitted(51, 109) Source(61, 83) + SourceIndex(0) +20>Emitted(51, 111) Source(61, 85) + SourceIndex(0) +21>Emitted(51, 112) Source(61, 86) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1559,115 +1606,121 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameB 7 > ) 8 > ; -1 >Emitted(44, 5) Source(62, 5) + SourceIndex(0) -2 >Emitted(44, 12) Source(62, 12) + SourceIndex(0) -3 >Emitted(44, 13) Source(62, 13) + SourceIndex(0) -4 >Emitted(44, 16) Source(62, 16) + SourceIndex(0) -5 >Emitted(44, 17) Source(62, 17) + SourceIndex(0) -6 >Emitted(44, 22) Source(62, 22) + SourceIndex(0) -7 >Emitted(44, 23) Source(62, 23) + SourceIndex(0) -8 >Emitted(44, 24) Source(62, 24) + SourceIndex(0) +1 >Emitted(52, 5) Source(62, 5) + SourceIndex(0) +2 >Emitted(52, 12) Source(62, 12) + SourceIndex(0) +3 >Emitted(52, 13) Source(62, 13) + SourceIndex(0) +4 >Emitted(52, 16) Source(62, 16) + SourceIndex(0) +5 >Emitted(52, 17) Source(62, 17) + SourceIndex(0) +6 >Emitted(52, 22) Source(62, 22) + SourceIndex(0) +7 >Emitted(52, 23) Source(62, 23) + SourceIndex(0) +8 >Emitted(52, 24) Source(62, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(45, 1) Source(63, 1) + SourceIndex(0) -2 >Emitted(45, 2) Source(63, 2) + SourceIndex(0) +1 >Emitted(53, 1) Source(63, 1) + SourceIndex(0) +2 >Emitted(53, 2) Source(63, 2) + SourceIndex(0) --- ->>>for (var _1 = robotA[0], numberA2 = _1 === void 0 ? -1 : _1, _2 = robotA[1], nameA2 = _2 === void 0 ? "name" : _2, _3 = robotA[2], skillA2 = _3 === void 0 ? "skill" : _3, i = 0; i < 1; i++) { +>>>for (var _7 = __read(robotA, 3), _8 = _7[0], numberA2 = _8 === void 0 ? -1 : _8, _9 = _7[1], nameA2 = _9 === void 0 ? "name" : _9, _10 = _7[2], skillA2 = _10 === void 0 ? "skill" : _10, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^^ -24> ^ -25> ^^ -26> ^ -27> ^^ -28> ^^ -29> ^ +16> ^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberA2 = -1 -7 > -8 > numberA2 = -1 -9 > , -10> nameA2 = "name" -11> -12> nameA2 = "name" -13> , -14> skillA2 = "skill" -15> +6 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = robotA +7 > +8 > numberA2 = -1 +9 > +10> numberA2 = -1 +11> , +12> nameA2 = "name" +13> +14> nameA2 = "name" +15> , 16> skillA2 = "skill" -17> ] = robotA, -18> i -19> = -20> 0 -21> ; -22> i -23> < -24> 1 -25> ; -26> i -27> ++ -28> ) -29> { -1->Emitted(46, 1) Source(65, 1) + SourceIndex(0) -2 >Emitted(46, 4) Source(65, 4) + SourceIndex(0) -3 >Emitted(46, 5) Source(65, 5) + SourceIndex(0) -4 >Emitted(46, 6) Source(65, 11) + SourceIndex(0) -5 >Emitted(46, 10) Source(65, 11) + SourceIndex(0) -6 >Emitted(46, 24) Source(65, 24) + SourceIndex(0) -7 >Emitted(46, 26) Source(65, 11) + SourceIndex(0) -8 >Emitted(46, 60) Source(65, 24) + SourceIndex(0) -9 >Emitted(46, 62) Source(65, 26) + SourceIndex(0) -10>Emitted(46, 76) Source(65, 41) + SourceIndex(0) -11>Emitted(46, 78) Source(65, 26) + SourceIndex(0) -12>Emitted(46, 114) Source(65, 41) + SourceIndex(0) -13>Emitted(46, 116) Source(65, 43) + SourceIndex(0) -14>Emitted(46, 130) Source(65, 60) + SourceIndex(0) -15>Emitted(46, 132) Source(65, 43) + SourceIndex(0) -16>Emitted(46, 170) Source(65, 60) + SourceIndex(0) -17>Emitted(46, 172) Source(65, 72) + SourceIndex(0) -18>Emitted(46, 173) Source(65, 73) + SourceIndex(0) -19>Emitted(46, 176) Source(65, 76) + SourceIndex(0) -20>Emitted(46, 177) Source(65, 77) + SourceIndex(0) -21>Emitted(46, 179) Source(65, 79) + SourceIndex(0) -22>Emitted(46, 180) Source(65, 80) + SourceIndex(0) -23>Emitted(46, 183) Source(65, 83) + SourceIndex(0) -24>Emitted(46, 184) Source(65, 84) + SourceIndex(0) -25>Emitted(46, 186) Source(65, 86) + SourceIndex(0) -26>Emitted(46, 187) Source(65, 87) + SourceIndex(0) -27>Emitted(46, 189) Source(65, 89) + SourceIndex(0) -28>Emitted(46, 191) Source(65, 91) + SourceIndex(0) -29>Emitted(46, 192) Source(65, 92) + SourceIndex(0) +17> +18> skillA2 = "skill" +19> ] = robotA, +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(54, 1) Source(65, 1) + SourceIndex(0) +2 >Emitted(54, 4) Source(65, 4) + SourceIndex(0) +3 >Emitted(54, 5) Source(65, 5) + SourceIndex(0) +4 >Emitted(54, 6) Source(65, 10) + SourceIndex(0) +5 >Emitted(54, 10) Source(65, 10) + SourceIndex(0) +6 >Emitted(54, 32) Source(65, 70) + SourceIndex(0) +7 >Emitted(54, 34) Source(65, 11) + SourceIndex(0) +8 >Emitted(54, 44) Source(65, 24) + SourceIndex(0) +9 >Emitted(54, 46) Source(65, 11) + SourceIndex(0) +10>Emitted(54, 80) Source(65, 24) + SourceIndex(0) +11>Emitted(54, 82) Source(65, 26) + SourceIndex(0) +12>Emitted(54, 92) Source(65, 41) + SourceIndex(0) +13>Emitted(54, 94) Source(65, 26) + SourceIndex(0) +14>Emitted(54, 130) Source(65, 41) + SourceIndex(0) +15>Emitted(54, 132) Source(65, 43) + SourceIndex(0) +16>Emitted(54, 143) Source(65, 60) + SourceIndex(0) +17>Emitted(54, 145) Source(65, 43) + SourceIndex(0) +18>Emitted(54, 185) Source(65, 60) + SourceIndex(0) +19>Emitted(54, 187) Source(65, 72) + SourceIndex(0) +20>Emitted(54, 188) Source(65, 73) + SourceIndex(0) +21>Emitted(54, 191) Source(65, 76) + SourceIndex(0) +22>Emitted(54, 192) Source(65, 77) + SourceIndex(0) +23>Emitted(54, 194) Source(65, 79) + SourceIndex(0) +24>Emitted(54, 195) Source(65, 80) + SourceIndex(0) +25>Emitted(54, 198) Source(65, 83) + SourceIndex(0) +26>Emitted(54, 199) Source(65, 84) + SourceIndex(0) +27>Emitted(54, 201) Source(65, 86) + SourceIndex(0) +28>Emitted(54, 202) Source(65, 87) + SourceIndex(0) +29>Emitted(54, 204) Source(65, 89) + SourceIndex(0) +30>Emitted(54, 206) Source(65, 91) + SourceIndex(0) +31>Emitted(54, 207) Source(65, 92) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1687,57 +1740,57 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA2 7 > ) 8 > ; -1 >Emitted(47, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(66, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(66, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(66, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(66, 17) + SourceIndex(0) -6 >Emitted(47, 23) Source(66, 23) + SourceIndex(0) -7 >Emitted(47, 24) Source(66, 24) + SourceIndex(0) -8 >Emitted(47, 25) Source(66, 25) + SourceIndex(0) +1 >Emitted(55, 5) Source(66, 5) + SourceIndex(0) +2 >Emitted(55, 12) Source(66, 12) + SourceIndex(0) +3 >Emitted(55, 13) Source(66, 13) + SourceIndex(0) +4 >Emitted(55, 16) Source(66, 16) + SourceIndex(0) +5 >Emitted(55, 17) Source(66, 17) + SourceIndex(0) +6 >Emitted(55, 23) Source(66, 23) + SourceIndex(0) +7 >Emitted(55, 24) Source(66, 24) + SourceIndex(0) +8 >Emitted(55, 25) Source(66, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(48, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(48, 2) Source(67, 2) + SourceIndex(0) +1 >Emitted(56, 1) Source(67, 1) + SourceIndex(0) +2 >Emitted(56, 2) Source(67, 2) + SourceIndex(0) --- ->>>for (var _4 = getRobot(), _5 = _4[0], numberA2 = _5 === void 0 ? -1 : _5, _6 = _4[1], nameA2 = _6 === void 0 ? "name" : _6, _7 = _4[2], skillA2 = _7 === void 0 ? "skill" : _7, i = 0; i < 1; i++) { +>>>for (var _11 = __read(getRobot(), 3), _12 = _11[0], numberA2 = _12 === void 0 ? -1 : _12, _13 = _11[1], nameA2 = _13 === void 0 ? "name" : _13, _14 = _11[2], skillA2 = _14 === void 0 ? "skill" : _14, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^ -30> ^^ -31> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > 2 >for @@ -1745,62 +1798,62 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 4 > (let 5 > 6 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = getRobot() -7 > -8 > numberA2 = -1 -9 > -10> numberA2 = -1 -11> , -12> nameA2 = "name" -13> -14> nameA2 = "name" -15> , -16> skillA2 = "skill" -17> -18> skillA2 = "skill" -19> ] = getRobot(), -20> i -21> = -22> 0 -23> ; -24> i -25> < -26> 1 -27> ; -28> i -29> ++ -30> ) -31> { -1->Emitted(49, 1) Source(68, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(68, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(68, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(68, 10) + SourceIndex(0) -5 >Emitted(49, 10) Source(68, 10) + SourceIndex(0) -6 >Emitted(49, 25) Source(68, 74) + SourceIndex(0) -7 >Emitted(49, 27) Source(68, 11) + SourceIndex(0) -8 >Emitted(49, 37) Source(68, 24) + SourceIndex(0) -9 >Emitted(49, 39) Source(68, 11) + SourceIndex(0) -10>Emitted(49, 73) Source(68, 24) + SourceIndex(0) -11>Emitted(49, 75) Source(68, 26) + SourceIndex(0) -12>Emitted(49, 85) Source(68, 41) + SourceIndex(0) -13>Emitted(49, 87) Source(68, 26) + SourceIndex(0) -14>Emitted(49, 123) Source(68, 41) + SourceIndex(0) -15>Emitted(49, 125) Source(68, 43) + SourceIndex(0) -16>Emitted(49, 135) Source(68, 60) + SourceIndex(0) -17>Emitted(49, 137) Source(68, 43) + SourceIndex(0) -18>Emitted(49, 175) Source(68, 60) + SourceIndex(0) -19>Emitted(49, 177) Source(68, 76) + SourceIndex(0) -20>Emitted(49, 178) Source(68, 77) + SourceIndex(0) -21>Emitted(49, 181) Source(68, 80) + SourceIndex(0) -22>Emitted(49, 182) Source(68, 81) + SourceIndex(0) -23>Emitted(49, 184) Source(68, 83) + SourceIndex(0) -24>Emitted(49, 185) Source(68, 84) + SourceIndex(0) -25>Emitted(49, 188) Source(68, 87) + SourceIndex(0) -26>Emitted(49, 189) Source(68, 88) + SourceIndex(0) -27>Emitted(49, 191) Source(68, 90) + SourceIndex(0) -28>Emitted(49, 192) Source(68, 91) + SourceIndex(0) -29>Emitted(49, 194) Source(68, 93) + SourceIndex(0) -30>Emitted(49, 196) Source(68, 95) + SourceIndex(0) -31>Emitted(49, 197) Source(68, 96) + SourceIndex(0) +7 > +8 > numberA2 = -1 +9 > +10> numberA2 = -1 +11> , +12> nameA2 = "name" +13> +14> nameA2 = "name" +15> , +16> skillA2 = "skill" +17> +18> skillA2 = "skill" +19> ] = getRobot(), +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(57, 1) Source(68, 1) + SourceIndex(0) +2 >Emitted(57, 4) Source(68, 4) + SourceIndex(0) +3 >Emitted(57, 5) Source(68, 5) + SourceIndex(0) +4 >Emitted(57, 6) Source(68, 10) + SourceIndex(0) +5 >Emitted(57, 10) Source(68, 10) + SourceIndex(0) +6 >Emitted(57, 37) Source(68, 74) + SourceIndex(0) +7 >Emitted(57, 39) Source(68, 11) + SourceIndex(0) +8 >Emitted(57, 51) Source(68, 24) + SourceIndex(0) +9 >Emitted(57, 53) Source(68, 11) + SourceIndex(0) +10>Emitted(57, 89) Source(68, 24) + SourceIndex(0) +11>Emitted(57, 91) Source(68, 26) + SourceIndex(0) +12>Emitted(57, 103) Source(68, 41) + SourceIndex(0) +13>Emitted(57, 105) Source(68, 26) + SourceIndex(0) +14>Emitted(57, 143) Source(68, 41) + SourceIndex(0) +15>Emitted(57, 145) Source(68, 43) + SourceIndex(0) +16>Emitted(57, 157) Source(68, 60) + SourceIndex(0) +17>Emitted(57, 159) Source(68, 43) + SourceIndex(0) +18>Emitted(57, 199) Source(68, 60) + SourceIndex(0) +19>Emitted(57, 201) Source(68, 76) + SourceIndex(0) +20>Emitted(57, 202) Source(68, 77) + SourceIndex(0) +21>Emitted(57, 205) Source(68, 80) + SourceIndex(0) +22>Emitted(57, 206) Source(68, 81) + SourceIndex(0) +23>Emitted(57, 208) Source(68, 83) + SourceIndex(0) +24>Emitted(57, 209) Source(68, 84) + SourceIndex(0) +25>Emitted(57, 212) Source(68, 87) + SourceIndex(0) +26>Emitted(57, 213) Source(68, 88) + SourceIndex(0) +27>Emitted(57, 215) Source(68, 90) + SourceIndex(0) +28>Emitted(57, 216) Source(68, 91) + SourceIndex(0) +29>Emitted(57, 218) Source(68, 93) + SourceIndex(0) +30>Emitted(57, 220) Source(68, 95) + SourceIndex(0) +31>Emitted(57, 221) Source(68, 96) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1820,57 +1873,57 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA2 7 > ) 8 > ; -1 >Emitted(50, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(50, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(50, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(50, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(50, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(50, 23) Source(69, 23) + SourceIndex(0) -7 >Emitted(50, 24) Source(69, 24) + SourceIndex(0) -8 >Emitted(50, 25) Source(69, 25) + SourceIndex(0) +1 >Emitted(58, 5) Source(69, 5) + SourceIndex(0) +2 >Emitted(58, 12) Source(69, 12) + SourceIndex(0) +3 >Emitted(58, 13) Source(69, 13) + SourceIndex(0) +4 >Emitted(58, 16) Source(69, 16) + SourceIndex(0) +5 >Emitted(58, 17) Source(69, 17) + SourceIndex(0) +6 >Emitted(58, 23) Source(69, 23) + SourceIndex(0) +7 >Emitted(58, 24) Source(69, 24) + SourceIndex(0) +8 >Emitted(58, 25) Source(69, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(51, 1) Source(70, 1) + SourceIndex(0) -2 >Emitted(51, 2) Source(70, 2) + SourceIndex(0) +1 >Emitted(59, 1) Source(70, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(70, 2) + SourceIndex(0) --- ->>>for (var _8 = [2, "trimmer", "trimming"], _9 = _8[0], numberA2 = _9 === void 0 ? -1 : _9, _10 = _8[1], nameA2 = _10 === void 0 ? "name" : _10, _11 = _8[2], skillA2 = _11 === void 0 ? "skill" : _11, i = 0; i < 1; i++) { +>>>for (var _15 = [2, "trimmer", "trimming"], _16 = _15[0], numberA2 = _16 === void 0 ? -1 : _16, _17 = _15[1], nameA2 = _17 === void 0 ? "name" : _17, _18 = _15[2], skillA2 = _18 === void 0 ? "skill" : _18, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^ -21> ^^^ -22> ^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^ -30> ^^ -31> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^ +21> ^^^ +22> ^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^ +30> ^^ +31> ^ 1-> > 2 >for @@ -1878,62 +1931,62 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 4 > (let 5 > 6 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = [2, "trimmer", "trimming"] -7 > -8 > numberA2 = -1 -9 > -10> numberA2 = -1 -11> , -12> nameA2 = "name" -13> -14> nameA2 = "name" -15> , -16> skillA2 = "skill" -17> -18> skillA2 = "skill" -19> ] = [2, "trimmer", "trimming"], -20> i -21> = -22> 0 -23> ; -24> i -25> < -26> 1 -27> ; -28> i -29> ++ -30> ) -31> { -1->Emitted(52, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(52, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(52, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(52, 6) Source(71, 10) + SourceIndex(0) -5 >Emitted(52, 10) Source(71, 10) + SourceIndex(0) -6 >Emitted(52, 41) Source(71, 90) + SourceIndex(0) -7 >Emitted(52, 43) Source(71, 11) + SourceIndex(0) -8 >Emitted(52, 53) Source(71, 24) + SourceIndex(0) -9 >Emitted(52, 55) Source(71, 11) + SourceIndex(0) -10>Emitted(52, 89) Source(71, 24) + SourceIndex(0) -11>Emitted(52, 91) Source(71, 26) + SourceIndex(0) -12>Emitted(52, 102) Source(71, 41) + SourceIndex(0) -13>Emitted(52, 104) Source(71, 26) + SourceIndex(0) -14>Emitted(52, 142) Source(71, 41) + SourceIndex(0) -15>Emitted(52, 144) Source(71, 43) + SourceIndex(0) -16>Emitted(52, 155) Source(71, 60) + SourceIndex(0) -17>Emitted(52, 157) Source(71, 43) + SourceIndex(0) -18>Emitted(52, 197) Source(71, 60) + SourceIndex(0) -19>Emitted(52, 199) Source(71, 92) + SourceIndex(0) -20>Emitted(52, 200) Source(71, 93) + SourceIndex(0) -21>Emitted(52, 203) Source(71, 96) + SourceIndex(0) -22>Emitted(52, 204) Source(71, 97) + SourceIndex(0) -23>Emitted(52, 206) Source(71, 99) + SourceIndex(0) -24>Emitted(52, 207) Source(71, 100) + SourceIndex(0) -25>Emitted(52, 210) Source(71, 103) + SourceIndex(0) -26>Emitted(52, 211) Source(71, 104) + SourceIndex(0) -27>Emitted(52, 213) Source(71, 106) + SourceIndex(0) -28>Emitted(52, 214) Source(71, 107) + SourceIndex(0) -29>Emitted(52, 216) Source(71, 109) + SourceIndex(0) -30>Emitted(52, 218) Source(71, 111) + SourceIndex(0) -31>Emitted(52, 219) Source(71, 112) + SourceIndex(0) +7 > +8 > numberA2 = -1 +9 > +10> numberA2 = -1 +11> , +12> nameA2 = "name" +13> +14> nameA2 = "name" +15> , +16> skillA2 = "skill" +17> +18> skillA2 = "skill" +19> ] = [2, "trimmer", "trimming"], +20> i +21> = +22> 0 +23> ; +24> i +25> < +26> 1 +27> ; +28> i +29> ++ +30> ) +31> { +1->Emitted(60, 1) Source(71, 1) + SourceIndex(0) +2 >Emitted(60, 4) Source(71, 4) + SourceIndex(0) +3 >Emitted(60, 5) Source(71, 5) + SourceIndex(0) +4 >Emitted(60, 6) Source(71, 10) + SourceIndex(0) +5 >Emitted(60, 10) Source(71, 10) + SourceIndex(0) +6 >Emitted(60, 42) Source(71, 90) + SourceIndex(0) +7 >Emitted(60, 44) Source(71, 11) + SourceIndex(0) +8 >Emitted(60, 56) Source(71, 24) + SourceIndex(0) +9 >Emitted(60, 58) Source(71, 11) + SourceIndex(0) +10>Emitted(60, 94) Source(71, 24) + SourceIndex(0) +11>Emitted(60, 96) Source(71, 26) + SourceIndex(0) +12>Emitted(60, 108) Source(71, 41) + SourceIndex(0) +13>Emitted(60, 110) Source(71, 26) + SourceIndex(0) +14>Emitted(60, 148) Source(71, 41) + SourceIndex(0) +15>Emitted(60, 150) Source(71, 43) + SourceIndex(0) +16>Emitted(60, 162) Source(71, 60) + SourceIndex(0) +17>Emitted(60, 164) Source(71, 43) + SourceIndex(0) +18>Emitted(60, 204) Source(71, 60) + SourceIndex(0) +19>Emitted(60, 206) Source(71, 92) + SourceIndex(0) +20>Emitted(60, 207) Source(71, 93) + SourceIndex(0) +21>Emitted(60, 210) Source(71, 96) + SourceIndex(0) +22>Emitted(60, 211) Source(71, 97) + SourceIndex(0) +23>Emitted(60, 213) Source(71, 99) + SourceIndex(0) +24>Emitted(60, 214) Source(71, 100) + SourceIndex(0) +25>Emitted(60, 217) Source(71, 103) + SourceIndex(0) +26>Emitted(60, 218) Source(71, 104) + SourceIndex(0) +27>Emitted(60, 220) Source(71, 106) + SourceIndex(0) +28>Emitted(60, 221) Source(71, 107) + SourceIndex(0) +29>Emitted(60, 223) Source(71, 109) + SourceIndex(0) +30>Emitted(60, 225) Source(71, 111) + SourceIndex(0) +31>Emitted(60, 226) Source(71, 112) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1953,137 +2006,148 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameA2 7 > ) 8 > ; -1 >Emitted(53, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(53, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(53, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(53, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(53, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(53, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(53, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(53, 25) Source(72, 25) + SourceIndex(0) +1 >Emitted(61, 5) Source(72, 5) + SourceIndex(0) +2 >Emitted(61, 12) Source(72, 12) + SourceIndex(0) +3 >Emitted(61, 13) Source(72, 13) + SourceIndex(0) +4 >Emitted(61, 16) Source(72, 16) + SourceIndex(0) +5 >Emitted(61, 17) Source(72, 17) + SourceIndex(0) +6 >Emitted(61, 23) Source(72, 23) + SourceIndex(0) +7 >Emitted(61, 24) Source(72, 24) + SourceIndex(0) +8 >Emitted(61, 25) Source(72, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(54, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(54, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(62, 1) Source(73, 1) + SourceIndex(0) +2 >Emitted(62, 2) Source(73, 2) + SourceIndex(0) --- ->>>for (var _12 = multiRobotA[0], nameMA = _12 === void 0 ? "noName" : _12, _13 = multiRobotA[1], _14 = _13 === void 0 ? ["none", "none"] : _13, _15 = _14[0], primarySkillA = _15 === void 0 ? "primary" : _15, _16 = _14[1], secondarySkillA = _16 === void 0 ? "secondary" : _16, i = 0; i < 1; i++) { +>>>for (var _19 = __read(multiRobotA, 2), _20 = _19[0], nameMA = _20 === void 0 ? "noName" : _20, _21 = _19[1], _22 = __read(_21 === void 0 ? ["none", "none"] : _21, 2), _23 = _22[0], primarySkillA = _23 === void 0 ? "primary" : _23, _24 = _22[1], secondarySkillA = _24 === void 0 ? "secondary" : _24, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^ -19> ^^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -21> ^^ -22> ^ -23> ^^^ -24> ^ -25> ^^ -26> ^ -27> ^^^ -28> ^ -29> ^^ -30> ^ -31> ^^ -32> ^^ -33> ^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^^^^^^^^^^^^ +21> ^^ +22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^^ +30> ^ +31> ^^ +32> ^ +33> ^^ +34> ^^ +35> ^ 1-> > 2 >for 3 > 4 > (let - > [ + > 5 > -6 > nameMA = "noName" -7 > -8 > nameMA = "noName" -9 > , - > -10> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -11> +6 > [nameMA = "noName", + > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] + > ] = multiRobotA +7 > +8 > nameMA = "noName" +9 > +10> nameMA = "noName" +11> , + > 12> [ > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["none", "none"] -13> -14> primarySkillA = "primary" -15> -16> primarySkillA = "primary" -17> , - > -18> secondarySkillA = "secondary" -19> -20> secondarySkillA = "secondary" -21> - > ] = ["none", "none"] - > ] = multiRobotA, -22> i -23> = -24> 0 -25> ; -26> i -27> < -28> 1 -29> ; -30> i -31> ++ -32> ) -33> { -1->Emitted(55, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(55, 4) Source(74, 4) + SourceIndex(0) -3 >Emitted(55, 5) Source(74, 5) + SourceIndex(0) -4 >Emitted(55, 6) Source(75, 6) + SourceIndex(0) -5 >Emitted(55, 10) Source(75, 6) + SourceIndex(0) -6 >Emitted(55, 30) Source(75, 23) + SourceIndex(0) -7 >Emitted(55, 32) Source(75, 6) + SourceIndex(0) -8 >Emitted(55, 72) Source(75, 23) + SourceIndex(0) -9 >Emitted(55, 74) Source(76, 9) + SourceIndex(0) -10>Emitted(55, 94) Source(79, 29) + SourceIndex(0) -11>Emitted(55, 96) Source(76, 9) + SourceIndex(0) -12>Emitted(55, 141) Source(79, 29) + SourceIndex(0) -13>Emitted(55, 143) Source(77, 13) + SourceIndex(0) -14>Emitted(55, 155) Source(77, 38) + SourceIndex(0) -15>Emitted(55, 157) Source(77, 13) + SourceIndex(0) -16>Emitted(55, 205) Source(77, 38) + SourceIndex(0) -17>Emitted(55, 207) Source(78, 13) + SourceIndex(0) -18>Emitted(55, 219) Source(78, 42) + SourceIndex(0) -19>Emitted(55, 221) Source(78, 13) + SourceIndex(0) -20>Emitted(55, 273) Source(78, 42) + SourceIndex(0) -21>Emitted(55, 275) Source(80, 22) + SourceIndex(0) -22>Emitted(55, 276) Source(80, 23) + SourceIndex(0) -23>Emitted(55, 279) Source(80, 26) + SourceIndex(0) -24>Emitted(55, 280) Source(80, 27) + SourceIndex(0) -25>Emitted(55, 282) Source(80, 29) + SourceIndex(0) -26>Emitted(55, 283) Source(80, 30) + SourceIndex(0) -27>Emitted(55, 286) Source(80, 33) + SourceIndex(0) -28>Emitted(55, 287) Source(80, 34) + SourceIndex(0) -29>Emitted(55, 289) Source(80, 36) + SourceIndex(0) -30>Emitted(55, 290) Source(80, 37) + SourceIndex(0) -31>Emitted(55, 292) Source(80, 39) + SourceIndex(0) -32>Emitted(55, 294) Source(80, 41) + SourceIndex(0) -33>Emitted(55, 295) Source(80, 42) + SourceIndex(0) +13> +14> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +15> +16> primarySkillA = "primary" +17> +18> primarySkillA = "primary" +19> , + > +20> secondarySkillA = "secondary" +21> +22> secondarySkillA = "secondary" +23> + > ] = ["none", "none"] + > ] = multiRobotA, +24> i +25> = +26> 0 +27> ; +28> i +29> < +30> 1 +31> ; +32> i +33> ++ +34> ) +35> { +1->Emitted(63, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(63, 4) Source(74, 4) + SourceIndex(0) +3 >Emitted(63, 5) Source(74, 5) + SourceIndex(0) +4 >Emitted(63, 6) Source(75, 5) + SourceIndex(0) +5 >Emitted(63, 10) Source(75, 5) + SourceIndex(0) +6 >Emitted(63, 38) Source(80, 20) + SourceIndex(0) +7 >Emitted(63, 40) Source(75, 6) + SourceIndex(0) +8 >Emitted(63, 52) Source(75, 23) + SourceIndex(0) +9 >Emitted(63, 54) Source(75, 6) + SourceIndex(0) +10>Emitted(63, 94) Source(75, 23) + SourceIndex(0) +11>Emitted(63, 96) Source(76, 9) + SourceIndex(0) +12>Emitted(63, 108) Source(79, 29) + SourceIndex(0) +13>Emitted(63, 110) Source(76, 9) + SourceIndex(0) +14>Emitted(63, 166) Source(79, 29) + SourceIndex(0) +15>Emitted(63, 168) Source(77, 13) + SourceIndex(0) +16>Emitted(63, 180) Source(77, 38) + SourceIndex(0) +17>Emitted(63, 182) Source(77, 13) + SourceIndex(0) +18>Emitted(63, 230) Source(77, 38) + SourceIndex(0) +19>Emitted(63, 232) Source(78, 13) + SourceIndex(0) +20>Emitted(63, 244) Source(78, 42) + SourceIndex(0) +21>Emitted(63, 246) Source(78, 13) + SourceIndex(0) +22>Emitted(63, 298) Source(78, 42) + SourceIndex(0) +23>Emitted(63, 300) Source(80, 22) + SourceIndex(0) +24>Emitted(63, 301) Source(80, 23) + SourceIndex(0) +25>Emitted(63, 304) Source(80, 26) + SourceIndex(0) +26>Emitted(63, 305) Source(80, 27) + SourceIndex(0) +27>Emitted(63, 307) Source(80, 29) + SourceIndex(0) +28>Emitted(63, 308) Source(80, 30) + SourceIndex(0) +29>Emitted(63, 311) Source(80, 33) + SourceIndex(0) +30>Emitted(63, 312) Source(80, 34) + SourceIndex(0) +31>Emitted(63, 314) Source(80, 36) + SourceIndex(0) +32>Emitted(63, 315) Source(80, 37) + SourceIndex(0) +33>Emitted(63, 317) Source(80, 39) + SourceIndex(0) +34>Emitted(63, 319) Source(80, 41) + SourceIndex(0) +35>Emitted(63, 320) Source(80, 42) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2103,61 +2167,61 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameMA 7 > ) 8 > ; -1 >Emitted(56, 5) Source(81, 5) + SourceIndex(0) -2 >Emitted(56, 12) Source(81, 12) + SourceIndex(0) -3 >Emitted(56, 13) Source(81, 13) + SourceIndex(0) -4 >Emitted(56, 16) Source(81, 16) + SourceIndex(0) -5 >Emitted(56, 17) Source(81, 17) + SourceIndex(0) -6 >Emitted(56, 23) Source(81, 23) + SourceIndex(0) -7 >Emitted(56, 24) Source(81, 24) + SourceIndex(0) -8 >Emitted(56, 25) Source(81, 25) + SourceIndex(0) +1 >Emitted(64, 5) Source(81, 5) + SourceIndex(0) +2 >Emitted(64, 12) Source(81, 12) + SourceIndex(0) +3 >Emitted(64, 13) Source(81, 13) + SourceIndex(0) +4 >Emitted(64, 16) Source(81, 16) + SourceIndex(0) +5 >Emitted(64, 17) Source(81, 17) + SourceIndex(0) +6 >Emitted(64, 23) Source(81, 23) + SourceIndex(0) +7 >Emitted(64, 24) Source(81, 24) + SourceIndex(0) +8 >Emitted(64, 25) Source(81, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(57, 1) Source(82, 1) + SourceIndex(0) -2 >Emitted(57, 2) Source(82, 2) + SourceIndex(0) +1 >Emitted(65, 1) Source(82, 1) + SourceIndex(0) +2 >Emitted(65, 2) Source(82, 2) + SourceIndex(0) --- ->>>for (var _17 = getMultiRobot(), _18 = _17[0], nameMA = _18 === void 0 ? "noName" : _18, _19 = _17[1], _20 = _19 === void 0 ? ["none", "none"] : _19, _21 = _20[0], primarySkillA = _21 === void 0 ? "primary" : _21, _22 = _20[1], secondarySkillA = _22 === void 0 ? "secondary" : _22, i = 0; i < 1; i++) { +>>>for (var _25 = __read(getMultiRobot(), 2), _26 = _25[0], nameMA = _26 === void 0 ? "noName" : _26, _27 = _25[1], _28 = __read(_27 === void 0 ? ["none", "none"] : _27, 2), _29 = _28[0], primarySkillA = _29 === void 0 ? "primary" : _29, _30 = _28[1], secondarySkillA = _30 === void 0 ? "secondary" : _30, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^^^^^^^^^^^^ -21> ^^ -22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^^ -30> ^ -31> ^^ -32> ^ -33> ^^ -34> ^^ -35> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^^^^^^^^^^^^ +21> ^^ +22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^^ +30> ^ +31> ^^ +32> ^ +33> ^^ +34> ^^ +35> ^ 1-> > 2 >for @@ -2170,80 +2234,80 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t > secondarySkillA = "secondary" > ] = ["none", "none"] > ] = getMultiRobot() -7 > -8 > nameMA = "noName" -9 > -10> nameMA = "noName" -11> , - > -12> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -13> -14> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -15> -16> primarySkillA = "primary" -17> -18> primarySkillA = "primary" -19> , - > -20> secondarySkillA = "secondary" -21> -22> secondarySkillA = "secondary" -23> - > ] = ["none", "none"] - > ] = getMultiRobot(), -24> i -25> = -26> 0 -27> ; -28> i -29> < -30> 1 -31> ; -32> i -33> ++ -34> ) -35> { -1->Emitted(58, 1) Source(83, 1) + SourceIndex(0) -2 >Emitted(58, 4) Source(83, 4) + SourceIndex(0) -3 >Emitted(58, 5) Source(83, 5) + SourceIndex(0) -4 >Emitted(58, 6) Source(83, 10) + SourceIndex(0) -5 >Emitted(58, 10) Source(83, 10) + SourceIndex(0) -6 >Emitted(58, 31) Source(88, 21) + SourceIndex(0) -7 >Emitted(58, 33) Source(83, 11) + SourceIndex(0) -8 >Emitted(58, 45) Source(83, 28) + SourceIndex(0) -9 >Emitted(58, 47) Source(83, 11) + SourceIndex(0) -10>Emitted(58, 87) Source(83, 28) + SourceIndex(0) -11>Emitted(58, 89) Source(84, 5) + SourceIndex(0) -12>Emitted(58, 101) Source(87, 25) + SourceIndex(0) -13>Emitted(58, 103) Source(84, 5) + SourceIndex(0) -14>Emitted(58, 148) Source(87, 25) + SourceIndex(0) -15>Emitted(58, 150) Source(85, 9) + SourceIndex(0) -16>Emitted(58, 162) Source(85, 34) + SourceIndex(0) -17>Emitted(58, 164) Source(85, 9) + SourceIndex(0) -18>Emitted(58, 212) Source(85, 34) + SourceIndex(0) -19>Emitted(58, 214) Source(86, 9) + SourceIndex(0) -20>Emitted(58, 226) Source(86, 38) + SourceIndex(0) -21>Emitted(58, 228) Source(86, 9) + SourceIndex(0) -22>Emitted(58, 280) Source(86, 38) + SourceIndex(0) -23>Emitted(58, 282) Source(88, 23) + SourceIndex(0) -24>Emitted(58, 283) Source(88, 24) + SourceIndex(0) -25>Emitted(58, 286) Source(88, 27) + SourceIndex(0) -26>Emitted(58, 287) Source(88, 28) + SourceIndex(0) -27>Emitted(58, 289) Source(88, 30) + SourceIndex(0) -28>Emitted(58, 290) Source(88, 31) + SourceIndex(0) -29>Emitted(58, 293) Source(88, 34) + SourceIndex(0) -30>Emitted(58, 294) Source(88, 35) + SourceIndex(0) -31>Emitted(58, 296) Source(88, 37) + SourceIndex(0) -32>Emitted(58, 297) Source(88, 38) + SourceIndex(0) -33>Emitted(58, 299) Source(88, 40) + SourceIndex(0) -34>Emitted(58, 301) Source(88, 42) + SourceIndex(0) -35>Emitted(58, 302) Source(88, 43) + SourceIndex(0) +7 > +8 > nameMA = "noName" +9 > +10> nameMA = "noName" +11> , + > +12> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +13> +14> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +15> +16> primarySkillA = "primary" +17> +18> primarySkillA = "primary" +19> , + > +20> secondarySkillA = "secondary" +21> +22> secondarySkillA = "secondary" +23> + > ] = ["none", "none"] + > ] = getMultiRobot(), +24> i +25> = +26> 0 +27> ; +28> i +29> < +30> 1 +31> ; +32> i +33> ++ +34> ) +35> { +1->Emitted(66, 1) Source(83, 1) + SourceIndex(0) +2 >Emitted(66, 4) Source(83, 4) + SourceIndex(0) +3 >Emitted(66, 5) Source(83, 5) + SourceIndex(0) +4 >Emitted(66, 6) Source(83, 10) + SourceIndex(0) +5 >Emitted(66, 10) Source(83, 10) + SourceIndex(0) +6 >Emitted(66, 42) Source(88, 21) + SourceIndex(0) +7 >Emitted(66, 44) Source(83, 11) + SourceIndex(0) +8 >Emitted(66, 56) Source(83, 28) + SourceIndex(0) +9 >Emitted(66, 58) Source(83, 11) + SourceIndex(0) +10>Emitted(66, 98) Source(83, 28) + SourceIndex(0) +11>Emitted(66, 100) Source(84, 5) + SourceIndex(0) +12>Emitted(66, 112) Source(87, 25) + SourceIndex(0) +13>Emitted(66, 114) Source(84, 5) + SourceIndex(0) +14>Emitted(66, 170) Source(87, 25) + SourceIndex(0) +15>Emitted(66, 172) Source(85, 9) + SourceIndex(0) +16>Emitted(66, 184) Source(85, 34) + SourceIndex(0) +17>Emitted(66, 186) Source(85, 9) + SourceIndex(0) +18>Emitted(66, 234) Source(85, 34) + SourceIndex(0) +19>Emitted(66, 236) Source(86, 9) + SourceIndex(0) +20>Emitted(66, 248) Source(86, 38) + SourceIndex(0) +21>Emitted(66, 250) Source(86, 9) + SourceIndex(0) +22>Emitted(66, 302) Source(86, 38) + SourceIndex(0) +23>Emitted(66, 304) Source(88, 23) + SourceIndex(0) +24>Emitted(66, 305) Source(88, 24) + SourceIndex(0) +25>Emitted(66, 308) Source(88, 27) + SourceIndex(0) +26>Emitted(66, 309) Source(88, 28) + SourceIndex(0) +27>Emitted(66, 311) Source(88, 30) + SourceIndex(0) +28>Emitted(66, 312) Source(88, 31) + SourceIndex(0) +29>Emitted(66, 315) Source(88, 34) + SourceIndex(0) +30>Emitted(66, 316) Source(88, 35) + SourceIndex(0) +31>Emitted(66, 318) Source(88, 37) + SourceIndex(0) +32>Emitted(66, 319) Source(88, 38) + SourceIndex(0) +33>Emitted(66, 321) Source(88, 40) + SourceIndex(0) +34>Emitted(66, 323) Source(88, 42) + SourceIndex(0) +35>Emitted(66, 324) Source(88, 43) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2263,26 +2327,26 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameMA 7 > ) 8 > ; -1 >Emitted(59, 5) Source(89, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(89, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(89, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(89, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(89, 17) + SourceIndex(0) -6 >Emitted(59, 23) Source(89, 23) + SourceIndex(0) -7 >Emitted(59, 24) Source(89, 24) + SourceIndex(0) -8 >Emitted(59, 25) Source(89, 25) + SourceIndex(0) +1 >Emitted(67, 5) Source(89, 5) + SourceIndex(0) +2 >Emitted(67, 12) Source(89, 12) + SourceIndex(0) +3 >Emitted(67, 13) Source(89, 13) + SourceIndex(0) +4 >Emitted(67, 16) Source(89, 16) + SourceIndex(0) +5 >Emitted(67, 17) Source(89, 17) + SourceIndex(0) +6 >Emitted(67, 23) Source(89, 23) + SourceIndex(0) +7 >Emitted(67, 24) Source(89, 24) + SourceIndex(0) +8 >Emitted(67, 25) Source(89, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(60, 1) Source(90, 1) + SourceIndex(0) -2 >Emitted(60, 2) Source(90, 2) + SourceIndex(0) +1 >Emitted(68, 1) Source(90, 1) + SourceIndex(0) +2 >Emitted(68, 2) Source(90, 2) + SourceIndex(0) --- ->>>for (var _23 = ["trimmer", ["trimming", "edging"]], _24 = _23[0], nameMA = _24 === void 0 ? "noName" : _24, _25 = _23[1], _26 = _25 === void 0 ? ["none", "none"] : _25, _27 = _26[0], primarySkillA = _27 === void 0 ? "primary" : _27, _28 = _26[1], secondarySkillA = _28 === void 0 ? "secondary" : _28, i = 0; i < 1; i++) { +>>>for (var _31 = ["trimmer", ["trimming", "edging"]], _32 = _31[0], nameMA = _32 === void 0 ? "noName" : _32, _33 = _31[1], _34 = __read(_33 === void 0 ? ["none", "none"] : _33, 2), _35 = _34[0], primarySkillA = _35 === void 0 ? "primary" : _35, _36 = _34[1], secondarySkillA = _36 === void 0 ? "secondary" : _36, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -2296,28 +2360,28 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 11> ^^ 12> ^^^^^^^^^^^^ 13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^^ -20> ^^^^^^^^^^^^ -21> ^^ -22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -23> ^^ -24> ^ -25> ^^^ -26> ^ -27> ^^ -28> ^ -29> ^^^ -30> ^ -31> ^^ -32> ^ -33> ^^ -34> ^^ -35> ^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^^^^^^^^^^^^ +21> ^^ +22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23> ^^ +24> ^ +25> ^^^ +26> ^ +27> ^^ +28> ^ +29> ^^^ +30> ^ +31> ^^ +32> ^ +33> ^^ +34> ^^ +35> ^ 1-> > 2 >for @@ -2345,65 +2409,65 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["none", "none"] -15> -16> primarySkillA = "primary" -17> -18> primarySkillA = "primary" -19> , - > -20> secondarySkillA = "secondary" -21> -22> secondarySkillA = "secondary" -23> - > ] = ["none", "none"] - > ] = ["trimmer", ["trimming", "edging"]], -24> i -25> = -26> 0 -27> ; -28> i -29> < -30> 1 -31> ; -32> i -33> ++ -34> ) -35> { -1->Emitted(61, 1) Source(91, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(91, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(91, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(91, 10) + SourceIndex(0) -5 >Emitted(61, 10) Source(91, 10) + SourceIndex(0) -6 >Emitted(61, 51) Source(96, 41) + SourceIndex(0) -7 >Emitted(61, 53) Source(91, 11) + SourceIndex(0) -8 >Emitted(61, 65) Source(91, 28) + SourceIndex(0) -9 >Emitted(61, 67) Source(91, 11) + SourceIndex(0) -10>Emitted(61, 107) Source(91, 28) + SourceIndex(0) -11>Emitted(61, 109) Source(92, 5) + SourceIndex(0) -12>Emitted(61, 121) Source(95, 25) + SourceIndex(0) -13>Emitted(61, 123) Source(92, 5) + SourceIndex(0) -14>Emitted(61, 168) Source(95, 25) + SourceIndex(0) -15>Emitted(61, 170) Source(93, 9) + SourceIndex(0) -16>Emitted(61, 182) Source(93, 34) + SourceIndex(0) -17>Emitted(61, 184) Source(93, 9) + SourceIndex(0) -18>Emitted(61, 232) Source(93, 34) + SourceIndex(0) -19>Emitted(61, 234) Source(94, 9) + SourceIndex(0) -20>Emitted(61, 246) Source(94, 38) + SourceIndex(0) -21>Emitted(61, 248) Source(94, 9) + SourceIndex(0) -22>Emitted(61, 300) Source(94, 38) + SourceIndex(0) -23>Emitted(61, 302) Source(96, 43) + SourceIndex(0) -24>Emitted(61, 303) Source(96, 44) + SourceIndex(0) -25>Emitted(61, 306) Source(96, 47) + SourceIndex(0) -26>Emitted(61, 307) Source(96, 48) + SourceIndex(0) -27>Emitted(61, 309) Source(96, 50) + SourceIndex(0) -28>Emitted(61, 310) Source(96, 51) + SourceIndex(0) -29>Emitted(61, 313) Source(96, 54) + SourceIndex(0) -30>Emitted(61, 314) Source(96, 55) + SourceIndex(0) -31>Emitted(61, 316) Source(96, 57) + SourceIndex(0) -32>Emitted(61, 317) Source(96, 58) + SourceIndex(0) -33>Emitted(61, 319) Source(96, 60) + SourceIndex(0) -34>Emitted(61, 321) Source(96, 62) + SourceIndex(0) -35>Emitted(61, 322) Source(96, 63) + SourceIndex(0) +15> +16> primarySkillA = "primary" +17> +18> primarySkillA = "primary" +19> , + > +20> secondarySkillA = "secondary" +21> +22> secondarySkillA = "secondary" +23> + > ] = ["none", "none"] + > ] = ["trimmer", ["trimming", "edging"]], +24> i +25> = +26> 0 +27> ; +28> i +29> < +30> 1 +31> ; +32> i +33> ++ +34> ) +35> { +1->Emitted(69, 1) Source(91, 1) + SourceIndex(0) +2 >Emitted(69, 4) Source(91, 4) + SourceIndex(0) +3 >Emitted(69, 5) Source(91, 5) + SourceIndex(0) +4 >Emitted(69, 6) Source(91, 10) + SourceIndex(0) +5 >Emitted(69, 10) Source(91, 10) + SourceIndex(0) +6 >Emitted(69, 51) Source(96, 41) + SourceIndex(0) +7 >Emitted(69, 53) Source(91, 11) + SourceIndex(0) +8 >Emitted(69, 65) Source(91, 28) + SourceIndex(0) +9 >Emitted(69, 67) Source(91, 11) + SourceIndex(0) +10>Emitted(69, 107) Source(91, 28) + SourceIndex(0) +11>Emitted(69, 109) Source(92, 5) + SourceIndex(0) +12>Emitted(69, 121) Source(95, 25) + SourceIndex(0) +13>Emitted(69, 123) Source(92, 5) + SourceIndex(0) +14>Emitted(69, 179) Source(95, 25) + SourceIndex(0) +15>Emitted(69, 181) Source(93, 9) + SourceIndex(0) +16>Emitted(69, 193) Source(93, 34) + SourceIndex(0) +17>Emitted(69, 195) Source(93, 9) + SourceIndex(0) +18>Emitted(69, 243) Source(93, 34) + SourceIndex(0) +19>Emitted(69, 245) Source(94, 9) + SourceIndex(0) +20>Emitted(69, 257) Source(94, 38) + SourceIndex(0) +21>Emitted(69, 259) Source(94, 9) + SourceIndex(0) +22>Emitted(69, 311) Source(94, 38) + SourceIndex(0) +23>Emitted(69, 313) Source(96, 43) + SourceIndex(0) +24>Emitted(69, 314) Source(96, 44) + SourceIndex(0) +25>Emitted(69, 317) Source(96, 47) + SourceIndex(0) +26>Emitted(69, 318) Source(96, 48) + SourceIndex(0) +27>Emitted(69, 320) Source(96, 50) + SourceIndex(0) +28>Emitted(69, 321) Source(96, 51) + SourceIndex(0) +29>Emitted(69, 324) Source(96, 54) + SourceIndex(0) +30>Emitted(69, 325) Source(96, 55) + SourceIndex(0) +31>Emitted(69, 327) Source(96, 57) + SourceIndex(0) +32>Emitted(69, 328) Source(96, 58) + SourceIndex(0) +33>Emitted(69, 330) Source(96, 60) + SourceIndex(0) +34>Emitted(69, 332) Source(96, 62) + SourceIndex(0) +35>Emitted(69, 333) Source(96, 63) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2423,97 +2487,103 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > nameMA 7 > ) 8 > ; -1 >Emitted(62, 5) Source(97, 5) + SourceIndex(0) -2 >Emitted(62, 12) Source(97, 12) + SourceIndex(0) -3 >Emitted(62, 13) Source(97, 13) + SourceIndex(0) -4 >Emitted(62, 16) Source(97, 16) + SourceIndex(0) -5 >Emitted(62, 17) Source(97, 17) + SourceIndex(0) -6 >Emitted(62, 23) Source(97, 23) + SourceIndex(0) -7 >Emitted(62, 24) Source(97, 24) + SourceIndex(0) -8 >Emitted(62, 25) Source(97, 25) + SourceIndex(0) +1 >Emitted(70, 5) Source(97, 5) + SourceIndex(0) +2 >Emitted(70, 12) Source(97, 12) + SourceIndex(0) +3 >Emitted(70, 13) Source(97, 13) + SourceIndex(0) +4 >Emitted(70, 16) Source(97, 16) + SourceIndex(0) +5 >Emitted(70, 17) Source(97, 17) + SourceIndex(0) +6 >Emitted(70, 23) Source(97, 23) + SourceIndex(0) +7 >Emitted(70, 24) Source(97, 24) + SourceIndex(0) +8 >Emitted(70, 25) Source(97, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(63, 1) Source(98, 1) + SourceIndex(0) -2 >Emitted(63, 2) Source(98, 2) + SourceIndex(0) +1 >Emitted(71, 1) Source(98, 1) + SourceIndex(0) +2 >Emitted(71, 2) Source(98, 2) + SourceIndex(0) --- ->>>for (var _29 = robotA[0], numberA3 = _29 === void 0 ? -1 : _29, robotAInfo = robotA.slice(1), i = 0; i < 1; i++) { +>>>for (var _37 = __read(robotA), _38 = _37[0], numberA3 = _38 === void 0 ? -1 : _38, robotAInfo = _37.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^ -13> ^^^ -14> ^ -15> ^^ -16> ^ -17> ^^^ -18> ^ -19> ^^ -20> ^ -21> ^^ -22> ^^ -23> ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > > 2 >for 3 > -4 > (let [ +4 > (let 5 > -6 > numberA3 = -1 -7 > -8 > numberA3 = -1 -9 > , -10> ...robotAInfo -11> ] = robotA, -12> i -13> = -14> 0 -15> ; -16> i -17> < -18> 1 -19> ; -20> i -21> ++ -22> ) -23> { -1->Emitted(64, 1) Source(100, 1) + SourceIndex(0) -2 >Emitted(64, 4) Source(100, 4) + SourceIndex(0) -3 >Emitted(64, 5) Source(100, 5) + SourceIndex(0) -4 >Emitted(64, 6) Source(100, 11) + SourceIndex(0) -5 >Emitted(64, 10) Source(100, 11) + SourceIndex(0) -6 >Emitted(64, 25) Source(100, 24) + SourceIndex(0) -7 >Emitted(64, 27) Source(100, 11) + SourceIndex(0) -8 >Emitted(64, 63) Source(100, 24) + SourceIndex(0) -9 >Emitted(64, 65) Source(100, 26) + SourceIndex(0) -10>Emitted(64, 93) Source(100, 39) + SourceIndex(0) -11>Emitted(64, 95) Source(100, 51) + SourceIndex(0) -12>Emitted(64, 96) Source(100, 52) + SourceIndex(0) -13>Emitted(64, 99) Source(100, 55) + SourceIndex(0) -14>Emitted(64, 100) Source(100, 56) + SourceIndex(0) -15>Emitted(64, 102) Source(100, 58) + SourceIndex(0) -16>Emitted(64, 103) Source(100, 59) + SourceIndex(0) -17>Emitted(64, 106) Source(100, 62) + SourceIndex(0) -18>Emitted(64, 107) Source(100, 63) + SourceIndex(0) -19>Emitted(64, 109) Source(100, 65) + SourceIndex(0) -20>Emitted(64, 110) Source(100, 66) + SourceIndex(0) -21>Emitted(64, 112) Source(100, 68) + SourceIndex(0) -22>Emitted(64, 114) Source(100, 70) + SourceIndex(0) -23>Emitted(64, 115) Source(100, 71) + SourceIndex(0) +6 > [numberA3 = -1, ...robotAInfo] = robotA +7 > +8 > numberA3 = -1 +9 > +10> numberA3 = -1 +11> , +12> ...robotAInfo +13> ] = robotA, +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(72, 1) Source(100, 1) + SourceIndex(0) +2 >Emitted(72, 4) Source(100, 4) + SourceIndex(0) +3 >Emitted(72, 5) Source(100, 5) + SourceIndex(0) +4 >Emitted(72, 6) Source(100, 10) + SourceIndex(0) +5 >Emitted(72, 10) Source(100, 10) + SourceIndex(0) +6 >Emitted(72, 30) Source(100, 49) + SourceIndex(0) +7 >Emitted(72, 32) Source(100, 11) + SourceIndex(0) +8 >Emitted(72, 44) Source(100, 24) + SourceIndex(0) +9 >Emitted(72, 46) Source(100, 11) + SourceIndex(0) +10>Emitted(72, 82) Source(100, 24) + SourceIndex(0) +11>Emitted(72, 84) Source(100, 26) + SourceIndex(0) +12>Emitted(72, 109) Source(100, 39) + SourceIndex(0) +13>Emitted(72, 111) Source(100, 51) + SourceIndex(0) +14>Emitted(72, 112) Source(100, 52) + SourceIndex(0) +15>Emitted(72, 115) Source(100, 55) + SourceIndex(0) +16>Emitted(72, 116) Source(100, 56) + SourceIndex(0) +17>Emitted(72, 118) Source(100, 58) + SourceIndex(0) +18>Emitted(72, 119) Source(100, 59) + SourceIndex(0) +19>Emitted(72, 122) Source(100, 62) + SourceIndex(0) +20>Emitted(72, 123) Source(100, 63) + SourceIndex(0) +21>Emitted(72, 125) Source(100, 65) + SourceIndex(0) +22>Emitted(72, 126) Source(100, 66) + SourceIndex(0) +23>Emitted(72, 128) Source(100, 68) + SourceIndex(0) +24>Emitted(72, 130) Source(100, 70) + SourceIndex(0) +25>Emitted(72, 131) Source(100, 71) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2533,51 +2603,51 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberA3 7 > ) 8 > ; -1 >Emitted(65, 5) Source(101, 5) + SourceIndex(0) -2 >Emitted(65, 12) Source(101, 12) + SourceIndex(0) -3 >Emitted(65, 13) Source(101, 13) + SourceIndex(0) -4 >Emitted(65, 16) Source(101, 16) + SourceIndex(0) -5 >Emitted(65, 17) Source(101, 17) + SourceIndex(0) -6 >Emitted(65, 25) Source(101, 25) + SourceIndex(0) -7 >Emitted(65, 26) Source(101, 26) + SourceIndex(0) -8 >Emitted(65, 27) Source(101, 27) + SourceIndex(0) +1 >Emitted(73, 5) Source(101, 5) + SourceIndex(0) +2 >Emitted(73, 12) Source(101, 12) + SourceIndex(0) +3 >Emitted(73, 13) Source(101, 13) + SourceIndex(0) +4 >Emitted(73, 16) Source(101, 16) + SourceIndex(0) +5 >Emitted(73, 17) Source(101, 17) + SourceIndex(0) +6 >Emitted(73, 25) Source(101, 25) + SourceIndex(0) +7 >Emitted(73, 26) Source(101, 26) + SourceIndex(0) +8 >Emitted(73, 27) Source(101, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(66, 1) Source(102, 1) + SourceIndex(0) -2 >Emitted(66, 2) Source(102, 2) + SourceIndex(0) +1 >Emitted(74, 1) Source(102, 1) + SourceIndex(0) +2 >Emitted(74, 2) Source(102, 2) + SourceIndex(0) --- ->>>for (var _30 = getRobot(), _31 = _30[0], numberA3 = _31 === void 0 ? -1 : _31, robotAInfo = _30.slice(1), i = 0; i < 1; i++) { +>>>for (var _39 = __read(getRobot()), _40 = _39[0], numberA3 = _40 === void 0 ? -1 : _40, robotAInfo = _39.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^ -16> ^ -17> ^^ -18> ^ -19> ^^^ -20> ^ -21> ^^ -22> ^ -23> ^^ -24> ^^ -25> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^ +15> ^^^ +16> ^ +17> ^^ +18> ^ +19> ^^^ +20> ^ +21> ^^ +22> ^ +23> ^^ +24> ^^ +25> ^ 1-> > 2 >for @@ -2585,50 +2655,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 4 > (let 5 > 6 > [numberA3 = -1, ...robotAInfo] = getRobot() -7 > -8 > numberA3 = -1 -9 > -10> numberA3 = -1 -11> , -12> ...robotAInfo -13> ] = getRobot(), -14> i -15> = -16> 0 -17> ; -18> i -19> < -20> 1 -21> ; -22> i -23> ++ -24> ) -25> { -1->Emitted(67, 1) Source(103, 1) + SourceIndex(0) -2 >Emitted(67, 4) Source(103, 4) + SourceIndex(0) -3 >Emitted(67, 5) Source(103, 5) + SourceIndex(0) -4 >Emitted(67, 6) Source(103, 10) + SourceIndex(0) -5 >Emitted(67, 10) Source(103, 10) + SourceIndex(0) -6 >Emitted(67, 26) Source(103, 53) + SourceIndex(0) -7 >Emitted(67, 28) Source(103, 11) + SourceIndex(0) -8 >Emitted(67, 40) Source(103, 24) + SourceIndex(0) -9 >Emitted(67, 42) Source(103, 11) + SourceIndex(0) -10>Emitted(67, 78) Source(103, 24) + SourceIndex(0) -11>Emitted(67, 80) Source(103, 26) + SourceIndex(0) -12>Emitted(67, 105) Source(103, 39) + SourceIndex(0) -13>Emitted(67, 107) Source(103, 55) + SourceIndex(0) -14>Emitted(67, 108) Source(103, 56) + SourceIndex(0) -15>Emitted(67, 111) Source(103, 59) + SourceIndex(0) -16>Emitted(67, 112) Source(103, 60) + SourceIndex(0) -17>Emitted(67, 114) Source(103, 62) + SourceIndex(0) -18>Emitted(67, 115) Source(103, 63) + SourceIndex(0) -19>Emitted(67, 118) Source(103, 66) + SourceIndex(0) -20>Emitted(67, 119) Source(103, 67) + SourceIndex(0) -21>Emitted(67, 121) Source(103, 69) + SourceIndex(0) -22>Emitted(67, 122) Source(103, 70) + SourceIndex(0) -23>Emitted(67, 124) Source(103, 72) + SourceIndex(0) -24>Emitted(67, 126) Source(103, 74) + SourceIndex(0) -25>Emitted(67, 127) Source(103, 75) + SourceIndex(0) +7 > +8 > numberA3 = -1 +9 > +10> numberA3 = -1 +11> , +12> ...robotAInfo +13> ] = getRobot(), +14> i +15> = +16> 0 +17> ; +18> i +19> < +20> 1 +21> ; +22> i +23> ++ +24> ) +25> { +1->Emitted(75, 1) Source(103, 1) + SourceIndex(0) +2 >Emitted(75, 4) Source(103, 4) + SourceIndex(0) +3 >Emitted(75, 5) Source(103, 5) + SourceIndex(0) +4 >Emitted(75, 6) Source(103, 10) + SourceIndex(0) +5 >Emitted(75, 10) Source(103, 10) + SourceIndex(0) +6 >Emitted(75, 34) Source(103, 53) + SourceIndex(0) +7 >Emitted(75, 36) Source(103, 11) + SourceIndex(0) +8 >Emitted(75, 48) Source(103, 24) + SourceIndex(0) +9 >Emitted(75, 50) Source(103, 11) + SourceIndex(0) +10>Emitted(75, 86) Source(103, 24) + SourceIndex(0) +11>Emitted(75, 88) Source(103, 26) + SourceIndex(0) +12>Emitted(75, 113) Source(103, 39) + SourceIndex(0) +13>Emitted(75, 115) Source(103, 55) + SourceIndex(0) +14>Emitted(75, 116) Source(103, 56) + SourceIndex(0) +15>Emitted(75, 119) Source(103, 59) + SourceIndex(0) +16>Emitted(75, 120) Source(103, 60) + SourceIndex(0) +17>Emitted(75, 122) Source(103, 62) + SourceIndex(0) +18>Emitted(75, 123) Source(103, 63) + SourceIndex(0) +19>Emitted(75, 126) Source(103, 66) + SourceIndex(0) +20>Emitted(75, 127) Source(103, 67) + SourceIndex(0) +21>Emitted(75, 129) Source(103, 69) + SourceIndex(0) +22>Emitted(75, 130) Source(103, 70) + SourceIndex(0) +23>Emitted(75, 132) Source(103, 72) + SourceIndex(0) +24>Emitted(75, 134) Source(103, 74) + SourceIndex(0) +25>Emitted(75, 135) Source(103, 75) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2648,14 +2718,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberA3 7 > ) 8 > ; -1 >Emitted(68, 5) Source(104, 5) + SourceIndex(0) -2 >Emitted(68, 12) Source(104, 12) + SourceIndex(0) -3 >Emitted(68, 13) Source(104, 13) + SourceIndex(0) -4 >Emitted(68, 16) Source(104, 16) + SourceIndex(0) -5 >Emitted(68, 17) Source(104, 17) + SourceIndex(0) -6 >Emitted(68, 25) Source(104, 25) + SourceIndex(0) -7 >Emitted(68, 26) Source(104, 26) + SourceIndex(0) -8 >Emitted(68, 27) Source(104, 27) + SourceIndex(0) +1 >Emitted(76, 5) Source(104, 5) + SourceIndex(0) +2 >Emitted(76, 12) Source(104, 12) + SourceIndex(0) +3 >Emitted(76, 13) Source(104, 13) + SourceIndex(0) +4 >Emitted(76, 16) Source(104, 16) + SourceIndex(0) +5 >Emitted(76, 17) Source(104, 17) + SourceIndex(0) +6 >Emitted(76, 25) Source(104, 25) + SourceIndex(0) +7 >Emitted(76, 26) Source(104, 26) + SourceIndex(0) +8 >Emitted(76, 27) Source(104, 27) + SourceIndex(0) --- >>>} 1 > @@ -2664,10 +2734,10 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(69, 1) Source(105, 1) + SourceIndex(0) -2 >Emitted(69, 2) Source(105, 2) + SourceIndex(0) +1 >Emitted(77, 1) Source(105, 1) + SourceIndex(0) +2 >Emitted(77, 2) Source(105, 2) + SourceIndex(0) --- ->>>for (var _32 = [2, "trimmer", "trimming"], _33 = _32[0], numberA3 = _33 === void 0 ? -1 : _33, robotAInfo = _32.slice(1), i = 0; i < 1; i++) { +>>>for (var _41 = [2, "trimmer", "trimming"], _42 = _41[0], numberA3 = _42 === void 0 ? -1 : _42, robotAInfo = _41.slice(1), i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ @@ -2719,31 +2789,31 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 23> ++ 24> ) 25> { -1->Emitted(70, 1) Source(106, 1) + SourceIndex(0) -2 >Emitted(70, 4) Source(106, 4) + SourceIndex(0) -3 >Emitted(70, 5) Source(106, 5) + SourceIndex(0) -4 >Emitted(70, 6) Source(106, 10) + SourceIndex(0) -5 >Emitted(70, 10) Source(106, 10) + SourceIndex(0) -6 >Emitted(70, 42) Source(106, 69) + SourceIndex(0) -7 >Emitted(70, 44) Source(106, 11) + SourceIndex(0) -8 >Emitted(70, 56) Source(106, 24) + SourceIndex(0) -9 >Emitted(70, 58) Source(106, 11) + SourceIndex(0) -10>Emitted(70, 94) Source(106, 24) + SourceIndex(0) -11>Emitted(70, 96) Source(106, 26) + SourceIndex(0) -12>Emitted(70, 121) Source(106, 39) + SourceIndex(0) -13>Emitted(70, 123) Source(106, 71) + SourceIndex(0) -14>Emitted(70, 124) Source(106, 72) + SourceIndex(0) -15>Emitted(70, 127) Source(106, 75) + SourceIndex(0) -16>Emitted(70, 128) Source(106, 76) + SourceIndex(0) -17>Emitted(70, 130) Source(106, 78) + SourceIndex(0) -18>Emitted(70, 131) Source(106, 79) + SourceIndex(0) -19>Emitted(70, 134) Source(106, 82) + SourceIndex(0) -20>Emitted(70, 135) Source(106, 83) + SourceIndex(0) -21>Emitted(70, 137) Source(106, 85) + SourceIndex(0) -22>Emitted(70, 138) Source(106, 86) + SourceIndex(0) -23>Emitted(70, 140) Source(106, 88) + SourceIndex(0) -24>Emitted(70, 142) Source(106, 90) + SourceIndex(0) -25>Emitted(70, 143) Source(106, 91) + SourceIndex(0) +1->Emitted(78, 1) Source(106, 1) + SourceIndex(0) +2 >Emitted(78, 4) Source(106, 4) + SourceIndex(0) +3 >Emitted(78, 5) Source(106, 5) + SourceIndex(0) +4 >Emitted(78, 6) Source(106, 10) + SourceIndex(0) +5 >Emitted(78, 10) Source(106, 10) + SourceIndex(0) +6 >Emitted(78, 42) Source(106, 69) + SourceIndex(0) +7 >Emitted(78, 44) Source(106, 11) + SourceIndex(0) +8 >Emitted(78, 56) Source(106, 24) + SourceIndex(0) +9 >Emitted(78, 58) Source(106, 11) + SourceIndex(0) +10>Emitted(78, 94) Source(106, 24) + SourceIndex(0) +11>Emitted(78, 96) Source(106, 26) + SourceIndex(0) +12>Emitted(78, 121) Source(106, 39) + SourceIndex(0) +13>Emitted(78, 123) Source(106, 71) + SourceIndex(0) +14>Emitted(78, 124) Source(106, 72) + SourceIndex(0) +15>Emitted(78, 127) Source(106, 75) + SourceIndex(0) +16>Emitted(78, 128) Source(106, 76) + SourceIndex(0) +17>Emitted(78, 130) Source(106, 78) + SourceIndex(0) +18>Emitted(78, 131) Source(106, 79) + SourceIndex(0) +19>Emitted(78, 134) Source(106, 82) + SourceIndex(0) +20>Emitted(78, 135) Source(106, 83) + SourceIndex(0) +21>Emitted(78, 137) Source(106, 85) + SourceIndex(0) +22>Emitted(78, 138) Source(106, 86) + SourceIndex(0) +23>Emitted(78, 140) Source(106, 88) + SourceIndex(0) +24>Emitted(78, 142) Source(106, 90) + SourceIndex(0) +25>Emitted(78, 143) Source(106, 91) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2763,14 +2833,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 6 > numberA3 7 > ) 8 > ; -1 >Emitted(71, 5) Source(107, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(107, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(107, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(107, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(107, 17) + SourceIndex(0) -6 >Emitted(71, 25) Source(107, 25) + SourceIndex(0) -7 >Emitted(71, 26) Source(107, 26) + SourceIndex(0) -8 >Emitted(71, 27) Source(107, 27) + SourceIndex(0) +1 >Emitted(79, 5) Source(107, 5) + SourceIndex(0) +2 >Emitted(79, 12) Source(107, 12) + SourceIndex(0) +3 >Emitted(79, 13) Source(107, 13) + SourceIndex(0) +4 >Emitted(79, 16) Source(107, 16) + SourceIndex(0) +5 >Emitted(79, 17) Source(107, 17) + SourceIndex(0) +6 >Emitted(79, 25) Source(107, 25) + SourceIndex(0) +7 >Emitted(79, 26) Source(107, 26) + SourceIndex(0) +8 >Emitted(79, 27) Source(107, 27) + SourceIndex(0) --- >>>} 1 > @@ -2779,7 +2849,7 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.t 1 > > 2 >} -1 >Emitted(72, 1) Source(108, 1) + SourceIndex(0) -2 >Emitted(72, 2) Source(108, 2) + SourceIndex(0) +1 >Emitted(80, 1) Source(108, 1) + SourceIndex(0) +2 >Emitted(80, 2) Source(108, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js index 7192ed98dbeae..25accd405125f 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js @@ -115,6 +115,14 @@ for ([numberA3 = -1, ...robotAInfo] = [2, "trimmer", "trimming"], i = 0; } //// [sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function getRobot() { return robotA; @@ -129,68 +137,68 @@ var numberB, nameB; var numberA2, nameA2, skillA2, nameMA; var numberA3, robotAInfo, multiRobotAInfo; var i; -for (_a = robotA[1], nameA = _a === void 0 ? "name" : _a, robotA, i = 0; i < 1; i++) { +for (_a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "name" : _b, robotA, i = 0; i < 1; i++) { console.log(nameA); } -for (_b = getRobot(), _c = _b[1], nameA = _c === void 0 ? "name" : _c, _b, i = 0; i < 1; i++) { +for (_c = getRobot(), _d = __read(_c, 2), _e = _d[1], nameA = _e === void 0 ? "name" : _e, _c, i = 0; i < 1; i++) { console.log(nameA); } -for (_d = [2, "trimmer", "trimming"], _e = _d[1], nameA = _e === void 0 ? "name" : _e, _d, i = 0; i < 1; i++) { +for (_f = [2, "trimmer", "trimming"], _g = __read(_f, 2), _h = _g[1], nameA = _h === void 0 ? "name" : _h, _f, i = 0; i < 1; i++) { console.log(nameA); } -for (_f = multiRobotA[1], _g = _f === void 0 ? ["none", "none"] : _f, _h = _g[0], primarySkillA = _h === void 0 ? "primary" : _h, _j = _g[1], secondarySkillA = _j === void 0 ? "secondary" : _j, multiRobotA, i = 0; i < 1; i++) { +for (_j = __read(multiRobotA, 2), _k = _j[1], _l = __read(_k === void 0 ? ["none", "none"] : _k, 2), _m = _l[0], primarySkillA = _m === void 0 ? "primary" : _m, _o = _l[1], secondarySkillA = _o === void 0 ? "secondary" : _o, multiRobotA, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (_k = getMultiRobot(), _l = _k[1], _m = _l === void 0 ? ["none", "none"] : _l, _o = _m[0], primarySkillA = _o === void 0 ? "primary" : _o, _p = _m[1], secondarySkillA = _p === void 0 ? "secondary" : _p, _k, i = 0; i < 1; i++) { +for (_p = getMultiRobot(), _q = __read(_p, 2), _r = _q[1], _s = __read(_r === void 0 ? ["none", "none"] : _r, 2), _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, _p, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (_q = ["trimmer", ["trimming", "edging"]], _r = _q[1], _s = _r === void 0 ? ["none", "none"] : _r, _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, _q, i = 0; i < 1; i++) { +for (_v = ["trimmer", ["trimming", "edging"]], _w = __read(_v, 2), _x = _w[1], _y = __read(_x === void 0 ? ["none", "none"] : _x, 2), _z = _y[0], primarySkillA = _z === void 0 ? "primary" : _z, _0 = _y[1], secondarySkillA = _0 === void 0 ? "secondary" : _0, _v, i = 0; i < 1; i++) { console.log(primarySkillA); } -for (_v = robotA[0], numberB = _v === void 0 ? -1 : _v, robotA, i = 0; i < 1; i++) { +for (_1 = __read(robotA, 1), _2 = _1[0], numberB = _2 === void 0 ? -1 : _2, robotA, i = 0; i < 1; i++) { console.log(numberB); } -for (_w = getRobot(), _x = _w[0], numberB = _x === void 0 ? -1 : _x, _w, i = 0; i < 1; i++) { +for (_3 = getRobot(), _4 = __read(_3, 1), _5 = _4[0], numberB = _5 === void 0 ? -1 : _5, _3, i = 0; i < 1; i++) { console.log(numberB); } -for (_y = [2, "trimmer", "trimming"], _z = _y[0], numberB = _z === void 0 ? -1 : _z, _y, i = 0; i < 1; i++) { +for (_6 = [2, "trimmer", "trimming"], _7 = __read(_6, 1), _8 = _7[0], numberB = _8 === void 0 ? -1 : _8, _6, i = 0; i < 1; i++) { console.log(numberB); } -for (_0 = multiRobotA[0], nameB = _0 === void 0 ? "name" : _0, multiRobotA, i = 0; i < 1; i++) { +for (_9 = __read(multiRobotA, 1), _10 = _9[0], nameB = _10 === void 0 ? "name" : _10, multiRobotA, i = 0; i < 1; i++) { console.log(nameB); } -for (_1 = getMultiRobot(), _2 = _1[0], nameB = _2 === void 0 ? "name" : _2, _1, i = 0; i < 1; i++) { +for (_11 = getMultiRobot(), _12 = __read(_11, 1), _13 = _12[0], nameB = _13 === void 0 ? "name" : _13, _11, i = 0; i < 1; i++) { console.log(nameB); } -for (_3 = ["trimmer", ["trimming", "edging"]], _4 = _3[0], nameB = _4 === void 0 ? "name" : _4, _3, i = 0; i < 1; i++) { +for (_14 = ["trimmer", ["trimming", "edging"]], _15 = __read(_14, 1), _16 = _15[0], nameB = _16 === void 0 ? "name" : _16, _14, i = 0; i < 1; i++) { console.log(nameB); } -for (_5 = robotA[0], numberA2 = _5 === void 0 ? -1 : _5, _6 = robotA[1], nameA2 = _6 === void 0 ? "name" : _6, _7 = robotA[2], skillA2 = _7 === void 0 ? "skill" : _7, robotA, i = 0; i < 1; i++) { +for (_17 = __read(robotA, 3), _18 = _17[0], numberA2 = _18 === void 0 ? -1 : _18, _19 = _17[1], nameA2 = _19 === void 0 ? "name" : _19, _20 = _17[2], skillA2 = _20 === void 0 ? "skill" : _20, robotA, i = 0; i < 1; i++) { console.log(nameA2); } -for (_8 = getRobot(), _9 = _8[0], numberA2 = _9 === void 0 ? -1 : _9, _10 = _8[1], nameA2 = _10 === void 0 ? "name" : _10, _11 = _8[2], skillA2 = _11 === void 0 ? "skill" : _11, _8, i = 0; i < 1; i++) { +for (_21 = getRobot(), _22 = __read(_21, 3), _23 = _22[0], numberA2 = _23 === void 0 ? -1 : _23, _24 = _22[1], nameA2 = _24 === void 0 ? "name" : _24, _25 = _22[2], skillA2 = _25 === void 0 ? "skill" : _25, _21, i = 0; i < 1; i++) { console.log(nameA2); } -for (_12 = [2, "trimmer", "trimming"], _13 = _12[0], numberA2 = _13 === void 0 ? -1 : _13, _14 = _12[1], nameA2 = _14 === void 0 ? "name" : _14, _15 = _12[2], skillA2 = _15 === void 0 ? "skill" : _15, _12, i = 0; i < 1; i++) { +for (_26 = [2, "trimmer", "trimming"], _27 = __read(_26, 3), _28 = _27[0], numberA2 = _28 === void 0 ? -1 : _28, _29 = _27[1], nameA2 = _29 === void 0 ? "name" : _29, _30 = _27[2], skillA2 = _30 === void 0 ? "skill" : _30, _26, i = 0; i < 1; i++) { console.log(nameA2); } -for (var _16 = multiRobotA[0], nameMA_1 = _16 === void 0 ? "noName" : _16, _17 = multiRobotA[1], _18 = _17 === void 0 ? ["none", "none"] : _17, _19 = _18[0], primarySkillA_1 = _19 === void 0 ? "primary" : _19, _20 = _18[1], secondarySkillA_1 = _20 === void 0 ? "secondary" : _20, i_1 = 0; i_1 < 1; i_1++) { +for (var _31 = __read(multiRobotA, 2), _32 = _31[0], nameMA_1 = _32 === void 0 ? "noName" : _32, _33 = _31[1], _34 = __read(_33 === void 0 ? ["none", "none"] : _33, 2), _35 = _34[0], primarySkillA_1 = _35 === void 0 ? "primary" : _35, _36 = _34[1], secondarySkillA_1 = _36 === void 0 ? "secondary" : _36, i_1 = 0; i_1 < 1; i_1++) { console.log(nameMA_1); } -for (_21 = getMultiRobot(), _22 = _21[0], nameMA = _22 === void 0 ? "noName" : _22, _23 = _21[1], _24 = _23 === void 0 ? ["none", "none"] : _23, _25 = _24[0], primarySkillA = _25 === void 0 ? "primary" : _25, _26 = _24[1], secondarySkillA = _26 === void 0 ? "secondary" : _26, _21, i = 0; i < 1; i++) { +for (_37 = getMultiRobot(), _38 = __read(_37, 2), _39 = _38[0], nameMA = _39 === void 0 ? "noName" : _39, _40 = _38[1], _41 = __read(_40 === void 0 ? ["none", "none"] : _40, 2), _42 = _41[0], primarySkillA = _42 === void 0 ? "primary" : _42, _43 = _41[1], secondarySkillA = _43 === void 0 ? "secondary" : _43, _37, i = 0; i < 1; i++) { console.log(nameMA); } -for (_27 = ["trimmer", ["trimming", "edging"]], _28 = _27[0], nameMA = _28 === void 0 ? "noName" : _28, _29 = _27[1], _30 = _29 === void 0 ? ["none", "none"] : _29, _31 = _30[0], primarySkillA = _31 === void 0 ? "primary" : _31, _32 = _30[1], secondarySkillA = _32 === void 0 ? "secondary" : _32, _27, i = 0; i < 1; i++) { +for (_44 = ["trimmer", ["trimming", "edging"]], _45 = __read(_44, 2), _46 = _45[0], nameMA = _46 === void 0 ? "noName" : _46, _47 = _45[1], _48 = __read(_47 === void 0 ? ["none", "none"] : _47, 2), _49 = _48[0], primarySkillA = _49 === void 0 ? "primary" : _49, _50 = _48[1], secondarySkillA = _50 === void 0 ? "secondary" : _50, _44, i = 0; i < 1; i++) { console.log(nameMA); } -for (_33 = robotA[0], numberA3 = _33 === void 0 ? -1 : _33, robotAInfo = robotA.slice(1), robotA, i = 0; i < 1; i++) { +for (_51 = __read(robotA), _52 = _51[0], numberA3 = _52 === void 0 ? -1 : _52, robotAInfo = _51.slice(1), robotA, i = 0; i < 1; i++) { console.log(numberA3); } -for (_34 = getRobot(), _35 = _34[0], numberA3 = _35 === void 0 ? -1 : _35, robotAInfo = _34.slice(1), _34, i = 0; i < 1; i++) { +for (_53 = getRobot(), _54 = __read(_53), _55 = _54[0], numberA3 = _55 === void 0 ? -1 : _55, robotAInfo = _54.slice(1), _53, i = 0; i < 1; i++) { console.log(numberA3); } -for (_36 = [2, "trimmer", "trimming"], _37 = _36[0], numberA3 = _37 === void 0 ? -1 : _37, robotAInfo = _36.slice(1), _36, i = 0; i < 1; i++) { +for (_56 = [2, "trimmer", "trimming"], _57 = __read(_56), _58 = _57[0], numberA3 = _58 === void 0 ? -1 : _58, robotAInfo = _57.slice(1), _56, i = 0; i < 1; i++) { console.log(numberA3); } -var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37; +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58; //# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map index d3452bfd56e27..340b9eeb1e823 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AACtG,IAAI,CAAS,CAAC;AAEd,GAAG,CAAC,CAAI,cAAc,EAAd,mCAAc,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,eAA+B,EAA5B,UAAc,EAAd,mCAAc,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,+BAA+C,EAA5C,UAAc,EAAd,mCAAc,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAI,mBAGY,EAHZ,0CAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACT,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,oBAGkC,EAH/B,UAGY,EAHZ,0CAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,MACQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,wCAGsD,EAHnD,UAGY,EAHZ,0CAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,MAC4B,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAE,cAAY,EAAZ,iCAAY,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,eAA2B,EAA1B,UAAY,EAAZ,iCAAY,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,+BAA2C,EAA1C,UAAY,EAAZ,iCAAY,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAE,mBAAc,EAAd,mCAAc,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,oBAAkC,EAAjC,UAAc,EAAd,mCAAc,MAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,wCAAsD,EAArD,UAAc,EAAd,mCAAc,MAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAE,cAAa,EAAb,kCAAa,EAAE,cAAe,EAAf,oCAAe,EAAE,cAAiB,EAAjB,sCAAiB,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,eAAgE,EAA/D,UAAa,EAAb,kCAAa,EAAE,WAAe,EAAf,sCAAe,EAAE,WAAiB,EAAjB,wCAAiB,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,gCAAgF,EAA/E,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,OAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CACC,IAAA,oBAAiB,EAAjB,0CAAiB,EACd,oBAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,kDAAyB,EACzB,YAA6B,EAA7B,sDAA6B,EAEpB,GAAC,GAAG,CAAC,EAAE,GAAC,GAAG,CAAC,EAAE,GAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,QAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,qBAKc,EALb,YAAiB,EAAjB,wCAAiB,EACnB,YAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,OAEhB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,yCAKkC,EALjC,YAAiB,EAAjB,wCAAiB,EACnB,YAGoB,EAHpB,6CAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,OAEI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAE,eAAa,EAAb,oCAAa,EAAE,4BAAa,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gBAA2C,EAA1C,YAAa,EAAb,oCAAa,EAAE,yBAAa,OAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gCAAkE,EAAjE,YAAa,EAAb,oCAAa,EAAE,yBAAa,OAAuC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AACtG,IAAI,CAAS,CAAC;AAEd,GAAG,CAAC,CAAC,sBAA2B,EAAxB,UAAc,EAAd,mCAAc,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,eAA+B,EAA/B,kBAA+B,EAA5B,UAAc,EAAd,mCAAc,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,+BAA+C,EAA/C,kBAA+C,EAA5C,UAAc,EAAd,mCAAc,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,2BAG8B,EAH3B,UAGY,EAHZ,qDAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,EACT,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,oBAGkC,EAHlC,kBAGkC,EAH/B,UAGY,EAHZ,qDAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,MACQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AACD,GAAG,CAAC,CAAC,wCAGsD,EAHtD,kBAGsD,EAHnD,UAGY,EAHZ,qDAGY,EAFhB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B,MAC4B,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC/B,CAAC;AAED,GAAG,CAAC,CAAC,sBAAuB,EAAtB,UAAY,EAAZ,iCAAY,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,eAA2B,EAA3B,kBAA2B,EAA1B,UAAY,EAAZ,iCAAY,MAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,+BAA2C,EAA3C,kBAA2C,EAA1C,UAAY,EAAZ,iCAAY,MAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AACD,GAAG,CAAC,CAAC,2BAA8B,EAA7B,WAAc,EAAd,qCAAc,EAAI,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,qBAAkC,EAAlC,oBAAkC,EAAjC,YAAc,EAAd,qCAAc,OAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AACD,GAAG,CAAC,CAAC,yCAAsD,EAAtD,oBAAsD,EAArD,YAAc,EAAd,qCAAc,OAAyC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAC,uBAA4D,EAA3D,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,gBAAgE,EAAhE,oBAAgE,EAA/D,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,OAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,gCAAgF,EAAhF,oBAAgF,EAA/E,YAAa,EAAb,oCAAa,EAAE,YAAe,EAAf,sCAAe,EAAE,YAAiB,EAAjB,wCAAiB,OAAgC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACvG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CACA,IAAA,4BAKe,EALd,YAAiB,EAAjB,0CAAiB,EACd,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,kDAAyB,EACzB,YAA6B,EAA7B,sDAA6B,EAEpB,GAAC,GAAG,CAAC,EAAE,GAAC,GAAG,CAAC,EAAE,GAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,QAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,qBAKc,EALd,oBAKc,EALb,YAAiB,EAAjB,wCAAiB,EACnB,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,OAEhB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AACD,GAAG,CAAC,CAAC,yCAKkC,EALlC,oBAKkC,EALjC,YAAiB,EAAjB,wCAAiB,EACnB,YAGoB,EAHpB,wDAGoB,EAFhB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B,OAEI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,GAAG,CAAC,CAAC,oBAAuC,EAAtC,YAAa,EAAb,oCAAa,EAAE,yBAAa,EAAI,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gBAA2C,EAA3C,iBAA2C,EAA1C,YAAa,EAAb,oCAAa,EAAE,yBAAa,OAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AACD,GAAG,CAAC,CAAC,gCAAkE,EAAlE,iBAAkE,EAAjE,YAAa,EAAb,oCAAa,EAAE,yBAAa,OAAuC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACzF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.sourcemap.txt index aa1a4f7a01679..3352ec9888ee5 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -39,25 +47,25 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>function getRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(2, 1) Source(8, 1) + SourceIndex(0) +1 >Emitted(10, 1) Source(8, 1) + SourceIndex(0) --- >>> return robotA; 1->^^^^ @@ -71,11 +79,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 3 > 4 > robotA 5 > ; -1->Emitted(3, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(3, 12) Source(9, 12) + SourceIndex(0) -4 >Emitted(3, 18) Source(9, 18) + SourceIndex(0) -5 >Emitted(3, 19) Source(9, 19) + SourceIndex(0) +1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(11, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(11, 19) Source(9, 19) + SourceIndex(0) --- >>>} 1 > @@ -84,8 +92,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 1 > > 2 >} -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(10, 2) + SourceIndex(0) +1 >Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(10, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -119,20 +127,20 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 12> ] 13> ] 14> ; -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 16) Source(12, 16) + SourceIndex(0) -4 >Emitted(5, 19) Source(12, 38) + SourceIndex(0) -5 >Emitted(5, 20) Source(12, 39) + SourceIndex(0) -6 >Emitted(5, 27) Source(12, 46) + SourceIndex(0) -7 >Emitted(5, 29) Source(12, 48) + SourceIndex(0) -8 >Emitted(5, 30) Source(12, 49) + SourceIndex(0) -9 >Emitted(5, 38) Source(12, 57) + SourceIndex(0) -10>Emitted(5, 40) Source(12, 59) + SourceIndex(0) -11>Emitted(5, 42) Source(12, 61) + SourceIndex(0) -12>Emitted(5, 43) Source(12, 62) + SourceIndex(0) -13>Emitted(5, 44) Source(12, 63) + SourceIndex(0) -14>Emitted(5, 45) Source(12, 64) + SourceIndex(0) +1->Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(12, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(12, 38) + SourceIndex(0) +5 >Emitted(13, 20) Source(12, 39) + SourceIndex(0) +6 >Emitted(13, 27) Source(12, 46) + SourceIndex(0) +7 >Emitted(13, 29) Source(12, 48) + SourceIndex(0) +8 >Emitted(13, 30) Source(12, 49) + SourceIndex(0) +9 >Emitted(13, 38) Source(12, 57) + SourceIndex(0) +10>Emitted(13, 40) Source(12, 59) + SourceIndex(0) +11>Emitted(13, 42) Source(12, 61) + SourceIndex(0) +12>Emitted(13, 43) Source(12, 62) + SourceIndex(0) +13>Emitted(13, 44) Source(12, 63) + SourceIndex(0) +14>Emitted(13, 45) Source(12, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -164,27 +172,27 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 12> ] 13> ] 14> ; -1->Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 16) Source(13, 16) + SourceIndex(0) -4 >Emitted(6, 19) Source(13, 38) + SourceIndex(0) -5 >Emitted(6, 20) Source(13, 39) + SourceIndex(0) -6 >Emitted(6, 29) Source(13, 48) + SourceIndex(0) -7 >Emitted(6, 31) Source(13, 50) + SourceIndex(0) -8 >Emitted(6, 32) Source(13, 51) + SourceIndex(0) -9 >Emitted(6, 42) Source(13, 61) + SourceIndex(0) -10>Emitted(6, 44) Source(13, 63) + SourceIndex(0) -11>Emitted(6, 52) Source(13, 71) + SourceIndex(0) -12>Emitted(6, 53) Source(13, 72) + SourceIndex(0) -13>Emitted(6, 54) Source(13, 73) + SourceIndex(0) -14>Emitted(6, 55) Source(13, 74) + SourceIndex(0) +1->Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 16) Source(13, 16) + SourceIndex(0) +4 >Emitted(14, 19) Source(13, 38) + SourceIndex(0) +5 >Emitted(14, 20) Source(13, 39) + SourceIndex(0) +6 >Emitted(14, 29) Source(13, 48) + SourceIndex(0) +7 >Emitted(14, 31) Source(13, 50) + SourceIndex(0) +8 >Emitted(14, 32) Source(13, 51) + SourceIndex(0) +9 >Emitted(14, 42) Source(13, 61) + SourceIndex(0) +10>Emitted(14, 44) Source(13, 63) + SourceIndex(0) +11>Emitted(14, 52) Source(13, 71) + SourceIndex(0) +12>Emitted(14, 53) Source(13, 72) + SourceIndex(0) +13>Emitted(14, 54) Source(13, 73) + SourceIndex(0) +14>Emitted(14, 55) Source(13, 74) + SourceIndex(0) --- >>>function getMultiRobot() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(0) --- >>> return multiRobotA; 1->^^^^ @@ -198,11 +206,11 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 3 > 4 > multiRobotA 5 > ; -1->Emitted(8, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(15, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(15, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(15, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(15, 24) + SourceIndex(0) +1->Emitted(16, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(15, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(15, 12) + SourceIndex(0) +4 >Emitted(16, 23) Source(15, 23) + SourceIndex(0) +5 >Emitted(16, 24) Source(15, 24) + SourceIndex(0) --- >>>} 1 > @@ -211,8 +219,8 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 1 > > 2 >} -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(16, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(16, 2) + SourceIndex(0) --- >>>var nameA, primarySkillA, secondarySkillA; 1-> @@ -233,14 +241,14 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > , 7 > secondarySkillA: string 8 > ; -1->Emitted(10, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 18) + SourceIndex(0) -4 >Emitted(10, 12) Source(18, 20) + SourceIndex(0) -5 >Emitted(10, 25) Source(18, 41) + SourceIndex(0) -6 >Emitted(10, 27) Source(18, 43) + SourceIndex(0) -7 >Emitted(10, 42) Source(18, 66) + SourceIndex(0) -8 >Emitted(10, 43) Source(18, 67) + SourceIndex(0) +1->Emitted(18, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(18, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(18, 10) Source(18, 18) + SourceIndex(0) +4 >Emitted(18, 12) Source(18, 20) + SourceIndex(0) +5 >Emitted(18, 25) Source(18, 41) + SourceIndex(0) +6 >Emitted(18, 27) Source(18, 43) + SourceIndex(0) +7 >Emitted(18, 42) Source(18, 66) + SourceIndex(0) +8 >Emitted(18, 43) Source(18, 67) + SourceIndex(0) --- >>>var numberB, nameB; 1 > @@ -257,12 +265,12 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > , 5 > nameB: string 6 > ; -1 >Emitted(11, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(19, 5) + SourceIndex(0) -3 >Emitted(11, 12) Source(19, 20) + SourceIndex(0) -4 >Emitted(11, 14) Source(19, 22) + SourceIndex(0) -5 >Emitted(11, 19) Source(19, 35) + SourceIndex(0) -6 >Emitted(11, 20) Source(19, 36) + SourceIndex(0) +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(19, 5) + SourceIndex(0) +3 >Emitted(19, 12) Source(19, 20) + SourceIndex(0) +4 >Emitted(19, 14) Source(19, 22) + SourceIndex(0) +5 >Emitted(19, 19) Source(19, 35) + SourceIndex(0) +6 >Emitted(19, 20) Source(19, 36) + SourceIndex(0) --- >>>var numberA2, nameA2, skillA2, nameMA; 1-> @@ -287,16 +295,16 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 8 > , 9 > nameMA: string 10> ; -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(20, 5) + SourceIndex(0) -3 >Emitted(12, 13) Source(20, 21) + SourceIndex(0) -4 >Emitted(12, 15) Source(20, 23) + SourceIndex(0) -5 >Emitted(12, 21) Source(20, 37) + SourceIndex(0) -6 >Emitted(12, 23) Source(20, 39) + SourceIndex(0) -7 >Emitted(12, 30) Source(20, 54) + SourceIndex(0) -8 >Emitted(12, 32) Source(20, 56) + SourceIndex(0) -9 >Emitted(12, 38) Source(20, 70) + SourceIndex(0) -10>Emitted(12, 39) Source(20, 71) + SourceIndex(0) +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 5) + SourceIndex(0) +3 >Emitted(20, 13) Source(20, 21) + SourceIndex(0) +4 >Emitted(20, 15) Source(20, 23) + SourceIndex(0) +5 >Emitted(20, 21) Source(20, 37) + SourceIndex(0) +6 >Emitted(20, 23) Source(20, 39) + SourceIndex(0) +7 >Emitted(20, 30) Source(20, 54) + SourceIndex(0) +8 >Emitted(20, 32) Source(20, 56) + SourceIndex(0) +9 >Emitted(20, 38) Source(20, 70) + SourceIndex(0) +10>Emitted(20, 39) Source(20, 71) + SourceIndex(0) --- >>>var numberA3, robotAInfo, multiRobotAInfo; 1-> @@ -316,100 +324,106 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > , 7 > multiRobotAInfo: (string | [string, string])[] 8 > ; -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -3 >Emitted(13, 13) Source(21, 21) + SourceIndex(0) -4 >Emitted(13, 15) Source(21, 23) + SourceIndex(0) -5 >Emitted(13, 25) Source(21, 54) + SourceIndex(0) -6 >Emitted(13, 27) Source(21, 56) + SourceIndex(0) -7 >Emitted(13, 42) Source(21, 102) + SourceIndex(0) -8 >Emitted(13, 43) Source(21, 103) + SourceIndex(0) +1->Emitted(21, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(21, 5) + SourceIndex(0) +3 >Emitted(21, 13) Source(21, 21) + SourceIndex(0) +4 >Emitted(21, 15) Source(21, 23) + SourceIndex(0) +5 >Emitted(21, 25) Source(21, 54) + SourceIndex(0) +6 >Emitted(21, 27) Source(21, 56) + SourceIndex(0) +7 >Emitted(21, 42) Source(21, 102) + SourceIndex(0) +8 >Emitted(21, 43) Source(21, 103) + SourceIndex(0) --- >>>var i; 1 > 2 >^^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let 3 > i: number 4 > ; -1 >Emitted(14, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -3 >Emitted(14, 6) Source(22, 14) + SourceIndex(0) -4 >Emitted(14, 7) Source(22, 15) + SourceIndex(0) +1 >Emitted(22, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(22, 5) + SourceIndex(0) +3 >Emitted(22, 6) Source(22, 14) + SourceIndex(0) +4 >Emitted(22, 7) Source(22, 15) + SourceIndex(0) --- ->>>for (_a = robotA[1], nameA = _a === void 0 ? "name" : _a, robotA, i = 0; i < 1; i++) { +>>>for (_a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "name" : _b, robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^ -10> ^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^ +12> ^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > > 2 >for 3 > -4 > ([, -5 > nameA = "name" -6 > -7 > nameA = "name" -8 > ] = -9 > robotA -10> , -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(15, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(15, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(15, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(15, 6) Source(24, 9) + SourceIndex(0) -5 >Emitted(15, 20) Source(24, 23) + SourceIndex(0) -6 >Emitted(15, 22) Source(24, 9) + SourceIndex(0) -7 >Emitted(15, 57) Source(24, 23) + SourceIndex(0) -8 >Emitted(15, 59) Source(24, 27) + SourceIndex(0) -9 >Emitted(15, 65) Source(24, 33) + SourceIndex(0) -10>Emitted(15, 67) Source(24, 35) + SourceIndex(0) -11>Emitted(15, 68) Source(24, 36) + SourceIndex(0) -12>Emitted(15, 71) Source(24, 39) + SourceIndex(0) -13>Emitted(15, 72) Source(24, 40) + SourceIndex(0) -14>Emitted(15, 74) Source(24, 42) + SourceIndex(0) -15>Emitted(15, 75) Source(24, 43) + SourceIndex(0) -16>Emitted(15, 78) Source(24, 46) + SourceIndex(0) -17>Emitted(15, 79) Source(24, 47) + SourceIndex(0) -18>Emitted(15, 81) Source(24, 49) + SourceIndex(0) -19>Emitted(15, 82) Source(24, 50) + SourceIndex(0) -20>Emitted(15, 84) Source(24, 52) + SourceIndex(0) -21>Emitted(15, 86) Source(24, 54) + SourceIndex(0) -22>Emitted(15, 87) Source(24, 55) + SourceIndex(0) +4 > ( +5 > [, nameA = "name"] = robotA +6 > +7 > nameA = "name" +8 > +9 > nameA = "name" +10> ] = +11> robotA +12> , +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(23, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(23, 4) Source(24, 4) + SourceIndex(0) +3 >Emitted(23, 5) Source(24, 5) + SourceIndex(0) +4 >Emitted(23, 6) Source(24, 6) + SourceIndex(0) +5 >Emitted(23, 28) Source(24, 33) + SourceIndex(0) +6 >Emitted(23, 30) Source(24, 9) + SourceIndex(0) +7 >Emitted(23, 40) Source(24, 23) + SourceIndex(0) +8 >Emitted(23, 42) Source(24, 9) + SourceIndex(0) +9 >Emitted(23, 77) Source(24, 23) + SourceIndex(0) +10>Emitted(23, 79) Source(24, 27) + SourceIndex(0) +11>Emitted(23, 85) Source(24, 33) + SourceIndex(0) +12>Emitted(23, 87) Source(24, 35) + SourceIndex(0) +13>Emitted(23, 88) Source(24, 36) + SourceIndex(0) +14>Emitted(23, 91) Source(24, 39) + SourceIndex(0) +15>Emitted(23, 92) Source(24, 40) + SourceIndex(0) +16>Emitted(23, 94) Source(24, 42) + SourceIndex(0) +17>Emitted(23, 95) Source(24, 43) + SourceIndex(0) +18>Emitted(23, 98) Source(24, 46) + SourceIndex(0) +19>Emitted(23, 99) Source(24, 47) + SourceIndex(0) +20>Emitted(23, 101) Source(24, 49) + SourceIndex(0) +21>Emitted(23, 102) Source(24, 50) + SourceIndex(0) +22>Emitted(23, 104) Source(24, 52) + SourceIndex(0) +23>Emitted(23, 106) Source(24, 54) + SourceIndex(0) +24>Emitted(23, 107) Source(24, 55) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -429,48 +443,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA 7 > ) 8 > ; -1 >Emitted(16, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(16, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(16, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(16, 24) Source(25, 24) + SourceIndex(0) +1 >Emitted(24, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(24, 12) Source(25, 12) + SourceIndex(0) +3 >Emitted(24, 13) Source(25, 13) + SourceIndex(0) +4 >Emitted(24, 16) Source(25, 16) + SourceIndex(0) +5 >Emitted(24, 17) Source(25, 17) + SourceIndex(0) +6 >Emitted(24, 22) Source(25, 22) + SourceIndex(0) +7 >Emitted(24, 23) Source(25, 23) + SourceIndex(0) +8 >Emitted(24, 24) Source(25, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(17, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(26, 2) + SourceIndex(0) --- ->>>for (_b = getRobot(), _c = _b[1], nameA = _c === void 0 ? "name" : _c, _b, i = 0; i < 1; i++) { +>>>for (_c = getRobot(), _d = __read(_c, 2), _e = _d[1], nameA = _e === void 0 ? "name" : _e, _c, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for @@ -478,44 +494,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [, nameA = "name"] = getRobot() 6 > -7 > nameA = "name" -8 > -9 > nameA = "name" -10> ] = getRobot(), -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(18, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(18, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(18, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(18, 6) Source(27, 6) + SourceIndex(0) -5 >Emitted(18, 21) Source(27, 37) + SourceIndex(0) -6 >Emitted(18, 23) Source(27, 9) + SourceIndex(0) -7 >Emitted(18, 33) Source(27, 23) + SourceIndex(0) -8 >Emitted(18, 35) Source(27, 9) + SourceIndex(0) -9 >Emitted(18, 70) Source(27, 23) + SourceIndex(0) -10>Emitted(18, 76) Source(27, 39) + SourceIndex(0) -11>Emitted(18, 77) Source(27, 40) + SourceIndex(0) -12>Emitted(18, 80) Source(27, 43) + SourceIndex(0) -13>Emitted(18, 81) Source(27, 44) + SourceIndex(0) -14>Emitted(18, 83) Source(27, 46) + SourceIndex(0) -15>Emitted(18, 84) Source(27, 47) + SourceIndex(0) -16>Emitted(18, 87) Source(27, 50) + SourceIndex(0) -17>Emitted(18, 88) Source(27, 51) + SourceIndex(0) -18>Emitted(18, 90) Source(27, 53) + SourceIndex(0) -19>Emitted(18, 91) Source(27, 54) + SourceIndex(0) -20>Emitted(18, 93) Source(27, 56) + SourceIndex(0) -21>Emitted(18, 95) Source(27, 58) + SourceIndex(0) -22>Emitted(18, 96) Source(27, 59) + SourceIndex(0) +7 > [, nameA = "name"] = getRobot() +8 > +9 > nameA = "name" +10> +11> nameA = "name" +12> ] = getRobot(), +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(26, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(26, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(26, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(26, 6) Source(27, 6) + SourceIndex(0) +5 >Emitted(26, 21) Source(27, 37) + SourceIndex(0) +6 >Emitted(26, 23) Source(27, 6) + SourceIndex(0) +7 >Emitted(26, 41) Source(27, 37) + SourceIndex(0) +8 >Emitted(26, 43) Source(27, 9) + SourceIndex(0) +9 >Emitted(26, 53) Source(27, 23) + SourceIndex(0) +10>Emitted(26, 55) Source(27, 9) + SourceIndex(0) +11>Emitted(26, 90) Source(27, 23) + SourceIndex(0) +12>Emitted(26, 96) Source(27, 39) + SourceIndex(0) +13>Emitted(26, 97) Source(27, 40) + SourceIndex(0) +14>Emitted(26, 100) Source(27, 43) + SourceIndex(0) +15>Emitted(26, 101) Source(27, 44) + SourceIndex(0) +16>Emitted(26, 103) Source(27, 46) + SourceIndex(0) +17>Emitted(26, 104) Source(27, 47) + SourceIndex(0) +18>Emitted(26, 107) Source(27, 50) + SourceIndex(0) +19>Emitted(26, 108) Source(27, 51) + SourceIndex(0) +20>Emitted(26, 110) Source(27, 53) + SourceIndex(0) +21>Emitted(26, 111) Source(27, 54) + SourceIndex(0) +22>Emitted(26, 113) Source(27, 56) + SourceIndex(0) +23>Emitted(26, 115) Source(27, 58) + SourceIndex(0) +24>Emitted(26, 116) Source(27, 59) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -535,48 +555,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA 7 > ) 8 > ; -1 >Emitted(19, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(28, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(28, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(28, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(28, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(28, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(28, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(28, 24) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(27, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(27, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(27, 16) Source(28, 16) + SourceIndex(0) +5 >Emitted(27, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(27, 22) Source(28, 22) + SourceIndex(0) +7 >Emitted(27, 23) Source(28, 23) + SourceIndex(0) +8 >Emitted(27, 24) Source(28, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(20, 2) Source(29, 2) + SourceIndex(0) +1 >Emitted(28, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(28, 2) Source(29, 2) + SourceIndex(0) --- ->>>for (_d = [2, "trimmer", "trimming"], _e = _d[1], nameA = _e === void 0 ? "name" : _e, _d, i = 0; i < 1; i++) { +>>>for (_f = [2, "trimmer", "trimming"], _g = __read(_f, 2), _h = _g[1], nameA = _h === void 0 ? "name" : _h, _f, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for @@ -584,44 +606,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [, nameA = "name"] = [2, "trimmer", "trimming"] 6 > -7 > nameA = "name" -8 > -9 > nameA = "name" -10> ] = [2, "trimmer", "trimming"], -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(21, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(30, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(30, 6) + SourceIndex(0) -5 >Emitted(21, 37) Source(30, 53) + SourceIndex(0) -6 >Emitted(21, 39) Source(30, 9) + SourceIndex(0) -7 >Emitted(21, 49) Source(30, 23) + SourceIndex(0) -8 >Emitted(21, 51) Source(30, 9) + SourceIndex(0) -9 >Emitted(21, 86) Source(30, 23) + SourceIndex(0) -10>Emitted(21, 92) Source(30, 55) + SourceIndex(0) -11>Emitted(21, 93) Source(30, 56) + SourceIndex(0) -12>Emitted(21, 96) Source(30, 59) + SourceIndex(0) -13>Emitted(21, 97) Source(30, 60) + SourceIndex(0) -14>Emitted(21, 99) Source(30, 62) + SourceIndex(0) -15>Emitted(21, 100) Source(30, 63) + SourceIndex(0) -16>Emitted(21, 103) Source(30, 66) + SourceIndex(0) -17>Emitted(21, 104) Source(30, 67) + SourceIndex(0) -18>Emitted(21, 106) Source(30, 69) + SourceIndex(0) -19>Emitted(21, 107) Source(30, 70) + SourceIndex(0) -20>Emitted(21, 109) Source(30, 72) + SourceIndex(0) -21>Emitted(21, 111) Source(30, 74) + SourceIndex(0) -22>Emitted(21, 112) Source(30, 75) + SourceIndex(0) +7 > [, nameA = "name"] = [2, "trimmer", "trimming"] +8 > +9 > nameA = "name" +10> +11> nameA = "name" +12> ] = [2, "trimmer", "trimming"], +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(29, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(29, 4) Source(30, 4) + SourceIndex(0) +3 >Emitted(29, 5) Source(30, 5) + SourceIndex(0) +4 >Emitted(29, 6) Source(30, 6) + SourceIndex(0) +5 >Emitted(29, 37) Source(30, 53) + SourceIndex(0) +6 >Emitted(29, 39) Source(30, 6) + SourceIndex(0) +7 >Emitted(29, 57) Source(30, 53) + SourceIndex(0) +8 >Emitted(29, 59) Source(30, 9) + SourceIndex(0) +9 >Emitted(29, 69) Source(30, 23) + SourceIndex(0) +10>Emitted(29, 71) Source(30, 9) + SourceIndex(0) +11>Emitted(29, 106) Source(30, 23) + SourceIndex(0) +12>Emitted(29, 112) Source(30, 55) + SourceIndex(0) +13>Emitted(29, 113) Source(30, 56) + SourceIndex(0) +14>Emitted(29, 116) Source(30, 59) + SourceIndex(0) +15>Emitted(29, 117) Source(30, 60) + SourceIndex(0) +16>Emitted(29, 119) Source(30, 62) + SourceIndex(0) +17>Emitted(29, 120) Source(30, 63) + SourceIndex(0) +18>Emitted(29, 123) Source(30, 66) + SourceIndex(0) +19>Emitted(29, 124) Source(30, 67) + SourceIndex(0) +20>Emitted(29, 126) Source(30, 69) + SourceIndex(0) +21>Emitted(29, 127) Source(30, 70) + SourceIndex(0) +22>Emitted(29, 129) Source(30, 72) + SourceIndex(0) +23>Emitted(29, 131) Source(30, 74) + SourceIndex(0) +24>Emitted(29, 132) Source(30, 75) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -641,125 +667,134 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA 7 > ) 8 > ; -1 >Emitted(22, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(22, 12) Source(31, 12) + SourceIndex(0) -3 >Emitted(22, 13) Source(31, 13) + SourceIndex(0) -4 >Emitted(22, 16) Source(31, 16) + SourceIndex(0) -5 >Emitted(22, 17) Source(31, 17) + SourceIndex(0) -6 >Emitted(22, 22) Source(31, 22) + SourceIndex(0) -7 >Emitted(22, 23) Source(31, 23) + SourceIndex(0) -8 >Emitted(22, 24) Source(31, 24) + SourceIndex(0) +1 >Emitted(30, 5) Source(31, 5) + SourceIndex(0) +2 >Emitted(30, 12) Source(31, 12) + SourceIndex(0) +3 >Emitted(30, 13) Source(31, 13) + SourceIndex(0) +4 >Emitted(30, 16) Source(31, 16) + SourceIndex(0) +5 >Emitted(30, 17) Source(31, 17) + SourceIndex(0) +6 >Emitted(30, 22) Source(31, 22) + SourceIndex(0) +7 >Emitted(30, 23) Source(31, 23) + SourceIndex(0) +8 >Emitted(30, 24) Source(31, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(23, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(23, 2) Source(32, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(32, 2) + SourceIndex(0) --- ->>>for (_f = multiRobotA[1], _g = _f === void 0 ? ["none", "none"] : _f, _h = _g[0], primarySkillA = _h === void 0 ? "primary" : _h, _j = _g[1], secondarySkillA = _j === void 0 ? "secondary" : _j, multiRobotA, i = 0; i < 1; i++) { +>>>for (_j = __read(multiRobotA, 2), _k = _j[1], _l = __read(_k === void 0 ? ["none", "none"] : _k, 2), _m = _l[0], primarySkillA = _m === void 0 ? "primary" : _m, _o = _l[1], secondarySkillA = _o === void 0 ? "secondary" : _o, multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^ -18> ^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^ +20> ^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > 2 >for 3 > -4 > ([, -5 > [ +4 > ( +5 > [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["none", "none"] -6 > -7 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -8 > -9 > primarySkillA = "primary" -10> -11> primarySkillA = "primary" -12> , - > -13> secondarySkillA = "secondary" -14> -15> secondarySkillA = "secondary" -16> - > ] = ["none", "none"]] = -17> multiRobotA -18> , -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(24, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(24, 4) Source(33, 4) + SourceIndex(0) -3 >Emitted(24, 5) Source(33, 5) + SourceIndex(0) -4 >Emitted(24, 6) Source(33, 9) + SourceIndex(0) -5 >Emitted(24, 25) Source(36, 21) + SourceIndex(0) -6 >Emitted(24, 27) Source(33, 9) + SourceIndex(0) -7 >Emitted(24, 69) Source(36, 21) + SourceIndex(0) -8 >Emitted(24, 71) Source(34, 5) + SourceIndex(0) -9 >Emitted(24, 81) Source(34, 30) + SourceIndex(0) -10>Emitted(24, 83) Source(34, 5) + SourceIndex(0) -11>Emitted(24, 129) Source(34, 30) + SourceIndex(0) -12>Emitted(24, 131) Source(35, 5) + SourceIndex(0) -13>Emitted(24, 141) Source(35, 34) + SourceIndex(0) -14>Emitted(24, 143) Source(35, 5) + SourceIndex(0) -15>Emitted(24, 193) Source(35, 34) + SourceIndex(0) -16>Emitted(24, 195) Source(36, 25) + SourceIndex(0) -17>Emitted(24, 206) Source(36, 36) + SourceIndex(0) -18>Emitted(24, 208) Source(36, 38) + SourceIndex(0) -19>Emitted(24, 209) Source(36, 39) + SourceIndex(0) -20>Emitted(24, 212) Source(36, 42) + SourceIndex(0) -21>Emitted(24, 213) Source(36, 43) + SourceIndex(0) -22>Emitted(24, 215) Source(36, 45) + SourceIndex(0) -23>Emitted(24, 216) Source(36, 46) + SourceIndex(0) -24>Emitted(24, 219) Source(36, 49) + SourceIndex(0) -25>Emitted(24, 220) Source(36, 50) + SourceIndex(0) -26>Emitted(24, 222) Source(36, 52) + SourceIndex(0) -27>Emitted(24, 223) Source(36, 53) + SourceIndex(0) -28>Emitted(24, 225) Source(36, 55) + SourceIndex(0) -29>Emitted(24, 227) Source(36, 57) + SourceIndex(0) -30>Emitted(24, 228) Source(36, 58) + SourceIndex(0) + > ] = ["none", "none"]] = multiRobotA +6 > +7 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +8 > +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +10> +11> primarySkillA = "primary" +12> +13> primarySkillA = "primary" +14> , + > +15> secondarySkillA = "secondary" +16> +17> secondarySkillA = "secondary" +18> + > ] = ["none", "none"]] = +19> multiRobotA +20> , +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(32, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(32, 4) Source(33, 4) + SourceIndex(0) +3 >Emitted(32, 5) Source(33, 5) + SourceIndex(0) +4 >Emitted(32, 6) Source(33, 6) + SourceIndex(0) +5 >Emitted(32, 33) Source(36, 36) + SourceIndex(0) +6 >Emitted(32, 35) Source(33, 9) + SourceIndex(0) +7 >Emitted(32, 45) Source(36, 21) + SourceIndex(0) +8 >Emitted(32, 47) Source(33, 9) + SourceIndex(0) +9 >Emitted(32, 100) Source(36, 21) + SourceIndex(0) +10>Emitted(32, 102) Source(34, 5) + SourceIndex(0) +11>Emitted(32, 112) Source(34, 30) + SourceIndex(0) +12>Emitted(32, 114) Source(34, 5) + SourceIndex(0) +13>Emitted(32, 160) Source(34, 30) + SourceIndex(0) +14>Emitted(32, 162) Source(35, 5) + SourceIndex(0) +15>Emitted(32, 172) Source(35, 34) + SourceIndex(0) +16>Emitted(32, 174) Source(35, 5) + SourceIndex(0) +17>Emitted(32, 224) Source(35, 34) + SourceIndex(0) +18>Emitted(32, 226) Source(36, 25) + SourceIndex(0) +19>Emitted(32, 237) Source(36, 36) + SourceIndex(0) +20>Emitted(32, 239) Source(36, 38) + SourceIndex(0) +21>Emitted(32, 240) Source(36, 39) + SourceIndex(0) +22>Emitted(32, 243) Source(36, 42) + SourceIndex(0) +23>Emitted(32, 244) Source(36, 43) + SourceIndex(0) +24>Emitted(32, 246) Source(36, 45) + SourceIndex(0) +25>Emitted(32, 247) Source(36, 46) + SourceIndex(0) +26>Emitted(32, 250) Source(36, 49) + SourceIndex(0) +27>Emitted(32, 251) Source(36, 50) + SourceIndex(0) +28>Emitted(32, 253) Source(36, 52) + SourceIndex(0) +29>Emitted(32, 254) Source(36, 53) + SourceIndex(0) +30>Emitted(32, 256) Source(36, 55) + SourceIndex(0) +31>Emitted(32, 258) Source(36, 57) + SourceIndex(0) +32>Emitted(32, 259) Source(36, 58) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -779,56 +814,58 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(25, 5) Source(37, 5) + SourceIndex(0) -2 >Emitted(25, 12) Source(37, 12) + SourceIndex(0) -3 >Emitted(25, 13) Source(37, 13) + SourceIndex(0) -4 >Emitted(25, 16) Source(37, 16) + SourceIndex(0) -5 >Emitted(25, 17) Source(37, 17) + SourceIndex(0) -6 >Emitted(25, 30) Source(37, 30) + SourceIndex(0) -7 >Emitted(25, 31) Source(37, 31) + SourceIndex(0) -8 >Emitted(25, 32) Source(37, 32) + SourceIndex(0) +1 >Emitted(33, 5) Source(37, 5) + SourceIndex(0) +2 >Emitted(33, 12) Source(37, 12) + SourceIndex(0) +3 >Emitted(33, 13) Source(37, 13) + SourceIndex(0) +4 >Emitted(33, 16) Source(37, 16) + SourceIndex(0) +5 >Emitted(33, 17) Source(37, 17) + SourceIndex(0) +6 >Emitted(33, 30) Source(37, 30) + SourceIndex(0) +7 >Emitted(33, 31) Source(37, 31) + SourceIndex(0) +8 >Emitted(33, 32) Source(37, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(26, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(26, 2) Source(38, 2) + SourceIndex(0) +1 >Emitted(34, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(34, 2) Source(38, 2) + SourceIndex(0) --- ->>>for (_k = getMultiRobot(), _l = _k[1], _m = _l === void 0 ? ["none", "none"] : _l, _o = _m[0], primarySkillA = _o === void 0 ? "primary" : _o, _p = _m[1], secondarySkillA = _p === void 0 ? "secondary" : _p, _k, i = 0; i < 1; i++) { +>>>for (_p = getMultiRobot(), _q = __read(_p, 2), _r = _q[1], _s = __read(_r === void 0 ? ["none", "none"] : _r, 2), _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, _p, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^^^^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^^^^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > 2 >for @@ -839,68 +876,75 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. > secondarySkillA = "secondary" > ] = ["none", "none"]] = getMultiRobot() 6 > -7 > [ +7 > [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["none", "none"] -8 > -9 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -10> -11> primarySkillA = "primary" -12> -13> primarySkillA = "primary" -14> , - > -15> secondarySkillA = "secondary" -16> -17> secondarySkillA = "secondary" -18> - > ] = ["none", "none"]] = getMultiRobot(), -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(27, 1) Source(39, 1) + SourceIndex(0) -2 >Emitted(27, 4) Source(39, 4) + SourceIndex(0) -3 >Emitted(27, 5) Source(39, 5) + SourceIndex(0) -4 >Emitted(27, 6) Source(39, 6) + SourceIndex(0) -5 >Emitted(27, 26) Source(42, 40) + SourceIndex(0) -6 >Emitted(27, 28) Source(39, 9) + SourceIndex(0) -7 >Emitted(27, 38) Source(42, 21) + SourceIndex(0) -8 >Emitted(27, 40) Source(39, 9) + SourceIndex(0) -9 >Emitted(27, 82) Source(42, 21) + SourceIndex(0) -10>Emitted(27, 84) Source(40, 5) + SourceIndex(0) -11>Emitted(27, 94) Source(40, 30) + SourceIndex(0) -12>Emitted(27, 96) Source(40, 5) + SourceIndex(0) -13>Emitted(27, 142) Source(40, 30) + SourceIndex(0) -14>Emitted(27, 144) Source(41, 5) + SourceIndex(0) -15>Emitted(27, 154) Source(41, 34) + SourceIndex(0) -16>Emitted(27, 156) Source(41, 5) + SourceIndex(0) -17>Emitted(27, 206) Source(41, 34) + SourceIndex(0) -18>Emitted(27, 212) Source(42, 42) + SourceIndex(0) -19>Emitted(27, 213) Source(42, 43) + SourceIndex(0) -20>Emitted(27, 216) Source(42, 46) + SourceIndex(0) -21>Emitted(27, 217) Source(42, 47) + SourceIndex(0) -22>Emitted(27, 219) Source(42, 49) + SourceIndex(0) -23>Emitted(27, 220) Source(42, 50) + SourceIndex(0) -24>Emitted(27, 223) Source(42, 53) + SourceIndex(0) -25>Emitted(27, 224) Source(42, 54) + SourceIndex(0) -26>Emitted(27, 226) Source(42, 56) + SourceIndex(0) -27>Emitted(27, 227) Source(42, 57) + SourceIndex(0) -28>Emitted(27, 229) Source(42, 59) + SourceIndex(0) -29>Emitted(27, 231) Source(42, 61) + SourceIndex(0) -30>Emitted(27, 232) Source(42, 62) + SourceIndex(0) + > ] = ["none", "none"]] = getMultiRobot() +8 > +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +10> +11> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +12> +13> primarySkillA = "primary" +14> +15> primarySkillA = "primary" +16> , + > +17> secondarySkillA = "secondary" +18> +19> secondarySkillA = "secondary" +20> + > ] = ["none", "none"]] = getMultiRobot(), +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(35, 1) Source(39, 1) + SourceIndex(0) +2 >Emitted(35, 4) Source(39, 4) + SourceIndex(0) +3 >Emitted(35, 5) Source(39, 5) + SourceIndex(0) +4 >Emitted(35, 6) Source(39, 6) + SourceIndex(0) +5 >Emitted(35, 26) Source(42, 40) + SourceIndex(0) +6 >Emitted(35, 28) Source(39, 6) + SourceIndex(0) +7 >Emitted(35, 46) Source(42, 40) + SourceIndex(0) +8 >Emitted(35, 48) Source(39, 9) + SourceIndex(0) +9 >Emitted(35, 58) Source(42, 21) + SourceIndex(0) +10>Emitted(35, 60) Source(39, 9) + SourceIndex(0) +11>Emitted(35, 113) Source(42, 21) + SourceIndex(0) +12>Emitted(35, 115) Source(40, 5) + SourceIndex(0) +13>Emitted(35, 125) Source(40, 30) + SourceIndex(0) +14>Emitted(35, 127) Source(40, 5) + SourceIndex(0) +15>Emitted(35, 173) Source(40, 30) + SourceIndex(0) +16>Emitted(35, 175) Source(41, 5) + SourceIndex(0) +17>Emitted(35, 185) Source(41, 34) + SourceIndex(0) +18>Emitted(35, 187) Source(41, 5) + SourceIndex(0) +19>Emitted(35, 237) Source(41, 34) + SourceIndex(0) +20>Emitted(35, 243) Source(42, 42) + SourceIndex(0) +21>Emitted(35, 244) Source(42, 43) + SourceIndex(0) +22>Emitted(35, 247) Source(42, 46) + SourceIndex(0) +23>Emitted(35, 248) Source(42, 47) + SourceIndex(0) +24>Emitted(35, 250) Source(42, 49) + SourceIndex(0) +25>Emitted(35, 251) Source(42, 50) + SourceIndex(0) +26>Emitted(35, 254) Source(42, 53) + SourceIndex(0) +27>Emitted(35, 255) Source(42, 54) + SourceIndex(0) +28>Emitted(35, 257) Source(42, 56) + SourceIndex(0) +29>Emitted(35, 258) Source(42, 57) + SourceIndex(0) +30>Emitted(35, 260) Source(42, 59) + SourceIndex(0) +31>Emitted(35, 262) Source(42, 61) + SourceIndex(0) +32>Emitted(35, 263) Source(42, 62) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -920,56 +964,58 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(28, 5) Source(43, 5) + SourceIndex(0) -2 >Emitted(28, 12) Source(43, 12) + SourceIndex(0) -3 >Emitted(28, 13) Source(43, 13) + SourceIndex(0) -4 >Emitted(28, 16) Source(43, 16) + SourceIndex(0) -5 >Emitted(28, 17) Source(43, 17) + SourceIndex(0) -6 >Emitted(28, 30) Source(43, 30) + SourceIndex(0) -7 >Emitted(28, 31) Source(43, 31) + SourceIndex(0) -8 >Emitted(28, 32) Source(43, 32) + SourceIndex(0) +1 >Emitted(36, 5) Source(43, 5) + SourceIndex(0) +2 >Emitted(36, 12) Source(43, 12) + SourceIndex(0) +3 >Emitted(36, 13) Source(43, 13) + SourceIndex(0) +4 >Emitted(36, 16) Source(43, 16) + SourceIndex(0) +5 >Emitted(36, 17) Source(43, 17) + SourceIndex(0) +6 >Emitted(36, 30) Source(43, 30) + SourceIndex(0) +7 >Emitted(36, 31) Source(43, 31) + SourceIndex(0) +8 >Emitted(36, 32) Source(43, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(29, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(29, 2) Source(44, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(44, 2) + SourceIndex(0) --- ->>>for (_q = ["trimmer", ["trimming", "edging"]], _r = _q[1], _s = _r === void 0 ? ["none", "none"] : _r, _t = _s[0], primarySkillA = _t === void 0 ? "primary" : _t, _u = _s[1], secondarySkillA = _u === void 0 ? "secondary" : _u, _q, i = 0; i < 1; i++) { +>>>for (_v = ["trimmer", ["trimming", "edging"]], _w = __read(_v, 2), _x = _w[1], _y = __read(_x === void 0 ? ["none", "none"] : _x, 2), _z = _y[0], primarySkillA = _z === void 0 ? "primary" : _z, _0 = _y[1], secondarySkillA = _0 === void 0 ? "secondary" : _0, _v, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^^^^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^^^^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > 2 >for @@ -980,68 +1026,75 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. > secondarySkillA = "secondary" > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]] 6 > -7 > [ +7 > [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["none", "none"] -8 > -9 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -10> -11> primarySkillA = "primary" -12> -13> primarySkillA = "primary" -14> , - > -15> secondarySkillA = "secondary" -16> -17> secondarySkillA = "secondary" -18> - > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]], -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(30, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(30, 4) Source(45, 4) + SourceIndex(0) -3 >Emitted(30, 5) Source(45, 5) + SourceIndex(0) -4 >Emitted(30, 6) Source(45, 6) + SourceIndex(0) -5 >Emitted(30, 46) Source(48, 60) + SourceIndex(0) -6 >Emitted(30, 48) Source(45, 9) + SourceIndex(0) -7 >Emitted(30, 58) Source(48, 21) + SourceIndex(0) -8 >Emitted(30, 60) Source(45, 9) + SourceIndex(0) -9 >Emitted(30, 102) Source(48, 21) + SourceIndex(0) -10>Emitted(30, 104) Source(46, 5) + SourceIndex(0) -11>Emitted(30, 114) Source(46, 30) + SourceIndex(0) -12>Emitted(30, 116) Source(46, 5) + SourceIndex(0) -13>Emitted(30, 162) Source(46, 30) + SourceIndex(0) -14>Emitted(30, 164) Source(47, 5) + SourceIndex(0) -15>Emitted(30, 174) Source(47, 34) + SourceIndex(0) -16>Emitted(30, 176) Source(47, 5) + SourceIndex(0) -17>Emitted(30, 226) Source(47, 34) + SourceIndex(0) -18>Emitted(30, 232) Source(48, 62) + SourceIndex(0) -19>Emitted(30, 233) Source(48, 63) + SourceIndex(0) -20>Emitted(30, 236) Source(48, 66) + SourceIndex(0) -21>Emitted(30, 237) Source(48, 67) + SourceIndex(0) -22>Emitted(30, 239) Source(48, 69) + SourceIndex(0) -23>Emitted(30, 240) Source(48, 70) + SourceIndex(0) -24>Emitted(30, 243) Source(48, 73) + SourceIndex(0) -25>Emitted(30, 244) Source(48, 74) + SourceIndex(0) -26>Emitted(30, 246) Source(48, 76) + SourceIndex(0) -27>Emitted(30, 247) Source(48, 77) + SourceIndex(0) -28>Emitted(30, 249) Source(48, 79) + SourceIndex(0) -29>Emitted(30, 251) Source(48, 81) + SourceIndex(0) -30>Emitted(30, 252) Source(48, 82) + SourceIndex(0) + > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]] +8 > +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +10> +11> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +12> +13> primarySkillA = "primary" +14> +15> primarySkillA = "primary" +16> , + > +17> secondarySkillA = "secondary" +18> +19> secondarySkillA = "secondary" +20> + > ] = ["none", "none"]] = ["trimmer", ["trimming", "edging"]], +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(38, 1) Source(45, 1) + SourceIndex(0) +2 >Emitted(38, 4) Source(45, 4) + SourceIndex(0) +3 >Emitted(38, 5) Source(45, 5) + SourceIndex(0) +4 >Emitted(38, 6) Source(45, 6) + SourceIndex(0) +5 >Emitted(38, 46) Source(48, 60) + SourceIndex(0) +6 >Emitted(38, 48) Source(45, 6) + SourceIndex(0) +7 >Emitted(38, 66) Source(48, 60) + SourceIndex(0) +8 >Emitted(38, 68) Source(45, 9) + SourceIndex(0) +9 >Emitted(38, 78) Source(48, 21) + SourceIndex(0) +10>Emitted(38, 80) Source(45, 9) + SourceIndex(0) +11>Emitted(38, 133) Source(48, 21) + SourceIndex(0) +12>Emitted(38, 135) Source(46, 5) + SourceIndex(0) +13>Emitted(38, 145) Source(46, 30) + SourceIndex(0) +14>Emitted(38, 147) Source(46, 5) + SourceIndex(0) +15>Emitted(38, 193) Source(46, 30) + SourceIndex(0) +16>Emitted(38, 195) Source(47, 5) + SourceIndex(0) +17>Emitted(38, 205) Source(47, 34) + SourceIndex(0) +18>Emitted(38, 207) Source(47, 5) + SourceIndex(0) +19>Emitted(38, 257) Source(47, 34) + SourceIndex(0) +20>Emitted(38, 263) Source(48, 62) + SourceIndex(0) +21>Emitted(38, 264) Source(48, 63) + SourceIndex(0) +22>Emitted(38, 267) Source(48, 66) + SourceIndex(0) +23>Emitted(38, 268) Source(48, 67) + SourceIndex(0) +24>Emitted(38, 270) Source(48, 69) + SourceIndex(0) +25>Emitted(38, 271) Source(48, 70) + SourceIndex(0) +26>Emitted(38, 274) Source(48, 73) + SourceIndex(0) +27>Emitted(38, 275) Source(48, 74) + SourceIndex(0) +28>Emitted(38, 277) Source(48, 76) + SourceIndex(0) +29>Emitted(38, 278) Source(48, 77) + SourceIndex(0) +30>Emitted(38, 280) Source(48, 79) + SourceIndex(0) +31>Emitted(38, 282) Source(48, 81) + SourceIndex(0) +32>Emitted(38, 283) Source(48, 82) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -1061,94 +1114,100 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(31, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(49, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(49, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(49, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(49, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(49, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(49, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(49, 32) + SourceIndex(0) +1 >Emitted(39, 5) Source(49, 5) + SourceIndex(0) +2 >Emitted(39, 12) Source(49, 12) + SourceIndex(0) +3 >Emitted(39, 13) Source(49, 13) + SourceIndex(0) +4 >Emitted(39, 16) Source(49, 16) + SourceIndex(0) +5 >Emitted(39, 17) Source(49, 17) + SourceIndex(0) +6 >Emitted(39, 30) Source(49, 30) + SourceIndex(0) +7 >Emitted(39, 31) Source(49, 31) + SourceIndex(0) +8 >Emitted(39, 32) Source(49, 32) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(32, 1) Source(50, 1) + SourceIndex(0) -2 >Emitted(32, 2) Source(50, 2) + SourceIndex(0) +1 >Emitted(40, 1) Source(50, 1) + SourceIndex(0) +2 >Emitted(40, 2) Source(50, 2) + SourceIndex(0) --- ->>>for (_v = robotA[0], numberB = _v === void 0 ? -1 : _v, robotA, i = 0; i < 1; i++) { +>>>for (_1 = __read(robotA, 1), _2 = _1[0], numberB = _2 === void 0 ? -1 : _2, robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^ -10> ^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^ +12> ^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberB = -1 -6 > -7 > numberB = -1 -8 > ] = -9 > robotA -10> , -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(33, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(52, 7) + SourceIndex(0) -5 >Emitted(33, 20) Source(52, 19) + SourceIndex(0) -6 >Emitted(33, 22) Source(52, 7) + SourceIndex(0) -7 >Emitted(33, 55) Source(52, 19) + SourceIndex(0) -8 >Emitted(33, 57) Source(52, 23) + SourceIndex(0) -9 >Emitted(33, 63) Source(52, 29) + SourceIndex(0) -10>Emitted(33, 65) Source(52, 31) + SourceIndex(0) -11>Emitted(33, 66) Source(52, 32) + SourceIndex(0) -12>Emitted(33, 69) Source(52, 35) + SourceIndex(0) -13>Emitted(33, 70) Source(52, 36) + SourceIndex(0) -14>Emitted(33, 72) Source(52, 38) + SourceIndex(0) -15>Emitted(33, 73) Source(52, 39) + SourceIndex(0) -16>Emitted(33, 76) Source(52, 42) + SourceIndex(0) -17>Emitted(33, 77) Source(52, 43) + SourceIndex(0) -18>Emitted(33, 79) Source(52, 45) + SourceIndex(0) -19>Emitted(33, 80) Source(52, 46) + SourceIndex(0) -20>Emitted(33, 82) Source(52, 48) + SourceIndex(0) -21>Emitted(33, 84) Source(52, 50) + SourceIndex(0) -22>Emitted(33, 85) Source(52, 51) + SourceIndex(0) +4 > ( +5 > [numberB = -1] = robotA +6 > +7 > numberB = -1 +8 > +9 > numberB = -1 +10> ] = +11> robotA +12> , +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(41, 1) Source(52, 1) + SourceIndex(0) +2 >Emitted(41, 4) Source(52, 4) + SourceIndex(0) +3 >Emitted(41, 5) Source(52, 5) + SourceIndex(0) +4 >Emitted(41, 6) Source(52, 6) + SourceIndex(0) +5 >Emitted(41, 28) Source(52, 29) + SourceIndex(0) +6 >Emitted(41, 30) Source(52, 7) + SourceIndex(0) +7 >Emitted(41, 40) Source(52, 19) + SourceIndex(0) +8 >Emitted(41, 42) Source(52, 7) + SourceIndex(0) +9 >Emitted(41, 75) Source(52, 19) + SourceIndex(0) +10>Emitted(41, 77) Source(52, 23) + SourceIndex(0) +11>Emitted(41, 83) Source(52, 29) + SourceIndex(0) +12>Emitted(41, 85) Source(52, 31) + SourceIndex(0) +13>Emitted(41, 86) Source(52, 32) + SourceIndex(0) +14>Emitted(41, 89) Source(52, 35) + SourceIndex(0) +15>Emitted(41, 90) Source(52, 36) + SourceIndex(0) +16>Emitted(41, 92) Source(52, 38) + SourceIndex(0) +17>Emitted(41, 93) Source(52, 39) + SourceIndex(0) +18>Emitted(41, 96) Source(52, 42) + SourceIndex(0) +19>Emitted(41, 97) Source(52, 43) + SourceIndex(0) +20>Emitted(41, 99) Source(52, 45) + SourceIndex(0) +21>Emitted(41, 100) Source(52, 46) + SourceIndex(0) +22>Emitted(41, 102) Source(52, 48) + SourceIndex(0) +23>Emitted(41, 104) Source(52, 50) + SourceIndex(0) +24>Emitted(41, 105) Source(52, 51) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1168,48 +1227,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberB 7 > ) 8 > ; -1 >Emitted(34, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(34, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(34, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(34, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(34, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(34, 24) Source(53, 24) + SourceIndex(0) -7 >Emitted(34, 25) Source(53, 25) + SourceIndex(0) -8 >Emitted(34, 26) Source(53, 26) + SourceIndex(0) +1 >Emitted(42, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(42, 12) Source(53, 12) + SourceIndex(0) +3 >Emitted(42, 13) Source(53, 13) + SourceIndex(0) +4 >Emitted(42, 16) Source(53, 16) + SourceIndex(0) +5 >Emitted(42, 17) Source(53, 17) + SourceIndex(0) +6 >Emitted(42, 24) Source(53, 24) + SourceIndex(0) +7 >Emitted(42, 25) Source(53, 25) + SourceIndex(0) +8 >Emitted(42, 26) Source(53, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(35, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(35, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(43, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(43, 2) Source(54, 2) + SourceIndex(0) --- ->>>for (_w = getRobot(), _x = _w[0], numberB = _x === void 0 ? -1 : _x, _w, i = 0; i < 1; i++) { +>>>for (_3 = getRobot(), _4 = __read(_3, 1), _5 = _4[0], numberB = _5 === void 0 ? -1 : _5, _3, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for @@ -1217,44 +1278,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [numberB = -1] = getRobot() 6 > -7 > numberB = -1 -8 > -9 > numberB = -1 -10> ] = getRobot(), -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(36, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(36, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(36, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(36, 6) Source(55, 6) + SourceIndex(0) -5 >Emitted(36, 21) Source(55, 33) + SourceIndex(0) -6 >Emitted(36, 23) Source(55, 7) + SourceIndex(0) -7 >Emitted(36, 33) Source(55, 19) + SourceIndex(0) -8 >Emitted(36, 35) Source(55, 7) + SourceIndex(0) -9 >Emitted(36, 68) Source(55, 19) + SourceIndex(0) -10>Emitted(36, 74) Source(55, 35) + SourceIndex(0) -11>Emitted(36, 75) Source(55, 36) + SourceIndex(0) -12>Emitted(36, 78) Source(55, 39) + SourceIndex(0) -13>Emitted(36, 79) Source(55, 40) + SourceIndex(0) -14>Emitted(36, 81) Source(55, 42) + SourceIndex(0) -15>Emitted(36, 82) Source(55, 43) + SourceIndex(0) -16>Emitted(36, 85) Source(55, 46) + SourceIndex(0) -17>Emitted(36, 86) Source(55, 47) + SourceIndex(0) -18>Emitted(36, 88) Source(55, 49) + SourceIndex(0) -19>Emitted(36, 89) Source(55, 50) + SourceIndex(0) -20>Emitted(36, 91) Source(55, 52) + SourceIndex(0) -21>Emitted(36, 93) Source(55, 54) + SourceIndex(0) -22>Emitted(36, 94) Source(55, 55) + SourceIndex(0) +7 > [numberB = -1] = getRobot() +8 > +9 > numberB = -1 +10> +11> numberB = -1 +12> ] = getRobot(), +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(44, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(44, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(44, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(44, 6) Source(55, 6) + SourceIndex(0) +5 >Emitted(44, 21) Source(55, 33) + SourceIndex(0) +6 >Emitted(44, 23) Source(55, 6) + SourceIndex(0) +7 >Emitted(44, 41) Source(55, 33) + SourceIndex(0) +8 >Emitted(44, 43) Source(55, 7) + SourceIndex(0) +9 >Emitted(44, 53) Source(55, 19) + SourceIndex(0) +10>Emitted(44, 55) Source(55, 7) + SourceIndex(0) +11>Emitted(44, 88) Source(55, 19) + SourceIndex(0) +12>Emitted(44, 94) Source(55, 35) + SourceIndex(0) +13>Emitted(44, 95) Source(55, 36) + SourceIndex(0) +14>Emitted(44, 98) Source(55, 39) + SourceIndex(0) +15>Emitted(44, 99) Source(55, 40) + SourceIndex(0) +16>Emitted(44, 101) Source(55, 42) + SourceIndex(0) +17>Emitted(44, 102) Source(55, 43) + SourceIndex(0) +18>Emitted(44, 105) Source(55, 46) + SourceIndex(0) +19>Emitted(44, 106) Source(55, 47) + SourceIndex(0) +20>Emitted(44, 108) Source(55, 49) + SourceIndex(0) +21>Emitted(44, 109) Source(55, 50) + SourceIndex(0) +22>Emitted(44, 111) Source(55, 52) + SourceIndex(0) +23>Emitted(44, 113) Source(55, 54) + SourceIndex(0) +24>Emitted(44, 114) Source(55, 55) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1274,48 +1339,50 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberB 7 > ) 8 > ; -1 >Emitted(37, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(37, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(37, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(37, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(37, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(37, 24) Source(56, 24) + SourceIndex(0) -7 >Emitted(37, 25) Source(56, 25) + SourceIndex(0) -8 >Emitted(37, 26) Source(56, 26) + SourceIndex(0) +1 >Emitted(45, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(45, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(45, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(45, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(45, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(45, 24) Source(56, 24) + SourceIndex(0) +7 >Emitted(45, 25) Source(56, 25) + SourceIndex(0) +8 >Emitted(45, 26) Source(56, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(38, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(46, 1) Source(57, 1) + SourceIndex(0) +2 >Emitted(46, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (_y = [2, "trimmer", "trimming"], _z = _y[0], numberB = _z === void 0 ? -1 : _z, _y, i = 0; i < 1; i++) { +>>>for (_6 = [2, "trimmer", "trimming"], _7 = __read(_6, 1), _8 = _7[0], numberB = _8 === void 0 ? -1 : _8, _6, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +7 > ^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for @@ -1323,44 +1390,48 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [numberB = -1] = [2, "trimmer", "trimming"] 6 > -7 > numberB = -1 -8 > -9 > numberB = -1 -10> ] = [2, "trimmer", "trimming"], -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(39, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(39, 4) Source(58, 4) + SourceIndex(0) -3 >Emitted(39, 5) Source(58, 5) + SourceIndex(0) -4 >Emitted(39, 6) Source(58, 6) + SourceIndex(0) -5 >Emitted(39, 37) Source(58, 49) + SourceIndex(0) -6 >Emitted(39, 39) Source(58, 7) + SourceIndex(0) -7 >Emitted(39, 49) Source(58, 19) + SourceIndex(0) -8 >Emitted(39, 51) Source(58, 7) + SourceIndex(0) -9 >Emitted(39, 84) Source(58, 19) + SourceIndex(0) -10>Emitted(39, 90) Source(58, 51) + SourceIndex(0) -11>Emitted(39, 91) Source(58, 52) + SourceIndex(0) -12>Emitted(39, 94) Source(58, 55) + SourceIndex(0) -13>Emitted(39, 95) Source(58, 56) + SourceIndex(0) -14>Emitted(39, 97) Source(58, 58) + SourceIndex(0) -15>Emitted(39, 98) Source(58, 59) + SourceIndex(0) -16>Emitted(39, 101) Source(58, 62) + SourceIndex(0) -17>Emitted(39, 102) Source(58, 63) + SourceIndex(0) -18>Emitted(39, 104) Source(58, 65) + SourceIndex(0) -19>Emitted(39, 105) Source(58, 66) + SourceIndex(0) -20>Emitted(39, 107) Source(58, 68) + SourceIndex(0) -21>Emitted(39, 109) Source(58, 70) + SourceIndex(0) -22>Emitted(39, 110) Source(58, 71) + SourceIndex(0) +7 > [numberB = -1] = [2, "trimmer", "trimming"] +8 > +9 > numberB = -1 +10> +11> numberB = -1 +12> ] = [2, "trimmer", "trimming"], +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(47, 1) Source(58, 1) + SourceIndex(0) +2 >Emitted(47, 4) Source(58, 4) + SourceIndex(0) +3 >Emitted(47, 5) Source(58, 5) + SourceIndex(0) +4 >Emitted(47, 6) Source(58, 6) + SourceIndex(0) +5 >Emitted(47, 37) Source(58, 49) + SourceIndex(0) +6 >Emitted(47, 39) Source(58, 6) + SourceIndex(0) +7 >Emitted(47, 57) Source(58, 49) + SourceIndex(0) +8 >Emitted(47, 59) Source(58, 7) + SourceIndex(0) +9 >Emitted(47, 69) Source(58, 19) + SourceIndex(0) +10>Emitted(47, 71) Source(58, 7) + SourceIndex(0) +11>Emitted(47, 104) Source(58, 19) + SourceIndex(0) +12>Emitted(47, 110) Source(58, 51) + SourceIndex(0) +13>Emitted(47, 111) Source(58, 52) + SourceIndex(0) +14>Emitted(47, 114) Source(58, 55) + SourceIndex(0) +15>Emitted(47, 115) Source(58, 56) + SourceIndex(0) +16>Emitted(47, 117) Source(58, 58) + SourceIndex(0) +17>Emitted(47, 118) Source(58, 59) + SourceIndex(0) +18>Emitted(47, 121) Source(58, 62) + SourceIndex(0) +19>Emitted(47, 122) Source(58, 63) + SourceIndex(0) +20>Emitted(47, 124) Source(58, 65) + SourceIndex(0) +21>Emitted(47, 125) Source(58, 66) + SourceIndex(0) +22>Emitted(47, 127) Source(58, 68) + SourceIndex(0) +23>Emitted(47, 129) Source(58, 70) + SourceIndex(0) +24>Emitted(47, 130) Source(58, 71) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1380,93 +1451,99 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberB 7 > ) 8 > ; -1 >Emitted(40, 5) Source(59, 5) + SourceIndex(0) -2 >Emitted(40, 12) Source(59, 12) + SourceIndex(0) -3 >Emitted(40, 13) Source(59, 13) + SourceIndex(0) -4 >Emitted(40, 16) Source(59, 16) + SourceIndex(0) -5 >Emitted(40, 17) Source(59, 17) + SourceIndex(0) -6 >Emitted(40, 24) Source(59, 24) + SourceIndex(0) -7 >Emitted(40, 25) Source(59, 25) + SourceIndex(0) -8 >Emitted(40, 26) Source(59, 26) + SourceIndex(0) +1 >Emitted(48, 5) Source(59, 5) + SourceIndex(0) +2 >Emitted(48, 12) Source(59, 12) + SourceIndex(0) +3 >Emitted(48, 13) Source(59, 13) + SourceIndex(0) +4 >Emitted(48, 16) Source(59, 16) + SourceIndex(0) +5 >Emitted(48, 17) Source(59, 17) + SourceIndex(0) +6 >Emitted(48, 24) Source(59, 24) + SourceIndex(0) +7 >Emitted(48, 25) Source(59, 25) + SourceIndex(0) +8 >Emitted(48, 26) Source(59, 26) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(41, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(60, 2) + SourceIndex(0) +1 >Emitted(49, 1) Source(60, 1) + SourceIndex(0) +2 >Emitted(49, 2) Source(60, 2) + SourceIndex(0) --- ->>>for (_0 = multiRobotA[0], nameB = _0 === void 0 ? "name" : _0, multiRobotA, i = 0; i < 1; i++) { +>>>for (_9 = __read(multiRobotA, 1), _10 = _9[0], nameB = _10 === void 0 ? "name" : _10, multiRobotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^ -10> ^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^ +12> ^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for 3 > -4 > ([ -5 > nameB = "name" -6 > -7 > nameB = "name" -8 > ] = -9 > multiRobotA -10> , -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(42, 1) Source(61, 1) + SourceIndex(0) -2 >Emitted(42, 4) Source(61, 4) + SourceIndex(0) -3 >Emitted(42, 5) Source(61, 5) + SourceIndex(0) -4 >Emitted(42, 6) Source(61, 7) + SourceIndex(0) -5 >Emitted(42, 25) Source(61, 21) + SourceIndex(0) -6 >Emitted(42, 27) Source(61, 7) + SourceIndex(0) -7 >Emitted(42, 62) Source(61, 21) + SourceIndex(0) -8 >Emitted(42, 64) Source(61, 25) + SourceIndex(0) -9 >Emitted(42, 75) Source(61, 36) + SourceIndex(0) -10>Emitted(42, 77) Source(61, 38) + SourceIndex(0) -11>Emitted(42, 78) Source(61, 39) + SourceIndex(0) -12>Emitted(42, 81) Source(61, 42) + SourceIndex(0) -13>Emitted(42, 82) Source(61, 43) + SourceIndex(0) -14>Emitted(42, 84) Source(61, 45) + SourceIndex(0) -15>Emitted(42, 85) Source(61, 46) + SourceIndex(0) -16>Emitted(42, 88) Source(61, 49) + SourceIndex(0) -17>Emitted(42, 89) Source(61, 50) + SourceIndex(0) -18>Emitted(42, 91) Source(61, 52) + SourceIndex(0) -19>Emitted(42, 92) Source(61, 53) + SourceIndex(0) -20>Emitted(42, 94) Source(61, 55) + SourceIndex(0) -21>Emitted(42, 96) Source(61, 57) + SourceIndex(0) -22>Emitted(42, 97) Source(61, 58) + SourceIndex(0) +4 > ( +5 > [nameB = "name"] = multiRobotA +6 > +7 > nameB = "name" +8 > +9 > nameB = "name" +10> ] = +11> multiRobotA +12> , +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(50, 1) Source(61, 1) + SourceIndex(0) +2 >Emitted(50, 4) Source(61, 4) + SourceIndex(0) +3 >Emitted(50, 5) Source(61, 5) + SourceIndex(0) +4 >Emitted(50, 6) Source(61, 6) + SourceIndex(0) +5 >Emitted(50, 33) Source(61, 36) + SourceIndex(0) +6 >Emitted(50, 35) Source(61, 7) + SourceIndex(0) +7 >Emitted(50, 46) Source(61, 21) + SourceIndex(0) +8 >Emitted(50, 48) Source(61, 7) + SourceIndex(0) +9 >Emitted(50, 85) Source(61, 21) + SourceIndex(0) +10>Emitted(50, 87) Source(61, 25) + SourceIndex(0) +11>Emitted(50, 98) Source(61, 36) + SourceIndex(0) +12>Emitted(50, 100) Source(61, 38) + SourceIndex(0) +13>Emitted(50, 101) Source(61, 39) + SourceIndex(0) +14>Emitted(50, 104) Source(61, 42) + SourceIndex(0) +15>Emitted(50, 105) Source(61, 43) + SourceIndex(0) +16>Emitted(50, 107) Source(61, 45) + SourceIndex(0) +17>Emitted(50, 108) Source(61, 46) + SourceIndex(0) +18>Emitted(50, 111) Source(61, 49) + SourceIndex(0) +19>Emitted(50, 112) Source(61, 50) + SourceIndex(0) +20>Emitted(50, 114) Source(61, 52) + SourceIndex(0) +21>Emitted(50, 115) Source(61, 53) + SourceIndex(0) +22>Emitted(50, 117) Source(61, 55) + SourceIndex(0) +23>Emitted(50, 119) Source(61, 57) + SourceIndex(0) +24>Emitted(50, 120) Source(61, 58) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1486,93 +1563,99 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameB 7 > ) 8 > ; -1 >Emitted(43, 5) Source(62, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(62, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(62, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(62, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(62, 17) + SourceIndex(0) -6 >Emitted(43, 22) Source(62, 22) + SourceIndex(0) -7 >Emitted(43, 23) Source(62, 23) + SourceIndex(0) -8 >Emitted(43, 24) Source(62, 24) + SourceIndex(0) +1 >Emitted(51, 5) Source(62, 5) + SourceIndex(0) +2 >Emitted(51, 12) Source(62, 12) + SourceIndex(0) +3 >Emitted(51, 13) Source(62, 13) + SourceIndex(0) +4 >Emitted(51, 16) Source(62, 16) + SourceIndex(0) +5 >Emitted(51, 17) Source(62, 17) + SourceIndex(0) +6 >Emitted(51, 22) Source(62, 22) + SourceIndex(0) +7 >Emitted(51, 23) Source(62, 23) + SourceIndex(0) +8 >Emitted(51, 24) Source(62, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(44, 1) Source(63, 1) + SourceIndex(0) -2 >Emitted(44, 2) Source(63, 2) + SourceIndex(0) +1 >Emitted(52, 1) Source(63, 1) + SourceIndex(0) +2 >Emitted(52, 2) Source(63, 2) + SourceIndex(0) --- ->>>for (_1 = getMultiRobot(), _2 = _1[0], nameB = _2 === void 0 ? "name" : _2, _1, i = 0; i < 1; i++) { +>>>for (_11 = getMultiRobot(), _12 = __read(_11, 1), _13 = _12[0], nameB = _13 === void 0 ? "name" : _13, _11, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for 3 > 4 > ( 5 > [nameB = "name"] = getMultiRobot() -6 > -7 > nameB = "name" -8 > -9 > nameB = "name" -10> ] = getMultiRobot(), -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(45, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(64, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(64, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(64, 6) + SourceIndex(0) -5 >Emitted(45, 26) Source(64, 40) + SourceIndex(0) -6 >Emitted(45, 28) Source(64, 7) + SourceIndex(0) -7 >Emitted(45, 38) Source(64, 21) + SourceIndex(0) -8 >Emitted(45, 40) Source(64, 7) + SourceIndex(0) -9 >Emitted(45, 75) Source(64, 21) + SourceIndex(0) -10>Emitted(45, 81) Source(64, 42) + SourceIndex(0) -11>Emitted(45, 82) Source(64, 43) + SourceIndex(0) -12>Emitted(45, 85) Source(64, 46) + SourceIndex(0) -13>Emitted(45, 86) Source(64, 47) + SourceIndex(0) -14>Emitted(45, 88) Source(64, 49) + SourceIndex(0) -15>Emitted(45, 89) Source(64, 50) + SourceIndex(0) -16>Emitted(45, 92) Source(64, 53) + SourceIndex(0) -17>Emitted(45, 93) Source(64, 54) + SourceIndex(0) -18>Emitted(45, 95) Source(64, 56) + SourceIndex(0) -19>Emitted(45, 96) Source(64, 57) + SourceIndex(0) -20>Emitted(45, 98) Source(64, 59) + SourceIndex(0) -21>Emitted(45, 100) Source(64, 61) + SourceIndex(0) -22>Emitted(45, 101) Source(64, 62) + SourceIndex(0) +6 > +7 > [nameB = "name"] = getMultiRobot() +8 > +9 > nameB = "name" +10> +11> nameB = "name" +12> ] = getMultiRobot(), +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(53, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(53, 4) Source(64, 4) + SourceIndex(0) +3 >Emitted(53, 5) Source(64, 5) + SourceIndex(0) +4 >Emitted(53, 6) Source(64, 6) + SourceIndex(0) +5 >Emitted(53, 27) Source(64, 40) + SourceIndex(0) +6 >Emitted(53, 29) Source(64, 6) + SourceIndex(0) +7 >Emitted(53, 49) Source(64, 40) + SourceIndex(0) +8 >Emitted(53, 51) Source(64, 7) + SourceIndex(0) +9 >Emitted(53, 63) Source(64, 21) + SourceIndex(0) +10>Emitted(53, 65) Source(64, 7) + SourceIndex(0) +11>Emitted(53, 102) Source(64, 21) + SourceIndex(0) +12>Emitted(53, 109) Source(64, 42) + SourceIndex(0) +13>Emitted(53, 110) Source(64, 43) + SourceIndex(0) +14>Emitted(53, 113) Source(64, 46) + SourceIndex(0) +15>Emitted(53, 114) Source(64, 47) + SourceIndex(0) +16>Emitted(53, 116) Source(64, 49) + SourceIndex(0) +17>Emitted(53, 117) Source(64, 50) + SourceIndex(0) +18>Emitted(53, 120) Source(64, 53) + SourceIndex(0) +19>Emitted(53, 121) Source(64, 54) + SourceIndex(0) +20>Emitted(53, 123) Source(64, 56) + SourceIndex(0) +21>Emitted(53, 124) Source(64, 57) + SourceIndex(0) +22>Emitted(53, 126) Source(64, 59) + SourceIndex(0) +23>Emitted(53, 128) Source(64, 61) + SourceIndex(0) +24>Emitted(53, 129) Source(64, 62) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1592,93 +1675,99 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameB 7 > ) 8 > ; -1 >Emitted(46, 5) Source(65, 5) + SourceIndex(0) -2 >Emitted(46, 12) Source(65, 12) + SourceIndex(0) -3 >Emitted(46, 13) Source(65, 13) + SourceIndex(0) -4 >Emitted(46, 16) Source(65, 16) + SourceIndex(0) -5 >Emitted(46, 17) Source(65, 17) + SourceIndex(0) -6 >Emitted(46, 22) Source(65, 22) + SourceIndex(0) -7 >Emitted(46, 23) Source(65, 23) + SourceIndex(0) -8 >Emitted(46, 24) Source(65, 24) + SourceIndex(0) +1 >Emitted(54, 5) Source(65, 5) + SourceIndex(0) +2 >Emitted(54, 12) Source(65, 12) + SourceIndex(0) +3 >Emitted(54, 13) Source(65, 13) + SourceIndex(0) +4 >Emitted(54, 16) Source(65, 16) + SourceIndex(0) +5 >Emitted(54, 17) Source(65, 17) + SourceIndex(0) +6 >Emitted(54, 22) Source(65, 22) + SourceIndex(0) +7 >Emitted(54, 23) Source(65, 23) + SourceIndex(0) +8 >Emitted(54, 24) Source(65, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(47, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(47, 2) Source(66, 2) + SourceIndex(0) +1 >Emitted(55, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(55, 2) Source(66, 2) + SourceIndex(0) --- ->>>for (_3 = ["trimmer", ["trimming", "edging"]], _4 = _3[0], nameB = _4 === void 0 ? "name" : _4, _3, i = 0; i < 1; i++) { +>>>for (_14 = ["trimmer", ["trimming", "edging"]], _15 = __read(_14, 1), _16 = _15[0], nameB = _16 === void 0 ? "name" : _16, _14, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^^^^^ -11> ^ -12> ^^^ -13> ^ -14> ^^ -15> ^ -16> ^^^ -17> ^ -18> ^^ -19> ^ -20> ^^ -21> ^^ -22> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^ +18> ^^^ +19> ^ +20> ^^ +21> ^ +22> ^^ +23> ^^ +24> ^ 1-> > 2 >for 3 > 4 > ( 5 > [nameB = "name"] = ["trimmer", ["trimming", "edging"]] -6 > -7 > nameB = "name" -8 > -9 > nameB = "name" -10> ] = ["trimmer", ["trimming", "edging"]], -11> i -12> = -13> 0 -14> ; -15> i -16> < -17> 1 -18> ; -19> i -20> ++ -21> ) -22> { -1->Emitted(48, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(48, 4) Source(67, 4) + SourceIndex(0) -3 >Emitted(48, 5) Source(67, 5) + SourceIndex(0) -4 >Emitted(48, 6) Source(67, 6) + SourceIndex(0) -5 >Emitted(48, 46) Source(67, 60) + SourceIndex(0) -6 >Emitted(48, 48) Source(67, 7) + SourceIndex(0) -7 >Emitted(48, 58) Source(67, 21) + SourceIndex(0) -8 >Emitted(48, 60) Source(67, 7) + SourceIndex(0) -9 >Emitted(48, 95) Source(67, 21) + SourceIndex(0) -10>Emitted(48, 101) Source(67, 62) + SourceIndex(0) -11>Emitted(48, 102) Source(67, 63) + SourceIndex(0) -12>Emitted(48, 105) Source(67, 66) + SourceIndex(0) -13>Emitted(48, 106) Source(67, 67) + SourceIndex(0) -14>Emitted(48, 108) Source(67, 69) + SourceIndex(0) -15>Emitted(48, 109) Source(67, 70) + SourceIndex(0) -16>Emitted(48, 112) Source(67, 73) + SourceIndex(0) -17>Emitted(48, 113) Source(67, 74) + SourceIndex(0) -18>Emitted(48, 115) Source(67, 76) + SourceIndex(0) -19>Emitted(48, 116) Source(67, 77) + SourceIndex(0) -20>Emitted(48, 118) Source(67, 79) + SourceIndex(0) -21>Emitted(48, 120) Source(67, 81) + SourceIndex(0) -22>Emitted(48, 121) Source(67, 82) + SourceIndex(0) +6 > +7 > [nameB = "name"] = ["trimmer", ["trimming", "edging"]] +8 > +9 > nameB = "name" +10> +11> nameB = "name" +12> ] = ["trimmer", ["trimming", "edging"]], +13> i +14> = +15> 0 +16> ; +17> i +18> < +19> 1 +20> ; +21> i +22> ++ +23> ) +24> { +1->Emitted(56, 1) Source(67, 1) + SourceIndex(0) +2 >Emitted(56, 4) Source(67, 4) + SourceIndex(0) +3 >Emitted(56, 5) Source(67, 5) + SourceIndex(0) +4 >Emitted(56, 6) Source(67, 6) + SourceIndex(0) +5 >Emitted(56, 47) Source(67, 60) + SourceIndex(0) +6 >Emitted(56, 49) Source(67, 6) + SourceIndex(0) +7 >Emitted(56, 69) Source(67, 60) + SourceIndex(0) +8 >Emitted(56, 71) Source(67, 7) + SourceIndex(0) +9 >Emitted(56, 83) Source(67, 21) + SourceIndex(0) +10>Emitted(56, 85) Source(67, 7) + SourceIndex(0) +11>Emitted(56, 122) Source(67, 21) + SourceIndex(0) +12>Emitted(56, 129) Source(67, 62) + SourceIndex(0) +13>Emitted(56, 130) Source(67, 63) + SourceIndex(0) +14>Emitted(56, 133) Source(67, 66) + SourceIndex(0) +15>Emitted(56, 134) Source(67, 67) + SourceIndex(0) +16>Emitted(56, 136) Source(67, 69) + SourceIndex(0) +17>Emitted(56, 137) Source(67, 70) + SourceIndex(0) +18>Emitted(56, 140) Source(67, 73) + SourceIndex(0) +19>Emitted(56, 141) Source(67, 74) + SourceIndex(0) +20>Emitted(56, 143) Source(67, 76) + SourceIndex(0) +21>Emitted(56, 144) Source(67, 77) + SourceIndex(0) +22>Emitted(56, 146) Source(67, 79) + SourceIndex(0) +23>Emitted(56, 148) Source(67, 81) + SourceIndex(0) +24>Emitted(56, 149) Source(67, 82) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1698,118 +1787,124 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameB 7 > ) 8 > ; -1 >Emitted(49, 5) Source(68, 5) + SourceIndex(0) -2 >Emitted(49, 12) Source(68, 12) + SourceIndex(0) -3 >Emitted(49, 13) Source(68, 13) + SourceIndex(0) -4 >Emitted(49, 16) Source(68, 16) + SourceIndex(0) -5 >Emitted(49, 17) Source(68, 17) + SourceIndex(0) -6 >Emitted(49, 22) Source(68, 22) + SourceIndex(0) -7 >Emitted(49, 23) Source(68, 23) + SourceIndex(0) -8 >Emitted(49, 24) Source(68, 24) + SourceIndex(0) +1 >Emitted(57, 5) Source(68, 5) + SourceIndex(0) +2 >Emitted(57, 12) Source(68, 12) + SourceIndex(0) +3 >Emitted(57, 13) Source(68, 13) + SourceIndex(0) +4 >Emitted(57, 16) Source(68, 16) + SourceIndex(0) +5 >Emitted(57, 17) Source(68, 17) + SourceIndex(0) +6 >Emitted(57, 22) Source(68, 22) + SourceIndex(0) +7 >Emitted(57, 23) Source(68, 23) + SourceIndex(0) +8 >Emitted(57, 24) Source(68, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(50, 1) Source(69, 1) + SourceIndex(0) -2 >Emitted(50, 2) Source(69, 2) + SourceIndex(0) +1 >Emitted(58, 1) Source(69, 1) + SourceIndex(0) +2 >Emitted(58, 2) Source(69, 2) + SourceIndex(0) --- ->>>for (_5 = robotA[0], numberA2 = _5 === void 0 ? -1 : _5, _6 = robotA[1], nameA2 = _6 === void 0 ? "name" : _6, _7 = robotA[2], skillA2 = _7 === void 0 ? "skill" : _7, robotA, i = 0; i < 1; i++) { +>>>for (_17 = __read(robotA, 3), _18 = _17[0], numberA2 = _18 === void 0 ? -1 : _18, _19 = _17[1], nameA2 = _19 === void 0 ? "name" : _19, _20 = _17[2], skillA2 = _20 === void 0 ? "skill" : _20, robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^ -18> ^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^ +20> ^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberA2 = -1 -6 > -7 > numberA2 = -1 -8 > , -9 > nameA2 = "name" -10> -11> nameA2 = "name" -12> , -13> skillA2 = "skill" -14> -15> skillA2 = "skill" -16> ] = -17> robotA -18> , -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(51, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(51, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(51, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(51, 6) Source(71, 7) + SourceIndex(0) -5 >Emitted(51, 20) Source(71, 20) + SourceIndex(0) -6 >Emitted(51, 22) Source(71, 7) + SourceIndex(0) -7 >Emitted(51, 56) Source(71, 20) + SourceIndex(0) -8 >Emitted(51, 58) Source(71, 22) + SourceIndex(0) -9 >Emitted(51, 72) Source(71, 37) + SourceIndex(0) -10>Emitted(51, 74) Source(71, 22) + SourceIndex(0) -11>Emitted(51, 110) Source(71, 37) + SourceIndex(0) -12>Emitted(51, 112) Source(71, 39) + SourceIndex(0) -13>Emitted(51, 126) Source(71, 56) + SourceIndex(0) -14>Emitted(51, 128) Source(71, 39) + SourceIndex(0) -15>Emitted(51, 166) Source(71, 56) + SourceIndex(0) -16>Emitted(51, 168) Source(71, 60) + SourceIndex(0) -17>Emitted(51, 174) Source(71, 66) + SourceIndex(0) -18>Emitted(51, 176) Source(71, 68) + SourceIndex(0) -19>Emitted(51, 177) Source(71, 69) + SourceIndex(0) -20>Emitted(51, 180) Source(71, 72) + SourceIndex(0) -21>Emitted(51, 181) Source(71, 73) + SourceIndex(0) -22>Emitted(51, 183) Source(71, 75) + SourceIndex(0) -23>Emitted(51, 184) Source(71, 76) + SourceIndex(0) -24>Emitted(51, 187) Source(71, 79) + SourceIndex(0) -25>Emitted(51, 188) Source(71, 80) + SourceIndex(0) -26>Emitted(51, 190) Source(71, 82) + SourceIndex(0) -27>Emitted(51, 191) Source(71, 83) + SourceIndex(0) -28>Emitted(51, 193) Source(71, 85) + SourceIndex(0) -29>Emitted(51, 195) Source(71, 87) + SourceIndex(0) -30>Emitted(51, 196) Source(71, 88) + SourceIndex(0) +4 > ( +5 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = robotA +6 > +7 > numberA2 = -1 +8 > +9 > numberA2 = -1 +10> , +11> nameA2 = "name" +12> +13> nameA2 = "name" +14> , +15> skillA2 = "skill" +16> +17> skillA2 = "skill" +18> ] = +19> robotA +20> , +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(59, 1) Source(71, 1) + SourceIndex(0) +2 >Emitted(59, 4) Source(71, 4) + SourceIndex(0) +3 >Emitted(59, 5) Source(71, 5) + SourceIndex(0) +4 >Emitted(59, 6) Source(71, 6) + SourceIndex(0) +5 >Emitted(59, 29) Source(71, 66) + SourceIndex(0) +6 >Emitted(59, 31) Source(71, 7) + SourceIndex(0) +7 >Emitted(59, 43) Source(71, 20) + SourceIndex(0) +8 >Emitted(59, 45) Source(71, 7) + SourceIndex(0) +9 >Emitted(59, 81) Source(71, 20) + SourceIndex(0) +10>Emitted(59, 83) Source(71, 22) + SourceIndex(0) +11>Emitted(59, 95) Source(71, 37) + SourceIndex(0) +12>Emitted(59, 97) Source(71, 22) + SourceIndex(0) +13>Emitted(59, 135) Source(71, 37) + SourceIndex(0) +14>Emitted(59, 137) Source(71, 39) + SourceIndex(0) +15>Emitted(59, 149) Source(71, 56) + SourceIndex(0) +16>Emitted(59, 151) Source(71, 39) + SourceIndex(0) +17>Emitted(59, 191) Source(71, 56) + SourceIndex(0) +18>Emitted(59, 193) Source(71, 60) + SourceIndex(0) +19>Emitted(59, 199) Source(71, 66) + SourceIndex(0) +20>Emitted(59, 201) Source(71, 68) + SourceIndex(0) +21>Emitted(59, 202) Source(71, 69) + SourceIndex(0) +22>Emitted(59, 205) Source(71, 72) + SourceIndex(0) +23>Emitted(59, 206) Source(71, 73) + SourceIndex(0) +24>Emitted(59, 208) Source(71, 75) + SourceIndex(0) +25>Emitted(59, 209) Source(71, 76) + SourceIndex(0) +26>Emitted(59, 212) Source(71, 79) + SourceIndex(0) +27>Emitted(59, 213) Source(71, 80) + SourceIndex(0) +28>Emitted(59, 215) Source(71, 82) + SourceIndex(0) +29>Emitted(59, 216) Source(71, 83) + SourceIndex(0) +30>Emitted(59, 218) Source(71, 85) + SourceIndex(0) +31>Emitted(59, 220) Source(71, 87) + SourceIndex(0) +32>Emitted(59, 221) Source(71, 88) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1829,117 +1924,123 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA2 7 > ) 8 > ; -1 >Emitted(52, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(52, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(52, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(52, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(52, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(52, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(52, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(52, 25) Source(72, 25) + SourceIndex(0) +1 >Emitted(60, 5) Source(72, 5) + SourceIndex(0) +2 >Emitted(60, 12) Source(72, 12) + SourceIndex(0) +3 >Emitted(60, 13) Source(72, 13) + SourceIndex(0) +4 >Emitted(60, 16) Source(72, 16) + SourceIndex(0) +5 >Emitted(60, 17) Source(72, 17) + SourceIndex(0) +6 >Emitted(60, 23) Source(72, 23) + SourceIndex(0) +7 >Emitted(60, 24) Source(72, 24) + SourceIndex(0) +8 >Emitted(60, 25) Source(72, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(53, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(53, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(61, 1) Source(73, 1) + SourceIndex(0) +2 >Emitted(61, 2) Source(73, 2) + SourceIndex(0) --- ->>>for (_8 = getRobot(), _9 = _8[0], numberA2 = _9 === void 0 ? -1 : _9, _10 = _8[1], nameA2 = _10 === void 0 ? "name" : _10, _11 = _8[2], skillA2 = _11 === void 0 ? "skill" : _11, _8, i = 0; i < 1; i++) { +>>>for (_21 = getRobot(), _22 = __read(_21, 3), _23 = _22[0], numberA2 = _23 === void 0 ? -1 : _23, _24 = _22[1], nameA2 = _24 === void 0 ? "name" : _24, _25 = _22[2], skillA2 = _25 === void 0 ? "skill" : _25, _21, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^^^^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^^^^^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > 2 >for 3 > 4 > ( 5 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = getRobot() -6 > -7 > numberA2 = -1 -8 > -9 > numberA2 = -1 -10> , -11> nameA2 = "name" -12> -13> nameA2 = "name" -14> , -15> skillA2 = "skill" -16> -17> skillA2 = "skill" -18> ] = getRobot(), -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(54, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(54, 4) Source(74, 4) + SourceIndex(0) -3 >Emitted(54, 5) Source(74, 5) + SourceIndex(0) -4 >Emitted(54, 6) Source(74, 6) + SourceIndex(0) -5 >Emitted(54, 21) Source(74, 70) + SourceIndex(0) -6 >Emitted(54, 23) Source(74, 7) + SourceIndex(0) -7 >Emitted(54, 33) Source(74, 20) + SourceIndex(0) -8 >Emitted(54, 35) Source(74, 7) + SourceIndex(0) -9 >Emitted(54, 69) Source(74, 20) + SourceIndex(0) -10>Emitted(54, 71) Source(74, 22) + SourceIndex(0) -11>Emitted(54, 82) Source(74, 37) + SourceIndex(0) -12>Emitted(54, 84) Source(74, 22) + SourceIndex(0) -13>Emitted(54, 122) Source(74, 37) + SourceIndex(0) -14>Emitted(54, 124) Source(74, 39) + SourceIndex(0) -15>Emitted(54, 135) Source(74, 56) + SourceIndex(0) -16>Emitted(54, 137) Source(74, 39) + SourceIndex(0) -17>Emitted(54, 177) Source(74, 56) + SourceIndex(0) -18>Emitted(54, 183) Source(74, 72) + SourceIndex(0) -19>Emitted(54, 184) Source(74, 73) + SourceIndex(0) -20>Emitted(54, 187) Source(74, 76) + SourceIndex(0) -21>Emitted(54, 188) Source(74, 77) + SourceIndex(0) -22>Emitted(54, 190) Source(74, 79) + SourceIndex(0) -23>Emitted(54, 191) Source(74, 80) + SourceIndex(0) -24>Emitted(54, 194) Source(74, 83) + SourceIndex(0) -25>Emitted(54, 195) Source(74, 84) + SourceIndex(0) -26>Emitted(54, 197) Source(74, 86) + SourceIndex(0) -27>Emitted(54, 198) Source(74, 87) + SourceIndex(0) -28>Emitted(54, 200) Source(74, 89) + SourceIndex(0) -29>Emitted(54, 202) Source(74, 91) + SourceIndex(0) -30>Emitted(54, 203) Source(74, 92) + SourceIndex(0) +6 > +7 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = getRobot() +8 > +9 > numberA2 = -1 +10> +11> numberA2 = -1 +12> , +13> nameA2 = "name" +14> +15> nameA2 = "name" +16> , +17> skillA2 = "skill" +18> +19> skillA2 = "skill" +20> ] = getRobot(), +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(62, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(62, 4) Source(74, 4) + SourceIndex(0) +3 >Emitted(62, 5) Source(74, 5) + SourceIndex(0) +4 >Emitted(62, 6) Source(74, 6) + SourceIndex(0) +5 >Emitted(62, 22) Source(74, 70) + SourceIndex(0) +6 >Emitted(62, 24) Source(74, 6) + SourceIndex(0) +7 >Emitted(62, 44) Source(74, 70) + SourceIndex(0) +8 >Emitted(62, 46) Source(74, 7) + SourceIndex(0) +9 >Emitted(62, 58) Source(74, 20) + SourceIndex(0) +10>Emitted(62, 60) Source(74, 7) + SourceIndex(0) +11>Emitted(62, 96) Source(74, 20) + SourceIndex(0) +12>Emitted(62, 98) Source(74, 22) + SourceIndex(0) +13>Emitted(62, 110) Source(74, 37) + SourceIndex(0) +14>Emitted(62, 112) Source(74, 22) + SourceIndex(0) +15>Emitted(62, 150) Source(74, 37) + SourceIndex(0) +16>Emitted(62, 152) Source(74, 39) + SourceIndex(0) +17>Emitted(62, 164) Source(74, 56) + SourceIndex(0) +18>Emitted(62, 166) Source(74, 39) + SourceIndex(0) +19>Emitted(62, 206) Source(74, 56) + SourceIndex(0) +20>Emitted(62, 213) Source(74, 72) + SourceIndex(0) +21>Emitted(62, 214) Source(74, 73) + SourceIndex(0) +22>Emitted(62, 217) Source(74, 76) + SourceIndex(0) +23>Emitted(62, 218) Source(74, 77) + SourceIndex(0) +24>Emitted(62, 220) Source(74, 79) + SourceIndex(0) +25>Emitted(62, 221) Source(74, 80) + SourceIndex(0) +26>Emitted(62, 224) Source(74, 83) + SourceIndex(0) +27>Emitted(62, 225) Source(74, 84) + SourceIndex(0) +28>Emitted(62, 227) Source(74, 86) + SourceIndex(0) +29>Emitted(62, 228) Source(74, 87) + SourceIndex(0) +30>Emitted(62, 230) Source(74, 89) + SourceIndex(0) +31>Emitted(62, 232) Source(74, 91) + SourceIndex(0) +32>Emitted(62, 233) Source(74, 92) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1959,56 +2060,58 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA2 7 > ) 8 > ; -1 >Emitted(55, 5) Source(75, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(75, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(75, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(75, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(75, 17) + SourceIndex(0) -6 >Emitted(55, 23) Source(75, 23) + SourceIndex(0) -7 >Emitted(55, 24) Source(75, 24) + SourceIndex(0) -8 >Emitted(55, 25) Source(75, 25) + SourceIndex(0) +1 >Emitted(63, 5) Source(75, 5) + SourceIndex(0) +2 >Emitted(63, 12) Source(75, 12) + SourceIndex(0) +3 >Emitted(63, 13) Source(75, 13) + SourceIndex(0) +4 >Emitted(63, 16) Source(75, 16) + SourceIndex(0) +5 >Emitted(63, 17) Source(75, 17) + SourceIndex(0) +6 >Emitted(63, 23) Source(75, 23) + SourceIndex(0) +7 >Emitted(63, 24) Source(75, 24) + SourceIndex(0) +8 >Emitted(63, 25) Source(75, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(56, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(56, 2) Source(76, 2) + SourceIndex(0) +1 >Emitted(64, 1) Source(76, 1) + SourceIndex(0) +2 >Emitted(64, 2) Source(76, 2) + SourceIndex(0) --- ->>>for (_12 = [2, "trimmer", "trimming"], _13 = _12[0], numberA2 = _13 === void 0 ? -1 : _13, _14 = _12[1], nameA2 = _14 === void 0 ? "name" : _14, _15 = _12[2], skillA2 = _15 === void 0 ? "skill" : _15, _12, i = 0; i < 1; i++) { +>>>for (_26 = [2, "trimmer", "trimming"], _27 = __read(_26, 3), _28 = _27[0], numberA2 = _28 === void 0 ? -1 : _28, _29 = _27[1], nameA2 = _29 === void 0 ? "name" : _29, _30 = _27[2], skillA2 = _30 === void 0 ? "skill" : _30, _26, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^^^^^^ -19> ^ -20> ^^^ -21> ^ -22> ^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^ -29> ^^ -30> ^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^^^^^^ +21> ^ +22> ^^^ +23> ^ +24> ^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^ +31> ^^ +32> ^ 1-> > 2 >for @@ -2016,60 +2119,64 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = [2, "trimmer", "trimming"] 6 > -7 > numberA2 = -1 -8 > -9 > numberA2 = -1 -10> , -11> nameA2 = "name" -12> -13> nameA2 = "name" -14> , -15> skillA2 = "skill" -16> -17> skillA2 = "skill" -18> ] = [2, "trimmer", "trimming"], -19> i -20> = -21> 0 -22> ; -23> i -24> < -25> 1 -26> ; -27> i -28> ++ -29> ) -30> { -1->Emitted(57, 1) Source(77, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(77, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(77, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(77, 6) + SourceIndex(0) -5 >Emitted(57, 38) Source(77, 86) + SourceIndex(0) -6 >Emitted(57, 40) Source(77, 7) + SourceIndex(0) -7 >Emitted(57, 52) Source(77, 20) + SourceIndex(0) -8 >Emitted(57, 54) Source(77, 7) + SourceIndex(0) -9 >Emitted(57, 90) Source(77, 20) + SourceIndex(0) -10>Emitted(57, 92) Source(77, 22) + SourceIndex(0) -11>Emitted(57, 104) Source(77, 37) + SourceIndex(0) -12>Emitted(57, 106) Source(77, 22) + SourceIndex(0) -13>Emitted(57, 144) Source(77, 37) + SourceIndex(0) -14>Emitted(57, 146) Source(77, 39) + SourceIndex(0) -15>Emitted(57, 158) Source(77, 56) + SourceIndex(0) -16>Emitted(57, 160) Source(77, 39) + SourceIndex(0) -17>Emitted(57, 200) Source(77, 56) + SourceIndex(0) -18>Emitted(57, 207) Source(77, 88) + SourceIndex(0) -19>Emitted(57, 208) Source(77, 89) + SourceIndex(0) -20>Emitted(57, 211) Source(77, 92) + SourceIndex(0) -21>Emitted(57, 212) Source(77, 93) + SourceIndex(0) -22>Emitted(57, 214) Source(77, 95) + SourceIndex(0) -23>Emitted(57, 215) Source(77, 96) + SourceIndex(0) -24>Emitted(57, 218) Source(77, 99) + SourceIndex(0) -25>Emitted(57, 219) Source(77, 100) + SourceIndex(0) -26>Emitted(57, 221) Source(77, 102) + SourceIndex(0) -27>Emitted(57, 222) Source(77, 103) + SourceIndex(0) -28>Emitted(57, 224) Source(77, 105) + SourceIndex(0) -29>Emitted(57, 226) Source(77, 107) + SourceIndex(0) -30>Emitted(57, 227) Source(77, 108) + SourceIndex(0) +7 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"] = [2, "trimmer", "trimming"] +8 > +9 > numberA2 = -1 +10> +11> numberA2 = -1 +12> , +13> nameA2 = "name" +14> +15> nameA2 = "name" +16> , +17> skillA2 = "skill" +18> +19> skillA2 = "skill" +20> ] = [2, "trimmer", "trimming"], +21> i +22> = +23> 0 +24> ; +25> i +26> < +27> 1 +28> ; +29> i +30> ++ +31> ) +32> { +1->Emitted(65, 1) Source(77, 1) + SourceIndex(0) +2 >Emitted(65, 4) Source(77, 4) + SourceIndex(0) +3 >Emitted(65, 5) Source(77, 5) + SourceIndex(0) +4 >Emitted(65, 6) Source(77, 6) + SourceIndex(0) +5 >Emitted(65, 38) Source(77, 86) + SourceIndex(0) +6 >Emitted(65, 40) Source(77, 6) + SourceIndex(0) +7 >Emitted(65, 60) Source(77, 86) + SourceIndex(0) +8 >Emitted(65, 62) Source(77, 7) + SourceIndex(0) +9 >Emitted(65, 74) Source(77, 20) + SourceIndex(0) +10>Emitted(65, 76) Source(77, 7) + SourceIndex(0) +11>Emitted(65, 112) Source(77, 20) + SourceIndex(0) +12>Emitted(65, 114) Source(77, 22) + SourceIndex(0) +13>Emitted(65, 126) Source(77, 37) + SourceIndex(0) +14>Emitted(65, 128) Source(77, 22) + SourceIndex(0) +15>Emitted(65, 166) Source(77, 37) + SourceIndex(0) +16>Emitted(65, 168) Source(77, 39) + SourceIndex(0) +17>Emitted(65, 180) Source(77, 56) + SourceIndex(0) +18>Emitted(65, 182) Source(77, 39) + SourceIndex(0) +19>Emitted(65, 222) Source(77, 56) + SourceIndex(0) +20>Emitted(65, 229) Source(77, 88) + SourceIndex(0) +21>Emitted(65, 230) Source(77, 89) + SourceIndex(0) +22>Emitted(65, 233) Source(77, 92) + SourceIndex(0) +23>Emitted(65, 234) Source(77, 93) + SourceIndex(0) +24>Emitted(65, 236) Source(77, 95) + SourceIndex(0) +25>Emitted(65, 237) Source(77, 96) + SourceIndex(0) +26>Emitted(65, 240) Source(77, 99) + SourceIndex(0) +27>Emitted(65, 241) Source(77, 100) + SourceIndex(0) +28>Emitted(65, 243) Source(77, 102) + SourceIndex(0) +29>Emitted(65, 244) Source(77, 103) + SourceIndex(0) +30>Emitted(65, 246) Source(77, 105) + SourceIndex(0) +31>Emitted(65, 248) Source(77, 107) + SourceIndex(0) +32>Emitted(65, 249) Source(77, 108) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -2089,137 +2196,148 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameA2 7 > ) 8 > ; -1 >Emitted(58, 5) Source(78, 5) + SourceIndex(0) -2 >Emitted(58, 12) Source(78, 12) + SourceIndex(0) -3 >Emitted(58, 13) Source(78, 13) + SourceIndex(0) -4 >Emitted(58, 16) Source(78, 16) + SourceIndex(0) -5 >Emitted(58, 17) Source(78, 17) + SourceIndex(0) -6 >Emitted(58, 23) Source(78, 23) + SourceIndex(0) -7 >Emitted(58, 24) Source(78, 24) + SourceIndex(0) -8 >Emitted(58, 25) Source(78, 25) + SourceIndex(0) +1 >Emitted(66, 5) Source(78, 5) + SourceIndex(0) +2 >Emitted(66, 12) Source(78, 12) + SourceIndex(0) +3 >Emitted(66, 13) Source(78, 13) + SourceIndex(0) +4 >Emitted(66, 16) Source(78, 16) + SourceIndex(0) +5 >Emitted(66, 17) Source(78, 17) + SourceIndex(0) +6 >Emitted(66, 23) Source(78, 23) + SourceIndex(0) +7 >Emitted(66, 24) Source(78, 24) + SourceIndex(0) +8 >Emitted(66, 25) Source(78, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(59, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(79, 2) + SourceIndex(0) +1 >Emitted(67, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(67, 2) Source(79, 2) + SourceIndex(0) --- ->>>for (var _16 = multiRobotA[0], nameMA_1 = _16 === void 0 ? "noName" : _16, _17 = multiRobotA[1], _18 = _17 === void 0 ? ["none", "none"] : _17, _19 = _18[0], primarySkillA_1 = _19 === void 0 ? "primary" : _19, _20 = _18[1], secondarySkillA_1 = _20 === void 0 ? "secondary" : _20, i_1 = 0; i_1 < 1; i_1++) { +>>>for (var _31 = __read(multiRobotA, 2), _32 = _31[0], nameMA_1 = _32 === void 0 ? "noName" : _32, _33 = _31[1], _34 = __read(_33 === void 0 ? ["none", "none"] : _33, 2), _35 = _34[0], primarySkillA_1 = _35 === void 0 ? "primary" : _35, _36 = _34[1], secondarySkillA_1 = _36 === void 0 ? "secondary" : _36, i_1 = 0; i_1 < 1; i_1++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^ -19> ^^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -21> ^^ -22> ^^^ -23> ^^^ -24> ^ -25> ^^ -26> ^^^ -27> ^^^ -28> ^ -29> ^^ -30> ^^^ -31> ^^ -32> ^^ -33> ^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^^ +20> ^^^^^^^^^^^^ +21> ^^ +22> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23> ^^ +24> ^^^ +25> ^^^ +26> ^ +27> ^^ +28> ^^^ +29> ^^^ +30> ^ +31> ^^ +32> ^^^ +33> ^^ +34> ^^ +35> ^ 1-> > 2 >for 3 > 4 > (let - > [ + > 5 > -6 > nameMA = "noName" -7 > -8 > nameMA = "noName" -9 > , - > -10> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -11> +6 > [nameMA = "noName", + > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] + > ] = multiRobotA +7 > +8 > nameMA = "noName" +9 > +10> nameMA = "noName" +11> , + > 12> [ > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["none", "none"] -13> -14> primarySkillA = "primary" -15> -16> primarySkillA = "primary" -17> , - > -18> secondarySkillA = "secondary" -19> -20> secondarySkillA = "secondary" -21> - > ] = ["none", "none"] - > ] = multiRobotA, -22> i -23> = -24> 0 -25> ; -26> i -27> < -28> 1 -29> ; -30> i -31> ++ -32> ) -33> { -1->Emitted(60, 1) Source(80, 1) + SourceIndex(0) -2 >Emitted(60, 4) Source(80, 4) + SourceIndex(0) -3 >Emitted(60, 5) Source(80, 5) + SourceIndex(0) -4 >Emitted(60, 6) Source(81, 6) + SourceIndex(0) -5 >Emitted(60, 10) Source(81, 6) + SourceIndex(0) -6 >Emitted(60, 30) Source(81, 23) + SourceIndex(0) -7 >Emitted(60, 32) Source(81, 6) + SourceIndex(0) -8 >Emitted(60, 74) Source(81, 23) + SourceIndex(0) -9 >Emitted(60, 76) Source(82, 9) + SourceIndex(0) -10>Emitted(60, 96) Source(85, 29) + SourceIndex(0) -11>Emitted(60, 98) Source(82, 9) + SourceIndex(0) -12>Emitted(60, 143) Source(85, 29) + SourceIndex(0) -13>Emitted(60, 145) Source(83, 13) + SourceIndex(0) -14>Emitted(60, 157) Source(83, 38) + SourceIndex(0) -15>Emitted(60, 159) Source(83, 13) + SourceIndex(0) -16>Emitted(60, 209) Source(83, 38) + SourceIndex(0) -17>Emitted(60, 211) Source(84, 13) + SourceIndex(0) -18>Emitted(60, 223) Source(84, 42) + SourceIndex(0) -19>Emitted(60, 225) Source(84, 13) + SourceIndex(0) -20>Emitted(60, 279) Source(84, 42) + SourceIndex(0) -21>Emitted(60, 281) Source(86, 22) + SourceIndex(0) -22>Emitted(60, 284) Source(86, 23) + SourceIndex(0) -23>Emitted(60, 287) Source(86, 26) + SourceIndex(0) -24>Emitted(60, 288) Source(86, 27) + SourceIndex(0) -25>Emitted(60, 290) Source(86, 29) + SourceIndex(0) -26>Emitted(60, 293) Source(86, 30) + SourceIndex(0) -27>Emitted(60, 296) Source(86, 33) + SourceIndex(0) -28>Emitted(60, 297) Source(86, 34) + SourceIndex(0) -29>Emitted(60, 299) Source(86, 36) + SourceIndex(0) -30>Emitted(60, 302) Source(86, 37) + SourceIndex(0) -31>Emitted(60, 304) Source(86, 39) + SourceIndex(0) -32>Emitted(60, 306) Source(86, 41) + SourceIndex(0) -33>Emitted(60, 307) Source(86, 42) + SourceIndex(0) +13> +14> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +15> +16> primarySkillA = "primary" +17> +18> primarySkillA = "primary" +19> , + > +20> secondarySkillA = "secondary" +21> +22> secondarySkillA = "secondary" +23> + > ] = ["none", "none"] + > ] = multiRobotA, +24> i +25> = +26> 0 +27> ; +28> i +29> < +30> 1 +31> ; +32> i +33> ++ +34> ) +35> { +1->Emitted(68, 1) Source(80, 1) + SourceIndex(0) +2 >Emitted(68, 4) Source(80, 4) + SourceIndex(0) +3 >Emitted(68, 5) Source(80, 5) + SourceIndex(0) +4 >Emitted(68, 6) Source(81, 5) + SourceIndex(0) +5 >Emitted(68, 10) Source(81, 5) + SourceIndex(0) +6 >Emitted(68, 38) Source(86, 20) + SourceIndex(0) +7 >Emitted(68, 40) Source(81, 6) + SourceIndex(0) +8 >Emitted(68, 52) Source(81, 23) + SourceIndex(0) +9 >Emitted(68, 54) Source(81, 6) + SourceIndex(0) +10>Emitted(68, 96) Source(81, 23) + SourceIndex(0) +11>Emitted(68, 98) Source(82, 9) + SourceIndex(0) +12>Emitted(68, 110) Source(85, 29) + SourceIndex(0) +13>Emitted(68, 112) Source(82, 9) + SourceIndex(0) +14>Emitted(68, 168) Source(85, 29) + SourceIndex(0) +15>Emitted(68, 170) Source(83, 13) + SourceIndex(0) +16>Emitted(68, 182) Source(83, 38) + SourceIndex(0) +17>Emitted(68, 184) Source(83, 13) + SourceIndex(0) +18>Emitted(68, 234) Source(83, 38) + SourceIndex(0) +19>Emitted(68, 236) Source(84, 13) + SourceIndex(0) +20>Emitted(68, 248) Source(84, 42) + SourceIndex(0) +21>Emitted(68, 250) Source(84, 13) + SourceIndex(0) +22>Emitted(68, 304) Source(84, 42) + SourceIndex(0) +23>Emitted(68, 306) Source(86, 22) + SourceIndex(0) +24>Emitted(68, 309) Source(86, 23) + SourceIndex(0) +25>Emitted(68, 312) Source(86, 26) + SourceIndex(0) +26>Emitted(68, 313) Source(86, 27) + SourceIndex(0) +27>Emitted(68, 315) Source(86, 29) + SourceIndex(0) +28>Emitted(68, 318) Source(86, 30) + SourceIndex(0) +29>Emitted(68, 321) Source(86, 33) + SourceIndex(0) +30>Emitted(68, 322) Source(86, 34) + SourceIndex(0) +31>Emitted(68, 324) Source(86, 36) + SourceIndex(0) +32>Emitted(68, 327) Source(86, 37) + SourceIndex(0) +33>Emitted(68, 329) Source(86, 39) + SourceIndex(0) +34>Emitted(68, 331) Source(86, 41) + SourceIndex(0) +35>Emitted(68, 332) Source(86, 42) + SourceIndex(0) --- >>> console.log(nameMA_1); 1 >^^^^ @@ -2239,60 +2357,62 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameMA 7 > ) 8 > ; -1 >Emitted(61, 5) Source(87, 5) + SourceIndex(0) -2 >Emitted(61, 12) Source(87, 12) + SourceIndex(0) -3 >Emitted(61, 13) Source(87, 13) + SourceIndex(0) -4 >Emitted(61, 16) Source(87, 16) + SourceIndex(0) -5 >Emitted(61, 17) Source(87, 17) + SourceIndex(0) -6 >Emitted(61, 25) Source(87, 23) + SourceIndex(0) -7 >Emitted(61, 26) Source(87, 24) + SourceIndex(0) -8 >Emitted(61, 27) Source(87, 25) + SourceIndex(0) +1 >Emitted(69, 5) Source(87, 5) + SourceIndex(0) +2 >Emitted(69, 12) Source(87, 12) + SourceIndex(0) +3 >Emitted(69, 13) Source(87, 13) + SourceIndex(0) +4 >Emitted(69, 16) Source(87, 16) + SourceIndex(0) +5 >Emitted(69, 17) Source(87, 17) + SourceIndex(0) +6 >Emitted(69, 25) Source(87, 23) + SourceIndex(0) +7 >Emitted(69, 26) Source(87, 24) + SourceIndex(0) +8 >Emitted(69, 27) Source(87, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(62, 1) Source(88, 1) + SourceIndex(0) -2 >Emitted(62, 2) Source(88, 2) + SourceIndex(0) +1 >Emitted(70, 1) Source(88, 1) + SourceIndex(0) +2 >Emitted(70, 2) Source(88, 2) + SourceIndex(0) --- ->>>for (_21 = getMultiRobot(), _22 = _21[0], nameMA = _22 === void 0 ? "noName" : _22, _23 = _21[1], _24 = _23 === void 0 ? ["none", "none"] : _23, _25 = _24[0], primarySkillA = _25 === void 0 ? "primary" : _25, _26 = _24[1], secondarySkillA = _26 === void 0 ? "secondary" : _26, _21, i = 0; i < 1; i++) { +>>>for (_37 = getMultiRobot(), _38 = __read(_37, 2), _39 = _38[0], nameMA = _39 === void 0 ? "noName" : _39, _40 = _38[1], _41 = __read(_40 === void 0 ? ["none", "none"] : _40, 2), _42 = _41[0], primarySkillA = _42 === void 0 ? "primary" : _42, _43 = _41[1], secondarySkillA = _43 === void 0 ? "secondary" : _43, _37, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^ -20> ^^ -21> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -22> ^^^^^^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^^ -29> ^ -30> ^^ -31> ^ -32> ^^ -33> ^^ -34> ^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^ +21> ^^^^^^^^^^^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^^ +31> ^ +32> ^^ +33> ^ +34> ^^ +35> ^^ +36> ^ 1-> > 2 >for @@ -2305,78 +2425,87 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. > ] = ["none", "none"] > ] = getMultiRobot() 6 > -7 > nameMA = "noName" -8 > -9 > nameMA = "noName" -10> , - > -11> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -12> -13> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -14> -15> primarySkillA = "primary" -16> -17> primarySkillA = "primary" -18> , - > -19> secondarySkillA = "secondary" -20> -21> secondarySkillA = "secondary" -22> - > ] = ["none", "none"] - > ] = getMultiRobot(), -23> i -24> = -25> 0 -26> ; -27> i -28> < -29> 1 -30> ; -31> i -32> ++ -33> ) -34> { -1->Emitted(63, 1) Source(89, 1) + SourceIndex(0) -2 >Emitted(63, 4) Source(89, 4) + SourceIndex(0) -3 >Emitted(63, 5) Source(89, 5) + SourceIndex(0) -4 >Emitted(63, 6) Source(89, 6) + SourceIndex(0) -5 >Emitted(63, 27) Source(94, 20) + SourceIndex(0) -6 >Emitted(63, 29) Source(89, 7) + SourceIndex(0) -7 >Emitted(63, 41) Source(89, 24) + SourceIndex(0) -8 >Emitted(63, 43) Source(89, 7) + SourceIndex(0) -9 >Emitted(63, 83) Source(89, 24) + SourceIndex(0) -10>Emitted(63, 85) Source(90, 5) + SourceIndex(0) -11>Emitted(63, 97) Source(93, 25) + SourceIndex(0) -12>Emitted(63, 99) Source(90, 5) + SourceIndex(0) -13>Emitted(63, 144) Source(93, 25) + SourceIndex(0) -14>Emitted(63, 146) Source(91, 9) + SourceIndex(0) -15>Emitted(63, 158) Source(91, 34) + SourceIndex(0) -16>Emitted(63, 160) Source(91, 9) + SourceIndex(0) -17>Emitted(63, 208) Source(91, 34) + SourceIndex(0) -18>Emitted(63, 210) Source(92, 9) + SourceIndex(0) -19>Emitted(63, 222) Source(92, 38) + SourceIndex(0) -20>Emitted(63, 224) Source(92, 9) + SourceIndex(0) -21>Emitted(63, 276) Source(92, 38) + SourceIndex(0) -22>Emitted(63, 283) Source(94, 22) + SourceIndex(0) -23>Emitted(63, 284) Source(94, 23) + SourceIndex(0) -24>Emitted(63, 287) Source(94, 26) + SourceIndex(0) -25>Emitted(63, 288) Source(94, 27) + SourceIndex(0) -26>Emitted(63, 290) Source(94, 29) + SourceIndex(0) -27>Emitted(63, 291) Source(94, 30) + SourceIndex(0) -28>Emitted(63, 294) Source(94, 33) + SourceIndex(0) -29>Emitted(63, 295) Source(94, 34) + SourceIndex(0) -30>Emitted(63, 297) Source(94, 36) + SourceIndex(0) -31>Emitted(63, 298) Source(94, 37) + SourceIndex(0) -32>Emitted(63, 300) Source(94, 39) + SourceIndex(0) -33>Emitted(63, 302) Source(94, 41) + SourceIndex(0) -34>Emitted(63, 303) Source(94, 42) + SourceIndex(0) +7 > [nameMA = "noName", + > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] + > ] = getMultiRobot() +8 > +9 > nameMA = "noName" +10> +11> nameMA = "noName" +12> , + > +13> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +14> +15> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +16> +17> primarySkillA = "primary" +18> +19> primarySkillA = "primary" +20> , + > +21> secondarySkillA = "secondary" +22> +23> secondarySkillA = "secondary" +24> + > ] = ["none", "none"] + > ] = getMultiRobot(), +25> i +26> = +27> 0 +28> ; +29> i +30> < +31> 1 +32> ; +33> i +34> ++ +35> ) +36> { +1->Emitted(71, 1) Source(89, 1) + SourceIndex(0) +2 >Emitted(71, 4) Source(89, 4) + SourceIndex(0) +3 >Emitted(71, 5) Source(89, 5) + SourceIndex(0) +4 >Emitted(71, 6) Source(89, 6) + SourceIndex(0) +5 >Emitted(71, 27) Source(94, 20) + SourceIndex(0) +6 >Emitted(71, 29) Source(89, 6) + SourceIndex(0) +7 >Emitted(71, 49) Source(94, 20) + SourceIndex(0) +8 >Emitted(71, 51) Source(89, 7) + SourceIndex(0) +9 >Emitted(71, 63) Source(89, 24) + SourceIndex(0) +10>Emitted(71, 65) Source(89, 7) + SourceIndex(0) +11>Emitted(71, 105) Source(89, 24) + SourceIndex(0) +12>Emitted(71, 107) Source(90, 5) + SourceIndex(0) +13>Emitted(71, 119) Source(93, 25) + SourceIndex(0) +14>Emitted(71, 121) Source(90, 5) + SourceIndex(0) +15>Emitted(71, 177) Source(93, 25) + SourceIndex(0) +16>Emitted(71, 179) Source(91, 9) + SourceIndex(0) +17>Emitted(71, 191) Source(91, 34) + SourceIndex(0) +18>Emitted(71, 193) Source(91, 9) + SourceIndex(0) +19>Emitted(71, 241) Source(91, 34) + SourceIndex(0) +20>Emitted(71, 243) Source(92, 9) + SourceIndex(0) +21>Emitted(71, 255) Source(92, 38) + SourceIndex(0) +22>Emitted(71, 257) Source(92, 9) + SourceIndex(0) +23>Emitted(71, 309) Source(92, 38) + SourceIndex(0) +24>Emitted(71, 316) Source(94, 22) + SourceIndex(0) +25>Emitted(71, 317) Source(94, 23) + SourceIndex(0) +26>Emitted(71, 320) Source(94, 26) + SourceIndex(0) +27>Emitted(71, 321) Source(94, 27) + SourceIndex(0) +28>Emitted(71, 323) Source(94, 29) + SourceIndex(0) +29>Emitted(71, 324) Source(94, 30) + SourceIndex(0) +30>Emitted(71, 327) Source(94, 33) + SourceIndex(0) +31>Emitted(71, 328) Source(94, 34) + SourceIndex(0) +32>Emitted(71, 330) Source(94, 36) + SourceIndex(0) +33>Emitted(71, 331) Source(94, 37) + SourceIndex(0) +34>Emitted(71, 333) Source(94, 39) + SourceIndex(0) +35>Emitted(71, 335) Source(94, 41) + SourceIndex(0) +36>Emitted(71, 336) Source(94, 42) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2396,60 +2525,62 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameMA 7 > ) 8 > ; -1 >Emitted(64, 5) Source(95, 5) + SourceIndex(0) -2 >Emitted(64, 12) Source(95, 12) + SourceIndex(0) -3 >Emitted(64, 13) Source(95, 13) + SourceIndex(0) -4 >Emitted(64, 16) Source(95, 16) + SourceIndex(0) -5 >Emitted(64, 17) Source(95, 17) + SourceIndex(0) -6 >Emitted(64, 23) Source(95, 23) + SourceIndex(0) -7 >Emitted(64, 24) Source(95, 24) + SourceIndex(0) -8 >Emitted(64, 25) Source(95, 25) + SourceIndex(0) +1 >Emitted(72, 5) Source(95, 5) + SourceIndex(0) +2 >Emitted(72, 12) Source(95, 12) + SourceIndex(0) +3 >Emitted(72, 13) Source(95, 13) + SourceIndex(0) +4 >Emitted(72, 16) Source(95, 16) + SourceIndex(0) +5 >Emitted(72, 17) Source(95, 17) + SourceIndex(0) +6 >Emitted(72, 23) Source(95, 23) + SourceIndex(0) +7 >Emitted(72, 24) Source(95, 24) + SourceIndex(0) +8 >Emitted(72, 25) Source(95, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(65, 1) Source(96, 1) + SourceIndex(0) -2 >Emitted(65, 2) Source(96, 2) + SourceIndex(0) +1 >Emitted(73, 1) Source(96, 1) + SourceIndex(0) +2 >Emitted(73, 2) Source(96, 2) + SourceIndex(0) --- ->>>for (_27 = ["trimmer", ["trimming", "edging"]], _28 = _27[0], nameMA = _28 === void 0 ? "noName" : _28, _29 = _27[1], _30 = _29 === void 0 ? ["none", "none"] : _29, _31 = _30[0], primarySkillA = _31 === void 0 ? "primary" : _31, _32 = _30[1], secondarySkillA = _32 === void 0 ? "secondary" : _32, _27, i = 0; i < 1; i++) { +>>>for (_44 = ["trimmer", ["trimming", "edging"]], _45 = __read(_44, 2), _46 = _45[0], nameMA = _46 === void 0 ? "noName" : _46, _47 = _45[1], _48 = __read(_47 === void 0 ? ["none", "none"] : _47, 2), _49 = _48[0], primarySkillA = _49 === void 0 ? "primary" : _49, _50 = _48[1], secondarySkillA = _50 === void 0 ? "secondary" : _50, _44, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^ -20> ^^ -21> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -22> ^^^^^^^ -23> ^ -24> ^^^ -25> ^ -26> ^^ -27> ^ -28> ^^^ -29> ^ -30> ^^ -31> ^ -32> ^^ -33> ^^ -34> ^ +7 > ^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^^ +21> ^^^^^^^^^^^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^ +25> ^ +26> ^^^ +27> ^ +28> ^^ +29> ^ +30> ^^^ +31> ^ +32> ^^ +33> ^ +34> ^^ +35> ^^ +36> ^ 1-> > 2 >for @@ -2462,78 +2593,87 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. > ] = ["none", "none"] > ] = ["trimmer", ["trimming", "edging"]] 6 > -7 > nameMA = "noName" -8 > -9 > nameMA = "noName" -10> , - > -11> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -12> -13> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["none", "none"] -14> -15> primarySkillA = "primary" -16> -17> primarySkillA = "primary" -18> , - > -19> secondarySkillA = "secondary" -20> -21> secondarySkillA = "secondary" -22> - > ] = ["none", "none"] - > ] = ["trimmer", ["trimming", "edging"]], -23> i -24> = -25> 0 -26> ; -27> i -28> < -29> 1 -30> ; -31> i -32> ++ -33> ) -34> { -1->Emitted(66, 1) Source(97, 1) + SourceIndex(0) -2 >Emitted(66, 4) Source(97, 4) + SourceIndex(0) -3 >Emitted(66, 5) Source(97, 5) + SourceIndex(0) -4 >Emitted(66, 6) Source(97, 6) + SourceIndex(0) -5 >Emitted(66, 47) Source(102, 40) + SourceIndex(0) -6 >Emitted(66, 49) Source(97, 7) + SourceIndex(0) -7 >Emitted(66, 61) Source(97, 24) + SourceIndex(0) -8 >Emitted(66, 63) Source(97, 7) + SourceIndex(0) -9 >Emitted(66, 103) Source(97, 24) + SourceIndex(0) -10>Emitted(66, 105) Source(98, 5) + SourceIndex(0) -11>Emitted(66, 117) Source(101, 25) + SourceIndex(0) -12>Emitted(66, 119) Source(98, 5) + SourceIndex(0) -13>Emitted(66, 164) Source(101, 25) + SourceIndex(0) -14>Emitted(66, 166) Source(99, 9) + SourceIndex(0) -15>Emitted(66, 178) Source(99, 34) + SourceIndex(0) -16>Emitted(66, 180) Source(99, 9) + SourceIndex(0) -17>Emitted(66, 228) Source(99, 34) + SourceIndex(0) -18>Emitted(66, 230) Source(100, 9) + SourceIndex(0) -19>Emitted(66, 242) Source(100, 38) + SourceIndex(0) -20>Emitted(66, 244) Source(100, 9) + SourceIndex(0) -21>Emitted(66, 296) Source(100, 38) + SourceIndex(0) -22>Emitted(66, 303) Source(102, 42) + SourceIndex(0) -23>Emitted(66, 304) Source(102, 43) + SourceIndex(0) -24>Emitted(66, 307) Source(102, 46) + SourceIndex(0) -25>Emitted(66, 308) Source(102, 47) + SourceIndex(0) -26>Emitted(66, 310) Source(102, 49) + SourceIndex(0) -27>Emitted(66, 311) Source(102, 50) + SourceIndex(0) -28>Emitted(66, 314) Source(102, 53) + SourceIndex(0) -29>Emitted(66, 315) Source(102, 54) + SourceIndex(0) -30>Emitted(66, 317) Source(102, 56) + SourceIndex(0) -31>Emitted(66, 318) Source(102, 57) + SourceIndex(0) -32>Emitted(66, 320) Source(102, 59) + SourceIndex(0) -33>Emitted(66, 322) Source(102, 61) + SourceIndex(0) -34>Emitted(66, 323) Source(102, 62) + SourceIndex(0) +7 > [nameMA = "noName", + > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] + > ] = ["trimmer", ["trimming", "edging"]] +8 > +9 > nameMA = "noName" +10> +11> nameMA = "noName" +12> , + > +13> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +14> +15> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["none", "none"] +16> +17> primarySkillA = "primary" +18> +19> primarySkillA = "primary" +20> , + > +21> secondarySkillA = "secondary" +22> +23> secondarySkillA = "secondary" +24> + > ] = ["none", "none"] + > ] = ["trimmer", ["trimming", "edging"]], +25> i +26> = +27> 0 +28> ; +29> i +30> < +31> 1 +32> ; +33> i +34> ++ +35> ) +36> { +1->Emitted(74, 1) Source(97, 1) + SourceIndex(0) +2 >Emitted(74, 4) Source(97, 4) + SourceIndex(0) +3 >Emitted(74, 5) Source(97, 5) + SourceIndex(0) +4 >Emitted(74, 6) Source(97, 6) + SourceIndex(0) +5 >Emitted(74, 47) Source(102, 40) + SourceIndex(0) +6 >Emitted(74, 49) Source(97, 6) + SourceIndex(0) +7 >Emitted(74, 69) Source(102, 40) + SourceIndex(0) +8 >Emitted(74, 71) Source(97, 7) + SourceIndex(0) +9 >Emitted(74, 83) Source(97, 24) + SourceIndex(0) +10>Emitted(74, 85) Source(97, 7) + SourceIndex(0) +11>Emitted(74, 125) Source(97, 24) + SourceIndex(0) +12>Emitted(74, 127) Source(98, 5) + SourceIndex(0) +13>Emitted(74, 139) Source(101, 25) + SourceIndex(0) +14>Emitted(74, 141) Source(98, 5) + SourceIndex(0) +15>Emitted(74, 197) Source(101, 25) + SourceIndex(0) +16>Emitted(74, 199) Source(99, 9) + SourceIndex(0) +17>Emitted(74, 211) Source(99, 34) + SourceIndex(0) +18>Emitted(74, 213) Source(99, 9) + SourceIndex(0) +19>Emitted(74, 261) Source(99, 34) + SourceIndex(0) +20>Emitted(74, 263) Source(100, 9) + SourceIndex(0) +21>Emitted(74, 275) Source(100, 38) + SourceIndex(0) +22>Emitted(74, 277) Source(100, 9) + SourceIndex(0) +23>Emitted(74, 329) Source(100, 38) + SourceIndex(0) +24>Emitted(74, 336) Source(102, 42) + SourceIndex(0) +25>Emitted(74, 337) Source(102, 43) + SourceIndex(0) +26>Emitted(74, 340) Source(102, 46) + SourceIndex(0) +27>Emitted(74, 341) Source(102, 47) + SourceIndex(0) +28>Emitted(74, 343) Source(102, 49) + SourceIndex(0) +29>Emitted(74, 344) Source(102, 50) + SourceIndex(0) +30>Emitted(74, 347) Source(102, 53) + SourceIndex(0) +31>Emitted(74, 348) Source(102, 54) + SourceIndex(0) +32>Emitted(74, 350) Source(102, 56) + SourceIndex(0) +33>Emitted(74, 351) Source(102, 57) + SourceIndex(0) +34>Emitted(74, 353) Source(102, 59) + SourceIndex(0) +35>Emitted(74, 355) Source(102, 61) + SourceIndex(0) +36>Emitted(74, 356) Source(102, 62) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2553,100 +2693,106 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > nameMA 7 > ) 8 > ; -1 >Emitted(67, 5) Source(103, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(103, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(103, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(103, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(103, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(103, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(103, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(103, 25) + SourceIndex(0) +1 >Emitted(75, 5) Source(103, 5) + SourceIndex(0) +2 >Emitted(75, 12) Source(103, 12) + SourceIndex(0) +3 >Emitted(75, 13) Source(103, 13) + SourceIndex(0) +4 >Emitted(75, 16) Source(103, 16) + SourceIndex(0) +5 >Emitted(75, 17) Source(103, 17) + SourceIndex(0) +6 >Emitted(75, 23) Source(103, 23) + SourceIndex(0) +7 >Emitted(75, 24) Source(103, 24) + SourceIndex(0) +8 >Emitted(75, 25) Source(103, 25) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(68, 1) Source(104, 1) + SourceIndex(0) -2 >Emitted(68, 2) Source(104, 2) + SourceIndex(0) +1 >Emitted(76, 1) Source(104, 1) + SourceIndex(0) +2 >Emitted(76, 2) Source(104, 2) + SourceIndex(0) --- ->>>for (_33 = robotA[0], numberA3 = _33 === void 0 ? -1 : _33, robotAInfo = robotA.slice(1), robotA, i = 0; i < 1; i++) { +>>>for (_51 = __read(robotA), _52 = _51[0], numberA3 = _52 === void 0 ? -1 : _52, robotAInfo = _51.slice(1), robotA, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^ -12> ^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^ +14> ^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > > 2 >for 3 > -4 > ([ -5 > numberA3 = -1 -6 > -7 > numberA3 = -1 -8 > , -9 > ...robotAInfo -10> ] = -11> robotA -12> , -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(69, 1) Source(106, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(106, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(106, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(106, 7) + SourceIndex(0) -5 >Emitted(69, 21) Source(106, 20) + SourceIndex(0) -6 >Emitted(69, 23) Source(106, 7) + SourceIndex(0) -7 >Emitted(69, 59) Source(106, 20) + SourceIndex(0) -8 >Emitted(69, 61) Source(106, 22) + SourceIndex(0) -9 >Emitted(69, 89) Source(106, 35) + SourceIndex(0) -10>Emitted(69, 91) Source(106, 39) + SourceIndex(0) -11>Emitted(69, 97) Source(106, 45) + SourceIndex(0) -12>Emitted(69, 99) Source(106, 47) + SourceIndex(0) -13>Emitted(69, 100) Source(106, 48) + SourceIndex(0) -14>Emitted(69, 103) Source(106, 51) + SourceIndex(0) -15>Emitted(69, 104) Source(106, 52) + SourceIndex(0) -16>Emitted(69, 106) Source(106, 54) + SourceIndex(0) -17>Emitted(69, 107) Source(106, 55) + SourceIndex(0) -18>Emitted(69, 110) Source(106, 58) + SourceIndex(0) -19>Emitted(69, 111) Source(106, 59) + SourceIndex(0) -20>Emitted(69, 113) Source(106, 61) + SourceIndex(0) -21>Emitted(69, 114) Source(106, 62) + SourceIndex(0) -22>Emitted(69, 116) Source(106, 64) + SourceIndex(0) -23>Emitted(69, 118) Source(106, 66) + SourceIndex(0) -24>Emitted(69, 119) Source(106, 67) + SourceIndex(0) +4 > ( +5 > [numberA3 = -1, ...robotAInfo] = robotA +6 > +7 > numberA3 = -1 +8 > +9 > numberA3 = -1 +10> , +11> ...robotAInfo +12> ] = +13> robotA +14> , +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(77, 1) Source(106, 1) + SourceIndex(0) +2 >Emitted(77, 4) Source(106, 4) + SourceIndex(0) +3 >Emitted(77, 5) Source(106, 5) + SourceIndex(0) +4 >Emitted(77, 6) Source(106, 6) + SourceIndex(0) +5 >Emitted(77, 26) Source(106, 45) + SourceIndex(0) +6 >Emitted(77, 28) Source(106, 7) + SourceIndex(0) +7 >Emitted(77, 40) Source(106, 20) + SourceIndex(0) +8 >Emitted(77, 42) Source(106, 7) + SourceIndex(0) +9 >Emitted(77, 78) Source(106, 20) + SourceIndex(0) +10>Emitted(77, 80) Source(106, 22) + SourceIndex(0) +11>Emitted(77, 105) Source(106, 35) + SourceIndex(0) +12>Emitted(77, 107) Source(106, 39) + SourceIndex(0) +13>Emitted(77, 113) Source(106, 45) + SourceIndex(0) +14>Emitted(77, 115) Source(106, 47) + SourceIndex(0) +15>Emitted(77, 116) Source(106, 48) + SourceIndex(0) +16>Emitted(77, 119) Source(106, 51) + SourceIndex(0) +17>Emitted(77, 120) Source(106, 52) + SourceIndex(0) +18>Emitted(77, 122) Source(106, 54) + SourceIndex(0) +19>Emitted(77, 123) Source(106, 55) + SourceIndex(0) +20>Emitted(77, 126) Source(106, 58) + SourceIndex(0) +21>Emitted(77, 127) Source(106, 59) + SourceIndex(0) +22>Emitted(77, 129) Source(106, 61) + SourceIndex(0) +23>Emitted(77, 130) Source(106, 62) + SourceIndex(0) +24>Emitted(77, 132) Source(106, 64) + SourceIndex(0) +25>Emitted(77, 134) Source(106, 66) + SourceIndex(0) +26>Emitted(77, 135) Source(106, 67) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2666,50 +2812,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberA3 7 > ) 8 > ; -1 >Emitted(70, 5) Source(107, 5) + SourceIndex(0) -2 >Emitted(70, 12) Source(107, 12) + SourceIndex(0) -3 >Emitted(70, 13) Source(107, 13) + SourceIndex(0) -4 >Emitted(70, 16) Source(107, 16) + SourceIndex(0) -5 >Emitted(70, 17) Source(107, 17) + SourceIndex(0) -6 >Emitted(70, 25) Source(107, 25) + SourceIndex(0) -7 >Emitted(70, 26) Source(107, 26) + SourceIndex(0) -8 >Emitted(70, 27) Source(107, 27) + SourceIndex(0) +1 >Emitted(78, 5) Source(107, 5) + SourceIndex(0) +2 >Emitted(78, 12) Source(107, 12) + SourceIndex(0) +3 >Emitted(78, 13) Source(107, 13) + SourceIndex(0) +4 >Emitted(78, 16) Source(107, 16) + SourceIndex(0) +5 >Emitted(78, 17) Source(107, 17) + SourceIndex(0) +6 >Emitted(78, 25) Source(107, 25) + SourceIndex(0) +7 >Emitted(78, 26) Source(107, 26) + SourceIndex(0) +8 >Emitted(78, 27) Source(107, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(71, 1) Source(108, 1) + SourceIndex(0) -2 >Emitted(71, 2) Source(108, 2) + SourceIndex(0) +1 >Emitted(79, 1) Source(108, 1) + SourceIndex(0) +2 >Emitted(79, 2) Source(108, 2) + SourceIndex(0) --- ->>>for (_34 = getRobot(), _35 = _34[0], numberA3 = _35 === void 0 ? -1 : _35, robotAInfo = _34.slice(1), _34, i = 0; i < 1; i++) { +>>>for (_53 = getRobot(), _54 = __read(_53), _55 = _54[0], numberA3 = _55 === void 0 ? -1 : _55, robotAInfo = _54.slice(1), _53, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -2717,48 +2865,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [numberA3 = -1, ...robotAInfo] = getRobot() 6 > -7 > numberA3 = -1 -8 > -9 > numberA3 = -1 -10> , -11> ...robotAInfo -12> ] = getRobot(), -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(72, 1) Source(109, 1) + SourceIndex(0) -2 >Emitted(72, 4) Source(109, 4) + SourceIndex(0) -3 >Emitted(72, 5) Source(109, 5) + SourceIndex(0) -4 >Emitted(72, 6) Source(109, 6) + SourceIndex(0) -5 >Emitted(72, 22) Source(109, 49) + SourceIndex(0) -6 >Emitted(72, 24) Source(109, 7) + SourceIndex(0) -7 >Emitted(72, 36) Source(109, 20) + SourceIndex(0) -8 >Emitted(72, 38) Source(109, 7) + SourceIndex(0) -9 >Emitted(72, 74) Source(109, 20) + SourceIndex(0) -10>Emitted(72, 76) Source(109, 22) + SourceIndex(0) -11>Emitted(72, 101) Source(109, 35) + SourceIndex(0) -12>Emitted(72, 108) Source(109, 51) + SourceIndex(0) -13>Emitted(72, 109) Source(109, 52) + SourceIndex(0) -14>Emitted(72, 112) Source(109, 55) + SourceIndex(0) -15>Emitted(72, 113) Source(109, 56) + SourceIndex(0) -16>Emitted(72, 115) Source(109, 58) + SourceIndex(0) -17>Emitted(72, 116) Source(109, 59) + SourceIndex(0) -18>Emitted(72, 119) Source(109, 62) + SourceIndex(0) -19>Emitted(72, 120) Source(109, 63) + SourceIndex(0) -20>Emitted(72, 122) Source(109, 65) + SourceIndex(0) -21>Emitted(72, 123) Source(109, 66) + SourceIndex(0) -22>Emitted(72, 125) Source(109, 68) + SourceIndex(0) -23>Emitted(72, 127) Source(109, 70) + SourceIndex(0) -24>Emitted(72, 128) Source(109, 71) + SourceIndex(0) +7 > [numberA3 = -1, ...robotAInfo] = getRobot() +8 > +9 > numberA3 = -1 +10> +11> numberA3 = -1 +12> , +13> ...robotAInfo +14> ] = getRobot(), +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(80, 1) Source(109, 1) + SourceIndex(0) +2 >Emitted(80, 4) Source(109, 4) + SourceIndex(0) +3 >Emitted(80, 5) Source(109, 5) + SourceIndex(0) +4 >Emitted(80, 6) Source(109, 6) + SourceIndex(0) +5 >Emitted(80, 22) Source(109, 49) + SourceIndex(0) +6 >Emitted(80, 24) Source(109, 6) + SourceIndex(0) +7 >Emitted(80, 41) Source(109, 49) + SourceIndex(0) +8 >Emitted(80, 43) Source(109, 7) + SourceIndex(0) +9 >Emitted(80, 55) Source(109, 20) + SourceIndex(0) +10>Emitted(80, 57) Source(109, 7) + SourceIndex(0) +11>Emitted(80, 93) Source(109, 20) + SourceIndex(0) +12>Emitted(80, 95) Source(109, 22) + SourceIndex(0) +13>Emitted(80, 120) Source(109, 35) + SourceIndex(0) +14>Emitted(80, 127) Source(109, 51) + SourceIndex(0) +15>Emitted(80, 128) Source(109, 52) + SourceIndex(0) +16>Emitted(80, 131) Source(109, 55) + SourceIndex(0) +17>Emitted(80, 132) Source(109, 56) + SourceIndex(0) +18>Emitted(80, 134) Source(109, 58) + SourceIndex(0) +19>Emitted(80, 135) Source(109, 59) + SourceIndex(0) +20>Emitted(80, 138) Source(109, 62) + SourceIndex(0) +21>Emitted(80, 139) Source(109, 63) + SourceIndex(0) +22>Emitted(80, 141) Source(109, 65) + SourceIndex(0) +23>Emitted(80, 142) Source(109, 66) + SourceIndex(0) +24>Emitted(80, 144) Source(109, 68) + SourceIndex(0) +25>Emitted(80, 146) Source(109, 70) + SourceIndex(0) +26>Emitted(80, 147) Source(109, 71) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2778,50 +2930,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberA3 7 > ) 8 > ; -1 >Emitted(73, 5) Source(110, 5) + SourceIndex(0) -2 >Emitted(73, 12) Source(110, 12) + SourceIndex(0) -3 >Emitted(73, 13) Source(110, 13) + SourceIndex(0) -4 >Emitted(73, 16) Source(110, 16) + SourceIndex(0) -5 >Emitted(73, 17) Source(110, 17) + SourceIndex(0) -6 >Emitted(73, 25) Source(110, 25) + SourceIndex(0) -7 >Emitted(73, 26) Source(110, 26) + SourceIndex(0) -8 >Emitted(73, 27) Source(110, 27) + SourceIndex(0) +1 >Emitted(81, 5) Source(110, 5) + SourceIndex(0) +2 >Emitted(81, 12) Source(110, 12) + SourceIndex(0) +3 >Emitted(81, 13) Source(110, 13) + SourceIndex(0) +4 >Emitted(81, 16) Source(110, 16) + SourceIndex(0) +5 >Emitted(81, 17) Source(110, 17) + SourceIndex(0) +6 >Emitted(81, 25) Source(110, 25) + SourceIndex(0) +7 >Emitted(81, 26) Source(110, 26) + SourceIndex(0) +8 >Emitted(81, 27) Source(110, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(74, 1) Source(111, 1) + SourceIndex(0) -2 >Emitted(74, 2) Source(111, 2) + SourceIndex(0) +1 >Emitted(82, 1) Source(111, 1) + SourceIndex(0) +2 >Emitted(82, 2) Source(111, 2) + SourceIndex(0) --- ->>>for (_36 = [2, "trimmer", "trimming"], _37 = _36[0], numberA3 = _37 === void 0 ? -1 : _37, robotAInfo = _36.slice(1), _36, i = 0; i < 1; i++) { +>>>for (_56 = [2, "trimmer", "trimming"], _57 = __read(_56), _58 = _57[0], numberA3 = _58 === void 0 ? -1 : _58, robotAInfo = _57.slice(1), _56, i = 0; i < 1; i++) { 1-> 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^^^^^^ -13> ^ -14> ^^^ -15> ^ -16> ^^ -17> ^ -18> ^^^ -19> ^ -20> ^^ -21> ^ -22> ^^ -23> ^^ -24> ^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^ +14> ^^^^^^^ +15> ^ +16> ^^^ +17> ^ +18> ^^ +19> ^ +20> ^^^ +21> ^ +22> ^^ +23> ^ +24> ^^ +25> ^^ +26> ^ 1-> > 2 >for @@ -2829,48 +2983,52 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 4 > ( 5 > [numberA3 = -1, ...robotAInfo] = [2, "trimmer", "trimming"] 6 > -7 > numberA3 = -1 -8 > -9 > numberA3 = -1 -10> , -11> ...robotAInfo -12> ] = [2, "trimmer", "trimming"], -13> i -14> = -15> 0 -16> ; -17> i -18> < -19> 1 -20> ; -21> i -22> ++ -23> ) -24> { -1->Emitted(75, 1) Source(112, 1) + SourceIndex(0) -2 >Emitted(75, 4) Source(112, 4) + SourceIndex(0) -3 >Emitted(75, 5) Source(112, 5) + SourceIndex(0) -4 >Emitted(75, 6) Source(112, 6) + SourceIndex(0) -5 >Emitted(75, 38) Source(112, 72) + SourceIndex(0) -6 >Emitted(75, 40) Source(112, 7) + SourceIndex(0) -7 >Emitted(75, 52) Source(112, 20) + SourceIndex(0) -8 >Emitted(75, 54) Source(112, 7) + SourceIndex(0) -9 >Emitted(75, 90) Source(112, 20) + SourceIndex(0) -10>Emitted(75, 92) Source(112, 22) + SourceIndex(0) -11>Emitted(75, 117) Source(112, 35) + SourceIndex(0) -12>Emitted(75, 124) Source(112, 74) + SourceIndex(0) -13>Emitted(75, 125) Source(112, 75) + SourceIndex(0) -14>Emitted(75, 128) Source(112, 78) + SourceIndex(0) -15>Emitted(75, 129) Source(112, 79) + SourceIndex(0) -16>Emitted(75, 131) Source(112, 81) + SourceIndex(0) -17>Emitted(75, 132) Source(112, 82) + SourceIndex(0) -18>Emitted(75, 135) Source(112, 85) + SourceIndex(0) -19>Emitted(75, 136) Source(112, 86) + SourceIndex(0) -20>Emitted(75, 138) Source(112, 88) + SourceIndex(0) -21>Emitted(75, 139) Source(112, 89) + SourceIndex(0) -22>Emitted(75, 141) Source(112, 91) + SourceIndex(0) -23>Emitted(75, 143) Source(112, 93) + SourceIndex(0) -24>Emitted(75, 144) Source(112, 94) + SourceIndex(0) +7 > [numberA3 = -1, ...robotAInfo] = [2, "trimmer", "trimming"] +8 > +9 > numberA3 = -1 +10> +11> numberA3 = -1 +12> , +13> ...robotAInfo +14> ] = [2, "trimmer", "trimming"], +15> i +16> = +17> 0 +18> ; +19> i +20> < +21> 1 +22> ; +23> i +24> ++ +25> ) +26> { +1->Emitted(83, 1) Source(112, 1) + SourceIndex(0) +2 >Emitted(83, 4) Source(112, 4) + SourceIndex(0) +3 >Emitted(83, 5) Source(112, 5) + SourceIndex(0) +4 >Emitted(83, 6) Source(112, 6) + SourceIndex(0) +5 >Emitted(83, 38) Source(112, 72) + SourceIndex(0) +6 >Emitted(83, 40) Source(112, 6) + SourceIndex(0) +7 >Emitted(83, 57) Source(112, 72) + SourceIndex(0) +8 >Emitted(83, 59) Source(112, 7) + SourceIndex(0) +9 >Emitted(83, 71) Source(112, 20) + SourceIndex(0) +10>Emitted(83, 73) Source(112, 7) + SourceIndex(0) +11>Emitted(83, 109) Source(112, 20) + SourceIndex(0) +12>Emitted(83, 111) Source(112, 22) + SourceIndex(0) +13>Emitted(83, 136) Source(112, 35) + SourceIndex(0) +14>Emitted(83, 143) Source(112, 74) + SourceIndex(0) +15>Emitted(83, 144) Source(112, 75) + SourceIndex(0) +16>Emitted(83, 147) Source(112, 78) + SourceIndex(0) +17>Emitted(83, 148) Source(112, 79) + SourceIndex(0) +18>Emitted(83, 150) Source(112, 81) + SourceIndex(0) +19>Emitted(83, 151) Source(112, 82) + SourceIndex(0) +20>Emitted(83, 154) Source(112, 85) + SourceIndex(0) +21>Emitted(83, 155) Source(112, 86) + SourceIndex(0) +22>Emitted(83, 157) Source(112, 88) + SourceIndex(0) +23>Emitted(83, 158) Source(112, 89) + SourceIndex(0) +24>Emitted(83, 160) Source(112, 91) + SourceIndex(0) +25>Emitted(83, 162) Source(112, 93) + SourceIndex(0) +26>Emitted(83, 163) Source(112, 94) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2890,24 +3048,24 @@ sourceFile:sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2. 6 > numberA3 7 > ) 8 > ; -1 >Emitted(76, 5) Source(113, 5) + SourceIndex(0) -2 >Emitted(76, 12) Source(113, 12) + SourceIndex(0) -3 >Emitted(76, 13) Source(113, 13) + SourceIndex(0) -4 >Emitted(76, 16) Source(113, 16) + SourceIndex(0) -5 >Emitted(76, 17) Source(113, 17) + SourceIndex(0) -6 >Emitted(76, 25) Source(113, 25) + SourceIndex(0) -7 >Emitted(76, 26) Source(113, 26) + SourceIndex(0) -8 >Emitted(76, 27) Source(113, 27) + SourceIndex(0) +1 >Emitted(84, 5) Source(113, 5) + SourceIndex(0) +2 >Emitted(84, 12) Source(113, 12) + SourceIndex(0) +3 >Emitted(84, 13) Source(113, 13) + SourceIndex(0) +4 >Emitted(84, 16) Source(113, 16) + SourceIndex(0) +5 >Emitted(84, 17) Source(113, 17) + SourceIndex(0) +6 >Emitted(84, 25) Source(113, 25) + SourceIndex(0) +7 >Emitted(84, 26) Source(113, 26) + SourceIndex(0) +8 >Emitted(84, 27) Source(113, 27) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(77, 1) Source(114, 1) + SourceIndex(0) -2 >Emitted(77, 2) Source(114, 2) + SourceIndex(0) +1 >Emitted(85, 1) Source(114, 1) + SourceIndex(0) +2 >Emitted(85, 2) Source(114, 2) + SourceIndex(0) --- ->>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37; +>>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58; >>>//# sourceMappingURL=sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js index daf39ece7be0d..70a2ebea25c63 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js @@ -96,6 +96,25 @@ for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) { } //// [sourceMapValidationDestructuringForOfArrayBindingPattern.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var robots = [robotA, robotB]; @@ -108,100 +127,197 @@ var multiRobots = [multiRobotA, multiRobotB]; function getMultiRobots() { return multiRobots; } -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - var _a = robots_1[_i], nameA = _a[1]; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + var _a = __read(robots_1.result.value, 2), nameA = _a[1]; + console.log(nameA); + } } -for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { - var _d = _c[_b], nameA = _d[1]; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + var _b = __read(iterator_1.result.value, 2), nameA = _b[1]; + console.log(nameA); + } +} +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } } -for (var _e = 0, _f = [robotA, robotB]; _e < _f.length; _e++) { - var _g = _f[_e], nameA = _g[1]; +for (var _i = 0, _c = [robotA, robotB]; _i < _c.length; _i++) { + var _d = __read(_c[_i], 2), nameA = _d[1]; console.log(nameA); } -for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { - var _j = multiRobots_1[_h], _k = _j[1], primarySkillA = _k[0], secondarySkillA = _k[1]; - console.log(primarySkillA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + var _e = __read(multiRobots_1.result.value, 2), _f = __read(_e[1], 2), primarySkillA = _f[0], secondarySkillA = _f[1]; + console.log(primarySkillA); + } } -for (var _l = 0, _m = getMultiRobots(); _l < _m.length; _l++) { - var _o = _m[_l], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1]; - console.log(primarySkillA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + var _g = __read(iterator_2.result.value, 2), _h = __read(_g[1], 2), primarySkillA = _h[0], secondarySkillA = _h[1]; + console.log(primarySkillA); + } +} +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _q = 0, _r = [multiRobotA, multiRobotB]; _q < _r.length; _q++) { - var _s = _r[_q], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1]; +for (var _j = 0, _k = [multiRobotA, multiRobotB]; _j < _k.length; _j++) { + var _l = __read(_k[_j], 2), _m = __read(_l[1], 2), primarySkillA = _m[0], secondarySkillA = _m[1]; console.log(primarySkillA); } -for (var _u = 0, robots_2 = robots; _u < robots_2.length; _u++) { - var numberB = robots_2[_u][0]; - console.log(numberB); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + var _o = __read(robots_2.result.value, 1), numberB = _o[0]; + console.log(numberB); + } } -for (var _v = 0, _w = getRobots(); _v < _w.length; _v++) { - var numberB = _w[_v][0]; - console.log(numberB); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +} +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + var _p = __read(iterator_3.result.value, 1), numberB = _p[0]; + console.log(numberB); + } +} +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } } -for (var _x = 0, _y = [robotA, robotB]; _x < _y.length; _x++) { - var numberB = _y[_x][0]; +for (var _q = 0, _r = [robotA, robotB]; _q < _r.length; _q++) { + var _s = __read(_r[_q], 1), numberB = _s[0]; console.log(numberB); } -for (var _z = 0, multiRobots_2 = multiRobots; _z < multiRobots_2.length; _z++) { - var nameB = multiRobots_2[_z][0]; - console.log(nameB); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + var _t = __read(multiRobots_2.result.value, 1), nameB = _t[0]; + console.log(nameB); + } } -for (var _0 = 0, _1 = getMultiRobots(); _0 < _1.length; _0++) { - var nameB = _1[_0][0]; - console.log(nameB); +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +} +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + var _u = __read(iterator_4.result.value, 1), nameB = _u[0]; + console.log(nameB); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } } -for (var _2 = 0, _3 = [multiRobotA, multiRobotB]; _2 < _3.length; _2++) { - var nameB = _3[_2][0]; +for (var _v = 0, _w = [multiRobotA, multiRobotB]; _v < _w.length; _v++) { + var _x = __read(_w[_v], 1), nameB = _x[0]; console.log(nameB); } -for (var _4 = 0, robots_3 = robots; _4 < robots_3.length; _4++) { - var _5 = robots_3[_4], numberA2 = _5[0], nameA2 = _5[1], skillA2 = _5[2]; - console.log(nameA2); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + var _y = __read(robots_3.result.value, 3), numberA2 = _y[0], nameA2 = _y[1], skillA2 = _y[2]; + console.log(nameA2); + } } -for (var _6 = 0, _7 = getRobots(); _6 < _7.length; _6++) { - var _8 = _7[_6], numberA2 = _8[0], nameA2 = _8[1], skillA2 = _8[2]; - console.log(nameA2); +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +} +try { + for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { + var _z = __read(iterator_5.result.value, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2]; + console.log(nameA2); + } +} +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } } -for (var _9 = 0, _10 = [robotA, robotB]; _9 < _10.length; _9++) { - var _11 = _10[_9], numberA2 = _11[0], nameA2 = _11[1], skillA2 = _11[2]; +for (var _0 = 0, _1 = [robotA, robotB]; _0 < _1.length; _0++) { + var _2 = __read(_1[_0], 3), numberA2 = _2[0], nameA2 = _2[1], skillA2 = _2[2]; console.log(nameA2); } -for (var _12 = 0, multiRobots_3 = multiRobots; _12 < multiRobots_3.length; _12++) { - var _13 = multiRobots_3[_12], nameMA = _13[0], _14 = _13[1], primarySkillA = _14[0], secondarySkillA = _14[1]; - console.log(nameMA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + var _3 = __read(multiRobots_3.result.value, 2), nameMA = _3[0], _4 = __read(_3[1], 2), primarySkillA = _4[0], secondarySkillA = _4[1]; + console.log(nameMA); + } } -for (var _15 = 0, _16 = getMultiRobots(); _15 < _16.length; _15++) { - var _17 = _16[_15], nameMA = _17[0], _18 = _17[1], primarySkillA = _18[0], secondarySkillA = _18[1]; - console.log(nameMA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +} +try { + for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { + var _5 = __read(iterator_6.result.value, 2), nameMA = _5[0], _6 = __read(_5[1], 2), primarySkillA = _6[0], secondarySkillA = _6[1]; + console.log(nameMA); + } +} +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } } -for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { - var _21 = _20[_19], nameMA = _21[0], _22 = _21[1], primarySkillA = _22[0], secondarySkillA = _22[1]; +for (var _7 = 0, _8 = [multiRobotA, multiRobotB]; _7 < _8.length; _7++) { + var _9 = __read(_8[_7], 2), nameMA = _9[0], _10 = __read(_9[1], 2), primarySkillA = _10[0], secondarySkillA = _10[1]; console.log(nameMA); } -for (var _23 = 0, robots_4 = robots; _23 < robots_4.length; _23++) { - var _24 = robots_4[_23], numberA3 = _24[0], robotAInfo = _24.slice(1); - console.log(numberA3); +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + var _11 = __read(robots_4.result.value), numberA3 = _11[0], robotAInfo = _11.slice(1); + console.log(numberA3); + } } -for (var _25 = 0, _26 = getRobots(); _25 < _26.length; _25++) { - var _27 = _26[_25], numberA3 = _27[0], robotAInfo = _27.slice(1); - console.log(numberA3); +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +} +try { + for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { + var _12 = __read(iterator_7.result.value), numberA3 = _12[0], robotAInfo = _12.slice(1); + console.log(numberA3); + } +} +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } } -for (var _28 = 0, _29 = [robotA, robotB]; _28 < _29.length; _28++) { - var _30 = _29[_28], numberA3 = _30[0], robotAInfo = _30.slice(1); +for (var _13 = 0, _14 = [robotA, robotB]; _13 < _14.length; _13++) { + var _15 = __read(_14[_13]), numberA3 = _15[0], robotAInfo = _15.slice(1); console.log(numberA3); } -for (var _31 = 0, multiRobots_4 = multiRobots; _31 < multiRobots_4.length; _31++) { - var multiRobotAInfo = multiRobots_4[_31].slice(0); - console.log(multiRobotAInfo); +try { + for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { + var _16 = __read(multiRobots_4.result.value), multiRobotAInfo = _16.slice(0); + console.log(multiRobotAInfo); + } } -for (var _32 = 0, _33 = getMultiRobots(); _32 < _33.length; _32++) { - var multiRobotAInfo = _33[_32].slice(0); - console.log(multiRobotAInfo); +catch (e_15_1) { e_15 = { error: e_15_1 }; } +finally { + try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +} +try { + for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { + var _17 = __read(iterator_8.result.value), multiRobotAInfo = _17.slice(0); + console.log(multiRobotAInfo); + } +} +catch (e_16_1) { e_16 = { error: e_16_1 }; } +finally { + try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } } -for (var _34 = 0, _35 = [multiRobotA, multiRobotB]; _34 < _35.length; _34++) { - var multiRobotAInfo = _35[_34].slice(0); +for (var _18 = 0, _19 = [multiRobotA, multiRobotB]; _18 < _19.length; _18++) { + var _20 = __read(_19[_18]), multiRobotAInfo = _20.slice(0); console.log(multiRobotAInfo); } +var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10, e_11, e_12, e_13, e_14, e_15, e_16; //# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js.map index f9218ab62eb18..5a14dcd32e2a9 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfArrayBindingPattern.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPattern.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAkB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAnB,IAAA,iBAAS,EAAN,aAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAxB,IAAA,WAAS,EAAN,aAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA7B,IAAA,WAAS,EAAN,aAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6C,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAAnD,IAAA,sBAAoC,EAAjC,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAA6C,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAAxD,IAAA,WAAoC,EAAjC,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAA6C,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAAlE,IAAA,WAAoC,EAAjC,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED,GAAG,CAAC,CAAkB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAlB,IAAA,yBAAO;IACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAkB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAvB,IAAA,mBAAO;IACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAkB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA5B,IAAA,mBAAO;IACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAgB,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAArB,IAAA,4BAAK;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAgB,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAA1B,IAAA,iBAAK;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAgB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAApC,IAAA,iBAAK;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AAED,GAAG,CAAC,CAAoC,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAArC,IAAA,iBAA2B,EAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAoC,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA1C,IAAA,WAA2B,EAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAoC,UAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,eAAgB,EAAhB,IAAgB;IAA/C,IAAA,aAA2B,EAA1B,iBAAQ,EAAE,eAAM,EAAE,gBAAO;IAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAmD,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAAzD,IAAA,wBAA0C,EAAzC,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAmD,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAA9D,IAAA,cAA0C,EAAzC,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAmD,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAAxE,IAAA,cAA0C,EAAzC,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,GAAG,CAAC,CAAkC,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;IAAnC,IAAA,mBAAyB,EAAxB,iBAAQ,EAAE,yBAAa;IAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAkC,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;IAAxC,IAAA,cAAyB,EAAxB,iBAAQ,EAAE,yBAAa;IAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAkC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAA7C,IAAA,cAAyB,EAAxB,iBAAQ,EAAE,yBAAa;IAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAA6B,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAAlC,IAAA,6CAAkB;IACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC;AACD,GAAG,CAAC,CAA6B,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAAvC,IAAA,mCAAkB;IACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC;AACD,GAAG,CAAC,CAA6B,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAAjD,IAAA,mCAAkB;IACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPattern.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;;IAED,GAAG,CAAC,CAAkB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAvB,gBAAa;QAAT,IAAA,qCAAS,EAAN,aAAK;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAkB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA5B,kBAAa;QAAT,IAAA,uCAAS,EAAN,aAAK;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAkB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA7B,IAAA,sBAAS,EAAN,aAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAA6C,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAvD,qBAAwC;QAApC,IAAA,0CAAoC,EAAjC,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;;IACD,GAAG,CAAC,CAA6C,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA5D,kBAAwC;QAApC,IAAA,uCAAoC,EAAjC,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;AACD,GAAG,CAAC,CAA6C,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAAlE,IAAA,sBAAoC,EAAjC,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACvC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;;IAED,GAAG,CAAC,CAAkB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAvB,gBAAa;QAAT,IAAA,qCAAS,EAAR,eAAO;QACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;;IACD,GAAG,CAAC,CAAkB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA5B,kBAAa;QAAT,IAAA,uCAAS,EAAR,eAAO;QACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;AACD,GAAG,CAAC,CAAkB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA7B,IAAA,sBAAS,EAAR,eAAO;IACb,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;;IACD,GAAG,CAAC,CAAgB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAA1B,qBAAW;QAAP,IAAA,0CAAO,EAAN,aAAK;QACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAgB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA/B,kBAAW;QAAP,IAAA,uCAAO,EAAN,aAAK;QACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAgB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAArC,IAAA,sBAAO,EAAN,aAAK;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IAED,GAAG,CAAC,CAAoC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAzC,gBAA+B;QAA3B,IAAA,qCAA2B,EAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;QAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAAoC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA9C,kBAA+B;QAA3B,IAAA,uCAA2B,EAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;QAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAAoC,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA/C,IAAA,sBAA2B,EAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IACD,GAAG,CAAC,CAAmD,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAA7D,qBAA8C;QAA1C,IAAA,0CAA0C,EAAzC,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAAmD,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAlE,kBAA8C;QAA1C,IAAA,uCAA0C,EAAzC,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAAmD,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAAxE,IAAA,sBAA0C,EAAzC,cAAM,EAAE,sBAAgC,EAA/B,sBAAa,EAAE,wBAAe;IAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IAED,GAAG,CAAC,CAAkC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAvC,gBAA6B;QAAzB,IAAA,mCAAyB,EAAxB,iBAAQ,EAAE,yBAAa;QAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAAkC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA5C,kBAA6B;QAAzB,IAAA,qCAAyB,EAAxB,iBAAQ,EAAE,yBAAa;QAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAAkC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAA7C,IAAA,sBAAyB,EAAxB,iBAAQ,EAAE,yBAAa;IAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IACD,GAAG,CAAC,CAA6B,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAvC,qBAAwB;QAApB,IAAA,wCAAoB,EAAnB,8BAAkB;QACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;KAChC;;;;;;;IACD,GAAG,CAAC,CAA6B,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA5C,kBAAwB;QAApB,IAAA,qCAAoB,EAAnB,8BAAkB;QACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;KAChC;;;;;;AACD,GAAG,CAAC,CAA6B,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAAlD,IAAA,sBAAoB,EAAnB,8BAAkB;IACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.sourcemap.txt index 9c039efbea8f0..187c1d663c600 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern.sourcemap.txt @@ -8,6 +8,25 @@ sources: sourceMapValidationDestructuringForOfArrayBindingPattern.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPattern.js sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +59,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(20, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(20, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(20, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(20, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(20, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(20, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(20, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(20, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(20, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(20, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -79,18 +98,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(21, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(21, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(21, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(21, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(21, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(21, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(21, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(21, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(21, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(21, 41) Source(8, 48) + SourceIndex(0) --- >>>var robots = [robotA, robotB]; 1 > @@ -114,23 +133,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 8 > robotB 9 > ] 10> ; -1 >Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(9, 15) + SourceIndex(0) -6 >Emitted(3, 21) Source(9, 21) + SourceIndex(0) -7 >Emitted(3, 23) Source(9, 23) + SourceIndex(0) -8 >Emitted(3, 29) Source(9, 29) + SourceIndex(0) -9 >Emitted(3, 30) Source(9, 30) + SourceIndex(0) -10>Emitted(3, 31) Source(9, 31) + SourceIndex(0) +1 >Emitted(22, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(22, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(22, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(22, 15) Source(9, 15) + SourceIndex(0) +6 >Emitted(22, 21) Source(9, 21) + SourceIndex(0) +7 >Emitted(22, 23) Source(9, 23) + SourceIndex(0) +8 >Emitted(22, 29) Source(9, 29) + SourceIndex(0) +9 >Emitted(22, 30) Source(9, 30) + SourceIndex(0) +10>Emitted(22, 31) Source(9, 31) + SourceIndex(0) --- >>>function getRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) +1 >Emitted(23, 1) Source(10, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -144,11 +163,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(11, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(11, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) +1->Emitted(24, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(24, 11) Source(11, 11) + SourceIndex(0) +3 >Emitted(24, 12) Source(11, 12) + SourceIndex(0) +4 >Emitted(24, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(24, 19) Source(11, 19) + SourceIndex(0) --- >>>} 1 > @@ -157,8 +176,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(12, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(12, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -192,20 +211,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 12> ] 13> ] 14> ; -1->Emitted(7, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(14, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(14, 16) + SourceIndex(0) -4 >Emitted(7, 19) Source(14, 38) + SourceIndex(0) -5 >Emitted(7, 20) Source(14, 39) + SourceIndex(0) -6 >Emitted(7, 27) Source(14, 46) + SourceIndex(0) -7 >Emitted(7, 29) Source(14, 48) + SourceIndex(0) -8 >Emitted(7, 30) Source(14, 49) + SourceIndex(0) -9 >Emitted(7, 38) Source(14, 57) + SourceIndex(0) -10>Emitted(7, 40) Source(14, 59) + SourceIndex(0) -11>Emitted(7, 42) Source(14, 61) + SourceIndex(0) -12>Emitted(7, 43) Source(14, 62) + SourceIndex(0) -13>Emitted(7, 44) Source(14, 63) + SourceIndex(0) -14>Emitted(7, 45) Source(14, 64) + SourceIndex(0) +1->Emitted(26, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(26, 16) Source(14, 16) + SourceIndex(0) +4 >Emitted(26, 19) Source(14, 38) + SourceIndex(0) +5 >Emitted(26, 20) Source(14, 39) + SourceIndex(0) +6 >Emitted(26, 27) Source(14, 46) + SourceIndex(0) +7 >Emitted(26, 29) Source(14, 48) + SourceIndex(0) +8 >Emitted(26, 30) Source(14, 49) + SourceIndex(0) +9 >Emitted(26, 38) Source(14, 57) + SourceIndex(0) +10>Emitted(26, 40) Source(14, 59) + SourceIndex(0) +11>Emitted(26, 42) Source(14, 61) + SourceIndex(0) +12>Emitted(26, 43) Source(14, 62) + SourceIndex(0) +13>Emitted(26, 44) Source(14, 63) + SourceIndex(0) +14>Emitted(26, 45) Source(14, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -237,20 +256,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 12> ] 13> ] 14> ; -1->Emitted(8, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(8, 16) Source(15, 16) + SourceIndex(0) -4 >Emitted(8, 19) Source(15, 38) + SourceIndex(0) -5 >Emitted(8, 20) Source(15, 39) + SourceIndex(0) -6 >Emitted(8, 29) Source(15, 48) + SourceIndex(0) -7 >Emitted(8, 31) Source(15, 50) + SourceIndex(0) -8 >Emitted(8, 32) Source(15, 51) + SourceIndex(0) -9 >Emitted(8, 42) Source(15, 61) + SourceIndex(0) -10>Emitted(8, 44) Source(15, 63) + SourceIndex(0) -11>Emitted(8, 52) Source(15, 71) + SourceIndex(0) -12>Emitted(8, 53) Source(15, 72) + SourceIndex(0) -13>Emitted(8, 54) Source(15, 73) + SourceIndex(0) -14>Emitted(8, 55) Source(15, 74) + SourceIndex(0) +1->Emitted(27, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(27, 16) Source(15, 16) + SourceIndex(0) +4 >Emitted(27, 19) Source(15, 38) + SourceIndex(0) +5 >Emitted(27, 20) Source(15, 39) + SourceIndex(0) +6 >Emitted(27, 29) Source(15, 48) + SourceIndex(0) +7 >Emitted(27, 31) Source(15, 50) + SourceIndex(0) +8 >Emitted(27, 32) Source(15, 51) + SourceIndex(0) +9 >Emitted(27, 42) Source(15, 61) + SourceIndex(0) +10>Emitted(27, 44) Source(15, 63) + SourceIndex(0) +11>Emitted(27, 52) Source(15, 71) + SourceIndex(0) +12>Emitted(27, 53) Source(15, 72) + SourceIndex(0) +13>Emitted(27, 54) Source(15, 73) + SourceIndex(0) +14>Emitted(27, 55) Source(15, 74) + SourceIndex(0) --- >>>var multiRobots = [multiRobotA, multiRobotB]; 1 > @@ -274,23 +293,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 8 > multiRobotB 9 > ] 10> ; -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(9, 16) Source(16, 16) + SourceIndex(0) -4 >Emitted(9, 19) Source(16, 19) + SourceIndex(0) -5 >Emitted(9, 20) Source(16, 20) + SourceIndex(0) -6 >Emitted(9, 31) Source(16, 31) + SourceIndex(0) -7 >Emitted(9, 33) Source(16, 33) + SourceIndex(0) -8 >Emitted(9, 44) Source(16, 44) + SourceIndex(0) -9 >Emitted(9, 45) Source(16, 45) + SourceIndex(0) -10>Emitted(9, 46) Source(16, 46) + SourceIndex(0) +1 >Emitted(28, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(28, 16) Source(16, 16) + SourceIndex(0) +4 >Emitted(28, 19) Source(16, 19) + SourceIndex(0) +5 >Emitted(28, 20) Source(16, 20) + SourceIndex(0) +6 >Emitted(28, 31) Source(16, 31) + SourceIndex(0) +7 >Emitted(28, 33) Source(16, 33) + SourceIndex(0) +8 >Emitted(28, 44) Source(16, 44) + SourceIndex(0) +9 >Emitted(28, 45) Source(16, 45) + SourceIndex(0) +10>Emitted(28, 46) Source(16, 46) + SourceIndex(0) --- >>>function getMultiRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(10, 1) Source(17, 1) + SourceIndex(0) +1 >Emitted(29, 1) Source(17, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -304,205 +323,230 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 3 > 4 > multiRobots 5 > ; -1->Emitted(11, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(11, 11) Source(18, 11) + SourceIndex(0) -3 >Emitted(11, 12) Source(18, 12) + SourceIndex(0) -4 >Emitted(11, 23) Source(18, 23) + SourceIndex(0) -5 >Emitted(11, 24) Source(18, 24) + SourceIndex(0) +1->Emitted(30, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(30, 11) Source(18, 11) + SourceIndex(0) +3 >Emitted(30, 12) Source(18, 12) + SourceIndex(0) +4 >Emitted(30, 23) Source(18, 23) + SourceIndex(0) +5 >Emitted(30, 24) Source(18, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^-> 1 > > 2 >} -1 >Emitted(12, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(19, 2) + SourceIndex(0) --- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > > -2 >for -3 > -4 > (let [, nameA] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 4) Source(21, 4) + SourceIndex(0) -3 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -4 >Emitted(13, 6) Source(21, 23) + SourceIndex(0) -5 >Emitted(13, 16) Source(21, 29) + SourceIndex(0) -6 >Emitted(13, 18) Source(21, 23) + SourceIndex(0) -7 >Emitted(13, 35) Source(21, 29) + SourceIndex(0) -8 >Emitted(13, 37) Source(21, 23) + SourceIndex(0) -9 >Emitted(13, 57) Source(21, 29) + SourceIndex(0) -10>Emitted(13, 59) Source(21, 23) + SourceIndex(0) -11>Emitted(13, 63) Source(21, 29) + SourceIndex(0) ---- ->>> var _a = robots_1[_i], nameA = _a[1]; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [, nameA] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [, nameA] +1->Emitted(33, 5) Source(21, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(21, 4) + SourceIndex(0) +3 >Emitted(33, 9) Source(21, 5) + SourceIndex(0) +4 >Emitted(33, 10) Source(21, 23) + SourceIndex(0) +5 >Emitted(33, 14) Source(21, 23) + SourceIndex(0) +6 >Emitted(33, 25) Source(21, 23) + SourceIndex(0) +7 >Emitted(33, 27) Source(21, 23) + SourceIndex(0) +8 >Emitted(33, 37) Source(21, 23) + SourceIndex(0) +9 >Emitted(33, 46) Source(21, 23) + SourceIndex(0) +10>Emitted(33, 52) Source(21, 29) + SourceIndex(0) +11>Emitted(33, 53) Source(21, 29) + SourceIndex(0) +12>Emitted(33, 55) Source(21, 29) + SourceIndex(0) +13>Emitted(33, 57) Source(21, 6) + SourceIndex(0) +14>Emitted(33, 73) Source(21, 19) + SourceIndex(0) +--- +>>> var _a = __read(robots_1.result.value, 2), nameA = _a[1]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > -2 > -3 > [, nameA] -4 > -5 > nameA -1 >Emitted(14, 5) Source(21, 10) + SourceIndex(0) -2 >Emitted(14, 9) Source(21, 10) + SourceIndex(0) -3 >Emitted(14, 26) Source(21, 19) + SourceIndex(0) -4 >Emitted(14, 28) Source(21, 13) + SourceIndex(0) -5 >Emitted(14, 41) Source(21, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, nameA] +4 > +5 > nameA +1 >Emitted(34, 9) Source(21, 10) + SourceIndex(0) +2 >Emitted(34, 13) Source(21, 10) + SourceIndex(0) +3 >Emitted(34, 50) Source(21, 19) + SourceIndex(0) +4 >Emitted(34, 52) Source(21, 13) + SourceIndex(0) +5 >Emitted(34, 65) Source(21, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(15, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(15, 12) Source(22, 12) + SourceIndex(0) -3 >Emitted(15, 13) Source(22, 13) + SourceIndex(0) -4 >Emitted(15, 16) Source(22, 16) + SourceIndex(0) -5 >Emitted(15, 17) Source(22, 17) + SourceIndex(0) -6 >Emitted(15, 22) Source(22, 22) + SourceIndex(0) -7 >Emitted(15, 23) Source(22, 23) + SourceIndex(0) -8 >Emitted(15, 24) Source(22, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(35, 9) Source(22, 5) + SourceIndex(0) +2 >Emitted(35, 16) Source(22, 12) + SourceIndex(0) +3 >Emitted(35, 17) Source(22, 13) + SourceIndex(0) +4 >Emitted(35, 20) Source(22, 16) + SourceIndex(0) +5 >Emitted(35, 21) Source(22, 17) + SourceIndex(0) +6 >Emitted(35, 26) Source(22, 22) + SourceIndex(0) +7 >Emitted(35, 27) Source(22, 23) + SourceIndex(0) +8 >Emitted(35, 28) Source(22, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(16, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(36, 6) Source(23, 2) + SourceIndex(0) --- ->>>for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> - > -2 >for -3 > -4 > (let [, nameA] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(17, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(17, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(17, 6) Source(24, 23) + SourceIndex(0) -5 >Emitted(17, 16) Source(24, 34) + SourceIndex(0) -6 >Emitted(17, 18) Source(24, 23) + SourceIndex(0) -7 >Emitted(17, 23) Source(24, 23) + SourceIndex(0) -8 >Emitted(17, 32) Source(24, 32) + SourceIndex(0) -9 >Emitted(17, 34) Source(24, 34) + SourceIndex(0) -10>Emitted(17, 36) Source(24, 23) + SourceIndex(0) -11>Emitted(17, 50) Source(24, 34) + SourceIndex(0) -12>Emitted(17, 52) Source(24, 23) + SourceIndex(0) -13>Emitted(17, 56) Source(24, 34) + SourceIndex(0) ---- ->>> var _d = _c[_b], nameA = _d[1]; +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { 1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > (let [, nameA] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [, nameA] +1 >Emitted(43, 5) Source(24, 1) + SourceIndex(0) +2 >Emitted(43, 8) Source(24, 4) + SourceIndex(0) +3 >Emitted(43, 9) Source(24, 5) + SourceIndex(0) +4 >Emitted(43, 10) Source(24, 23) + SourceIndex(0) +5 >Emitted(43, 14) Source(24, 23) + SourceIndex(0) +6 >Emitted(43, 27) Source(24, 23) + SourceIndex(0) +7 >Emitted(43, 29) Source(24, 23) + SourceIndex(0) +8 >Emitted(43, 39) Source(24, 23) + SourceIndex(0) +9 >Emitted(43, 48) Source(24, 23) + SourceIndex(0) +10>Emitted(43, 57) Source(24, 32) + SourceIndex(0) +11>Emitted(43, 59) Source(24, 34) + SourceIndex(0) +12>Emitted(43, 60) Source(24, 34) + SourceIndex(0) +13>Emitted(43, 62) Source(24, 34) + SourceIndex(0) +14>Emitted(43, 64) Source(24, 6) + SourceIndex(0) +15>Emitted(43, 82) Source(24, 19) + SourceIndex(0) +--- +>>> var _b = __read(iterator_1.result.value, 2), nameA = _b[1]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > -2 > -3 > [, nameA] -4 > -5 > nameA -1 >Emitted(18, 5) Source(24, 10) + SourceIndex(0) -2 >Emitted(18, 9) Source(24, 10) + SourceIndex(0) -3 >Emitted(18, 20) Source(24, 19) + SourceIndex(0) -4 >Emitted(18, 22) Source(24, 13) + SourceIndex(0) -5 >Emitted(18, 35) Source(24, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, nameA] +4 > +5 > nameA +1 >Emitted(44, 9) Source(24, 10) + SourceIndex(0) +2 >Emitted(44, 13) Source(24, 10) + SourceIndex(0) +3 >Emitted(44, 52) Source(24, 19) + SourceIndex(0) +4 >Emitted(44, 54) Source(24, 13) + SourceIndex(0) +5 >Emitted(44, 67) Source(24, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(19, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(25, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(45, 9) Source(25, 5) + SourceIndex(0) +2 >Emitted(45, 16) Source(25, 12) + SourceIndex(0) +3 >Emitted(45, 17) Source(25, 13) + SourceIndex(0) +4 >Emitted(45, 20) Source(25, 16) + SourceIndex(0) +5 >Emitted(45, 21) Source(25, 17) + SourceIndex(0) +6 >Emitted(45, 26) Source(25, 22) + SourceIndex(0) +7 >Emitted(45, 27) Source(25, 23) + SourceIndex(0) +8 >Emitted(45, 28) Source(25, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(20, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(46, 6) Source(26, 2) + SourceIndex(0) --- ->>>for (var _e = 0, _f = [robotA, robotB]; _e < _f.length; _e++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _c = [robotA, robotB]; _i < _c.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -517,7 +561,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -1-> +1 > > 2 >for 3 > @@ -533,38 +577,38 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(21, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(27, 23) + SourceIndex(0) -5 >Emitted(21, 16) Source(27, 39) + SourceIndex(0) -6 >Emitted(21, 18) Source(27, 23) + SourceIndex(0) -7 >Emitted(21, 24) Source(27, 24) + SourceIndex(0) -8 >Emitted(21, 30) Source(27, 30) + SourceIndex(0) -9 >Emitted(21, 32) Source(27, 32) + SourceIndex(0) -10>Emitted(21, 38) Source(27, 38) + SourceIndex(0) -11>Emitted(21, 39) Source(27, 39) + SourceIndex(0) -12>Emitted(21, 41) Source(27, 23) + SourceIndex(0) -13>Emitted(21, 55) Source(27, 39) + SourceIndex(0) -14>Emitted(21, 57) Source(27, 23) + SourceIndex(0) -15>Emitted(21, 61) Source(27, 39) + SourceIndex(0) ---- ->>> var _g = _f[_e], nameA = _g[1]; +1 >Emitted(52, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(52, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(52, 6) Source(27, 23) + SourceIndex(0) +5 >Emitted(52, 16) Source(27, 39) + SourceIndex(0) +6 >Emitted(52, 18) Source(27, 23) + SourceIndex(0) +7 >Emitted(52, 24) Source(27, 24) + SourceIndex(0) +8 >Emitted(52, 30) Source(27, 30) + SourceIndex(0) +9 >Emitted(52, 32) Source(27, 32) + SourceIndex(0) +10>Emitted(52, 38) Source(27, 38) + SourceIndex(0) +11>Emitted(52, 39) Source(27, 39) + SourceIndex(0) +12>Emitted(52, 41) Source(27, 23) + SourceIndex(0) +13>Emitted(52, 55) Source(27, 39) + SourceIndex(0) +14>Emitted(52, 57) Source(27, 23) + SourceIndex(0) +15>Emitted(52, 61) Source(27, 39) + SourceIndex(0) +--- +>>> var _d = __read(_c[_i], 2), nameA = _d[1]; 1 >^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > 2 > 3 > [, nameA] -4 > -5 > nameA -1 >Emitted(22, 5) Source(27, 10) + SourceIndex(0) -2 >Emitted(22, 9) Source(27, 10) + SourceIndex(0) -3 >Emitted(22, 20) Source(27, 19) + SourceIndex(0) -4 >Emitted(22, 22) Source(27, 13) + SourceIndex(0) -5 >Emitted(22, 35) Source(27, 18) + SourceIndex(0) +4 > +5 > nameA +1 >Emitted(53, 5) Source(27, 10) + SourceIndex(0) +2 >Emitted(53, 9) Source(27, 10) + SourceIndex(0) +3 >Emitted(53, 31) Source(27, 19) + SourceIndex(0) +4 >Emitted(53, 33) Source(27, 13) + SourceIndex(0) +5 >Emitted(53, 46) Source(27, 18) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -584,230 +628,255 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(23, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(28, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(28, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(28, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(28, 17) + SourceIndex(0) -6 >Emitted(23, 22) Source(28, 22) + SourceIndex(0) -7 >Emitted(23, 23) Source(28, 23) + SourceIndex(0) -8 >Emitted(23, 24) Source(28, 24) + SourceIndex(0) +1 >Emitted(54, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(54, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(54, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(54, 16) Source(28, 16) + SourceIndex(0) +5 >Emitted(54, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(54, 22) Source(28, 22) + SourceIndex(0) +7 >Emitted(54, 23) Source(28, 23) + SourceIndex(0) +8 >Emitted(54, 24) Source(28, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(24, 2) Source(29, 2) + SourceIndex(0) +1 >Emitted(55, 2) Source(29, 2) + SourceIndex(0) --- ->>>for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let [, [primarySkillA, secondarySkillA]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(25, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(30, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(30, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(30, 50) + SourceIndex(0) -5 >Emitted(25, 16) Source(30, 61) + SourceIndex(0) -6 >Emitted(25, 18) Source(30, 50) + SourceIndex(0) -7 >Emitted(25, 45) Source(30, 61) + SourceIndex(0) -8 >Emitted(25, 47) Source(30, 50) + SourceIndex(0) -9 >Emitted(25, 72) Source(30, 61) + SourceIndex(0) -10>Emitted(25, 74) Source(30, 50) + SourceIndex(0) -11>Emitted(25, 78) Source(30, 61) + SourceIndex(0) ---- ->>> var _j = multiRobots_1[_h], _k = _j[1], primarySkillA = _k[0], secondarySkillA = _k[1]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [, [primarySkillA, secondarySkillA]] +1->Emitted(57, 5) Source(30, 1) + SourceIndex(0) +2 >Emitted(57, 8) Source(30, 4) + SourceIndex(0) +3 >Emitted(57, 9) Source(30, 5) + SourceIndex(0) +4 >Emitted(57, 10) Source(30, 50) + SourceIndex(0) +5 >Emitted(57, 14) Source(30, 50) + SourceIndex(0) +6 >Emitted(57, 30) Source(30, 50) + SourceIndex(0) +7 >Emitted(57, 32) Source(30, 50) + SourceIndex(0) +8 >Emitted(57, 42) Source(30, 50) + SourceIndex(0) +9 >Emitted(57, 51) Source(30, 50) + SourceIndex(0) +10>Emitted(57, 62) Source(30, 61) + SourceIndex(0) +11>Emitted(57, 63) Source(30, 61) + SourceIndex(0) +12>Emitted(57, 65) Source(30, 61) + SourceIndex(0) +13>Emitted(57, 67) Source(30, 6) + SourceIndex(0) +14>Emitted(57, 88) Source(30, 46) + SourceIndex(0) +--- +>>> var _e = __read(multiRobots_1.result.value, 2), _f = __read(_e[1], 2), primarySkillA = _f[0], secondarySkillA = _f[1]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [, [primarySkillA, secondarySkillA]] -4 > -5 > [primarySkillA, secondarySkillA] -6 > -7 > primarySkillA -8 > , -9 > secondarySkillA -1->Emitted(26, 5) Source(30, 10) + SourceIndex(0) -2 >Emitted(26, 9) Source(30, 10) + SourceIndex(0) -3 >Emitted(26, 31) Source(30, 46) + SourceIndex(0) -4 >Emitted(26, 33) Source(30, 13) + SourceIndex(0) -5 >Emitted(26, 43) Source(30, 45) + SourceIndex(0) -6 >Emitted(26, 45) Source(30, 14) + SourceIndex(0) -7 >Emitted(26, 66) Source(30, 27) + SourceIndex(0) -8 >Emitted(26, 68) Source(30, 29) + SourceIndex(0) -9 >Emitted(26, 91) Source(30, 44) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, [primarySkillA, secondarySkillA]] +4 > +5 > [primarySkillA, secondarySkillA] +6 > +7 > primarySkillA +8 > , +9 > secondarySkillA +1->Emitted(58, 9) Source(30, 10) + SourceIndex(0) +2 >Emitted(58, 13) Source(30, 10) + SourceIndex(0) +3 >Emitted(58, 55) Source(30, 46) + SourceIndex(0) +4 >Emitted(58, 57) Source(30, 13) + SourceIndex(0) +5 >Emitted(58, 78) Source(30, 45) + SourceIndex(0) +6 >Emitted(58, 80) Source(30, 14) + SourceIndex(0) +7 >Emitted(58, 101) Source(30, 27) + SourceIndex(0) +8 >Emitted(58, 103) Source(30, 29) + SourceIndex(0) +9 >Emitted(58, 126) Source(30, 44) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(27, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(27, 12) Source(31, 12) + SourceIndex(0) -3 >Emitted(27, 13) Source(31, 13) + SourceIndex(0) -4 >Emitted(27, 16) Source(31, 16) + SourceIndex(0) -5 >Emitted(27, 17) Source(31, 17) + SourceIndex(0) -6 >Emitted(27, 30) Source(31, 30) + SourceIndex(0) -7 >Emitted(27, 31) Source(31, 31) + SourceIndex(0) -8 >Emitted(27, 32) Source(31, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(59, 9) Source(31, 5) + SourceIndex(0) +2 >Emitted(59, 16) Source(31, 12) + SourceIndex(0) +3 >Emitted(59, 17) Source(31, 13) + SourceIndex(0) +4 >Emitted(59, 20) Source(31, 16) + SourceIndex(0) +5 >Emitted(59, 21) Source(31, 17) + SourceIndex(0) +6 >Emitted(59, 34) Source(31, 30) + SourceIndex(0) +7 >Emitted(59, 35) Source(31, 31) + SourceIndex(0) +8 >Emitted(59, 36) Source(31, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(28, 2) Source(32, 2) + SourceIndex(0) +1 >Emitted(60, 6) Source(32, 2) + SourceIndex(0) --- ->>>for (var _l = 0, _m = getMultiRobots(); _l < _m.length; _l++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [, [primarySkillA, secondarySkillA]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(29, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(29, 4) Source(33, 4) + SourceIndex(0) -3 >Emitted(29, 5) Source(33, 5) + SourceIndex(0) -4 >Emitted(29, 6) Source(33, 50) + SourceIndex(0) -5 >Emitted(29, 16) Source(33, 66) + SourceIndex(0) -6 >Emitted(29, 18) Source(33, 50) + SourceIndex(0) -7 >Emitted(29, 23) Source(33, 50) + SourceIndex(0) -8 >Emitted(29, 37) Source(33, 64) + SourceIndex(0) -9 >Emitted(29, 39) Source(33, 66) + SourceIndex(0) -10>Emitted(29, 41) Source(33, 50) + SourceIndex(0) -11>Emitted(29, 55) Source(33, 66) + SourceIndex(0) -12>Emitted(29, 57) Source(33, 50) + SourceIndex(0) -13>Emitted(29, 61) Source(33, 66) + SourceIndex(0) ---- ->>> var _o = _m[_l], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [, [primarySkillA, secondarySkillA]] +1 >Emitted(67, 5) Source(33, 1) + SourceIndex(0) +2 >Emitted(67, 8) Source(33, 4) + SourceIndex(0) +3 >Emitted(67, 9) Source(33, 5) + SourceIndex(0) +4 >Emitted(67, 10) Source(33, 50) + SourceIndex(0) +5 >Emitted(67, 14) Source(33, 50) + SourceIndex(0) +6 >Emitted(67, 27) Source(33, 50) + SourceIndex(0) +7 >Emitted(67, 29) Source(33, 50) + SourceIndex(0) +8 >Emitted(67, 39) Source(33, 50) + SourceIndex(0) +9 >Emitted(67, 48) Source(33, 50) + SourceIndex(0) +10>Emitted(67, 62) Source(33, 64) + SourceIndex(0) +11>Emitted(67, 64) Source(33, 66) + SourceIndex(0) +12>Emitted(67, 65) Source(33, 66) + SourceIndex(0) +13>Emitted(67, 67) Source(33, 66) + SourceIndex(0) +14>Emitted(67, 69) Source(33, 6) + SourceIndex(0) +15>Emitted(67, 87) Source(33, 46) + SourceIndex(0) +--- +>>> var _g = __read(iterator_2.result.value, 2), _h = __read(_g[1], 2), primarySkillA = _h[0], secondarySkillA = _h[1]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [, [primarySkillA, secondarySkillA]] -4 > -5 > [primarySkillA, secondarySkillA] -6 > -7 > primarySkillA -8 > , -9 > secondarySkillA -1->Emitted(30, 5) Source(33, 10) + SourceIndex(0) -2 >Emitted(30, 9) Source(33, 10) + SourceIndex(0) -3 >Emitted(30, 20) Source(33, 46) + SourceIndex(0) -4 >Emitted(30, 22) Source(33, 13) + SourceIndex(0) -5 >Emitted(30, 32) Source(33, 45) + SourceIndex(0) -6 >Emitted(30, 34) Source(33, 14) + SourceIndex(0) -7 >Emitted(30, 55) Source(33, 27) + SourceIndex(0) -8 >Emitted(30, 57) Source(33, 29) + SourceIndex(0) -9 >Emitted(30, 80) Source(33, 44) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, [primarySkillA, secondarySkillA]] +4 > +5 > [primarySkillA, secondarySkillA] +6 > +7 > primarySkillA +8 > , +9 > secondarySkillA +1->Emitted(68, 9) Source(33, 10) + SourceIndex(0) +2 >Emitted(68, 13) Source(33, 10) + SourceIndex(0) +3 >Emitted(68, 52) Source(33, 46) + SourceIndex(0) +4 >Emitted(68, 54) Source(33, 13) + SourceIndex(0) +5 >Emitted(68, 75) Source(33, 45) + SourceIndex(0) +6 >Emitted(68, 77) Source(33, 14) + SourceIndex(0) +7 >Emitted(68, 98) Source(33, 27) + SourceIndex(0) +8 >Emitted(68, 100) Source(33, 29) + SourceIndex(0) +9 >Emitted(68, 123) Source(33, 44) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(31, 5) Source(34, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(34, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(34, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(34, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(34, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(34, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(34, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(34, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(69, 9) Source(34, 5) + SourceIndex(0) +2 >Emitted(69, 16) Source(34, 12) + SourceIndex(0) +3 >Emitted(69, 17) Source(34, 13) + SourceIndex(0) +4 >Emitted(69, 20) Source(34, 16) + SourceIndex(0) +5 >Emitted(69, 21) Source(34, 17) + SourceIndex(0) +6 >Emitted(69, 34) Source(34, 30) + SourceIndex(0) +7 >Emitted(69, 35) Source(34, 31) + SourceIndex(0) +8 >Emitted(69, 36) Source(34, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(32, 2) Source(35, 2) + SourceIndex(0) +1 >Emitted(70, 6) Source(35, 2) + SourceIndex(0) --- ->>>for (var _q = 0, _r = [multiRobotA, multiRobotB]; _q < _r.length; _q++) { -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _j = 0, _k = [multiRobotA, multiRobotB]; _j < _k.length; _j++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -822,8 +891,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -839,50 +908,50 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(33, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(36, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(36, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(36, 50) + SourceIndex(0) -5 >Emitted(33, 16) Source(36, 76) + SourceIndex(0) -6 >Emitted(33, 18) Source(36, 50) + SourceIndex(0) -7 >Emitted(33, 24) Source(36, 51) + SourceIndex(0) -8 >Emitted(33, 35) Source(36, 62) + SourceIndex(0) -9 >Emitted(33, 37) Source(36, 64) + SourceIndex(0) -10>Emitted(33, 48) Source(36, 75) + SourceIndex(0) -11>Emitted(33, 49) Source(36, 76) + SourceIndex(0) -12>Emitted(33, 51) Source(36, 50) + SourceIndex(0) -13>Emitted(33, 65) Source(36, 76) + SourceIndex(0) -14>Emitted(33, 67) Source(36, 50) + SourceIndex(0) -15>Emitted(33, 71) Source(36, 76) + SourceIndex(0) ---- ->>> var _s = _r[_q], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1]; +1 >Emitted(76, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(76, 4) Source(36, 4) + SourceIndex(0) +3 >Emitted(76, 5) Source(36, 5) + SourceIndex(0) +4 >Emitted(76, 6) Source(36, 50) + SourceIndex(0) +5 >Emitted(76, 16) Source(36, 76) + SourceIndex(0) +6 >Emitted(76, 18) Source(36, 50) + SourceIndex(0) +7 >Emitted(76, 24) Source(36, 51) + SourceIndex(0) +8 >Emitted(76, 35) Source(36, 62) + SourceIndex(0) +9 >Emitted(76, 37) Source(36, 64) + SourceIndex(0) +10>Emitted(76, 48) Source(36, 75) + SourceIndex(0) +11>Emitted(76, 49) Source(36, 76) + SourceIndex(0) +12>Emitted(76, 51) Source(36, 50) + SourceIndex(0) +13>Emitted(76, 65) Source(36, 76) + SourceIndex(0) +14>Emitted(76, 67) Source(36, 50) + SourceIndex(0) +15>Emitted(76, 71) Source(36, 76) + SourceIndex(0) +--- +>>> var _l = __read(_k[_j], 2), _m = __read(_l[1], 2), primarySkillA = _m[0], secondarySkillA = _m[1]; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [, [primarySkillA, secondarySkillA]] -4 > -5 > [primarySkillA, secondarySkillA] -6 > -7 > primarySkillA -8 > , -9 > secondarySkillA -1->Emitted(34, 5) Source(36, 10) + SourceIndex(0) -2 >Emitted(34, 9) Source(36, 10) + SourceIndex(0) -3 >Emitted(34, 20) Source(36, 46) + SourceIndex(0) -4 >Emitted(34, 22) Source(36, 13) + SourceIndex(0) -5 >Emitted(34, 32) Source(36, 45) + SourceIndex(0) -6 >Emitted(34, 34) Source(36, 14) + SourceIndex(0) -7 >Emitted(34, 55) Source(36, 27) + SourceIndex(0) -8 >Emitted(34, 57) Source(36, 29) + SourceIndex(0) -9 >Emitted(34, 80) Source(36, 44) + SourceIndex(0) +4 > +5 > [primarySkillA, secondarySkillA] +6 > +7 > primarySkillA +8 > , +9 > secondarySkillA +1->Emitted(77, 5) Source(36, 10) + SourceIndex(0) +2 >Emitted(77, 9) Source(36, 10) + SourceIndex(0) +3 >Emitted(77, 31) Source(36, 46) + SourceIndex(0) +4 >Emitted(77, 33) Source(36, 13) + SourceIndex(0) +5 >Emitted(77, 54) Source(36, 45) + SourceIndex(0) +6 >Emitted(77, 56) Source(36, 14) + SourceIndex(0) +7 >Emitted(77, 77) Source(36, 27) + SourceIndex(0) +8 >Emitted(77, 79) Source(36, 29) + SourceIndex(0) +9 >Emitted(77, 102) Source(36, 44) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -902,156 +971,292 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(35, 5) Source(37, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(37, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(37, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(37, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(37, 17) + SourceIndex(0) -6 >Emitted(35, 30) Source(37, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(37, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(37, 32) + SourceIndex(0) +1 >Emitted(78, 5) Source(37, 5) + SourceIndex(0) +2 >Emitted(78, 12) Source(37, 12) + SourceIndex(0) +3 >Emitted(78, 13) Source(37, 13) + SourceIndex(0) +4 >Emitted(78, 16) Source(37, 16) + SourceIndex(0) +5 >Emitted(78, 17) Source(37, 17) + SourceIndex(0) +6 >Emitted(78, 30) Source(37, 30) + SourceIndex(0) +7 >Emitted(78, 31) Source(37, 31) + SourceIndex(0) +8 >Emitted(78, 32) Source(37, 32) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(36, 2) Source(38, 2) + SourceIndex(0) +1 >Emitted(79, 2) Source(38, 2) + SourceIndex(0) --- ->>>for (var _u = 0, robots_2 = robots; _u < robots_2.length; _u++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > > -2 >for -3 > -4 > (let [numberB] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(37, 1) Source(40, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(40, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(40, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(40, 23) + SourceIndex(0) -5 >Emitted(37, 16) Source(40, 29) + SourceIndex(0) -6 >Emitted(37, 18) Source(40, 23) + SourceIndex(0) -7 >Emitted(37, 35) Source(40, 29) + SourceIndex(0) -8 >Emitted(37, 37) Source(40, 23) + SourceIndex(0) -9 >Emitted(37, 57) Source(40, 29) + SourceIndex(0) -10>Emitted(37, 59) Source(40, 23) + SourceIndex(0) -11>Emitted(37, 63) Source(40, 29) + SourceIndex(0) ---- ->>> var numberB = robots_2[_u][0]; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberB] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberB] +1->Emitted(81, 5) Source(40, 1) + SourceIndex(0) +2 >Emitted(81, 8) Source(40, 4) + SourceIndex(0) +3 >Emitted(81, 9) Source(40, 5) + SourceIndex(0) +4 >Emitted(81, 10) Source(40, 23) + SourceIndex(0) +5 >Emitted(81, 14) Source(40, 23) + SourceIndex(0) +6 >Emitted(81, 25) Source(40, 23) + SourceIndex(0) +7 >Emitted(81, 27) Source(40, 23) + SourceIndex(0) +8 >Emitted(81, 37) Source(40, 23) + SourceIndex(0) +9 >Emitted(81, 46) Source(40, 23) + SourceIndex(0) +10>Emitted(81, 52) Source(40, 29) + SourceIndex(0) +11>Emitted(81, 53) Source(40, 29) + SourceIndex(0) +12>Emitted(81, 55) Source(40, 29) + SourceIndex(0) +13>Emitted(81, 57) Source(40, 6) + SourceIndex(0) +14>Emitted(81, 73) Source(40, 19) + SourceIndex(0) +--- +>>> var _o = __read(robots_2.result.value, 1), numberB = _o[0]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ 1 > -2 > -3 > numberB -1 >Emitted(38, 5) Source(40, 11) + SourceIndex(0) -2 >Emitted(38, 9) Source(40, 11) + SourceIndex(0) -3 >Emitted(38, 34) Source(40, 18) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberB] +4 > +5 > numberB +1 >Emitted(82, 9) Source(40, 10) + SourceIndex(0) +2 >Emitted(82, 13) Source(40, 10) + SourceIndex(0) +3 >Emitted(82, 50) Source(40, 19) + SourceIndex(0) +4 >Emitted(82, 52) Source(40, 11) + SourceIndex(0) +5 >Emitted(82, 67) Source(40, 18) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(39, 5) Source(41, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(41, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(41, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(41, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(41, 17) + SourceIndex(0) -6 >Emitted(39, 24) Source(41, 24) + SourceIndex(0) -7 >Emitted(39, 25) Source(41, 25) + SourceIndex(0) -8 >Emitted(39, 26) Source(41, 26) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(83, 9) Source(41, 5) + SourceIndex(0) +2 >Emitted(83, 16) Source(41, 12) + SourceIndex(0) +3 >Emitted(83, 17) Source(41, 13) + SourceIndex(0) +4 >Emitted(83, 20) Source(41, 16) + SourceIndex(0) +5 >Emitted(83, 21) Source(41, 17) + SourceIndex(0) +6 >Emitted(83, 28) Source(41, 24) + SourceIndex(0) +7 >Emitted(83, 29) Source(41, 25) + SourceIndex(0) +8 >Emitted(83, 30) Source(41, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(84, 6) Source(42, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > (let [numberB] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberB] +1 >Emitted(91, 5) Source(43, 1) + SourceIndex(0) +2 >Emitted(91, 8) Source(43, 4) + SourceIndex(0) +3 >Emitted(91, 9) Source(43, 5) + SourceIndex(0) +4 >Emitted(91, 10) Source(43, 23) + SourceIndex(0) +5 >Emitted(91, 14) Source(43, 23) + SourceIndex(0) +6 >Emitted(91, 27) Source(43, 23) + SourceIndex(0) +7 >Emitted(91, 29) Source(43, 23) + SourceIndex(0) +8 >Emitted(91, 39) Source(43, 23) + SourceIndex(0) +9 >Emitted(91, 48) Source(43, 23) + SourceIndex(0) +10>Emitted(91, 57) Source(43, 32) + SourceIndex(0) +11>Emitted(91, 59) Source(43, 34) + SourceIndex(0) +12>Emitted(91, 60) Source(43, 34) + SourceIndex(0) +13>Emitted(91, 62) Source(43, 34) + SourceIndex(0) +14>Emitted(91, 64) Source(43, 6) + SourceIndex(0) +15>Emitted(91, 82) Source(43, 19) + SourceIndex(0) +--- +>>> var _p = __read(iterator_3.result.value, 1), numberB = _p[0]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +1 > +2 > +3 > [numberB] +4 > +5 > numberB +1 >Emitted(92, 9) Source(43, 10) + SourceIndex(0) +2 >Emitted(92, 13) Source(43, 10) + SourceIndex(0) +3 >Emitted(92, 52) Source(43, 19) + SourceIndex(0) +4 >Emitted(92, 54) Source(43, 11) + SourceIndex(0) +5 >Emitted(92, 69) Source(43, 18) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ +1 >] of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(93, 9) Source(44, 5) + SourceIndex(0) +2 >Emitted(93, 16) Source(44, 12) + SourceIndex(0) +3 >Emitted(93, 17) Source(44, 13) + SourceIndex(0) +4 >Emitted(93, 20) Source(44, 16) + SourceIndex(0) +5 >Emitted(93, 21) Source(44, 17) + SourceIndex(0) +6 >Emitted(93, 28) Source(44, 24) + SourceIndex(0) +7 >Emitted(93, 29) Source(44, 25) + SourceIndex(0) +8 >Emitted(93, 30) Source(44, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(40, 2) Source(42, 2) + SourceIndex(0) +1 >Emitted(94, 6) Source(45, 2) + SourceIndex(0) --- ->>>for (var _v = 0, _w = getRobots(); _v < _w.length; _v++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _q = 0, _r = [robotA, robotB]; _q < _r.length; _q++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> +7 > ^^^^^^ +8 > ^^^^^^ +9 > ^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +1 > > 2 >for 3 > 4 > (let [numberB] of -5 > getRobots() +5 > [robotA, robotB] 6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(41, 1) Source(43, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(43, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(43, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(43, 23) + SourceIndex(0) -5 >Emitted(41, 16) Source(43, 34) + SourceIndex(0) -6 >Emitted(41, 18) Source(43, 23) + SourceIndex(0) -7 >Emitted(41, 23) Source(43, 23) + SourceIndex(0) -8 >Emitted(41, 32) Source(43, 32) + SourceIndex(0) -9 >Emitted(41, 34) Source(43, 34) + SourceIndex(0) -10>Emitted(41, 36) Source(43, 23) + SourceIndex(0) -11>Emitted(41, 50) Source(43, 34) + SourceIndex(0) -12>Emitted(41, 52) Source(43, 23) + SourceIndex(0) -13>Emitted(41, 56) Source(43, 34) + SourceIndex(0) ---- ->>> var numberB = _w[_v][0]; +7 > [ +8 > robotA +9 > , +10> robotB +11> ] +12> +13> [robotA, robotB] +14> +15> [robotA, robotB] +1 >Emitted(100, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(100, 4) Source(46, 4) + SourceIndex(0) +3 >Emitted(100, 5) Source(46, 5) + SourceIndex(0) +4 >Emitted(100, 6) Source(46, 23) + SourceIndex(0) +5 >Emitted(100, 16) Source(46, 39) + SourceIndex(0) +6 >Emitted(100, 18) Source(46, 23) + SourceIndex(0) +7 >Emitted(100, 24) Source(46, 24) + SourceIndex(0) +8 >Emitted(100, 30) Source(46, 30) + SourceIndex(0) +9 >Emitted(100, 32) Source(46, 32) + SourceIndex(0) +10>Emitted(100, 38) Source(46, 38) + SourceIndex(0) +11>Emitted(100, 39) Source(46, 39) + SourceIndex(0) +12>Emitted(100, 41) Source(46, 23) + SourceIndex(0) +13>Emitted(100, 55) Source(46, 39) + SourceIndex(0) +14>Emitted(100, 57) Source(46, 23) + SourceIndex(0) +15>Emitted(100, 61) Source(46, 39) + SourceIndex(0) +--- +>>> var _s = __read(_r[_q], 1), numberB = _s[0]; 1 >^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ 1 > 2 > -3 > numberB -1 >Emitted(42, 5) Source(43, 11) + SourceIndex(0) -2 >Emitted(42, 9) Source(43, 11) + SourceIndex(0) -3 >Emitted(42, 28) Source(43, 18) + SourceIndex(0) +3 > [numberB] +4 > +5 > numberB +1 >Emitted(101, 5) Source(46, 10) + SourceIndex(0) +2 >Emitted(101, 9) Source(46, 10) + SourceIndex(0) +3 >Emitted(101, 31) Source(46, 19) + SourceIndex(0) +4 >Emitted(101, 33) Source(46, 11) + SourceIndex(0) +5 >Emitted(101, 48) Source(46, 18) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1062,7 +1267,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > ^^^^^^^ 7 > ^ 8 > ^ -1 >] of getRobots()) { +1 >] of [robotA, robotB]) { > 2 > console 3 > . @@ -1071,285 +1276,229 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > numberB 7 > ) 8 > ; -1 >Emitted(43, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(44, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(44, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(44, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(44, 17) + SourceIndex(0) -6 >Emitted(43, 24) Source(44, 24) + SourceIndex(0) -7 >Emitted(43, 25) Source(44, 25) + SourceIndex(0) -8 >Emitted(43, 26) Source(44, 26) + SourceIndex(0) +1 >Emitted(102, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(102, 12) Source(47, 12) + SourceIndex(0) +3 >Emitted(102, 13) Source(47, 13) + SourceIndex(0) +4 >Emitted(102, 16) Source(47, 16) + SourceIndex(0) +5 >Emitted(102, 17) Source(47, 17) + SourceIndex(0) +6 >Emitted(102, 24) Source(47, 24) + SourceIndex(0) +7 >Emitted(102, 25) Source(47, 25) + SourceIndex(0) +8 >Emitted(102, 26) Source(47, 26) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(44, 2) Source(45, 2) + SourceIndex(0) +1 >Emitted(103, 2) Source(48, 2) + SourceIndex(0) --- ->>>for (var _x = 0, _y = [robotA, robotB]; _x < _y.length; _x++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^ -9 > ^^ -10> ^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > (let [numberB] of -5 > [robotA, robotB] -6 > -7 > [ -8 > robotA -9 > , -10> robotB -11> ] -12> -13> [robotA, robotB] -14> -15> [robotA, robotB] -1->Emitted(45, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(46, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(46, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(46, 23) + SourceIndex(0) -5 >Emitted(45, 16) Source(46, 39) + SourceIndex(0) -6 >Emitted(45, 18) Source(46, 23) + SourceIndex(0) -7 >Emitted(45, 24) Source(46, 24) + SourceIndex(0) -8 >Emitted(45, 30) Source(46, 30) + SourceIndex(0) -9 >Emitted(45, 32) Source(46, 32) + SourceIndex(0) -10>Emitted(45, 38) Source(46, 38) + SourceIndex(0) -11>Emitted(45, 39) Source(46, 39) + SourceIndex(0) -12>Emitted(45, 41) Source(46, 23) + SourceIndex(0) -13>Emitted(45, 55) Source(46, 39) + SourceIndex(0) -14>Emitted(45, 57) Source(46, 23) + SourceIndex(0) -15>Emitted(45, 61) Source(46, 39) + SourceIndex(0) ---- ->>> var numberB = _y[_x][0]; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [nameB] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [nameB] +1->Emitted(105, 5) Source(49, 1) + SourceIndex(0) +2 >Emitted(105, 8) Source(49, 4) + SourceIndex(0) +3 >Emitted(105, 9) Source(49, 5) + SourceIndex(0) +4 >Emitted(105, 10) Source(49, 21) + SourceIndex(0) +5 >Emitted(105, 14) Source(49, 21) + SourceIndex(0) +6 >Emitted(105, 30) Source(49, 21) + SourceIndex(0) +7 >Emitted(105, 32) Source(49, 21) + SourceIndex(0) +8 >Emitted(105, 42) Source(49, 21) + SourceIndex(0) +9 >Emitted(105, 51) Source(49, 21) + SourceIndex(0) +10>Emitted(105, 62) Source(49, 32) + SourceIndex(0) +11>Emitted(105, 63) Source(49, 32) + SourceIndex(0) +12>Emitted(105, 65) Source(49, 32) + SourceIndex(0) +13>Emitted(105, 67) Source(49, 6) + SourceIndex(0) +14>Emitted(105, 88) Source(49, 17) + SourceIndex(0) +--- +>>> var _t = __read(multiRobots_2.result.value, 1), nameB = _t[0]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > -2 > -3 > numberB -1 >Emitted(46, 5) Source(46, 11) + SourceIndex(0) -2 >Emitted(46, 9) Source(46, 11) + SourceIndex(0) -3 >Emitted(46, 28) Source(46, 18) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ -1 >] of [robotA, robotB]) { +2 > +3 > [nameB] +4 > +5 > nameB +1 >Emitted(106, 9) Source(49, 10) + SourceIndex(0) +2 >Emitted(106, 13) Source(49, 10) + SourceIndex(0) +3 >Emitted(106, 55) Source(49, 17) + SourceIndex(0) +4 >Emitted(106, 57) Source(49, 11) + SourceIndex(0) +5 >Emitted(106, 70) Source(49, 16) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(47, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(47, 24) Source(47, 24) + SourceIndex(0) -7 >Emitted(47, 25) Source(47, 25) + SourceIndex(0) -8 >Emitted(47, 26) Source(47, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(107, 9) Source(50, 5) + SourceIndex(0) +2 >Emitted(107, 16) Source(50, 12) + SourceIndex(0) +3 >Emitted(107, 17) Source(50, 13) + SourceIndex(0) +4 >Emitted(107, 20) Source(50, 16) + SourceIndex(0) +5 >Emitted(107, 21) Source(50, 17) + SourceIndex(0) +6 >Emitted(107, 26) Source(50, 22) + SourceIndex(0) +7 >Emitted(107, 27) Source(50, 23) + SourceIndex(0) +8 >Emitted(107, 28) Source(50, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(48, 2) Source(48, 2) + SourceIndex(0) ---- ->>>for (var _z = 0, multiRobots_2 = multiRobots; _z < multiRobots_2.length; _z++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -1-> - > -2 >for -3 > -4 > (let [nameB] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(49, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(49, 21) + SourceIndex(0) -5 >Emitted(49, 16) Source(49, 32) + SourceIndex(0) -6 >Emitted(49, 18) Source(49, 21) + SourceIndex(0) -7 >Emitted(49, 45) Source(49, 32) + SourceIndex(0) -8 >Emitted(49, 47) Source(49, 21) + SourceIndex(0) -9 >Emitted(49, 72) Source(49, 32) + SourceIndex(0) -10>Emitted(49, 74) Source(49, 21) + SourceIndex(0) -11>Emitted(49, 78) Source(49, 32) + SourceIndex(0) ---- ->>> var nameB = multiRobots_2[_z][0]; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > -3 > nameB -1 >Emitted(50, 5) Source(49, 11) + SourceIndex(0) -2 >Emitted(50, 9) Source(49, 11) + SourceIndex(0) -3 >Emitted(50, 37) Source(49, 16) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(51, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(51, 22) Source(50, 22) + SourceIndex(0) -7 >Emitted(51, 23) Source(50, 23) + SourceIndex(0) -8 >Emitted(51, 24) Source(50, 24) + SourceIndex(0) +1 >Emitted(108, 6) Source(51, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ 1 > - >} -1 >Emitted(52, 2) Source(51, 2) + SourceIndex(0) ---- ->>>for (var _0 = 0, _1 = getMultiRobots(); _0 < _1.length; _0++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> > -2 >for -3 > -4 > (let [nameB] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(53, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(52, 21) + SourceIndex(0) -5 >Emitted(53, 16) Source(52, 37) + SourceIndex(0) -6 >Emitted(53, 18) Source(52, 21) + SourceIndex(0) -7 >Emitted(53, 23) Source(52, 21) + SourceIndex(0) -8 >Emitted(53, 37) Source(52, 35) + SourceIndex(0) -9 >Emitted(53, 39) Source(52, 37) + SourceIndex(0) -10>Emitted(53, 41) Source(52, 21) + SourceIndex(0) -11>Emitted(53, 55) Source(52, 37) + SourceIndex(0) -12>Emitted(53, 57) Source(52, 21) + SourceIndex(0) -13>Emitted(53, 61) Source(52, 37) + SourceIndex(0) ---- ->>> var nameB = _1[_0][0]; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [nameB] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [nameB] +1 >Emitted(115, 5) Source(52, 1) + SourceIndex(0) +2 >Emitted(115, 8) Source(52, 4) + SourceIndex(0) +3 >Emitted(115, 9) Source(52, 5) + SourceIndex(0) +4 >Emitted(115, 10) Source(52, 21) + SourceIndex(0) +5 >Emitted(115, 14) Source(52, 21) + SourceIndex(0) +6 >Emitted(115, 27) Source(52, 21) + SourceIndex(0) +7 >Emitted(115, 29) Source(52, 21) + SourceIndex(0) +8 >Emitted(115, 39) Source(52, 21) + SourceIndex(0) +9 >Emitted(115, 48) Source(52, 21) + SourceIndex(0) +10>Emitted(115, 62) Source(52, 35) + SourceIndex(0) +11>Emitted(115, 64) Source(52, 37) + SourceIndex(0) +12>Emitted(115, 65) Source(52, 37) + SourceIndex(0) +13>Emitted(115, 67) Source(52, 37) + SourceIndex(0) +14>Emitted(115, 69) Source(52, 6) + SourceIndex(0) +15>Emitted(115, 87) Source(52, 17) + SourceIndex(0) +--- +>>> var _u = __read(iterator_4.result.value, 1), nameB = _u[0]; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > -2 > -3 > nameB -1 >Emitted(54, 5) Source(52, 11) + SourceIndex(0) -2 >Emitted(54, 9) Source(52, 11) + SourceIndex(0) -3 >Emitted(54, 26) Source(52, 16) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > +3 > [nameB] +4 > +5 > nameB +1 >Emitted(116, 9) Source(52, 10) + SourceIndex(0) +2 >Emitted(116, 13) Source(52, 10) + SourceIndex(0) +3 >Emitted(116, 52) Source(52, 17) + SourceIndex(0) +4 >Emitted(116, 54) Source(52, 11) + SourceIndex(0) +5 >Emitted(116, 67) Source(52, 16) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(55, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(55, 22) Source(53, 22) + SourceIndex(0) -7 >Emitted(55, 23) Source(53, 23) + SourceIndex(0) -8 >Emitted(55, 24) Source(53, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(117, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(117, 16) Source(53, 12) + SourceIndex(0) +3 >Emitted(117, 17) Source(53, 13) + SourceIndex(0) +4 >Emitted(117, 20) Source(53, 16) + SourceIndex(0) +5 >Emitted(117, 21) Source(53, 17) + SourceIndex(0) +6 >Emitted(117, 26) Source(53, 22) + SourceIndex(0) +7 >Emitted(117, 27) Source(53, 23) + SourceIndex(0) +8 >Emitted(117, 28) Source(53, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(56, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(118, 6) Source(54, 2) + SourceIndex(0) --- ->>>for (var _2 = 0, _3 = [multiRobotA, multiRobotB]; _2 < _3.length; _2++) { -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _v = 0, _w = [multiRobotA, multiRobotB]; _v < _w.length; _v++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1364,7 +1513,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -1-> +1 > > 2 >for 3 > @@ -1380,32 +1529,38 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(57, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(55, 21) + SourceIndex(0) -5 >Emitted(57, 16) Source(55, 47) + SourceIndex(0) -6 >Emitted(57, 18) Source(55, 21) + SourceIndex(0) -7 >Emitted(57, 24) Source(55, 22) + SourceIndex(0) -8 >Emitted(57, 35) Source(55, 33) + SourceIndex(0) -9 >Emitted(57, 37) Source(55, 35) + SourceIndex(0) -10>Emitted(57, 48) Source(55, 46) + SourceIndex(0) -11>Emitted(57, 49) Source(55, 47) + SourceIndex(0) -12>Emitted(57, 51) Source(55, 21) + SourceIndex(0) -13>Emitted(57, 65) Source(55, 47) + SourceIndex(0) -14>Emitted(57, 67) Source(55, 21) + SourceIndex(0) -15>Emitted(57, 71) Source(55, 47) + SourceIndex(0) ---- ->>> var nameB = _3[_2][0]; +1 >Emitted(124, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(124, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(124, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(124, 6) Source(55, 21) + SourceIndex(0) +5 >Emitted(124, 16) Source(55, 47) + SourceIndex(0) +6 >Emitted(124, 18) Source(55, 21) + SourceIndex(0) +7 >Emitted(124, 24) Source(55, 22) + SourceIndex(0) +8 >Emitted(124, 35) Source(55, 33) + SourceIndex(0) +9 >Emitted(124, 37) Source(55, 35) + SourceIndex(0) +10>Emitted(124, 48) Source(55, 46) + SourceIndex(0) +11>Emitted(124, 49) Source(55, 47) + SourceIndex(0) +12>Emitted(124, 51) Source(55, 21) + SourceIndex(0) +13>Emitted(124, 65) Source(55, 47) + SourceIndex(0) +14>Emitted(124, 67) Source(55, 21) + SourceIndex(0) +15>Emitted(124, 71) Source(55, 47) + SourceIndex(0) +--- +>>> var _x = __read(_w[_v], 1), nameB = _x[0]; 1 >^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ 1 > 2 > -3 > nameB -1 >Emitted(58, 5) Source(55, 11) + SourceIndex(0) -2 >Emitted(58, 9) Source(55, 11) + SourceIndex(0) -3 >Emitted(58, 26) Source(55, 16) + SourceIndex(0) +3 > [nameB] +4 > +5 > nameB +1 >Emitted(125, 5) Source(55, 10) + SourceIndex(0) +2 >Emitted(125, 9) Source(55, 10) + SourceIndex(0) +3 >Emitted(125, 31) Source(55, 17) + SourceIndex(0) +4 >Emitted(125, 33) Source(55, 11) + SourceIndex(0) +5 >Emitted(125, 46) Source(55, 16) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1425,247 +1580,272 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > nameB 7 > ) 8 > ; -1 >Emitted(59, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(59, 22) Source(56, 22) + SourceIndex(0) -7 >Emitted(59, 23) Source(56, 23) + SourceIndex(0) -8 >Emitted(59, 24) Source(56, 24) + SourceIndex(0) +1 >Emitted(126, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(126, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(126, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(126, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(126, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(126, 22) Source(56, 22) + SourceIndex(0) +7 >Emitted(126, 23) Source(56, 23) + SourceIndex(0) +8 >Emitted(126, 24) Source(56, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(60, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(127, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (var _4 = 0, robots_3 = robots; _4 < robots_3.length; _4++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let [numberA2, nameA2, skillA2] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(61, 1) Source(59, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(59, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(59, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(59, 41) + SourceIndex(0) -5 >Emitted(61, 16) Source(59, 47) + SourceIndex(0) -6 >Emitted(61, 18) Source(59, 41) + SourceIndex(0) -7 >Emitted(61, 35) Source(59, 47) + SourceIndex(0) -8 >Emitted(61, 37) Source(59, 41) + SourceIndex(0) -9 >Emitted(61, 57) Source(59, 47) + SourceIndex(0) -10>Emitted(61, 59) Source(59, 41) + SourceIndex(0) -11>Emitted(61, 63) Source(59, 47) + SourceIndex(0) ---- ->>> var _5 = robots_3[_4], numberA2 = _5[0], nameA2 = _5[1], skillA2 = _5[2]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA2, nameA2, skillA2] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberA2, nameA2, skillA2] +1->Emitted(129, 5) Source(59, 1) + SourceIndex(0) +2 >Emitted(129, 8) Source(59, 4) + SourceIndex(0) +3 >Emitted(129, 9) Source(59, 5) + SourceIndex(0) +4 >Emitted(129, 10) Source(59, 41) + SourceIndex(0) +5 >Emitted(129, 14) Source(59, 41) + SourceIndex(0) +6 >Emitted(129, 25) Source(59, 41) + SourceIndex(0) +7 >Emitted(129, 27) Source(59, 41) + SourceIndex(0) +8 >Emitted(129, 37) Source(59, 41) + SourceIndex(0) +9 >Emitted(129, 46) Source(59, 41) + SourceIndex(0) +10>Emitted(129, 52) Source(59, 47) + SourceIndex(0) +11>Emitted(129, 53) Source(59, 47) + SourceIndex(0) +12>Emitted(129, 55) Source(59, 47) + SourceIndex(0) +13>Emitted(129, 57) Source(59, 6) + SourceIndex(0) +14>Emitted(129, 73) Source(59, 37) + SourceIndex(0) +--- +>>> var _y = __read(robots_3.result.value, 3), numberA2 = _y[0], nameA2 = _y[1], skillA2 = _y[2]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA2, nameA2, skillA2] -4 > -5 > numberA2 -6 > , -7 > nameA2 -8 > , -9 > skillA2 -1->Emitted(62, 5) Source(59, 10) + SourceIndex(0) -2 >Emitted(62, 9) Source(59, 10) + SourceIndex(0) -3 >Emitted(62, 26) Source(59, 37) + SourceIndex(0) -4 >Emitted(62, 28) Source(59, 11) + SourceIndex(0) -5 >Emitted(62, 44) Source(59, 19) + SourceIndex(0) -6 >Emitted(62, 46) Source(59, 21) + SourceIndex(0) -7 >Emitted(62, 60) Source(59, 27) + SourceIndex(0) -8 >Emitted(62, 62) Source(59, 29) + SourceIndex(0) -9 >Emitted(62, 77) Source(59, 36) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA2, nameA2, skillA2] +4 > +5 > numberA2 +6 > , +7 > nameA2 +8 > , +9 > skillA2 +1->Emitted(130, 9) Source(59, 10) + SourceIndex(0) +2 >Emitted(130, 13) Source(59, 10) + SourceIndex(0) +3 >Emitted(130, 50) Source(59, 37) + SourceIndex(0) +4 >Emitted(130, 52) Source(59, 11) + SourceIndex(0) +5 >Emitted(130, 68) Source(59, 19) + SourceIndex(0) +6 >Emitted(130, 70) Source(59, 21) + SourceIndex(0) +7 >Emitted(130, 84) Source(59, 27) + SourceIndex(0) +8 >Emitted(130, 86) Source(59, 29) + SourceIndex(0) +9 >Emitted(130, 101) Source(59, 36) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(63, 5) Source(60, 5) + SourceIndex(0) -2 >Emitted(63, 12) Source(60, 12) + SourceIndex(0) -3 >Emitted(63, 13) Source(60, 13) + SourceIndex(0) -4 >Emitted(63, 16) Source(60, 16) + SourceIndex(0) -5 >Emitted(63, 17) Source(60, 17) + SourceIndex(0) -6 >Emitted(63, 23) Source(60, 23) + SourceIndex(0) -7 >Emitted(63, 24) Source(60, 24) + SourceIndex(0) -8 >Emitted(63, 25) Source(60, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(131, 9) Source(60, 5) + SourceIndex(0) +2 >Emitted(131, 16) Source(60, 12) + SourceIndex(0) +3 >Emitted(131, 17) Source(60, 13) + SourceIndex(0) +4 >Emitted(131, 20) Source(60, 16) + SourceIndex(0) +5 >Emitted(131, 21) Source(60, 17) + SourceIndex(0) +6 >Emitted(131, 27) Source(60, 23) + SourceIndex(0) +7 >Emitted(131, 28) Source(60, 24) + SourceIndex(0) +8 >Emitted(131, 29) Source(60, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(64, 2) Source(61, 2) + SourceIndex(0) +1 >Emitted(132, 6) Source(61, 2) + SourceIndex(0) --- ->>>for (var _6 = 0, _7 = getRobots(); _6 < _7.length; _6++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [numberA2, nameA2, skillA2] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(65, 1) Source(62, 1) + SourceIndex(0) -2 >Emitted(65, 4) Source(62, 4) + SourceIndex(0) -3 >Emitted(65, 5) Source(62, 5) + SourceIndex(0) -4 >Emitted(65, 6) Source(62, 41) + SourceIndex(0) -5 >Emitted(65, 16) Source(62, 52) + SourceIndex(0) -6 >Emitted(65, 18) Source(62, 41) + SourceIndex(0) -7 >Emitted(65, 23) Source(62, 41) + SourceIndex(0) -8 >Emitted(65, 32) Source(62, 50) + SourceIndex(0) -9 >Emitted(65, 34) Source(62, 52) + SourceIndex(0) -10>Emitted(65, 36) Source(62, 41) + SourceIndex(0) -11>Emitted(65, 50) Source(62, 52) + SourceIndex(0) -12>Emitted(65, 52) Source(62, 41) + SourceIndex(0) -13>Emitted(65, 56) Source(62, 52) + SourceIndex(0) ---- ->>> var _8 = _7[_6], numberA2 = _8[0], nameA2 = _8[1], skillA2 = _8[2]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA2, nameA2, skillA2] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberA2, nameA2, skillA2] +1 >Emitted(139, 5) Source(62, 1) + SourceIndex(0) +2 >Emitted(139, 8) Source(62, 4) + SourceIndex(0) +3 >Emitted(139, 9) Source(62, 5) + SourceIndex(0) +4 >Emitted(139, 10) Source(62, 41) + SourceIndex(0) +5 >Emitted(139, 14) Source(62, 41) + SourceIndex(0) +6 >Emitted(139, 27) Source(62, 41) + SourceIndex(0) +7 >Emitted(139, 29) Source(62, 41) + SourceIndex(0) +8 >Emitted(139, 39) Source(62, 41) + SourceIndex(0) +9 >Emitted(139, 48) Source(62, 41) + SourceIndex(0) +10>Emitted(139, 57) Source(62, 50) + SourceIndex(0) +11>Emitted(139, 59) Source(62, 52) + SourceIndex(0) +12>Emitted(139, 60) Source(62, 52) + SourceIndex(0) +13>Emitted(139, 62) Source(62, 52) + SourceIndex(0) +14>Emitted(139, 64) Source(62, 6) + SourceIndex(0) +15>Emitted(139, 82) Source(62, 37) + SourceIndex(0) +--- +>>> var _z = __read(iterator_5.result.value, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA2, nameA2, skillA2] -4 > -5 > numberA2 -6 > , -7 > nameA2 -8 > , -9 > skillA2 -1->Emitted(66, 5) Source(62, 10) + SourceIndex(0) -2 >Emitted(66, 9) Source(62, 10) + SourceIndex(0) -3 >Emitted(66, 20) Source(62, 37) + SourceIndex(0) -4 >Emitted(66, 22) Source(62, 11) + SourceIndex(0) -5 >Emitted(66, 38) Source(62, 19) + SourceIndex(0) -6 >Emitted(66, 40) Source(62, 21) + SourceIndex(0) -7 >Emitted(66, 54) Source(62, 27) + SourceIndex(0) -8 >Emitted(66, 56) Source(62, 29) + SourceIndex(0) -9 >Emitted(66, 71) Source(62, 36) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA2, nameA2, skillA2] +4 > +5 > numberA2 +6 > , +7 > nameA2 +8 > , +9 > skillA2 +1->Emitted(140, 9) Source(62, 10) + SourceIndex(0) +2 >Emitted(140, 13) Source(62, 10) + SourceIndex(0) +3 >Emitted(140, 52) Source(62, 37) + SourceIndex(0) +4 >Emitted(140, 54) Source(62, 11) + SourceIndex(0) +5 >Emitted(140, 70) Source(62, 19) + SourceIndex(0) +6 >Emitted(140, 72) Source(62, 21) + SourceIndex(0) +7 >Emitted(140, 86) Source(62, 27) + SourceIndex(0) +8 >Emitted(140, 88) Source(62, 29) + SourceIndex(0) +9 >Emitted(140, 103) Source(62, 36) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(67, 5) Source(63, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(63, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(63, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(63, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(63, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(63, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(63, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(63, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(141, 9) Source(63, 5) + SourceIndex(0) +2 >Emitted(141, 16) Source(63, 12) + SourceIndex(0) +3 >Emitted(141, 17) Source(63, 13) + SourceIndex(0) +4 >Emitted(141, 20) Source(63, 16) + SourceIndex(0) +5 >Emitted(141, 21) Source(63, 17) + SourceIndex(0) +6 >Emitted(141, 27) Source(63, 23) + SourceIndex(0) +7 >Emitted(141, 28) Source(63, 24) + SourceIndex(0) +8 >Emitted(141, 29) Source(63, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(68, 2) Source(64, 2) + SourceIndex(0) +1 >Emitted(142, 6) Source(64, 2) + SourceIndex(0) --- ->>>for (var _9 = 0, _10 = [robotA, robotB]; _9 < _10.length; _9++) { -1-> +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +>>>} +>>>for (var _0 = 0, _1 = [robotA, robotB]; _0 < _1.length; _0++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^ -9 > ^^ -10> ^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ -16> ^^^^^^^^^^^^^^^-> -1-> +7 > ^^^^^^ +8 > ^^^^^^ +9 > ^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1673,278 +1853,60 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 5 > [robotA, robotB] 6 > 7 > [ -8 > robotA -9 > , -10> robotB -11> ] -12> -13> [robotA, robotB] -14> -15> [robotA, robotB] -1->Emitted(69, 1) Source(65, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(65, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(65, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(65, 41) + SourceIndex(0) -5 >Emitted(69, 16) Source(65, 57) + SourceIndex(0) -6 >Emitted(69, 18) Source(65, 41) + SourceIndex(0) -7 >Emitted(69, 25) Source(65, 42) + SourceIndex(0) -8 >Emitted(69, 31) Source(65, 48) + SourceIndex(0) -9 >Emitted(69, 33) Source(65, 50) + SourceIndex(0) -10>Emitted(69, 39) Source(65, 56) + SourceIndex(0) -11>Emitted(69, 40) Source(65, 57) + SourceIndex(0) -12>Emitted(69, 42) Source(65, 41) + SourceIndex(0) -13>Emitted(69, 57) Source(65, 57) + SourceIndex(0) -14>Emitted(69, 59) Source(65, 41) + SourceIndex(0) -15>Emitted(69, 63) Source(65, 57) + SourceIndex(0) ---- ->>> var _11 = _10[_9], numberA2 = _11[0], nameA2 = _11[1], skillA2 = _11[2]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [numberA2, nameA2, skillA2] -4 > -5 > numberA2 -6 > , -7 > nameA2 -8 > , -9 > skillA2 -1->Emitted(70, 5) Source(65, 10) + SourceIndex(0) -2 >Emitted(70, 9) Source(65, 10) + SourceIndex(0) -3 >Emitted(70, 22) Source(65, 37) + SourceIndex(0) -4 >Emitted(70, 24) Source(65, 11) + SourceIndex(0) -5 >Emitted(70, 41) Source(65, 19) + SourceIndex(0) -6 >Emitted(70, 43) Source(65, 21) + SourceIndex(0) -7 >Emitted(70, 58) Source(65, 27) + SourceIndex(0) -8 >Emitted(70, 60) Source(65, 29) + SourceIndex(0) -9 >Emitted(70, 76) Source(65, 36) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ -1 >] of [robotA, robotB]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(71, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(66, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(66, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(66, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(66, 17) + SourceIndex(0) -6 >Emitted(71, 23) Source(66, 23) + SourceIndex(0) -7 >Emitted(71, 24) Source(66, 24) + SourceIndex(0) -8 >Emitted(71, 25) Source(66, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(72, 2) Source(67, 2) + SourceIndex(0) ---- ->>>for (var _12 = 0, multiRobots_3 = multiRobots; _12 < multiRobots_3.length; _12++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > (let [nameMA, [primarySkillA, secondarySkillA]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(73, 1) Source(68, 1) + SourceIndex(0) -2 >Emitted(73, 4) Source(68, 4) + SourceIndex(0) -3 >Emitted(73, 5) Source(68, 5) + SourceIndex(0) -4 >Emitted(73, 6) Source(68, 56) + SourceIndex(0) -5 >Emitted(73, 17) Source(68, 67) + SourceIndex(0) -6 >Emitted(73, 19) Source(68, 56) + SourceIndex(0) -7 >Emitted(73, 46) Source(68, 67) + SourceIndex(0) -8 >Emitted(73, 48) Source(68, 56) + SourceIndex(0) -9 >Emitted(73, 74) Source(68, 67) + SourceIndex(0) -10>Emitted(73, 76) Source(68, 56) + SourceIndex(0) -11>Emitted(73, 81) Source(68, 67) + SourceIndex(0) ---- ->>> var _13 = multiRobots_3[_12], nameMA = _13[0], _14 = _13[1], primarySkillA = _14[0], secondarySkillA = _14[1]; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [nameMA, [primarySkillA, secondarySkillA]] -4 > -5 > nameMA -6 > , -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -1->Emitted(74, 5) Source(68, 10) + SourceIndex(0) -2 >Emitted(74, 9) Source(68, 10) + SourceIndex(0) -3 >Emitted(74, 33) Source(68, 52) + SourceIndex(0) -4 >Emitted(74, 35) Source(68, 11) + SourceIndex(0) -5 >Emitted(74, 50) Source(68, 17) + SourceIndex(0) -6 >Emitted(74, 52) Source(68, 19) + SourceIndex(0) -7 >Emitted(74, 64) Source(68, 51) + SourceIndex(0) -8 >Emitted(74, 66) Source(68, 20) + SourceIndex(0) -9 >Emitted(74, 88) Source(68, 33) + SourceIndex(0) -10>Emitted(74, 90) Source(68, 35) + SourceIndex(0) -11>Emitted(74, 114) Source(68, 50) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ -1 >]] of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(75, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(75, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(75, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(75, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(75, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(75, 23) Source(69, 23) + SourceIndex(0) -7 >Emitted(75, 24) Source(69, 24) + SourceIndex(0) -8 >Emitted(75, 25) Source(69, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(76, 2) Source(70, 2) + SourceIndex(0) ---- ->>>for (var _15 = 0, _16 = getMultiRobots(); _15 < _16.length; _15++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > (let [nameMA, [primarySkillA, secondarySkillA]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(77, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(77, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(77, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(77, 6) Source(71, 56) + SourceIndex(0) -5 >Emitted(77, 17) Source(71, 72) + SourceIndex(0) -6 >Emitted(77, 19) Source(71, 56) + SourceIndex(0) -7 >Emitted(77, 25) Source(71, 56) + SourceIndex(0) -8 >Emitted(77, 39) Source(71, 70) + SourceIndex(0) -9 >Emitted(77, 41) Source(71, 72) + SourceIndex(0) -10>Emitted(77, 43) Source(71, 56) + SourceIndex(0) -11>Emitted(77, 59) Source(71, 72) + SourceIndex(0) -12>Emitted(77, 61) Source(71, 56) + SourceIndex(0) -13>Emitted(77, 66) Source(71, 72) + SourceIndex(0) ---- ->>> var _17 = _16[_15], nameMA = _17[0], _18 = _17[1], primarySkillA = _18[0], secondarySkillA = _18[1]; +8 > robotA +9 > , +10> robotB +11> ] +12> +13> [robotA, robotB] +14> +15> [robotA, robotB] +1 >Emitted(148, 1) Source(65, 1) + SourceIndex(0) +2 >Emitted(148, 4) Source(65, 4) + SourceIndex(0) +3 >Emitted(148, 5) Source(65, 5) + SourceIndex(0) +4 >Emitted(148, 6) Source(65, 41) + SourceIndex(0) +5 >Emitted(148, 16) Source(65, 57) + SourceIndex(0) +6 >Emitted(148, 18) Source(65, 41) + SourceIndex(0) +7 >Emitted(148, 24) Source(65, 42) + SourceIndex(0) +8 >Emitted(148, 30) Source(65, 48) + SourceIndex(0) +9 >Emitted(148, 32) Source(65, 50) + SourceIndex(0) +10>Emitted(148, 38) Source(65, 56) + SourceIndex(0) +11>Emitted(148, 39) Source(65, 57) + SourceIndex(0) +12>Emitted(148, 41) Source(65, 41) + SourceIndex(0) +13>Emitted(148, 55) Source(65, 57) + SourceIndex(0) +14>Emitted(148, 57) Source(65, 41) + SourceIndex(0) +15>Emitted(148, 61) Source(65, 57) + SourceIndex(0) +--- +>>> var _2 = __read(_1[_0], 3), numberA2 = _2[0], nameA2 = _2[1], skillA2 = _2[2]; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ 1-> 2 > -3 > [nameMA, [primarySkillA, secondarySkillA]] -4 > -5 > nameMA -6 > , -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -1->Emitted(78, 5) Source(71, 10) + SourceIndex(0) -2 >Emitted(78, 9) Source(71, 10) + SourceIndex(0) -3 >Emitted(78, 23) Source(71, 52) + SourceIndex(0) -4 >Emitted(78, 25) Source(71, 11) + SourceIndex(0) -5 >Emitted(78, 40) Source(71, 17) + SourceIndex(0) -6 >Emitted(78, 42) Source(71, 19) + SourceIndex(0) -7 >Emitted(78, 54) Source(71, 51) + SourceIndex(0) -8 >Emitted(78, 56) Source(71, 20) + SourceIndex(0) -9 >Emitted(78, 78) Source(71, 33) + SourceIndex(0) -10>Emitted(78, 80) Source(71, 35) + SourceIndex(0) -11>Emitted(78, 104) Source(71, 50) + SourceIndex(0) +3 > [numberA2, nameA2, skillA2] +4 > +5 > numberA2 +6 > , +7 > nameA2 +8 > , +9 > skillA2 +1->Emitted(149, 5) Source(65, 10) + SourceIndex(0) +2 >Emitted(149, 9) Source(65, 10) + SourceIndex(0) +3 >Emitted(149, 31) Source(65, 37) + SourceIndex(0) +4 >Emitted(149, 33) Source(65, 11) + SourceIndex(0) +5 >Emitted(149, 49) Source(65, 19) + SourceIndex(0) +6 >Emitted(149, 51) Source(65, 21) + SourceIndex(0) +7 >Emitted(149, 65) Source(65, 27) + SourceIndex(0) +8 >Emitted(149, 67) Source(65, 29) + SourceIndex(0) +9 >Emitted(149, 82) Source(65, 36) + SourceIndex(0) --- ->>> console.log(nameMA); +>>> console.log(nameA2); 1 >^^^^ 2 > ^^^^^^^ 3 > ^ @@ -1953,114 +1915,357 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > ^^^^^^ 7 > ^ 8 > ^ -1 >]] of getMultiRobots()) { +1 >] of [robotA, robotB]) { > 2 > console 3 > . 4 > log 5 > ( -6 > nameMA +6 > nameA2 7 > ) 8 > ; -1 >Emitted(79, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(79, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(79, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(79, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(79, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(79, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(79, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(79, 25) Source(72, 25) + SourceIndex(0) +1 >Emitted(150, 5) Source(66, 5) + SourceIndex(0) +2 >Emitted(150, 12) Source(66, 12) + SourceIndex(0) +3 >Emitted(150, 13) Source(66, 13) + SourceIndex(0) +4 >Emitted(150, 16) Source(66, 16) + SourceIndex(0) +5 >Emitted(150, 17) Source(66, 17) + SourceIndex(0) +6 >Emitted(150, 23) Source(66, 23) + SourceIndex(0) +7 >Emitted(150, 24) Source(66, 24) + SourceIndex(0) +8 >Emitted(150, 25) Source(66, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> +1 > + >} +1 >Emitted(151, 2) Source(67, 2) + SourceIndex(0) +--- +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > for +3 > +4 > (let [nameMA, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [nameMA, [primarySkillA, secondarySkillA]] +1->Emitted(153, 5) Source(68, 1) + SourceIndex(0) +2 >Emitted(153, 8) Source(68, 4) + SourceIndex(0) +3 >Emitted(153, 9) Source(68, 5) + SourceIndex(0) +4 >Emitted(153, 10) Source(68, 56) + SourceIndex(0) +5 >Emitted(153, 14) Source(68, 56) + SourceIndex(0) +6 >Emitted(153, 30) Source(68, 56) + SourceIndex(0) +7 >Emitted(153, 32) Source(68, 56) + SourceIndex(0) +8 >Emitted(153, 42) Source(68, 56) + SourceIndex(0) +9 >Emitted(153, 51) Source(68, 56) + SourceIndex(0) +10>Emitted(153, 62) Source(68, 67) + SourceIndex(0) +11>Emitted(153, 63) Source(68, 67) + SourceIndex(0) +12>Emitted(153, 65) Source(68, 67) + SourceIndex(0) +13>Emitted(153, 67) Source(68, 6) + SourceIndex(0) +14>Emitted(153, 88) Source(68, 52) + SourceIndex(0) +--- +>>> var _3 = __read(multiRobots_3.result.value, 2), nameMA = _3[0], _4 = __read(_3[1], 2), primarySkillA = _4[0], secondarySkillA = _4[1]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [nameMA, [primarySkillA, secondarySkillA]] +4 > +5 > nameMA +6 > , +7 > [primarySkillA, secondarySkillA] +8 > +9 > primarySkillA +10> , +11> secondarySkillA +1->Emitted(154, 9) Source(68, 10) + SourceIndex(0) +2 >Emitted(154, 13) Source(68, 10) + SourceIndex(0) +3 >Emitted(154, 55) Source(68, 52) + SourceIndex(0) +4 >Emitted(154, 57) Source(68, 11) + SourceIndex(0) +5 >Emitted(154, 71) Source(68, 17) + SourceIndex(0) +6 >Emitted(154, 73) Source(68, 19) + SourceIndex(0) +7 >Emitted(154, 94) Source(68, 51) + SourceIndex(0) +8 >Emitted(154, 96) Source(68, 20) + SourceIndex(0) +9 >Emitted(154, 117) Source(68, 33) + SourceIndex(0) +10>Emitted(154, 119) Source(68, 35) + SourceIndex(0) +11>Emitted(154, 142) Source(68, 50) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ +1 >]] of multiRobots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(155, 9) Source(69, 5) + SourceIndex(0) +2 >Emitted(155, 16) Source(69, 12) + SourceIndex(0) +3 >Emitted(155, 17) Source(69, 13) + SourceIndex(0) +4 >Emitted(155, 20) Source(69, 16) + SourceIndex(0) +5 >Emitted(155, 21) Source(69, 17) + SourceIndex(0) +6 >Emitted(155, 27) Source(69, 23) + SourceIndex(0) +7 >Emitted(155, 28) Source(69, 24) + SourceIndex(0) +8 >Emitted(155, 29) Source(69, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(80, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(156, 6) Source(70, 2) + SourceIndex(0) --- ->>>for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > (let [nameMA, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [nameMA, [primarySkillA, secondarySkillA]] +1 >Emitted(163, 5) Source(71, 1) + SourceIndex(0) +2 >Emitted(163, 8) Source(71, 4) + SourceIndex(0) +3 >Emitted(163, 9) Source(71, 5) + SourceIndex(0) +4 >Emitted(163, 10) Source(71, 56) + SourceIndex(0) +5 >Emitted(163, 14) Source(71, 56) + SourceIndex(0) +6 >Emitted(163, 27) Source(71, 56) + SourceIndex(0) +7 >Emitted(163, 29) Source(71, 56) + SourceIndex(0) +8 >Emitted(163, 39) Source(71, 56) + SourceIndex(0) +9 >Emitted(163, 48) Source(71, 56) + SourceIndex(0) +10>Emitted(163, 62) Source(71, 70) + SourceIndex(0) +11>Emitted(163, 64) Source(71, 72) + SourceIndex(0) +12>Emitted(163, 65) Source(71, 72) + SourceIndex(0) +13>Emitted(163, 67) Source(71, 72) + SourceIndex(0) +14>Emitted(163, 69) Source(71, 6) + SourceIndex(0) +15>Emitted(163, 87) Source(71, 52) + SourceIndex(0) +--- +>>> var _5 = __read(iterator_6.result.value, 2), nameMA = _5[0], _6 = __read(_5[1], 2), primarySkillA = _6[0], secondarySkillA = _6[1]; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ 1-> +2 > +3 > [nameMA, [primarySkillA, secondarySkillA]] +4 > +5 > nameMA +6 > , +7 > [primarySkillA, secondarySkillA] +8 > +9 > primarySkillA +10> , +11> secondarySkillA +1->Emitted(164, 9) Source(71, 10) + SourceIndex(0) +2 >Emitted(164, 13) Source(71, 10) + SourceIndex(0) +3 >Emitted(164, 52) Source(71, 52) + SourceIndex(0) +4 >Emitted(164, 54) Source(71, 11) + SourceIndex(0) +5 >Emitted(164, 68) Source(71, 17) + SourceIndex(0) +6 >Emitted(164, 70) Source(71, 19) + SourceIndex(0) +7 >Emitted(164, 91) Source(71, 51) + SourceIndex(0) +8 >Emitted(164, 93) Source(71, 20) + SourceIndex(0) +9 >Emitted(164, 114) Source(71, 33) + SourceIndex(0) +10>Emitted(164, 116) Source(71, 35) + SourceIndex(0) +11>Emitted(164, 139) Source(71, 50) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ +1 >]] of getMultiRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(165, 9) Source(72, 5) + SourceIndex(0) +2 >Emitted(165, 16) Source(72, 12) + SourceIndex(0) +3 >Emitted(165, 17) Source(72, 13) + SourceIndex(0) +4 >Emitted(165, 20) Source(72, 16) + SourceIndex(0) +5 >Emitted(165, 21) Source(72, 17) + SourceIndex(0) +6 >Emitted(165, 27) Source(72, 23) + SourceIndex(0) +7 >Emitted(165, 28) Source(72, 24) + SourceIndex(0) +8 >Emitted(165, 29) Source(72, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(166, 6) Source(73, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +>>>} +>>>for (var _7 = 0, _8 = [multiRobotA, multiRobotB]; _7 < _8.length; _7++) { +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > 4 > (let [nameMA, [primarySkillA, secondarySkillA]] of 5 > [multiRobotA, multiRobotB] -6 > -7 > [ -8 > multiRobotA -9 > , -10> multiRobotB -11> ] -12> -13> [multiRobotA, multiRobotB] -14> -15> [multiRobotA, multiRobotB] -1->Emitted(81, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(81, 4) Source(74, 4) + SourceIndex(0) -3 >Emitted(81, 5) Source(74, 5) + SourceIndex(0) -4 >Emitted(81, 6) Source(74, 56) + SourceIndex(0) -5 >Emitted(81, 17) Source(74, 82) + SourceIndex(0) -6 >Emitted(81, 19) Source(74, 56) + SourceIndex(0) -7 >Emitted(81, 26) Source(74, 57) + SourceIndex(0) -8 >Emitted(81, 37) Source(74, 68) + SourceIndex(0) -9 >Emitted(81, 39) Source(74, 70) + SourceIndex(0) -10>Emitted(81, 50) Source(74, 81) + SourceIndex(0) -11>Emitted(81, 51) Source(74, 82) + SourceIndex(0) -12>Emitted(81, 53) Source(74, 56) + SourceIndex(0) -13>Emitted(81, 69) Source(74, 82) + SourceIndex(0) -14>Emitted(81, 71) Source(74, 56) + SourceIndex(0) -15>Emitted(81, 76) Source(74, 82) + SourceIndex(0) ---- ->>> var _21 = _20[_19], nameMA = _21[0], _22 = _21[1], primarySkillA = _22[0], secondarySkillA = _22[1]; +6 > +7 > [ +8 > multiRobotA +9 > , +10> multiRobotB +11> ] +12> +13> [multiRobotA, multiRobotB] +14> +15> [multiRobotA, multiRobotB] +1 >Emitted(172, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(172, 4) Source(74, 4) + SourceIndex(0) +3 >Emitted(172, 5) Source(74, 5) + SourceIndex(0) +4 >Emitted(172, 6) Source(74, 56) + SourceIndex(0) +5 >Emitted(172, 16) Source(74, 82) + SourceIndex(0) +6 >Emitted(172, 18) Source(74, 56) + SourceIndex(0) +7 >Emitted(172, 24) Source(74, 57) + SourceIndex(0) +8 >Emitted(172, 35) Source(74, 68) + SourceIndex(0) +9 >Emitted(172, 37) Source(74, 70) + SourceIndex(0) +10>Emitted(172, 48) Source(74, 81) + SourceIndex(0) +11>Emitted(172, 49) Source(74, 82) + SourceIndex(0) +12>Emitted(172, 51) Source(74, 56) + SourceIndex(0) +13>Emitted(172, 65) Source(74, 82) + SourceIndex(0) +14>Emitted(172, 67) Source(74, 56) + SourceIndex(0) +15>Emitted(172, 71) Source(74, 82) + SourceIndex(0) +--- +>>> var _9 = __read(_8[_7], 2), nameMA = _9[0], _10 = __read(_9[1], 2), primarySkillA = _10[0], secondarySkillA = _10[1]; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [nameMA, [primarySkillA, secondarySkillA]] -4 > -5 > nameMA -6 > , -7 > [primarySkillA, secondarySkillA] -8 > -9 > primarySkillA -10> , -11> secondarySkillA -1->Emitted(82, 5) Source(74, 10) + SourceIndex(0) -2 >Emitted(82, 9) Source(74, 10) + SourceIndex(0) -3 >Emitted(82, 23) Source(74, 52) + SourceIndex(0) -4 >Emitted(82, 25) Source(74, 11) + SourceIndex(0) -5 >Emitted(82, 40) Source(74, 17) + SourceIndex(0) -6 >Emitted(82, 42) Source(74, 19) + SourceIndex(0) -7 >Emitted(82, 54) Source(74, 51) + SourceIndex(0) -8 >Emitted(82, 56) Source(74, 20) + SourceIndex(0) -9 >Emitted(82, 78) Source(74, 33) + SourceIndex(0) -10>Emitted(82, 80) Source(74, 35) + SourceIndex(0) -11>Emitted(82, 104) Source(74, 50) + SourceIndex(0) +4 > +5 > nameMA +6 > , +7 > [primarySkillA, secondarySkillA] +8 > +9 > primarySkillA +10> , +11> secondarySkillA +1->Emitted(173, 5) Source(74, 10) + SourceIndex(0) +2 >Emitted(173, 9) Source(74, 10) + SourceIndex(0) +3 >Emitted(173, 31) Source(74, 52) + SourceIndex(0) +4 >Emitted(173, 33) Source(74, 11) + SourceIndex(0) +5 >Emitted(173, 47) Source(74, 17) + SourceIndex(0) +6 >Emitted(173, 49) Source(74, 19) + SourceIndex(0) +7 >Emitted(173, 71) Source(74, 51) + SourceIndex(0) +8 >Emitted(173, 73) Source(74, 20) + SourceIndex(0) +9 >Emitted(173, 95) Source(74, 33) + SourceIndex(0) +10>Emitted(173, 97) Source(74, 35) + SourceIndex(0) +11>Emitted(173, 121) Source(74, 50) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2080,219 +2285,244 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(83, 5) Source(75, 5) + SourceIndex(0) -2 >Emitted(83, 12) Source(75, 12) + SourceIndex(0) -3 >Emitted(83, 13) Source(75, 13) + SourceIndex(0) -4 >Emitted(83, 16) Source(75, 16) + SourceIndex(0) -5 >Emitted(83, 17) Source(75, 17) + SourceIndex(0) -6 >Emitted(83, 23) Source(75, 23) + SourceIndex(0) -7 >Emitted(83, 24) Source(75, 24) + SourceIndex(0) -8 >Emitted(83, 25) Source(75, 25) + SourceIndex(0) +1 >Emitted(174, 5) Source(75, 5) + SourceIndex(0) +2 >Emitted(174, 12) Source(75, 12) + SourceIndex(0) +3 >Emitted(174, 13) Source(75, 13) + SourceIndex(0) +4 >Emitted(174, 16) Source(75, 16) + SourceIndex(0) +5 >Emitted(174, 17) Source(75, 17) + SourceIndex(0) +6 >Emitted(174, 23) Source(75, 23) + SourceIndex(0) +7 >Emitted(174, 24) Source(75, 24) + SourceIndex(0) +8 >Emitted(174, 25) Source(75, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(84, 2) Source(76, 2) + SourceIndex(0) +1 >Emitted(175, 2) Source(76, 2) + SourceIndex(0) --- ->>>for (var _23 = 0, robots_4 = robots; _23 < robots_4.length; _23++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^-> +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let [numberA3, ...robotAInfo] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(85, 1) Source(78, 1) + SourceIndex(0) -2 >Emitted(85, 4) Source(78, 4) + SourceIndex(0) -3 >Emitted(85, 5) Source(78, 5) + SourceIndex(0) -4 >Emitted(85, 6) Source(78, 39) + SourceIndex(0) -5 >Emitted(85, 17) Source(78, 45) + SourceIndex(0) -6 >Emitted(85, 19) Source(78, 39) + SourceIndex(0) -7 >Emitted(85, 36) Source(78, 45) + SourceIndex(0) -8 >Emitted(85, 38) Source(78, 39) + SourceIndex(0) -9 >Emitted(85, 59) Source(78, 45) + SourceIndex(0) -10>Emitted(85, 61) Source(78, 39) + SourceIndex(0) -11>Emitted(85, 66) Source(78, 45) + SourceIndex(0) ---- ->>> var _24 = robots_4[_23], numberA3 = _24[0], robotAInfo = _24.slice(1); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA3, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberA3, ...robotAInfo] +1->Emitted(177, 5) Source(78, 1) + SourceIndex(0) +2 >Emitted(177, 8) Source(78, 4) + SourceIndex(0) +3 >Emitted(177, 9) Source(78, 5) + SourceIndex(0) +4 >Emitted(177, 10) Source(78, 39) + SourceIndex(0) +5 >Emitted(177, 14) Source(78, 39) + SourceIndex(0) +6 >Emitted(177, 25) Source(78, 39) + SourceIndex(0) +7 >Emitted(177, 27) Source(78, 39) + SourceIndex(0) +8 >Emitted(177, 37) Source(78, 39) + SourceIndex(0) +9 >Emitted(177, 46) Source(78, 39) + SourceIndex(0) +10>Emitted(177, 52) Source(78, 45) + SourceIndex(0) +11>Emitted(177, 53) Source(78, 45) + SourceIndex(0) +12>Emitted(177, 55) Source(78, 45) + SourceIndex(0) +13>Emitted(177, 57) Source(78, 6) + SourceIndex(0) +14>Emitted(177, 73) Source(78, 35) + SourceIndex(0) +--- +>>> var _11 = __read(robots_4.result.value), numberA3 = _11[0], robotAInfo = _11.slice(1); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA3, ...robotAInfo] -4 > -5 > numberA3 -6 > , -7 > ...robotAInfo -1->Emitted(86, 5) Source(78, 10) + SourceIndex(0) -2 >Emitted(86, 9) Source(78, 10) + SourceIndex(0) -3 >Emitted(86, 28) Source(78, 35) + SourceIndex(0) -4 >Emitted(86, 30) Source(78, 11) + SourceIndex(0) -5 >Emitted(86, 47) Source(78, 19) + SourceIndex(0) -6 >Emitted(86, 49) Source(78, 21) + SourceIndex(0) -7 >Emitted(86, 74) Source(78, 34) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA3, ...robotAInfo] +4 > +5 > numberA3 +6 > , +7 > ...robotAInfo +1->Emitted(178, 9) Source(78, 10) + SourceIndex(0) +2 >Emitted(178, 13) Source(78, 10) + SourceIndex(0) +3 >Emitted(178, 48) Source(78, 35) + SourceIndex(0) +4 >Emitted(178, 50) Source(78, 11) + SourceIndex(0) +5 >Emitted(178, 67) Source(78, 19) + SourceIndex(0) +6 >Emitted(178, 69) Source(78, 21) + SourceIndex(0) +7 >Emitted(178, 94) Source(78, 34) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(87, 5) Source(79, 5) + SourceIndex(0) -2 >Emitted(87, 12) Source(79, 12) + SourceIndex(0) -3 >Emitted(87, 13) Source(79, 13) + SourceIndex(0) -4 >Emitted(87, 16) Source(79, 16) + SourceIndex(0) -5 >Emitted(87, 17) Source(79, 17) + SourceIndex(0) -6 >Emitted(87, 25) Source(79, 25) + SourceIndex(0) -7 >Emitted(87, 26) Source(79, 26) + SourceIndex(0) -8 >Emitted(87, 27) Source(79, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(179, 9) Source(79, 5) + SourceIndex(0) +2 >Emitted(179, 16) Source(79, 12) + SourceIndex(0) +3 >Emitted(179, 17) Source(79, 13) + SourceIndex(0) +4 >Emitted(179, 20) Source(79, 16) + SourceIndex(0) +5 >Emitted(179, 21) Source(79, 17) + SourceIndex(0) +6 >Emitted(179, 29) Source(79, 25) + SourceIndex(0) +7 >Emitted(179, 30) Source(79, 26) + SourceIndex(0) +8 >Emitted(179, 31) Source(79, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(88, 2) Source(80, 2) + SourceIndex(0) +1 >Emitted(180, 6) Source(80, 2) + SourceIndex(0) --- ->>>for (var _25 = 0, _26 = getRobots(); _25 < _26.length; _25++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [numberA3, ...robotAInfo] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(89, 1) Source(81, 1) + SourceIndex(0) -2 >Emitted(89, 4) Source(81, 4) + SourceIndex(0) -3 >Emitted(89, 5) Source(81, 5) + SourceIndex(0) -4 >Emitted(89, 6) Source(81, 39) + SourceIndex(0) -5 >Emitted(89, 17) Source(81, 50) + SourceIndex(0) -6 >Emitted(89, 19) Source(81, 39) + SourceIndex(0) -7 >Emitted(89, 25) Source(81, 39) + SourceIndex(0) -8 >Emitted(89, 34) Source(81, 48) + SourceIndex(0) -9 >Emitted(89, 36) Source(81, 50) + SourceIndex(0) -10>Emitted(89, 38) Source(81, 39) + SourceIndex(0) -11>Emitted(89, 54) Source(81, 50) + SourceIndex(0) -12>Emitted(89, 56) Source(81, 39) + SourceIndex(0) -13>Emitted(89, 61) Source(81, 50) + SourceIndex(0) ---- ->>> var _27 = _26[_25], numberA3 = _27[0], robotAInfo = _27.slice(1); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA3, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberA3, ...robotAInfo] +1 >Emitted(187, 5) Source(81, 1) + SourceIndex(0) +2 >Emitted(187, 8) Source(81, 4) + SourceIndex(0) +3 >Emitted(187, 9) Source(81, 5) + SourceIndex(0) +4 >Emitted(187, 10) Source(81, 39) + SourceIndex(0) +5 >Emitted(187, 14) Source(81, 39) + SourceIndex(0) +6 >Emitted(187, 27) Source(81, 39) + SourceIndex(0) +7 >Emitted(187, 29) Source(81, 39) + SourceIndex(0) +8 >Emitted(187, 39) Source(81, 39) + SourceIndex(0) +9 >Emitted(187, 48) Source(81, 39) + SourceIndex(0) +10>Emitted(187, 57) Source(81, 48) + SourceIndex(0) +11>Emitted(187, 59) Source(81, 50) + SourceIndex(0) +12>Emitted(187, 60) Source(81, 50) + SourceIndex(0) +13>Emitted(187, 62) Source(81, 50) + SourceIndex(0) +14>Emitted(187, 64) Source(81, 6) + SourceIndex(0) +15>Emitted(187, 82) Source(81, 35) + SourceIndex(0) +--- +>>> var _12 = __read(iterator_7.result.value), numberA3 = _12[0], robotAInfo = _12.slice(1); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA3, ...robotAInfo] -4 > -5 > numberA3 -6 > , -7 > ...robotAInfo -1->Emitted(90, 5) Source(81, 10) + SourceIndex(0) -2 >Emitted(90, 9) Source(81, 10) + SourceIndex(0) -3 >Emitted(90, 23) Source(81, 35) + SourceIndex(0) -4 >Emitted(90, 25) Source(81, 11) + SourceIndex(0) -5 >Emitted(90, 42) Source(81, 19) + SourceIndex(0) -6 >Emitted(90, 44) Source(81, 21) + SourceIndex(0) -7 >Emitted(90, 69) Source(81, 34) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA3, ...robotAInfo] +4 > +5 > numberA3 +6 > , +7 > ...robotAInfo +1->Emitted(188, 9) Source(81, 10) + SourceIndex(0) +2 >Emitted(188, 13) Source(81, 10) + SourceIndex(0) +3 >Emitted(188, 50) Source(81, 35) + SourceIndex(0) +4 >Emitted(188, 52) Source(81, 11) + SourceIndex(0) +5 >Emitted(188, 69) Source(81, 19) + SourceIndex(0) +6 >Emitted(188, 71) Source(81, 21) + SourceIndex(0) +7 >Emitted(188, 96) Source(81, 34) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(91, 5) Source(82, 5) + SourceIndex(0) -2 >Emitted(91, 12) Source(82, 12) + SourceIndex(0) -3 >Emitted(91, 13) Source(82, 13) + SourceIndex(0) -4 >Emitted(91, 16) Source(82, 16) + SourceIndex(0) -5 >Emitted(91, 17) Source(82, 17) + SourceIndex(0) -6 >Emitted(91, 25) Source(82, 25) + SourceIndex(0) -7 >Emitted(91, 26) Source(82, 26) + SourceIndex(0) -8 >Emitted(91, 27) Source(82, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(189, 9) Source(82, 5) + SourceIndex(0) +2 >Emitted(189, 16) Source(82, 12) + SourceIndex(0) +3 >Emitted(189, 17) Source(82, 13) + SourceIndex(0) +4 >Emitted(189, 20) Source(82, 16) + SourceIndex(0) +5 >Emitted(189, 21) Source(82, 17) + SourceIndex(0) +6 >Emitted(189, 29) Source(82, 25) + SourceIndex(0) +7 >Emitted(189, 30) Source(82, 26) + SourceIndex(0) +8 >Emitted(189, 31) Source(82, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(92, 2) Source(83, 2) + SourceIndex(0) +1 >Emitted(190, 6) Source(83, 2) + SourceIndex(0) --- ->>>for (var _28 = 0, _29 = [robotA, robotB]; _28 < _29.length; _28++) { -1-> +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +>>>} +>>>for (var _13 = 0, _14 = [robotA, robotB]; _13 < _14.length; _13++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2307,8 +2537,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^-> -1-> +16> ^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2324,44 +2554,44 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(93, 1) Source(84, 1) + SourceIndex(0) -2 >Emitted(93, 4) Source(84, 4) + SourceIndex(0) -3 >Emitted(93, 5) Source(84, 5) + SourceIndex(0) -4 >Emitted(93, 6) Source(84, 39) + SourceIndex(0) -5 >Emitted(93, 17) Source(84, 55) + SourceIndex(0) -6 >Emitted(93, 19) Source(84, 39) + SourceIndex(0) -7 >Emitted(93, 26) Source(84, 40) + SourceIndex(0) -8 >Emitted(93, 32) Source(84, 46) + SourceIndex(0) -9 >Emitted(93, 34) Source(84, 48) + SourceIndex(0) -10>Emitted(93, 40) Source(84, 54) + SourceIndex(0) -11>Emitted(93, 41) Source(84, 55) + SourceIndex(0) -12>Emitted(93, 43) Source(84, 39) + SourceIndex(0) -13>Emitted(93, 59) Source(84, 55) + SourceIndex(0) -14>Emitted(93, 61) Source(84, 39) + SourceIndex(0) -15>Emitted(93, 66) Source(84, 55) + SourceIndex(0) ---- ->>> var _30 = _29[_28], numberA3 = _30[0], robotAInfo = _30.slice(1); +1 >Emitted(196, 1) Source(84, 1) + SourceIndex(0) +2 >Emitted(196, 4) Source(84, 4) + SourceIndex(0) +3 >Emitted(196, 5) Source(84, 5) + SourceIndex(0) +4 >Emitted(196, 6) Source(84, 39) + SourceIndex(0) +5 >Emitted(196, 17) Source(84, 55) + SourceIndex(0) +6 >Emitted(196, 19) Source(84, 39) + SourceIndex(0) +7 >Emitted(196, 26) Source(84, 40) + SourceIndex(0) +8 >Emitted(196, 32) Source(84, 46) + SourceIndex(0) +9 >Emitted(196, 34) Source(84, 48) + SourceIndex(0) +10>Emitted(196, 40) Source(84, 54) + SourceIndex(0) +11>Emitted(196, 41) Source(84, 55) + SourceIndex(0) +12>Emitted(196, 43) Source(84, 39) + SourceIndex(0) +13>Emitted(196, 59) Source(84, 55) + SourceIndex(0) +14>Emitted(196, 61) Source(84, 39) + SourceIndex(0) +15>Emitted(196, 66) Source(84, 55) + SourceIndex(0) +--- +>>> var _15 = __read(_14[_13]), numberA3 = _15[0], robotAInfo = _15.slice(1); 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [numberA3, ...robotAInfo] -4 > -5 > numberA3 -6 > , -7 > ...robotAInfo -1->Emitted(94, 5) Source(84, 10) + SourceIndex(0) -2 >Emitted(94, 9) Source(84, 10) + SourceIndex(0) -3 >Emitted(94, 23) Source(84, 35) + SourceIndex(0) -4 >Emitted(94, 25) Source(84, 11) + SourceIndex(0) -5 >Emitted(94, 42) Source(84, 19) + SourceIndex(0) -6 >Emitted(94, 44) Source(84, 21) + SourceIndex(0) -7 >Emitted(94, 69) Source(84, 34) + SourceIndex(0) +4 > +5 > numberA3 +6 > , +7 > ...robotAInfo +1->Emitted(197, 5) Source(84, 10) + SourceIndex(0) +2 >Emitted(197, 9) Source(84, 10) + SourceIndex(0) +3 >Emitted(197, 31) Source(84, 35) + SourceIndex(0) +4 >Emitted(197, 33) Source(84, 11) + SourceIndex(0) +5 >Emitted(197, 50) Source(84, 19) + SourceIndex(0) +6 >Emitted(197, 52) Source(84, 21) + SourceIndex(0) +7 >Emitted(197, 77) Source(84, 34) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2381,192 +2611,229 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(95, 5) Source(85, 5) + SourceIndex(0) -2 >Emitted(95, 12) Source(85, 12) + SourceIndex(0) -3 >Emitted(95, 13) Source(85, 13) + SourceIndex(0) -4 >Emitted(95, 16) Source(85, 16) + SourceIndex(0) -5 >Emitted(95, 17) Source(85, 17) + SourceIndex(0) -6 >Emitted(95, 25) Source(85, 25) + SourceIndex(0) -7 >Emitted(95, 26) Source(85, 26) + SourceIndex(0) -8 >Emitted(95, 27) Source(85, 27) + SourceIndex(0) +1 >Emitted(198, 5) Source(85, 5) + SourceIndex(0) +2 >Emitted(198, 12) Source(85, 12) + SourceIndex(0) +3 >Emitted(198, 13) Source(85, 13) + SourceIndex(0) +4 >Emitted(198, 16) Source(85, 16) + SourceIndex(0) +5 >Emitted(198, 17) Source(85, 17) + SourceIndex(0) +6 >Emitted(198, 25) Source(85, 25) + SourceIndex(0) +7 >Emitted(198, 26) Source(85, 26) + SourceIndex(0) +8 >Emitted(198, 27) Source(85, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(96, 2) Source(86, 2) + SourceIndex(0) +1 >Emitted(199, 2) Source(86, 2) + SourceIndex(0) --- ->>>for (var _31 = 0, multiRobots_4 = multiRobots; _31 < multiRobots_4.length; _31++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ +>>>try { +>>> for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > (let [...multiRobotAInfo] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(97, 1) Source(87, 1) + SourceIndex(0) -2 >Emitted(97, 4) Source(87, 4) + SourceIndex(0) -3 >Emitted(97, 5) Source(87, 5) + SourceIndex(0) -4 >Emitted(97, 6) Source(87, 34) + SourceIndex(0) -5 >Emitted(97, 17) Source(87, 45) + SourceIndex(0) -6 >Emitted(97, 19) Source(87, 34) + SourceIndex(0) -7 >Emitted(97, 46) Source(87, 45) + SourceIndex(0) -8 >Emitted(97, 48) Source(87, 34) + SourceIndex(0) -9 >Emitted(97, 74) Source(87, 45) + SourceIndex(0) -10>Emitted(97, 76) Source(87, 34) + SourceIndex(0) -11>Emitted(97, 81) Source(87, 45) + SourceIndex(0) ---- ->>> var multiRobotAInfo = multiRobots_4[_31].slice(0); -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [...multiRobotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [...multiRobotAInfo] +1->Emitted(201, 5) Source(87, 1) + SourceIndex(0) +2 >Emitted(201, 8) Source(87, 4) + SourceIndex(0) +3 >Emitted(201, 9) Source(87, 5) + SourceIndex(0) +4 >Emitted(201, 10) Source(87, 34) + SourceIndex(0) +5 >Emitted(201, 14) Source(87, 34) + SourceIndex(0) +6 >Emitted(201, 30) Source(87, 34) + SourceIndex(0) +7 >Emitted(201, 32) Source(87, 34) + SourceIndex(0) +8 >Emitted(201, 42) Source(87, 34) + SourceIndex(0) +9 >Emitted(201, 51) Source(87, 34) + SourceIndex(0) +10>Emitted(201, 62) Source(87, 45) + SourceIndex(0) +11>Emitted(201, 63) Source(87, 45) + SourceIndex(0) +12>Emitted(201, 65) Source(87, 45) + SourceIndex(0) +13>Emitted(201, 67) Source(87, 6) + SourceIndex(0) +14>Emitted(201, 88) Source(87, 30) + SourceIndex(0) +--- +>>> var _16 = __read(multiRobots_4.result.value), multiRobotAInfo = _16.slice(0); +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > -3 > ...multiRobotAInfo -1 >Emitted(98, 5) Source(87, 11) + SourceIndex(0) -2 >Emitted(98, 9) Source(87, 11) + SourceIndex(0) -3 >Emitted(98, 54) Source(87, 29) + SourceIndex(0) ---- ->>> console.log(multiRobotAInfo); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [...multiRobotAInfo] +4 > +5 > ...multiRobotAInfo +1 >Emitted(202, 9) Source(87, 10) + SourceIndex(0) +2 >Emitted(202, 13) Source(87, 10) + SourceIndex(0) +3 >Emitted(202, 53) Source(87, 30) + SourceIndex(0) +4 >Emitted(202, 55) Source(87, 11) + SourceIndex(0) +5 >Emitted(202, 85) Source(87, 29) + SourceIndex(0) +--- +>>> console.log(multiRobotAInfo); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > multiRobotAInfo -7 > ) -8 > ; -1 >Emitted(99, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(99, 12) Source(88, 12) + SourceIndex(0) -3 >Emitted(99, 13) Source(88, 13) + SourceIndex(0) -4 >Emitted(99, 16) Source(88, 16) + SourceIndex(0) -5 >Emitted(99, 17) Source(88, 17) + SourceIndex(0) -6 >Emitted(99, 32) Source(88, 32) + SourceIndex(0) -7 >Emitted(99, 33) Source(88, 33) + SourceIndex(0) -8 >Emitted(99, 34) Source(88, 34) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > multiRobotAInfo +7 > ) +8 > ; +1 >Emitted(203, 9) Source(88, 5) + SourceIndex(0) +2 >Emitted(203, 16) Source(88, 12) + SourceIndex(0) +3 >Emitted(203, 17) Source(88, 13) + SourceIndex(0) +4 >Emitted(203, 20) Source(88, 16) + SourceIndex(0) +5 >Emitted(203, 21) Source(88, 17) + SourceIndex(0) +6 >Emitted(203, 36) Source(88, 32) + SourceIndex(0) +7 >Emitted(203, 37) Source(88, 33) + SourceIndex(0) +8 >Emitted(203, 38) Source(88, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(100, 2) Source(89, 2) + SourceIndex(0) +1 >Emitted(204, 6) Source(89, 2) + SourceIndex(0) --- ->>>for (var _32 = 0, _33 = getMultiRobots(); _32 < _33.length; _32++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -1-> - > -2 >for -3 > -4 > (let [...multiRobotAInfo] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(101, 1) Source(90, 1) + SourceIndex(0) -2 >Emitted(101, 4) Source(90, 4) + SourceIndex(0) -3 >Emitted(101, 5) Source(90, 5) + SourceIndex(0) -4 >Emitted(101, 6) Source(90, 34) + SourceIndex(0) -5 >Emitted(101, 17) Source(90, 50) + SourceIndex(0) -6 >Emitted(101, 19) Source(90, 34) + SourceIndex(0) -7 >Emitted(101, 25) Source(90, 34) + SourceIndex(0) -8 >Emitted(101, 39) Source(90, 48) + SourceIndex(0) -9 >Emitted(101, 41) Source(90, 50) + SourceIndex(0) -10>Emitted(101, 43) Source(90, 34) + SourceIndex(0) -11>Emitted(101, 59) Source(90, 50) + SourceIndex(0) -12>Emitted(101, 61) Source(90, 34) + SourceIndex(0) -13>Emitted(101, 66) Source(90, 50) + SourceIndex(0) ---- ->>> var multiRobotAInfo = _33[_32].slice(0); +>>>} +>>>catch (e_15_1) { e_15 = { error: e_15_1 }; } +>>>finally { +>>> try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +>>>} +>>>try { +>>> for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { 1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > (let [...multiRobotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [...multiRobotAInfo] +1 >Emitted(211, 5) Source(90, 1) + SourceIndex(0) +2 >Emitted(211, 8) Source(90, 4) + SourceIndex(0) +3 >Emitted(211, 9) Source(90, 5) + SourceIndex(0) +4 >Emitted(211, 10) Source(90, 34) + SourceIndex(0) +5 >Emitted(211, 14) Source(90, 34) + SourceIndex(0) +6 >Emitted(211, 27) Source(90, 34) + SourceIndex(0) +7 >Emitted(211, 29) Source(90, 34) + SourceIndex(0) +8 >Emitted(211, 39) Source(90, 34) + SourceIndex(0) +9 >Emitted(211, 48) Source(90, 34) + SourceIndex(0) +10>Emitted(211, 62) Source(90, 48) + SourceIndex(0) +11>Emitted(211, 64) Source(90, 50) + SourceIndex(0) +12>Emitted(211, 65) Source(90, 50) + SourceIndex(0) +13>Emitted(211, 67) Source(90, 50) + SourceIndex(0) +14>Emitted(211, 69) Source(90, 6) + SourceIndex(0) +15>Emitted(211, 87) Source(90, 30) + SourceIndex(0) +--- +>>> var _17 = __read(iterator_8.result.value), multiRobotAInfo = _17.slice(0); +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > -3 > ...multiRobotAInfo -1 >Emitted(102, 5) Source(90, 11) + SourceIndex(0) -2 >Emitted(102, 9) Source(90, 11) + SourceIndex(0) -3 >Emitted(102, 44) Source(90, 29) + SourceIndex(0) ---- ->>> console.log(multiRobotAInfo); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [...multiRobotAInfo] +4 > +5 > ...multiRobotAInfo +1 >Emitted(212, 9) Source(90, 10) + SourceIndex(0) +2 >Emitted(212, 13) Source(90, 10) + SourceIndex(0) +3 >Emitted(212, 50) Source(90, 30) + SourceIndex(0) +4 >Emitted(212, 52) Source(90, 11) + SourceIndex(0) +5 >Emitted(212, 82) Source(90, 29) + SourceIndex(0) +--- +>>> console.log(multiRobotAInfo); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > multiRobotAInfo -7 > ) -8 > ; -1 >Emitted(103, 5) Source(91, 5) + SourceIndex(0) -2 >Emitted(103, 12) Source(91, 12) + SourceIndex(0) -3 >Emitted(103, 13) Source(91, 13) + SourceIndex(0) -4 >Emitted(103, 16) Source(91, 16) + SourceIndex(0) -5 >Emitted(103, 17) Source(91, 17) + SourceIndex(0) -6 >Emitted(103, 32) Source(91, 32) + SourceIndex(0) -7 >Emitted(103, 33) Source(91, 33) + SourceIndex(0) -8 >Emitted(103, 34) Source(91, 34) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > multiRobotAInfo +7 > ) +8 > ; +1 >Emitted(213, 9) Source(91, 5) + SourceIndex(0) +2 >Emitted(213, 16) Source(91, 12) + SourceIndex(0) +3 >Emitted(213, 17) Source(91, 13) + SourceIndex(0) +4 >Emitted(213, 20) Source(91, 16) + SourceIndex(0) +5 >Emitted(213, 21) Source(91, 17) + SourceIndex(0) +6 >Emitted(213, 36) Source(91, 32) + SourceIndex(0) +7 >Emitted(213, 37) Source(91, 33) + SourceIndex(0) +8 >Emitted(213, 38) Source(91, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(104, 2) Source(92, 2) + SourceIndex(0) +1 >Emitted(214, 6) Source(92, 2) + SourceIndex(0) --- ->>>for (var _34 = 0, _35 = [multiRobotA, multiRobotB]; _34 < _35.length; _34++) { -1-> +>>>} +>>>catch (e_16_1) { e_16 = { error: e_16_1 }; } +>>>finally { +>>> try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } +>>>} +>>>for (var _18 = 0, _19 = [multiRobotA, multiRobotB]; _18 < _19.length; _18++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2581,7 +2848,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -1-> +1 > > 2 >for 3 > @@ -2597,32 +2864,38 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(105, 1) Source(93, 1) + SourceIndex(0) -2 >Emitted(105, 4) Source(93, 4) + SourceIndex(0) -3 >Emitted(105, 5) Source(93, 5) + SourceIndex(0) -4 >Emitted(105, 6) Source(93, 34) + SourceIndex(0) -5 >Emitted(105, 17) Source(93, 60) + SourceIndex(0) -6 >Emitted(105, 19) Source(93, 34) + SourceIndex(0) -7 >Emitted(105, 26) Source(93, 35) + SourceIndex(0) -8 >Emitted(105, 37) Source(93, 46) + SourceIndex(0) -9 >Emitted(105, 39) Source(93, 48) + SourceIndex(0) -10>Emitted(105, 50) Source(93, 59) + SourceIndex(0) -11>Emitted(105, 51) Source(93, 60) + SourceIndex(0) -12>Emitted(105, 53) Source(93, 34) + SourceIndex(0) -13>Emitted(105, 69) Source(93, 60) + SourceIndex(0) -14>Emitted(105, 71) Source(93, 34) + SourceIndex(0) -15>Emitted(105, 76) Source(93, 60) + SourceIndex(0) ---- ->>> var multiRobotAInfo = _35[_34].slice(0); +1 >Emitted(220, 1) Source(93, 1) + SourceIndex(0) +2 >Emitted(220, 4) Source(93, 4) + SourceIndex(0) +3 >Emitted(220, 5) Source(93, 5) + SourceIndex(0) +4 >Emitted(220, 6) Source(93, 34) + SourceIndex(0) +5 >Emitted(220, 17) Source(93, 60) + SourceIndex(0) +6 >Emitted(220, 19) Source(93, 34) + SourceIndex(0) +7 >Emitted(220, 26) Source(93, 35) + SourceIndex(0) +8 >Emitted(220, 37) Source(93, 46) + SourceIndex(0) +9 >Emitted(220, 39) Source(93, 48) + SourceIndex(0) +10>Emitted(220, 50) Source(93, 59) + SourceIndex(0) +11>Emitted(220, 51) Source(93, 60) + SourceIndex(0) +12>Emitted(220, 53) Source(93, 34) + SourceIndex(0) +13>Emitted(220, 69) Source(93, 60) + SourceIndex(0) +14>Emitted(220, 71) Source(93, 34) + SourceIndex(0) +15>Emitted(220, 76) Source(93, 60) + SourceIndex(0) +--- +>>> var _20 = __read(_19[_18]), multiRobotAInfo = _20.slice(0); 1 >^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > -3 > ...multiRobotAInfo -1 >Emitted(106, 5) Source(93, 11) + SourceIndex(0) -2 >Emitted(106, 9) Source(93, 11) + SourceIndex(0) -3 >Emitted(106, 44) Source(93, 29) + SourceIndex(0) +3 > [...multiRobotAInfo] +4 > +5 > ...multiRobotAInfo +1 >Emitted(221, 5) Source(93, 10) + SourceIndex(0) +2 >Emitted(221, 9) Source(93, 10) + SourceIndex(0) +3 >Emitted(221, 31) Source(93, 30) + SourceIndex(0) +4 >Emitted(221, 33) Source(93, 11) + SourceIndex(0) +5 >Emitted(221, 63) Source(93, 29) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2642,20 +2915,21 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(107, 5) Source(94, 5) + SourceIndex(0) -2 >Emitted(107, 12) Source(94, 12) + SourceIndex(0) -3 >Emitted(107, 13) Source(94, 13) + SourceIndex(0) -4 >Emitted(107, 16) Source(94, 16) + SourceIndex(0) -5 >Emitted(107, 17) Source(94, 17) + SourceIndex(0) -6 >Emitted(107, 32) Source(94, 32) + SourceIndex(0) -7 >Emitted(107, 33) Source(94, 33) + SourceIndex(0) -8 >Emitted(107, 34) Source(94, 34) + SourceIndex(0) +1 >Emitted(222, 5) Source(94, 5) + SourceIndex(0) +2 >Emitted(222, 12) Source(94, 12) + SourceIndex(0) +3 >Emitted(222, 13) Source(94, 13) + SourceIndex(0) +4 >Emitted(222, 16) Source(94, 16) + SourceIndex(0) +5 >Emitted(222, 17) Source(94, 17) + SourceIndex(0) +6 >Emitted(222, 32) Source(94, 32) + SourceIndex(0) +7 >Emitted(222, 33) Source(94, 33) + SourceIndex(0) +8 >Emitted(222, 34) Source(94, 34) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(108, 2) Source(95, 2) + SourceIndex(0) +1 >Emitted(223, 2) Source(95, 2) + SourceIndex(0) --- +>>>var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10, e_11, e_12, e_13, e_14, e_15, e_16; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js index 8b21faf3ad939..1cdd7b47f7db0 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js @@ -101,6 +101,25 @@ for ([...multiRobotAInfo] of [multiRobotA, multiRobotB]) { } //// [sourceMapValidationDestructuringForOfArrayBindingPattern2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var robots = [robotA, robotB]; @@ -117,101 +136,197 @@ var nameA, primarySkillA, secondarySkillA; var numberB, nameB; var numberA2, nameA2, skillA2, nameMA; var numberA3, robotAInfo, multiRobotAInfo; -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - _a = robots_1[_i], nameA = _a[1]; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + _a = __read(robots_1.result.value, 2), nameA = _a[1]; + console.log(nameA); + } } -for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { - _d = _c[_b], nameA = _d[1]; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + _b = __read(iterator_1.result.value, 2), nameA = _b[1]; + console.log(nameA); + } +} +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } } -for (var _e = 0, _f = [robotA, robotB]; _e < _f.length; _e++) { - _g = _f[_e], nameA = _g[1]; +for (var _i = 0, _c = [robotA, robotB]; _i < _c.length; _i++) { + _d = __read(_c[_i], 2), nameA = _d[1]; console.log(nameA); } -for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { - _j = multiRobots_1[_h], _k = _j[1], primarySkillA = _k[0], secondarySkillA = _k[1]; - console.log(primarySkillA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + _e = __read(multiRobots_1.result.value, 2), _f = __read(_e[1], 2), primarySkillA = _f[0], secondarySkillA = _f[1]; + console.log(primarySkillA); + } } -for (var _l = 0, _m = getMultiRobots(); _l < _m.length; _l++) { - _o = _m[_l], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1]; - console.log(primarySkillA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + _g = __read(iterator_2.result.value, 2), _h = __read(_g[1], 2), primarySkillA = _h[0], secondarySkillA = _h[1]; + console.log(primarySkillA); + } +} +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _q = 0, _r = [multiRobotA, multiRobotB]; _q < _r.length; _q++) { - _s = _r[_q], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1]; +for (var _j = 0, _k = [multiRobotA, multiRobotB]; _j < _k.length; _j++) { + _l = __read(_k[_j], 2), _m = __read(_l[1], 2), primarySkillA = _m[0], secondarySkillA = _m[1]; console.log(primarySkillA); } -for (var _u = 0, robots_2 = robots; _u < robots_2.length; _u++) { - numberB = robots_2[_u][0]; - console.log(numberB); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + _o = __read(robots_2.result.value, 1), numberB = _o[0]; + console.log(numberB); + } } -for (var _v = 0, _w = getRobots(); _v < _w.length; _v++) { - numberB = _w[_v][0]; - console.log(numberB); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +} +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + _p = __read(iterator_3.result.value, 1), numberB = _p[0]; + console.log(numberB); + } +} +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } } -for (var _x = 0, _y = [robotA, robotB]; _x < _y.length; _x++) { - numberB = _y[_x][0]; +for (var _q = 0, _r = [robotA, robotB]; _q < _r.length; _q++) { + _s = __read(_r[_q], 1), numberB = _s[0]; console.log(numberB); } -for (var _z = 0, multiRobots_2 = multiRobots; _z < multiRobots_2.length; _z++) { - nameB = multiRobots_2[_z][0]; - console.log(nameB); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + _t = __read(multiRobots_2.result.value, 1), nameB = _t[0]; + console.log(nameB); + } } -for (var _0 = 0, _1 = getMultiRobots(); _0 < _1.length; _0++) { - nameB = _1[_0][0]; - console.log(nameB); +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +} +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + _u = __read(iterator_4.result.value, 1), nameB = _u[0]; + console.log(nameB); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } } -for (var _2 = 0, _3 = [multiRobotA, multiRobotB]; _2 < _3.length; _2++) { - nameB = _3[_2][0]; +for (var _v = 0, _w = [multiRobotA, multiRobotB]; _v < _w.length; _v++) { + _x = __read(_w[_v], 1), nameB = _x[0]; console.log(nameB); } -for (var _4 = 0, robots_3 = robots; _4 < robots_3.length; _4++) { - _5 = robots_3[_4], numberA2 = _5[0], nameA2 = _5[1], skillA2 = _5[2]; - console.log(nameA2); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + _y = __read(robots_3.result.value, 3), numberA2 = _y[0], nameA2 = _y[1], skillA2 = _y[2]; + console.log(nameA2); + } } -for (var _6 = 0, _7 = getRobots(); _6 < _7.length; _6++) { - _8 = _7[_6], numberA2 = _8[0], nameA2 = _8[1], skillA2 = _8[2]; - console.log(nameA2); +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +} +try { + for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { + _z = __read(iterator_5.result.value, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2]; + console.log(nameA2); + } +} +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } } -for (var _9 = 0, _10 = [robotA, robotB]; _9 < _10.length; _9++) { - _11 = _10[_9], numberA2 = _11[0], nameA2 = _11[1], skillA2 = _11[2]; +for (var _0 = 0, _1 = [robotA, robotB]; _0 < _1.length; _0++) { + _2 = __read(_1[_0], 3), numberA2 = _2[0], nameA2 = _2[1], skillA2 = _2[2]; console.log(nameA2); } -for (var _12 = 0, multiRobots_3 = multiRobots; _12 < multiRobots_3.length; _12++) { - _13 = multiRobots_3[_12], nameMA = _13[0], _14 = _13[1], primarySkillA = _14[0], secondarySkillA = _14[1]; - console.log(nameMA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + _3 = __read(multiRobots_3.result.value, 2), nameMA = _3[0], _4 = __read(_3[1], 2), primarySkillA = _4[0], secondarySkillA = _4[1]; + console.log(nameMA); + } } -for (var _15 = 0, _16 = getMultiRobots(); _15 < _16.length; _15++) { - _17 = _16[_15], nameMA = _17[0], _18 = _17[1], primarySkillA = _18[0], secondarySkillA = _18[1]; - console.log(nameMA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +} +try { + for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { + _5 = __read(iterator_6.result.value, 2), nameMA = _5[0], _6 = __read(_5[1], 2), primarySkillA = _6[0], secondarySkillA = _6[1]; + console.log(nameMA); + } +} +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } } -for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { - _21 = _20[_19], nameMA = _21[0], _22 = _21[1], primarySkillA = _22[0], secondarySkillA = _22[1]; +for (var _7 = 0, _8 = [multiRobotA, multiRobotB]; _7 < _8.length; _7++) { + _9 = __read(_8[_7], 2), nameMA = _9[0], _10 = __read(_9[1], 2), primarySkillA = _10[0], secondarySkillA = _10[1]; console.log(nameMA); } -for (var _23 = 0, robots_4 = robots; _23 < robots_4.length; _23++) { - _24 = robots_4[_23], numberA3 = _24[0], robotAInfo = _24.slice(1); - console.log(numberA3); +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + _11 = __read(robots_4.result.value), numberA3 = _11[0], robotAInfo = _11.slice(1); + console.log(numberA3); + } } -for (var _25 = 0, _26 = getRobots(); _25 < _26.length; _25++) { - _27 = _26[_25], numberA3 = _27[0], robotAInfo = _27.slice(1); - console.log(numberA3); +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +} +try { + for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { + _12 = __read(iterator_7.result.value), numberA3 = _12[0], robotAInfo = _12.slice(1); + console.log(numberA3); + } +} +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } } -for (var _28 = 0, _29 = [robotA, robotB]; _28 < _29.length; _28++) { - _30 = _29[_28], numberA3 = _30[0], robotAInfo = _30.slice(1); +for (var _13 = 0, _14 = [robotA, robotB]; _13 < _14.length; _13++) { + _15 = __read(_14[_13]), numberA3 = _15[0], robotAInfo = _15.slice(1); console.log(numberA3); } -for (var _31 = 0, multiRobots_4 = multiRobots; _31 < multiRobots_4.length; _31++) { - multiRobotAInfo = multiRobots_4[_31].slice(0); - console.log(multiRobotAInfo); +try { + for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { + _16 = __read(multiRobots_4.result.value), multiRobotAInfo = _16.slice(0); + console.log(multiRobotAInfo); + } } -for (var _32 = 0, _33 = getMultiRobots(); _32 < _33.length; _32++) { - multiRobotAInfo = _33[_32].slice(0); - console.log(multiRobotAInfo); +catch (e_15_1) { e_15 = { error: e_15_1 }; } +finally { + try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +} +try { + for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { + _17 = __read(iterator_8.result.value), multiRobotAInfo = _17.slice(0); + console.log(multiRobotAInfo); + } +} +catch (e_16_1) { e_16 = { error: e_16_1 }; } +finally { + try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } } -for (var _34 = 0, _35 = [multiRobotA, multiRobotB]; _34 < _35.length; _34++) { - multiRobotAInfo = _35[_34].slice(0); +for (var _18 = 0, _19 = [multiRobotA, multiRobotB]; _18 < _19.length; _18++) { + _20 = __read(_19[_18]), multiRobotAInfo = _20.slice(0); console.log(multiRobotAInfo); } -var _a, _d, _g, _j, _k, _o, _p, _s, _t, _5, _8, _11, _13, _14, _17, _18, _21, _22, _24, _27, _30; +var _a, e_1, _b, e_2, _d, _e, _f, e_3, _g, _h, e_4, _l, _m, _o, e_5, _p, e_6, _s, _t, e_7, _u, e_8, _x, _y, e_9, _z, e_10, _2, _3, _4, e_11, _5, _6, e_12, _9, _10, _11, e_13, _12, e_14, _15, _16, e_15, _17, e_16, _20; //# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map index 1a42ddf3907f0..52dec70086389 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPattern2.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AAEtG,GAAG,CAAC,CAAc,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;uBAAhB,aAAK;IACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAc,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;iBAArB,aAAK;IACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAc,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;iBAA1B,aAAK;IACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyC,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;4BAAhD,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAAyC,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;iBAArD,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAAyC,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;iBAA/D,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED,GAAG,CAAC,CAAc,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAlB,yBAAO;IACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAc,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAvB,mBAAO;IACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAc,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAA5B,mBAAO;IACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAY,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAArB,4BAAK;IACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAY,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAA1B,iBAAK;IACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAY,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAApC,iBAAK;IACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AAED,GAAG,CAAC,CAAgC,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;uBAApC,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAgC,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;iBAAzC,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAAgC,UAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,eAAgB,EAAhB,IAAgB;mBAA9C,iBAAQ,EAAE,eAAM,EAAE,gBAAO;IAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA+C,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;8BAAxD,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA+C,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBAA7D,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA+C,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;oBAAvE,eAAM,EAAE,YAAgC,EAA/B,sBAAa,EAAE,wBAAe;IACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,GAAG,CAAC,CAA8B,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAAlC,iBAAQ,EAAE,yBAAa;IACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAA8B,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAAvC,iBAAQ,EAAE,yBAAa;IACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAA8B,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;oBAA5C,iBAAQ,EAAE,yBAAa;IACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAyB,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAAlC,6CAAkB;IACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC;AACD,GAAG,CAAC,CAAyB,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAAvC,mCAAkB;IACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC;AACD,GAAG,CAAC,CAAyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAAjD,mCAAkB;IACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPattern2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;;IAEtG,GAAG,CAAC,CAAc,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAnB,gBAAS;+CAAN,aAAK;QACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAc,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxB,kBAAS;iDAAN,aAAK;QACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAc,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;4BAA1B,aAAK;IACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAAyC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAnD,qBAAoC;oDAAjC,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;;IACD,GAAG,CAAC,CAAyC,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAxD,kBAAoC;iDAAjC,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;AACD,GAAG,CAAC,CAAyC,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;4BAA/D,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;IACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;;IAED,GAAG,CAAC,CAAc,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAnB,gBAAS;+CAAR,eAAO;QACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;;IACD,GAAG,CAAC,CAAc,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxB,kBAAS;iDAAR,eAAO;QACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;AACD,GAAG,CAAC,CAAc,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;4BAA5B,eAAO;IACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;;IACD,GAAG,CAAC,CAAY,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAtB,qBAAO;oDAAN,aAAK;QACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAY,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA3B,kBAAO;iDAAN,aAAK;QACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAY,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;4BAApC,aAAK;IACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IAED,GAAG,CAAC,CAAgC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAArC,gBAA2B;+CAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;QAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAAgC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA1C,kBAA2B;iDAA1B,gBAAQ,EAAE,cAAM,EAAE,eAAO;QAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAAgC,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;4BAA9C,gBAAQ,EAAE,cAAM,EAAE,eAAO;IAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IACD,GAAG,CAAC,CAA+C,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAzD,qBAA0C;oDAAzC,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAA+C,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA9D,kBAA0C;iDAAzC,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;QACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAA+C,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;4BAAvE,cAAM,EAAE,sBAAgC,EAA/B,sBAAa,EAAE,wBAAe;IACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IAED,GAAG,CAAC,CAA8B,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAnC,gBAAyB;6CAAxB,iBAAQ,EAAE,yBAAa;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAA8B,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxC,kBAAyB;+CAAxB,iBAAQ,EAAE,yBAAa;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAA8B,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;4BAA5C,iBAAQ,EAAE,yBAAa;IACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IACD,GAAG,CAAC,CAAyB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAnC,qBAAoB;kDAAnB,8BAAkB;QACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;KAChC;;;;;;;IACD,GAAG,CAAC,CAAyB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAxC,kBAAoB;+CAAnB,8BAAkB;QACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;KAChC;;;;;;AACD,GAAG,CAAC,CAAyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;4BAAjD,8BAAkB;IACpB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.sourcemap.txt index f670f9eda1fb4..85442f892cf64 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2.sourcemap.txt @@ -8,6 +8,25 @@ sources: sourceMapValidationDestructuringForOfArrayBindingPattern2.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPattern2.js sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +59,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(20, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(20, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(20, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(20, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(20, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(20, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(20, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(20, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(20, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(20, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -79,18 +98,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(21, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(21, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(21, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(21, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(21, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(21, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(21, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(21, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(21, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(21, 41) Source(8, 48) + SourceIndex(0) --- >>>var robots = [robotA, robotB]; 1 > @@ -114,23 +133,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 8 > robotB 9 > ] 10> ; -1 >Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(9, 15) + SourceIndex(0) -6 >Emitted(3, 21) Source(9, 21) + SourceIndex(0) -7 >Emitted(3, 23) Source(9, 23) + SourceIndex(0) -8 >Emitted(3, 29) Source(9, 29) + SourceIndex(0) -9 >Emitted(3, 30) Source(9, 30) + SourceIndex(0) -10>Emitted(3, 31) Source(9, 31) + SourceIndex(0) +1 >Emitted(22, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(22, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(22, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(22, 15) Source(9, 15) + SourceIndex(0) +6 >Emitted(22, 21) Source(9, 21) + SourceIndex(0) +7 >Emitted(22, 23) Source(9, 23) + SourceIndex(0) +8 >Emitted(22, 29) Source(9, 29) + SourceIndex(0) +9 >Emitted(22, 30) Source(9, 30) + SourceIndex(0) +10>Emitted(22, 31) Source(9, 31) + SourceIndex(0) --- >>>function getRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) +1 >Emitted(23, 1) Source(10, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -144,11 +163,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(11, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(11, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) +1->Emitted(24, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(24, 11) Source(11, 11) + SourceIndex(0) +3 >Emitted(24, 12) Source(11, 12) + SourceIndex(0) +4 >Emitted(24, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(24, 19) Source(11, 19) + SourceIndex(0) --- >>>} 1 > @@ -157,8 +176,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(12, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(12, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -192,20 +211,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 12> ] 13> ] 14> ; -1->Emitted(7, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(14, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(14, 16) + SourceIndex(0) -4 >Emitted(7, 19) Source(14, 38) + SourceIndex(0) -5 >Emitted(7, 20) Source(14, 39) + SourceIndex(0) -6 >Emitted(7, 27) Source(14, 46) + SourceIndex(0) -7 >Emitted(7, 29) Source(14, 48) + SourceIndex(0) -8 >Emitted(7, 30) Source(14, 49) + SourceIndex(0) -9 >Emitted(7, 38) Source(14, 57) + SourceIndex(0) -10>Emitted(7, 40) Source(14, 59) + SourceIndex(0) -11>Emitted(7, 42) Source(14, 61) + SourceIndex(0) -12>Emitted(7, 43) Source(14, 62) + SourceIndex(0) -13>Emitted(7, 44) Source(14, 63) + SourceIndex(0) -14>Emitted(7, 45) Source(14, 64) + SourceIndex(0) +1->Emitted(26, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(26, 16) Source(14, 16) + SourceIndex(0) +4 >Emitted(26, 19) Source(14, 38) + SourceIndex(0) +5 >Emitted(26, 20) Source(14, 39) + SourceIndex(0) +6 >Emitted(26, 27) Source(14, 46) + SourceIndex(0) +7 >Emitted(26, 29) Source(14, 48) + SourceIndex(0) +8 >Emitted(26, 30) Source(14, 49) + SourceIndex(0) +9 >Emitted(26, 38) Source(14, 57) + SourceIndex(0) +10>Emitted(26, 40) Source(14, 59) + SourceIndex(0) +11>Emitted(26, 42) Source(14, 61) + SourceIndex(0) +12>Emitted(26, 43) Source(14, 62) + SourceIndex(0) +13>Emitted(26, 44) Source(14, 63) + SourceIndex(0) +14>Emitted(26, 45) Source(14, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -237,20 +256,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 12> ] 13> ] 14> ; -1->Emitted(8, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(8, 16) Source(15, 16) + SourceIndex(0) -4 >Emitted(8, 19) Source(15, 38) + SourceIndex(0) -5 >Emitted(8, 20) Source(15, 39) + SourceIndex(0) -6 >Emitted(8, 29) Source(15, 48) + SourceIndex(0) -7 >Emitted(8, 31) Source(15, 50) + SourceIndex(0) -8 >Emitted(8, 32) Source(15, 51) + SourceIndex(0) -9 >Emitted(8, 42) Source(15, 61) + SourceIndex(0) -10>Emitted(8, 44) Source(15, 63) + SourceIndex(0) -11>Emitted(8, 52) Source(15, 71) + SourceIndex(0) -12>Emitted(8, 53) Source(15, 72) + SourceIndex(0) -13>Emitted(8, 54) Source(15, 73) + SourceIndex(0) -14>Emitted(8, 55) Source(15, 74) + SourceIndex(0) +1->Emitted(27, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(27, 16) Source(15, 16) + SourceIndex(0) +4 >Emitted(27, 19) Source(15, 38) + SourceIndex(0) +5 >Emitted(27, 20) Source(15, 39) + SourceIndex(0) +6 >Emitted(27, 29) Source(15, 48) + SourceIndex(0) +7 >Emitted(27, 31) Source(15, 50) + SourceIndex(0) +8 >Emitted(27, 32) Source(15, 51) + SourceIndex(0) +9 >Emitted(27, 42) Source(15, 61) + SourceIndex(0) +10>Emitted(27, 44) Source(15, 63) + SourceIndex(0) +11>Emitted(27, 52) Source(15, 71) + SourceIndex(0) +12>Emitted(27, 53) Source(15, 72) + SourceIndex(0) +13>Emitted(27, 54) Source(15, 73) + SourceIndex(0) +14>Emitted(27, 55) Source(15, 74) + SourceIndex(0) --- >>>var multiRobots = [multiRobotA, multiRobotB]; 1 > @@ -274,23 +293,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 8 > multiRobotB 9 > ] 10> ; -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(9, 16) Source(16, 16) + SourceIndex(0) -4 >Emitted(9, 19) Source(16, 19) + SourceIndex(0) -5 >Emitted(9, 20) Source(16, 20) + SourceIndex(0) -6 >Emitted(9, 31) Source(16, 31) + SourceIndex(0) -7 >Emitted(9, 33) Source(16, 33) + SourceIndex(0) -8 >Emitted(9, 44) Source(16, 44) + SourceIndex(0) -9 >Emitted(9, 45) Source(16, 45) + SourceIndex(0) -10>Emitted(9, 46) Source(16, 46) + SourceIndex(0) +1 >Emitted(28, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(28, 16) Source(16, 16) + SourceIndex(0) +4 >Emitted(28, 19) Source(16, 19) + SourceIndex(0) +5 >Emitted(28, 20) Source(16, 20) + SourceIndex(0) +6 >Emitted(28, 31) Source(16, 31) + SourceIndex(0) +7 >Emitted(28, 33) Source(16, 33) + SourceIndex(0) +8 >Emitted(28, 44) Source(16, 44) + SourceIndex(0) +9 >Emitted(28, 45) Source(16, 45) + SourceIndex(0) +10>Emitted(28, 46) Source(16, 46) + SourceIndex(0) --- >>>function getMultiRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(10, 1) Source(17, 1) + SourceIndex(0) +1 >Emitted(29, 1) Source(17, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -304,11 +323,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 3 > 4 > multiRobots 5 > ; -1->Emitted(11, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(11, 11) Source(18, 11) + SourceIndex(0) -3 >Emitted(11, 12) Source(18, 12) + SourceIndex(0) -4 >Emitted(11, 23) Source(18, 23) + SourceIndex(0) -5 >Emitted(11, 24) Source(18, 24) + SourceIndex(0) +1->Emitted(30, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(30, 11) Source(18, 11) + SourceIndex(0) +3 >Emitted(30, 12) Source(18, 12) + SourceIndex(0) +4 >Emitted(30, 23) Source(18, 23) + SourceIndex(0) +5 >Emitted(30, 24) Source(18, 24) + SourceIndex(0) --- >>>} 1 > @@ -317,8 +336,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(19, 2) + SourceIndex(0) --- >>>var nameA, primarySkillA, secondarySkillA; 1-> @@ -339,14 +358,14 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > , 7 > secondarySkillA: string 8 > ; -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -3 >Emitted(13, 10) Source(21, 18) + SourceIndex(0) -4 >Emitted(13, 12) Source(21, 20) + SourceIndex(0) -5 >Emitted(13, 25) Source(21, 41) + SourceIndex(0) -6 >Emitted(13, 27) Source(21, 43) + SourceIndex(0) -7 >Emitted(13, 42) Source(21, 66) + SourceIndex(0) -8 >Emitted(13, 43) Source(21, 67) + SourceIndex(0) +1->Emitted(32, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(21, 5) + SourceIndex(0) +3 >Emitted(32, 10) Source(21, 18) + SourceIndex(0) +4 >Emitted(32, 12) Source(21, 20) + SourceIndex(0) +5 >Emitted(32, 25) Source(21, 41) + SourceIndex(0) +6 >Emitted(32, 27) Source(21, 43) + SourceIndex(0) +7 >Emitted(32, 42) Source(21, 66) + SourceIndex(0) +8 >Emitted(32, 43) Source(21, 67) + SourceIndex(0) --- >>>var numberB, nameB; 1 > @@ -363,12 +382,12 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 4 > , 5 > nameB: string 6 > ; -1 >Emitted(14, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -3 >Emitted(14, 12) Source(22, 20) + SourceIndex(0) -4 >Emitted(14, 14) Source(22, 22) + SourceIndex(0) -5 >Emitted(14, 19) Source(22, 35) + SourceIndex(0) -6 >Emitted(14, 20) Source(22, 36) + SourceIndex(0) +1 >Emitted(33, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(22, 5) + SourceIndex(0) +3 >Emitted(33, 12) Source(22, 20) + SourceIndex(0) +4 >Emitted(33, 14) Source(22, 22) + SourceIndex(0) +5 >Emitted(33, 19) Source(22, 35) + SourceIndex(0) +6 >Emitted(33, 20) Source(22, 36) + SourceIndex(0) --- >>>var numberA2, nameA2, skillA2, nameMA; 1-> @@ -393,16 +412,16 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 8 > , 9 > nameMA: string 10> ; -1->Emitted(15, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(15, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(15, 13) Source(23, 21) + SourceIndex(0) -4 >Emitted(15, 15) Source(23, 23) + SourceIndex(0) -5 >Emitted(15, 21) Source(23, 37) + SourceIndex(0) -6 >Emitted(15, 23) Source(23, 39) + SourceIndex(0) -7 >Emitted(15, 30) Source(23, 54) + SourceIndex(0) -8 >Emitted(15, 32) Source(23, 56) + SourceIndex(0) -9 >Emitted(15, 38) Source(23, 70) + SourceIndex(0) -10>Emitted(15, 39) Source(23, 71) + SourceIndex(0) +1->Emitted(34, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(34, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(34, 13) Source(23, 21) + SourceIndex(0) +4 >Emitted(34, 15) Source(23, 23) + SourceIndex(0) +5 >Emitted(34, 21) Source(23, 37) + SourceIndex(0) +6 >Emitted(34, 23) Source(23, 39) + SourceIndex(0) +7 >Emitted(34, 30) Source(23, 54) + SourceIndex(0) +8 >Emitted(34, 32) Source(23, 56) + SourceIndex(0) +9 >Emitted(34, 38) Source(23, 70) + SourceIndex(0) +10>Emitted(34, 39) Source(23, 71) + SourceIndex(0) --- >>>var numberA3, robotAInfo, multiRobotAInfo; 1-> @@ -413,7 +432,6 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > ^^ 7 > ^^^^^^^^^^^^^^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >let @@ -423,180 +441,205 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > , 7 > multiRobotAInfo: (string | [string, string])[] 8 > ; -1->Emitted(16, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(16, 5) Source(24, 5) + SourceIndex(0) -3 >Emitted(16, 13) Source(24, 21) + SourceIndex(0) -4 >Emitted(16, 15) Source(24, 23) + SourceIndex(0) -5 >Emitted(16, 25) Source(24, 54) + SourceIndex(0) -6 >Emitted(16, 27) Source(24, 56) + SourceIndex(0) -7 >Emitted(16, 42) Source(24, 102) + SourceIndex(0) -8 >Emitted(16, 43) Source(24, 103) + SourceIndex(0) ---- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -1-> +1->Emitted(35, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(35, 5) Source(24, 5) + SourceIndex(0) +3 >Emitted(35, 13) Source(24, 21) + SourceIndex(0) +4 >Emitted(35, 15) Source(24, 23) + SourceIndex(0) +5 >Emitted(35, 25) Source(24, 54) + SourceIndex(0) +6 >Emitted(35, 27) Source(24, 56) + SourceIndex(0) +7 >Emitted(35, 42) Source(24, 102) + SourceIndex(0) +8 >Emitted(35, 43) Source(24, 103) + SourceIndex(0) +--- +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +1 > > > -2 >for -3 > -4 > ([, nameA] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(17, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(17, 4) Source(26, 4) + SourceIndex(0) -3 >Emitted(17, 5) Source(26, 5) + SourceIndex(0) -4 >Emitted(17, 6) Source(26, 19) + SourceIndex(0) -5 >Emitted(17, 16) Source(26, 25) + SourceIndex(0) -6 >Emitted(17, 18) Source(26, 19) + SourceIndex(0) -7 >Emitted(17, 35) Source(26, 25) + SourceIndex(0) -8 >Emitted(17, 37) Source(26, 19) + SourceIndex(0) -9 >Emitted(17, 57) Source(26, 25) + SourceIndex(0) -10>Emitted(17, 59) Source(26, 19) + SourceIndex(0) -11>Emitted(17, 63) Source(26, 25) + SourceIndex(0) ---- ->>> _a = robots_1[_i], nameA = _a[1]; -1 >^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, nameA] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [, nameA] +1 >Emitted(37, 5) Source(26, 1) + SourceIndex(0) +2 >Emitted(37, 8) Source(26, 4) + SourceIndex(0) +3 >Emitted(37, 9) Source(26, 5) + SourceIndex(0) +4 >Emitted(37, 10) Source(26, 19) + SourceIndex(0) +5 >Emitted(37, 14) Source(26, 19) + SourceIndex(0) +6 >Emitted(37, 25) Source(26, 19) + SourceIndex(0) +7 >Emitted(37, 27) Source(26, 19) + SourceIndex(0) +8 >Emitted(37, 37) Source(26, 19) + SourceIndex(0) +9 >Emitted(37, 46) Source(26, 19) + SourceIndex(0) +10>Emitted(37, 52) Source(26, 25) + SourceIndex(0) +11>Emitted(37, 53) Source(26, 25) + SourceIndex(0) +12>Emitted(37, 55) Source(26, 25) + SourceIndex(0) +13>Emitted(37, 57) Source(26, 6) + SourceIndex(0) +14>Emitted(37, 73) Source(26, 15) + SourceIndex(0) +--- +>>> _a = __read(robots_1.result.value, 2), nameA = _a[1]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameA -1 >Emitted(18, 24) Source(26, 9) + SourceIndex(0) -2 >Emitted(18, 37) Source(26, 14) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > nameA +1 >Emitted(38, 48) Source(26, 9) + SourceIndex(0) +2 >Emitted(38, 61) Source(26, 14) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(19, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(27, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(27, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(27, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(27, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(27, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(27, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(27, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(39, 9) Source(27, 5) + SourceIndex(0) +2 >Emitted(39, 16) Source(27, 12) + SourceIndex(0) +3 >Emitted(39, 17) Source(27, 13) + SourceIndex(0) +4 >Emitted(39, 20) Source(27, 16) + SourceIndex(0) +5 >Emitted(39, 21) Source(27, 17) + SourceIndex(0) +6 >Emitted(39, 26) Source(27, 22) + SourceIndex(0) +7 >Emitted(39, 27) Source(27, 23) + SourceIndex(0) +8 >Emitted(39, 28) Source(27, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(20, 2) Source(28, 2) + SourceIndex(0) +1 >Emitted(40, 6) Source(28, 2) + SourceIndex(0) --- ->>>for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > ([, nameA] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(21, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(29, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(29, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(29, 19) + SourceIndex(0) -5 >Emitted(21, 16) Source(29, 30) + SourceIndex(0) -6 >Emitted(21, 18) Source(29, 19) + SourceIndex(0) -7 >Emitted(21, 23) Source(29, 19) + SourceIndex(0) -8 >Emitted(21, 32) Source(29, 28) + SourceIndex(0) -9 >Emitted(21, 34) Source(29, 30) + SourceIndex(0) -10>Emitted(21, 36) Source(29, 19) + SourceIndex(0) -11>Emitted(21, 50) Source(29, 30) + SourceIndex(0) -12>Emitted(21, 52) Source(29, 19) + SourceIndex(0) -13>Emitted(21, 56) Source(29, 30) + SourceIndex(0) ---- ->>> _d = _c[_b], nameA = _d[1]; -1 >^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, nameA] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [, nameA] +1 >Emitted(47, 5) Source(29, 1) + SourceIndex(0) +2 >Emitted(47, 8) Source(29, 4) + SourceIndex(0) +3 >Emitted(47, 9) Source(29, 5) + SourceIndex(0) +4 >Emitted(47, 10) Source(29, 19) + SourceIndex(0) +5 >Emitted(47, 14) Source(29, 19) + SourceIndex(0) +6 >Emitted(47, 27) Source(29, 19) + SourceIndex(0) +7 >Emitted(47, 29) Source(29, 19) + SourceIndex(0) +8 >Emitted(47, 39) Source(29, 19) + SourceIndex(0) +9 >Emitted(47, 48) Source(29, 19) + SourceIndex(0) +10>Emitted(47, 57) Source(29, 28) + SourceIndex(0) +11>Emitted(47, 59) Source(29, 30) + SourceIndex(0) +12>Emitted(47, 60) Source(29, 30) + SourceIndex(0) +13>Emitted(47, 62) Source(29, 30) + SourceIndex(0) +14>Emitted(47, 64) Source(29, 6) + SourceIndex(0) +15>Emitted(47, 82) Source(29, 15) + SourceIndex(0) +--- +>>> _b = __read(iterator_1.result.value, 2), nameA = _b[1]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameA -1 >Emitted(22, 18) Source(29, 9) + SourceIndex(0) -2 >Emitted(22, 31) Source(29, 14) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > nameA +1 >Emitted(48, 50) Source(29, 9) + SourceIndex(0) +2 >Emitted(48, 63) Source(29, 14) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(23, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(30, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(30, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(30, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(30, 17) + SourceIndex(0) -6 >Emitted(23, 22) Source(30, 22) + SourceIndex(0) -7 >Emitted(23, 23) Source(30, 23) + SourceIndex(0) -8 >Emitted(23, 24) Source(30, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(49, 9) Source(30, 5) + SourceIndex(0) +2 >Emitted(49, 16) Source(30, 12) + SourceIndex(0) +3 >Emitted(49, 17) Source(30, 13) + SourceIndex(0) +4 >Emitted(49, 20) Source(30, 16) + SourceIndex(0) +5 >Emitted(49, 21) Source(30, 17) + SourceIndex(0) +6 >Emitted(49, 26) Source(30, 22) + SourceIndex(0) +7 >Emitted(49, 27) Source(30, 23) + SourceIndex(0) +8 >Emitted(49, 28) Source(30, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(24, 2) Source(31, 2) + SourceIndex(0) +1 >Emitted(50, 6) Source(31, 2) + SourceIndex(0) --- ->>>for (var _e = 0, _f = [robotA, robotB]; _e < _f.length; _e++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _c = [robotA, robotB]; _i < _c.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -611,7 +654,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -1-> +1 > > 2 >for 3 > @@ -627,29 +670,29 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(25, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(32, 19) + SourceIndex(0) -5 >Emitted(25, 16) Source(32, 35) + SourceIndex(0) -6 >Emitted(25, 18) Source(32, 19) + SourceIndex(0) -7 >Emitted(25, 24) Source(32, 20) + SourceIndex(0) -8 >Emitted(25, 30) Source(32, 26) + SourceIndex(0) -9 >Emitted(25, 32) Source(32, 28) + SourceIndex(0) -10>Emitted(25, 38) Source(32, 34) + SourceIndex(0) -11>Emitted(25, 39) Source(32, 35) + SourceIndex(0) -12>Emitted(25, 41) Source(32, 19) + SourceIndex(0) -13>Emitted(25, 55) Source(32, 35) + SourceIndex(0) -14>Emitted(25, 57) Source(32, 19) + SourceIndex(0) -15>Emitted(25, 61) Source(32, 35) + SourceIndex(0) ---- ->>> _g = _f[_e], nameA = _g[1]; -1 >^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ +1 >Emitted(56, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(56, 4) Source(32, 4) + SourceIndex(0) +3 >Emitted(56, 5) Source(32, 5) + SourceIndex(0) +4 >Emitted(56, 6) Source(32, 19) + SourceIndex(0) +5 >Emitted(56, 16) Source(32, 35) + SourceIndex(0) +6 >Emitted(56, 18) Source(32, 19) + SourceIndex(0) +7 >Emitted(56, 24) Source(32, 20) + SourceIndex(0) +8 >Emitted(56, 30) Source(32, 26) + SourceIndex(0) +9 >Emitted(56, 32) Source(32, 28) + SourceIndex(0) +10>Emitted(56, 38) Source(32, 34) + SourceIndex(0) +11>Emitted(56, 39) Source(32, 35) + SourceIndex(0) +12>Emitted(56, 41) Source(32, 19) + SourceIndex(0) +13>Emitted(56, 55) Source(32, 35) + SourceIndex(0) +14>Emitted(56, 57) Source(32, 19) + SourceIndex(0) +15>Emitted(56, 61) Source(32, 35) + SourceIndex(0) +--- +>>> _d = __read(_c[_i], 2), nameA = _d[1]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameA -1 >Emitted(26, 18) Source(32, 9) + SourceIndex(0) -2 >Emitted(26, 31) Source(32, 14) + SourceIndex(0) +2 > nameA +1 >Emitted(57, 29) Source(32, 9) + SourceIndex(0) +2 >Emitted(57, 42) Source(32, 14) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -669,212 +712,237 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(27, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(27, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(27, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(27, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(27, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(27, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(27, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(27, 24) Source(33, 24) + SourceIndex(0) +1 >Emitted(58, 5) Source(33, 5) + SourceIndex(0) +2 >Emitted(58, 12) Source(33, 12) + SourceIndex(0) +3 >Emitted(58, 13) Source(33, 13) + SourceIndex(0) +4 >Emitted(58, 16) Source(33, 16) + SourceIndex(0) +5 >Emitted(58, 17) Source(33, 17) + SourceIndex(0) +6 >Emitted(58, 22) Source(33, 22) + SourceIndex(0) +7 >Emitted(58, 23) Source(33, 23) + SourceIndex(0) +8 >Emitted(58, 24) Source(33, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(28, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(59, 2) Source(34, 2) + SourceIndex(0) --- ->>>for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ([, [primarySkillA, secondarySkillA]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(29, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(29, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(29, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(29, 6) Source(35, 46) + SourceIndex(0) -5 >Emitted(29, 16) Source(35, 57) + SourceIndex(0) -6 >Emitted(29, 18) Source(35, 46) + SourceIndex(0) -7 >Emitted(29, 45) Source(35, 57) + SourceIndex(0) -8 >Emitted(29, 47) Source(35, 46) + SourceIndex(0) -9 >Emitted(29, 72) Source(35, 57) + SourceIndex(0) -10>Emitted(29, 74) Source(35, 46) + SourceIndex(0) -11>Emitted(29, 78) Source(35, 57) + SourceIndex(0) ---- ->>> _j = multiRobots_1[_h], _k = _j[1], primarySkillA = _k[0], secondarySkillA = _k[1]; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [, [primarySkillA, secondarySkillA]] +1->Emitted(61, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(61, 8) Source(35, 4) + SourceIndex(0) +3 >Emitted(61, 9) Source(35, 5) + SourceIndex(0) +4 >Emitted(61, 10) Source(35, 46) + SourceIndex(0) +5 >Emitted(61, 14) Source(35, 46) + SourceIndex(0) +6 >Emitted(61, 30) Source(35, 46) + SourceIndex(0) +7 >Emitted(61, 32) Source(35, 46) + SourceIndex(0) +8 >Emitted(61, 42) Source(35, 46) + SourceIndex(0) +9 >Emitted(61, 51) Source(35, 46) + SourceIndex(0) +10>Emitted(61, 62) Source(35, 57) + SourceIndex(0) +11>Emitted(61, 63) Source(35, 57) + SourceIndex(0) +12>Emitted(61, 65) Source(35, 57) + SourceIndex(0) +13>Emitted(61, 67) Source(35, 6) + SourceIndex(0) +14>Emitted(61, 88) Source(35, 42) + SourceIndex(0) +--- +>>> _e = __read(multiRobots_1.result.value, 2), _f = __read(_e[1], 2), primarySkillA = _f[0], secondarySkillA = _f[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [primarySkillA, secondarySkillA] -3 > -4 > primarySkillA -5 > , -6 > secondarySkillA -1->Emitted(30, 29) Source(35, 9) + SourceIndex(0) -2 >Emitted(30, 39) Source(35, 41) + SourceIndex(0) -3 >Emitted(30, 41) Source(35, 10) + SourceIndex(0) -4 >Emitted(30, 62) Source(35, 23) + SourceIndex(0) -5 >Emitted(30, 64) Source(35, 25) + SourceIndex(0) -6 >Emitted(30, 87) Source(35, 40) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > [primarySkillA, secondarySkillA] +3 > +4 > primarySkillA +5 > , +6 > secondarySkillA +1->Emitted(62, 53) Source(35, 9) + SourceIndex(0) +2 >Emitted(62, 74) Source(35, 41) + SourceIndex(0) +3 >Emitted(62, 76) Source(35, 10) + SourceIndex(0) +4 >Emitted(62, 97) Source(35, 23) + SourceIndex(0) +5 >Emitted(62, 99) Source(35, 25) + SourceIndex(0) +6 >Emitted(62, 122) Source(35, 40) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(31, 5) Source(36, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(36, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(36, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(36, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(36, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(36, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(36, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(36, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(63, 9) Source(36, 5) + SourceIndex(0) +2 >Emitted(63, 16) Source(36, 12) + SourceIndex(0) +3 >Emitted(63, 17) Source(36, 13) + SourceIndex(0) +4 >Emitted(63, 20) Source(36, 16) + SourceIndex(0) +5 >Emitted(63, 21) Source(36, 17) + SourceIndex(0) +6 >Emitted(63, 34) Source(36, 30) + SourceIndex(0) +7 >Emitted(63, 35) Source(36, 31) + SourceIndex(0) +8 >Emitted(63, 36) Source(36, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(32, 2) Source(37, 2) + SourceIndex(0) +1 >Emitted(64, 6) Source(37, 2) + SourceIndex(0) --- ->>>for (var _l = 0, _m = getMultiRobots(); _l < _m.length; _l++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([, [primarySkillA, secondarySkillA]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(33, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(38, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(38, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(38, 46) + SourceIndex(0) -5 >Emitted(33, 16) Source(38, 62) + SourceIndex(0) -6 >Emitted(33, 18) Source(38, 46) + SourceIndex(0) -7 >Emitted(33, 23) Source(38, 46) + SourceIndex(0) -8 >Emitted(33, 37) Source(38, 60) + SourceIndex(0) -9 >Emitted(33, 39) Source(38, 62) + SourceIndex(0) -10>Emitted(33, 41) Source(38, 46) + SourceIndex(0) -11>Emitted(33, 55) Source(38, 62) + SourceIndex(0) -12>Emitted(33, 57) Source(38, 46) + SourceIndex(0) -13>Emitted(33, 61) Source(38, 62) + SourceIndex(0) ---- ->>> _o = _m[_l], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1]; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [, [primarySkillA, secondarySkillA]] +1 >Emitted(71, 5) Source(38, 1) + SourceIndex(0) +2 >Emitted(71, 8) Source(38, 4) + SourceIndex(0) +3 >Emitted(71, 9) Source(38, 5) + SourceIndex(0) +4 >Emitted(71, 10) Source(38, 46) + SourceIndex(0) +5 >Emitted(71, 14) Source(38, 46) + SourceIndex(0) +6 >Emitted(71, 27) Source(38, 46) + SourceIndex(0) +7 >Emitted(71, 29) Source(38, 46) + SourceIndex(0) +8 >Emitted(71, 39) Source(38, 46) + SourceIndex(0) +9 >Emitted(71, 48) Source(38, 46) + SourceIndex(0) +10>Emitted(71, 62) Source(38, 60) + SourceIndex(0) +11>Emitted(71, 64) Source(38, 62) + SourceIndex(0) +12>Emitted(71, 65) Source(38, 62) + SourceIndex(0) +13>Emitted(71, 67) Source(38, 62) + SourceIndex(0) +14>Emitted(71, 69) Source(38, 6) + SourceIndex(0) +15>Emitted(71, 87) Source(38, 42) + SourceIndex(0) +--- +>>> _g = __read(iterator_2.result.value, 2), _h = __read(_g[1], 2), primarySkillA = _h[0], secondarySkillA = _h[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [primarySkillA, secondarySkillA] -3 > -4 > primarySkillA -5 > , -6 > secondarySkillA -1->Emitted(34, 18) Source(38, 9) + SourceIndex(0) -2 >Emitted(34, 28) Source(38, 41) + SourceIndex(0) -3 >Emitted(34, 30) Source(38, 10) + SourceIndex(0) -4 >Emitted(34, 51) Source(38, 23) + SourceIndex(0) -5 >Emitted(34, 53) Source(38, 25) + SourceIndex(0) -6 >Emitted(34, 76) Source(38, 40) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > [primarySkillA, secondarySkillA] +3 > +4 > primarySkillA +5 > , +6 > secondarySkillA +1->Emitted(72, 50) Source(38, 9) + SourceIndex(0) +2 >Emitted(72, 71) Source(38, 41) + SourceIndex(0) +3 >Emitted(72, 73) Source(38, 10) + SourceIndex(0) +4 >Emitted(72, 94) Source(38, 23) + SourceIndex(0) +5 >Emitted(72, 96) Source(38, 25) + SourceIndex(0) +6 >Emitted(72, 119) Source(38, 40) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(35, 5) Source(39, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(39, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(39, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(39, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(39, 17) + SourceIndex(0) -6 >Emitted(35, 30) Source(39, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(39, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(39, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(73, 9) Source(39, 5) + SourceIndex(0) +2 >Emitted(73, 16) Source(39, 12) + SourceIndex(0) +3 >Emitted(73, 17) Source(39, 13) + SourceIndex(0) +4 >Emitted(73, 20) Source(39, 16) + SourceIndex(0) +5 >Emitted(73, 21) Source(39, 17) + SourceIndex(0) +6 >Emitted(73, 34) Source(39, 30) + SourceIndex(0) +7 >Emitted(73, 35) Source(39, 31) + SourceIndex(0) +8 >Emitted(73, 36) Source(39, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(36, 2) Source(40, 2) + SourceIndex(0) +1 >Emitted(74, 6) Source(40, 2) + SourceIndex(0) --- ->>>for (var _q = 0, _r = [multiRobotA, multiRobotB]; _q < _r.length; _q++) { -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _j = 0, _k = [multiRobotA, multiRobotB]; _j < _k.length; _j++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -889,8 +957,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -906,41 +974,41 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(37, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(41, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(41, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(41, 46) + SourceIndex(0) -5 >Emitted(37, 16) Source(41, 72) + SourceIndex(0) -6 >Emitted(37, 18) Source(41, 46) + SourceIndex(0) -7 >Emitted(37, 24) Source(41, 47) + SourceIndex(0) -8 >Emitted(37, 35) Source(41, 58) + SourceIndex(0) -9 >Emitted(37, 37) Source(41, 60) + SourceIndex(0) -10>Emitted(37, 48) Source(41, 71) + SourceIndex(0) -11>Emitted(37, 49) Source(41, 72) + SourceIndex(0) -12>Emitted(37, 51) Source(41, 46) + SourceIndex(0) -13>Emitted(37, 65) Source(41, 72) + SourceIndex(0) -14>Emitted(37, 67) Source(41, 46) + SourceIndex(0) -15>Emitted(37, 71) Source(41, 72) + SourceIndex(0) ---- ->>> _s = _r[_q], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1]; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(80, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(80, 4) Source(41, 4) + SourceIndex(0) +3 >Emitted(80, 5) Source(41, 5) + SourceIndex(0) +4 >Emitted(80, 6) Source(41, 46) + SourceIndex(0) +5 >Emitted(80, 16) Source(41, 72) + SourceIndex(0) +6 >Emitted(80, 18) Source(41, 46) + SourceIndex(0) +7 >Emitted(80, 24) Source(41, 47) + SourceIndex(0) +8 >Emitted(80, 35) Source(41, 58) + SourceIndex(0) +9 >Emitted(80, 37) Source(41, 60) + SourceIndex(0) +10>Emitted(80, 48) Source(41, 71) + SourceIndex(0) +11>Emitted(80, 49) Source(41, 72) + SourceIndex(0) +12>Emitted(80, 51) Source(41, 46) + SourceIndex(0) +13>Emitted(80, 65) Source(41, 72) + SourceIndex(0) +14>Emitted(80, 67) Source(41, 46) + SourceIndex(0) +15>Emitted(80, 71) Source(41, 72) + SourceIndex(0) +--- +>>> _l = __read(_k[_j], 2), _m = __read(_l[1], 2), primarySkillA = _m[0], secondarySkillA = _m[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [primarySkillA, secondarySkillA] -3 > -4 > primarySkillA -5 > , -6 > secondarySkillA -1->Emitted(38, 18) Source(41, 9) + SourceIndex(0) -2 >Emitted(38, 28) Source(41, 41) + SourceIndex(0) -3 >Emitted(38, 30) Source(41, 10) + SourceIndex(0) -4 >Emitted(38, 51) Source(41, 23) + SourceIndex(0) -5 >Emitted(38, 53) Source(41, 25) + SourceIndex(0) -6 >Emitted(38, 76) Source(41, 40) + SourceIndex(0) +2 > [primarySkillA, secondarySkillA] +3 > +4 > primarySkillA +5 > , +6 > secondarySkillA +1->Emitted(81, 29) Source(41, 9) + SourceIndex(0) +2 >Emitted(81, 50) Source(41, 41) + SourceIndex(0) +3 >Emitted(81, 52) Source(41, 10) + SourceIndex(0) +4 >Emitted(81, 73) Source(41, 23) + SourceIndex(0) +5 >Emitted(81, 75) Source(41, 25) + SourceIndex(0) +6 >Emitted(81, 98) Source(41, 40) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -960,188 +1028,212 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(39, 5) Source(42, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(42, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(42, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(42, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(42, 17) + SourceIndex(0) -6 >Emitted(39, 30) Source(42, 30) + SourceIndex(0) -7 >Emitted(39, 31) Source(42, 31) + SourceIndex(0) -8 >Emitted(39, 32) Source(42, 32) + SourceIndex(0) +1 >Emitted(82, 5) Source(42, 5) + SourceIndex(0) +2 >Emitted(82, 12) Source(42, 12) + SourceIndex(0) +3 >Emitted(82, 13) Source(42, 13) + SourceIndex(0) +4 >Emitted(82, 16) Source(42, 16) + SourceIndex(0) +5 >Emitted(82, 17) Source(42, 17) + SourceIndex(0) +6 >Emitted(82, 30) Source(42, 30) + SourceIndex(0) +7 >Emitted(82, 31) Source(42, 31) + SourceIndex(0) +8 >Emitted(82, 32) Source(42, 32) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(40, 2) Source(43, 2) + SourceIndex(0) +1 >Emitted(83, 2) Source(43, 2) + SourceIndex(0) --- ->>>for (var _u = 0, robots_2 = robots; _u < robots_2.length; _u++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > > -2 >for -3 > -4 > ([numberB] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(41, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(45, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(45, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(45, 19) + SourceIndex(0) -5 >Emitted(41, 16) Source(45, 25) + SourceIndex(0) -6 >Emitted(41, 18) Source(45, 19) + SourceIndex(0) -7 >Emitted(41, 35) Source(45, 25) + SourceIndex(0) -8 >Emitted(41, 37) Source(45, 19) + SourceIndex(0) -9 >Emitted(41, 57) Source(45, 25) + SourceIndex(0) -10>Emitted(41, 59) Source(45, 19) + SourceIndex(0) -11>Emitted(41, 63) Source(45, 25) + SourceIndex(0) ---- ->>> numberB = robots_2[_u][0]; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberB] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberB] +1->Emitted(85, 5) Source(45, 1) + SourceIndex(0) +2 >Emitted(85, 8) Source(45, 4) + SourceIndex(0) +3 >Emitted(85, 9) Source(45, 5) + SourceIndex(0) +4 >Emitted(85, 10) Source(45, 19) + SourceIndex(0) +5 >Emitted(85, 14) Source(45, 19) + SourceIndex(0) +6 >Emitted(85, 25) Source(45, 19) + SourceIndex(0) +7 >Emitted(85, 27) Source(45, 19) + SourceIndex(0) +8 >Emitted(85, 37) Source(45, 19) + SourceIndex(0) +9 >Emitted(85, 46) Source(45, 19) + SourceIndex(0) +10>Emitted(85, 52) Source(45, 25) + SourceIndex(0) +11>Emitted(85, 53) Source(45, 25) + SourceIndex(0) +12>Emitted(85, 55) Source(45, 25) + SourceIndex(0) +13>Emitted(85, 57) Source(45, 6) + SourceIndex(0) +14>Emitted(85, 73) Source(45, 15) + SourceIndex(0) +--- +>>> _o = __read(robots_2.result.value, 1), numberB = _o[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ 1 > -2 > numberB -1 >Emitted(42, 5) Source(45, 7) + SourceIndex(0) -2 >Emitted(42, 30) Source(45, 14) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ +2 > numberB +1 >Emitted(86, 48) Source(45, 7) + SourceIndex(0) +2 >Emitted(86, 63) Source(45, 14) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(43, 5) Source(46, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(46, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(46, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(46, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(46, 17) + SourceIndex(0) -6 >Emitted(43, 24) Source(46, 24) + SourceIndex(0) -7 >Emitted(43, 25) Source(46, 25) + SourceIndex(0) -8 >Emitted(43, 26) Source(46, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(87, 9) Source(46, 5) + SourceIndex(0) +2 >Emitted(87, 16) Source(46, 12) + SourceIndex(0) +3 >Emitted(87, 17) Source(46, 13) + SourceIndex(0) +4 >Emitted(87, 20) Source(46, 16) + SourceIndex(0) +5 >Emitted(87, 21) Source(46, 17) + SourceIndex(0) +6 >Emitted(87, 28) Source(46, 24) + SourceIndex(0) +7 >Emitted(87, 29) Source(46, 25) + SourceIndex(0) +8 >Emitted(87, 30) Source(46, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(44, 2) Source(47, 2) + SourceIndex(0) +1 >Emitted(88, 6) Source(47, 2) + SourceIndex(0) --- ->>>for (var _v = 0, _w = getRobots(); _v < _w.length; _v++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> - > -2 >for -3 > -4 > ([numberB] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(45, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(48, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(48, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(48, 19) + SourceIndex(0) -5 >Emitted(45, 16) Source(48, 30) + SourceIndex(0) -6 >Emitted(45, 18) Source(48, 19) + SourceIndex(0) -7 >Emitted(45, 23) Source(48, 19) + SourceIndex(0) -8 >Emitted(45, 32) Source(48, 28) + SourceIndex(0) -9 >Emitted(45, 34) Source(48, 30) + SourceIndex(0) -10>Emitted(45, 36) Source(48, 19) + SourceIndex(0) -11>Emitted(45, 50) Source(48, 30) + SourceIndex(0) -12>Emitted(45, 52) Source(48, 19) + SourceIndex(0) -13>Emitted(45, 56) Source(48, 30) + SourceIndex(0) ---- ->>> numberB = _w[_v][0]; +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { 1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > ([numberB] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberB] +1 >Emitted(95, 5) Source(48, 1) + SourceIndex(0) +2 >Emitted(95, 8) Source(48, 4) + SourceIndex(0) +3 >Emitted(95, 9) Source(48, 5) + SourceIndex(0) +4 >Emitted(95, 10) Source(48, 19) + SourceIndex(0) +5 >Emitted(95, 14) Source(48, 19) + SourceIndex(0) +6 >Emitted(95, 27) Source(48, 19) + SourceIndex(0) +7 >Emitted(95, 29) Source(48, 19) + SourceIndex(0) +8 >Emitted(95, 39) Source(48, 19) + SourceIndex(0) +9 >Emitted(95, 48) Source(48, 19) + SourceIndex(0) +10>Emitted(95, 57) Source(48, 28) + SourceIndex(0) +11>Emitted(95, 59) Source(48, 30) + SourceIndex(0) +12>Emitted(95, 60) Source(48, 30) + SourceIndex(0) +13>Emitted(95, 62) Source(48, 30) + SourceIndex(0) +14>Emitted(95, 64) Source(48, 6) + SourceIndex(0) +15>Emitted(95, 82) Source(48, 15) + SourceIndex(0) +--- +>>> _p = __read(iterator_3.result.value, 1), numberB = _p[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ 1 > -2 > numberB -1 >Emitted(46, 5) Source(48, 7) + SourceIndex(0) -2 >Emitted(46, 24) Source(48, 14) + SourceIndex(0) ---- ->>> console.log(numberB); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ -1->] of getRobots()) { +2 > numberB +1 >Emitted(96, 50) Source(48, 7) + SourceIndex(0) +2 >Emitted(96, 65) Source(48, 14) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ +1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1->Emitted(47, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(49, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(49, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(49, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(49, 17) + SourceIndex(0) -6 >Emitted(47, 24) Source(49, 24) + SourceIndex(0) -7 >Emitted(47, 25) Source(49, 25) + SourceIndex(0) -8 >Emitted(47, 26) Source(49, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(97, 9) Source(49, 5) + SourceIndex(0) +2 >Emitted(97, 16) Source(49, 12) + SourceIndex(0) +3 >Emitted(97, 17) Source(49, 13) + SourceIndex(0) +4 >Emitted(97, 20) Source(49, 16) + SourceIndex(0) +5 >Emitted(97, 21) Source(49, 17) + SourceIndex(0) +6 >Emitted(97, 28) Source(49, 24) + SourceIndex(0) +7 >Emitted(97, 29) Source(49, 25) + SourceIndex(0) +8 >Emitted(97, 30) Source(49, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(48, 2) Source(50, 2) + SourceIndex(0) +1 >Emitted(98, 6) Source(50, 2) + SourceIndex(0) --- ->>>for (var _x = 0, _y = [robotA, robotB]; _x < _y.length; _x++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _q = 0, _r = [robotA, robotB]; _q < _r.length; _q++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1156,7 +1248,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -1-> +1 > > 2 >for 3 > @@ -1172,33 +1264,32 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(49, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(51, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(51, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(51, 19) + SourceIndex(0) -5 >Emitted(49, 16) Source(51, 35) + SourceIndex(0) -6 >Emitted(49, 18) Source(51, 19) + SourceIndex(0) -7 >Emitted(49, 24) Source(51, 20) + SourceIndex(0) -8 >Emitted(49, 30) Source(51, 26) + SourceIndex(0) -9 >Emitted(49, 32) Source(51, 28) + SourceIndex(0) -10>Emitted(49, 38) Source(51, 34) + SourceIndex(0) -11>Emitted(49, 39) Source(51, 35) + SourceIndex(0) -12>Emitted(49, 41) Source(51, 19) + SourceIndex(0) -13>Emitted(49, 55) Source(51, 35) + SourceIndex(0) -14>Emitted(49, 57) Source(51, 19) + SourceIndex(0) -15>Emitted(49, 61) Source(51, 35) + SourceIndex(0) ---- ->>> numberB = _y[_x][0]; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> +1 >Emitted(104, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(104, 4) Source(51, 4) + SourceIndex(0) +3 >Emitted(104, 5) Source(51, 5) + SourceIndex(0) +4 >Emitted(104, 6) Source(51, 19) + SourceIndex(0) +5 >Emitted(104, 16) Source(51, 35) + SourceIndex(0) +6 >Emitted(104, 18) Source(51, 19) + SourceIndex(0) +7 >Emitted(104, 24) Source(51, 20) + SourceIndex(0) +8 >Emitted(104, 30) Source(51, 26) + SourceIndex(0) +9 >Emitted(104, 32) Source(51, 28) + SourceIndex(0) +10>Emitted(104, 38) Source(51, 34) + SourceIndex(0) +11>Emitted(104, 39) Source(51, 35) + SourceIndex(0) +12>Emitted(104, 41) Source(51, 19) + SourceIndex(0) +13>Emitted(104, 55) Source(51, 35) + SourceIndex(0) +14>Emitted(104, 57) Source(51, 19) + SourceIndex(0) +15>Emitted(104, 61) Source(51, 35) + SourceIndex(0) +--- +>>> _s = __read(_r[_q], 1), numberB = _s[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ 1 > -2 > numberB -1 >Emitted(50, 5) Source(51, 7) + SourceIndex(0) -2 >Emitted(50, 24) Source(51, 14) + SourceIndex(0) +2 > numberB +1 >Emitted(105, 29) Source(51, 7) + SourceIndex(0) +2 >Emitted(105, 44) Source(51, 14) + SourceIndex(0) --- >>> console.log(numberB); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -1206,7 +1297,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > ^^^^^^^ 7 > ^ 8 > ^ -1->] of [robotA, robotB]) { +1 >] of [robotA, robotB]) { > 2 > console 3 > . @@ -1215,187 +1306,211 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > numberB 7 > ) 8 > ; -1->Emitted(51, 5) Source(52, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(52, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(52, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(52, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(52, 17) + SourceIndex(0) -6 >Emitted(51, 24) Source(52, 24) + SourceIndex(0) -7 >Emitted(51, 25) Source(52, 25) + SourceIndex(0) -8 >Emitted(51, 26) Source(52, 26) + SourceIndex(0) +1 >Emitted(106, 5) Source(52, 5) + SourceIndex(0) +2 >Emitted(106, 12) Source(52, 12) + SourceIndex(0) +3 >Emitted(106, 13) Source(52, 13) + SourceIndex(0) +4 >Emitted(106, 16) Source(52, 16) + SourceIndex(0) +5 >Emitted(106, 17) Source(52, 17) + SourceIndex(0) +6 >Emitted(106, 24) Source(52, 24) + SourceIndex(0) +7 >Emitted(106, 25) Source(52, 25) + SourceIndex(0) +8 >Emitted(106, 26) Source(52, 26) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(52, 2) Source(53, 2) + SourceIndex(0) +1 >Emitted(107, 2) Source(53, 2) + SourceIndex(0) --- ->>>for (var _z = 0, multiRobots_2 = multiRobots; _z < multiRobots_2.length; _z++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > ([nameB] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(53, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(54, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(54, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(54, 17) + SourceIndex(0) -5 >Emitted(53, 16) Source(54, 28) + SourceIndex(0) -6 >Emitted(53, 18) Source(54, 17) + SourceIndex(0) -7 >Emitted(53, 45) Source(54, 28) + SourceIndex(0) -8 >Emitted(53, 47) Source(54, 17) + SourceIndex(0) -9 >Emitted(53, 72) Source(54, 28) + SourceIndex(0) -10>Emitted(53, 74) Source(54, 17) + SourceIndex(0) -11>Emitted(53, 78) Source(54, 28) + SourceIndex(0) ---- ->>> nameB = multiRobots_2[_z][0]; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([nameB] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [nameB] +1->Emitted(109, 5) Source(54, 1) + SourceIndex(0) +2 >Emitted(109, 8) Source(54, 4) + SourceIndex(0) +3 >Emitted(109, 9) Source(54, 5) + SourceIndex(0) +4 >Emitted(109, 10) Source(54, 17) + SourceIndex(0) +5 >Emitted(109, 14) Source(54, 17) + SourceIndex(0) +6 >Emitted(109, 30) Source(54, 17) + SourceIndex(0) +7 >Emitted(109, 32) Source(54, 17) + SourceIndex(0) +8 >Emitted(109, 42) Source(54, 17) + SourceIndex(0) +9 >Emitted(109, 51) Source(54, 17) + SourceIndex(0) +10>Emitted(109, 62) Source(54, 28) + SourceIndex(0) +11>Emitted(109, 63) Source(54, 28) + SourceIndex(0) +12>Emitted(109, 65) Source(54, 28) + SourceIndex(0) +13>Emitted(109, 67) Source(54, 6) + SourceIndex(0) +14>Emitted(109, 88) Source(54, 13) + SourceIndex(0) +--- +>>> _t = __read(multiRobots_2.result.value, 1), nameB = _t[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameB -1 >Emitted(54, 5) Source(54, 7) + SourceIndex(0) -2 >Emitted(54, 33) Source(54, 12) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(55, 5) Source(55, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(55, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(55, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(55, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(55, 17) + SourceIndex(0) -6 >Emitted(55, 22) Source(55, 22) + SourceIndex(0) -7 >Emitted(55, 23) Source(55, 23) + SourceIndex(0) -8 >Emitted(55, 24) Source(55, 24) + SourceIndex(0) +2 > nameB +1 >Emitted(110, 53) Source(54, 7) + SourceIndex(0) +2 >Emitted(110, 66) Source(54, 12) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of multiRobots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(111, 9) Source(55, 5) + SourceIndex(0) +2 >Emitted(111, 16) Source(55, 12) + SourceIndex(0) +3 >Emitted(111, 17) Source(55, 13) + SourceIndex(0) +4 >Emitted(111, 20) Source(55, 16) + SourceIndex(0) +5 >Emitted(111, 21) Source(55, 17) + SourceIndex(0) +6 >Emitted(111, 26) Source(55, 22) + SourceIndex(0) +7 >Emitted(111, 27) Source(55, 23) + SourceIndex(0) +8 >Emitted(111, 28) Source(55, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(112, 6) Source(56, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ 1 > - >} -1 >Emitted(56, 2) Source(56, 2) + SourceIndex(0) ---- ->>>for (var _0 = 0, _1 = getMultiRobots(); _0 < _1.length; _0++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> > -2 >for -3 > -4 > ([nameB] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(57, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(57, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(57, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(57, 17) + SourceIndex(0) -5 >Emitted(57, 16) Source(57, 33) + SourceIndex(0) -6 >Emitted(57, 18) Source(57, 17) + SourceIndex(0) -7 >Emitted(57, 23) Source(57, 17) + SourceIndex(0) -8 >Emitted(57, 37) Source(57, 31) + SourceIndex(0) -9 >Emitted(57, 39) Source(57, 33) + SourceIndex(0) -10>Emitted(57, 41) Source(57, 17) + SourceIndex(0) -11>Emitted(57, 55) Source(57, 33) + SourceIndex(0) -12>Emitted(57, 57) Source(57, 17) + SourceIndex(0) -13>Emitted(57, 61) Source(57, 33) + SourceIndex(0) ---- ->>> nameB = _1[_0][0]; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^^-> +2 > for +3 > +4 > ([nameB] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [nameB] +1 >Emitted(119, 5) Source(57, 1) + SourceIndex(0) +2 >Emitted(119, 8) Source(57, 4) + SourceIndex(0) +3 >Emitted(119, 9) Source(57, 5) + SourceIndex(0) +4 >Emitted(119, 10) Source(57, 17) + SourceIndex(0) +5 >Emitted(119, 14) Source(57, 17) + SourceIndex(0) +6 >Emitted(119, 27) Source(57, 17) + SourceIndex(0) +7 >Emitted(119, 29) Source(57, 17) + SourceIndex(0) +8 >Emitted(119, 39) Source(57, 17) + SourceIndex(0) +9 >Emitted(119, 48) Source(57, 17) + SourceIndex(0) +10>Emitted(119, 62) Source(57, 31) + SourceIndex(0) +11>Emitted(119, 64) Source(57, 33) + SourceIndex(0) +12>Emitted(119, 65) Source(57, 33) + SourceIndex(0) +13>Emitted(119, 67) Source(57, 33) + SourceIndex(0) +14>Emitted(119, 69) Source(57, 6) + SourceIndex(0) +15>Emitted(119, 87) Source(57, 13) + SourceIndex(0) +--- +>>> _u = __read(iterator_4.result.value, 1), nameB = _u[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameB -1 >Emitted(58, 5) Source(57, 7) + SourceIndex(0) -2 >Emitted(58, 22) Source(57, 12) + SourceIndex(0) ---- ->>> console.log(nameB); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1->] of getMultiRobots()) { +2 > nameB +1 >Emitted(120, 50) Source(57, 7) + SourceIndex(0) +2 >Emitted(120, 63) Source(57, 12) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1->Emitted(59, 5) Source(58, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(58, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(58, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(58, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(58, 17) + SourceIndex(0) -6 >Emitted(59, 22) Source(58, 22) + SourceIndex(0) -7 >Emitted(59, 23) Source(58, 23) + SourceIndex(0) -8 >Emitted(59, 24) Source(58, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(121, 9) Source(58, 5) + SourceIndex(0) +2 >Emitted(121, 16) Source(58, 12) + SourceIndex(0) +3 >Emitted(121, 17) Source(58, 13) + SourceIndex(0) +4 >Emitted(121, 20) Source(58, 16) + SourceIndex(0) +5 >Emitted(121, 21) Source(58, 17) + SourceIndex(0) +6 >Emitted(121, 26) Source(58, 22) + SourceIndex(0) +7 >Emitted(121, 27) Source(58, 23) + SourceIndex(0) +8 >Emitted(121, 28) Source(58, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(60, 2) Source(59, 2) + SourceIndex(0) +1 >Emitted(122, 6) Source(59, 2) + SourceIndex(0) --- ->>>for (var _2 = 0, _3 = [multiRobotA, multiRobotB]; _2 < _3.length; _2++) { -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _v = 0, _w = [multiRobotA, multiRobotB]; _v < _w.length; _v++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1410,7 +1525,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -1-> +1 > > 2 >for 3 > @@ -1426,33 +1541,32 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(61, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(60, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(60, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(60, 17) + SourceIndex(0) -5 >Emitted(61, 16) Source(60, 43) + SourceIndex(0) -6 >Emitted(61, 18) Source(60, 17) + SourceIndex(0) -7 >Emitted(61, 24) Source(60, 18) + SourceIndex(0) -8 >Emitted(61, 35) Source(60, 29) + SourceIndex(0) -9 >Emitted(61, 37) Source(60, 31) + SourceIndex(0) -10>Emitted(61, 48) Source(60, 42) + SourceIndex(0) -11>Emitted(61, 49) Source(60, 43) + SourceIndex(0) -12>Emitted(61, 51) Source(60, 17) + SourceIndex(0) -13>Emitted(61, 65) Source(60, 43) + SourceIndex(0) -14>Emitted(61, 67) Source(60, 17) + SourceIndex(0) -15>Emitted(61, 71) Source(60, 43) + SourceIndex(0) ---- ->>> nameB = _3[_2][0]; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^^-> +1 >Emitted(128, 1) Source(60, 1) + SourceIndex(0) +2 >Emitted(128, 4) Source(60, 4) + SourceIndex(0) +3 >Emitted(128, 5) Source(60, 5) + SourceIndex(0) +4 >Emitted(128, 6) Source(60, 17) + SourceIndex(0) +5 >Emitted(128, 16) Source(60, 43) + SourceIndex(0) +6 >Emitted(128, 18) Source(60, 17) + SourceIndex(0) +7 >Emitted(128, 24) Source(60, 18) + SourceIndex(0) +8 >Emitted(128, 35) Source(60, 29) + SourceIndex(0) +9 >Emitted(128, 37) Source(60, 31) + SourceIndex(0) +10>Emitted(128, 48) Source(60, 42) + SourceIndex(0) +11>Emitted(128, 49) Source(60, 43) + SourceIndex(0) +12>Emitted(128, 51) Source(60, 17) + SourceIndex(0) +13>Emitted(128, 65) Source(60, 43) + SourceIndex(0) +14>Emitted(128, 67) Source(60, 17) + SourceIndex(0) +15>Emitted(128, 71) Source(60, 43) + SourceIndex(0) +--- +>>> _x = __read(_w[_v], 1), nameB = _x[0]; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ 1 > -2 > nameB -1 >Emitted(62, 5) Source(60, 7) + SourceIndex(0) -2 >Emitted(62, 22) Source(60, 12) + SourceIndex(0) +2 > nameB +1 >Emitted(129, 29) Source(60, 7) + SourceIndex(0) +2 >Emitted(129, 42) Source(60, 12) + SourceIndex(0) --- >>> console.log(nameB); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -1460,7 +1574,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > ^^^^^ 7 > ^ 8 > ^ -1->] of [multiRobotA, multiRobotB]) { +1 >] of [multiRobotA, multiRobotB]) { > 2 > console 3 > . @@ -1469,229 +1583,254 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > nameB 7 > ) 8 > ; -1->Emitted(63, 5) Source(61, 5) + SourceIndex(0) -2 >Emitted(63, 12) Source(61, 12) + SourceIndex(0) -3 >Emitted(63, 13) Source(61, 13) + SourceIndex(0) -4 >Emitted(63, 16) Source(61, 16) + SourceIndex(0) -5 >Emitted(63, 17) Source(61, 17) + SourceIndex(0) -6 >Emitted(63, 22) Source(61, 22) + SourceIndex(0) -7 >Emitted(63, 23) Source(61, 23) + SourceIndex(0) -8 >Emitted(63, 24) Source(61, 24) + SourceIndex(0) +1 >Emitted(130, 5) Source(61, 5) + SourceIndex(0) +2 >Emitted(130, 12) Source(61, 12) + SourceIndex(0) +3 >Emitted(130, 13) Source(61, 13) + SourceIndex(0) +4 >Emitted(130, 16) Source(61, 16) + SourceIndex(0) +5 >Emitted(130, 17) Source(61, 17) + SourceIndex(0) +6 >Emitted(130, 22) Source(61, 22) + SourceIndex(0) +7 >Emitted(130, 23) Source(61, 23) + SourceIndex(0) +8 >Emitted(130, 24) Source(61, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(64, 2) Source(62, 2) + SourceIndex(0) +1 >Emitted(131, 2) Source(62, 2) + SourceIndex(0) --- ->>>for (var _4 = 0, robots_3 = robots; _4 < robots_3.length; _4++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > ([numberA2, nameA2, skillA2] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(65, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(65, 4) Source(64, 4) + SourceIndex(0) -3 >Emitted(65, 5) Source(64, 5) + SourceIndex(0) -4 >Emitted(65, 6) Source(64, 37) + SourceIndex(0) -5 >Emitted(65, 16) Source(64, 43) + SourceIndex(0) -6 >Emitted(65, 18) Source(64, 37) + SourceIndex(0) -7 >Emitted(65, 35) Source(64, 43) + SourceIndex(0) -8 >Emitted(65, 37) Source(64, 37) + SourceIndex(0) -9 >Emitted(65, 57) Source(64, 43) + SourceIndex(0) -10>Emitted(65, 59) Source(64, 37) + SourceIndex(0) -11>Emitted(65, 63) Source(64, 43) + SourceIndex(0) ---- ->>> _5 = robots_3[_4], numberA2 = _5[0], nameA2 = _5[1], skillA2 = _5[2]; -1->^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA2, nameA2, skillA2] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberA2, nameA2, skillA2] +1->Emitted(133, 5) Source(64, 1) + SourceIndex(0) +2 >Emitted(133, 8) Source(64, 4) + SourceIndex(0) +3 >Emitted(133, 9) Source(64, 5) + SourceIndex(0) +4 >Emitted(133, 10) Source(64, 37) + SourceIndex(0) +5 >Emitted(133, 14) Source(64, 37) + SourceIndex(0) +6 >Emitted(133, 25) Source(64, 37) + SourceIndex(0) +7 >Emitted(133, 27) Source(64, 37) + SourceIndex(0) +8 >Emitted(133, 37) Source(64, 37) + SourceIndex(0) +9 >Emitted(133, 46) Source(64, 37) + SourceIndex(0) +10>Emitted(133, 52) Source(64, 43) + SourceIndex(0) +11>Emitted(133, 53) Source(64, 43) + SourceIndex(0) +12>Emitted(133, 55) Source(64, 43) + SourceIndex(0) +13>Emitted(133, 57) Source(64, 6) + SourceIndex(0) +14>Emitted(133, 73) Source(64, 33) + SourceIndex(0) +--- +>>> _y = __read(robots_3.result.value, 3), numberA2 = _y[0], nameA2 = _y[1], skillA2 = _y[2]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ 1-> -2 > numberA2 -3 > , -4 > nameA2 -5 > , -6 > skillA2 -1->Emitted(66, 24) Source(64, 7) + SourceIndex(0) -2 >Emitted(66, 40) Source(64, 15) + SourceIndex(0) -3 >Emitted(66, 42) Source(64, 17) + SourceIndex(0) -4 >Emitted(66, 56) Source(64, 23) + SourceIndex(0) -5 >Emitted(66, 58) Source(64, 25) + SourceIndex(0) -6 >Emitted(66, 73) Source(64, 32) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > numberA2 +3 > , +4 > nameA2 +5 > , +6 > skillA2 +1->Emitted(134, 48) Source(64, 7) + SourceIndex(0) +2 >Emitted(134, 64) Source(64, 15) + SourceIndex(0) +3 >Emitted(134, 66) Source(64, 17) + SourceIndex(0) +4 >Emitted(134, 80) Source(64, 23) + SourceIndex(0) +5 >Emitted(134, 82) Source(64, 25) + SourceIndex(0) +6 >Emitted(134, 97) Source(64, 32) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(67, 5) Source(65, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(65, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(65, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(65, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(65, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(65, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(65, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(65, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(135, 9) Source(65, 5) + SourceIndex(0) +2 >Emitted(135, 16) Source(65, 12) + SourceIndex(0) +3 >Emitted(135, 17) Source(65, 13) + SourceIndex(0) +4 >Emitted(135, 20) Source(65, 16) + SourceIndex(0) +5 >Emitted(135, 21) Source(65, 17) + SourceIndex(0) +6 >Emitted(135, 27) Source(65, 23) + SourceIndex(0) +7 >Emitted(135, 28) Source(65, 24) + SourceIndex(0) +8 >Emitted(135, 29) Source(65, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(68, 2) Source(66, 2) + SourceIndex(0) +1 >Emitted(136, 6) Source(66, 2) + SourceIndex(0) --- ->>>for (var _6 = 0, _7 = getRobots(); _6 < _7.length; _6++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([numberA2, nameA2, skillA2] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(69, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(67, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(67, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(67, 37) + SourceIndex(0) -5 >Emitted(69, 16) Source(67, 48) + SourceIndex(0) -6 >Emitted(69, 18) Source(67, 37) + SourceIndex(0) -7 >Emitted(69, 23) Source(67, 37) + SourceIndex(0) -8 >Emitted(69, 32) Source(67, 46) + SourceIndex(0) -9 >Emitted(69, 34) Source(67, 48) + SourceIndex(0) -10>Emitted(69, 36) Source(67, 37) + SourceIndex(0) -11>Emitted(69, 50) Source(67, 48) + SourceIndex(0) -12>Emitted(69, 52) Source(67, 37) + SourceIndex(0) -13>Emitted(69, 56) Source(67, 48) + SourceIndex(0) ---- ->>> _8 = _7[_6], numberA2 = _8[0], nameA2 = _8[1], skillA2 = _8[2]; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA2, nameA2, skillA2] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberA2, nameA2, skillA2] +1 >Emitted(143, 5) Source(67, 1) + SourceIndex(0) +2 >Emitted(143, 8) Source(67, 4) + SourceIndex(0) +3 >Emitted(143, 9) Source(67, 5) + SourceIndex(0) +4 >Emitted(143, 10) Source(67, 37) + SourceIndex(0) +5 >Emitted(143, 14) Source(67, 37) + SourceIndex(0) +6 >Emitted(143, 27) Source(67, 37) + SourceIndex(0) +7 >Emitted(143, 29) Source(67, 37) + SourceIndex(0) +8 >Emitted(143, 39) Source(67, 37) + SourceIndex(0) +9 >Emitted(143, 48) Source(67, 37) + SourceIndex(0) +10>Emitted(143, 57) Source(67, 46) + SourceIndex(0) +11>Emitted(143, 59) Source(67, 48) + SourceIndex(0) +12>Emitted(143, 60) Source(67, 48) + SourceIndex(0) +13>Emitted(143, 62) Source(67, 48) + SourceIndex(0) +14>Emitted(143, 64) Source(67, 6) + SourceIndex(0) +15>Emitted(143, 82) Source(67, 33) + SourceIndex(0) +--- +>>> _z = __read(iterator_5.result.value, 3), numberA2 = _z[0], nameA2 = _z[1], skillA2 = _z[2]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ 1-> -2 > numberA2 -3 > , -4 > nameA2 -5 > , -6 > skillA2 -1->Emitted(70, 18) Source(67, 7) + SourceIndex(0) -2 >Emitted(70, 34) Source(67, 15) + SourceIndex(0) -3 >Emitted(70, 36) Source(67, 17) + SourceIndex(0) -4 >Emitted(70, 50) Source(67, 23) + SourceIndex(0) -5 >Emitted(70, 52) Source(67, 25) + SourceIndex(0) -6 >Emitted(70, 67) Source(67, 32) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > numberA2 +3 > , +4 > nameA2 +5 > , +6 > skillA2 +1->Emitted(144, 50) Source(67, 7) + SourceIndex(0) +2 >Emitted(144, 66) Source(67, 15) + SourceIndex(0) +3 >Emitted(144, 68) Source(67, 17) + SourceIndex(0) +4 >Emitted(144, 82) Source(67, 23) + SourceIndex(0) +5 >Emitted(144, 84) Source(67, 25) + SourceIndex(0) +6 >Emitted(144, 99) Source(67, 32) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(71, 5) Source(68, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(68, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(68, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(68, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(68, 17) + SourceIndex(0) -6 >Emitted(71, 23) Source(68, 23) + SourceIndex(0) -7 >Emitted(71, 24) Source(68, 24) + SourceIndex(0) -8 >Emitted(71, 25) Source(68, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(145, 9) Source(68, 5) + SourceIndex(0) +2 >Emitted(145, 16) Source(68, 12) + SourceIndex(0) +3 >Emitted(145, 17) Source(68, 13) + SourceIndex(0) +4 >Emitted(145, 20) Source(68, 16) + SourceIndex(0) +5 >Emitted(145, 21) Source(68, 17) + SourceIndex(0) +6 >Emitted(145, 27) Source(68, 23) + SourceIndex(0) +7 >Emitted(145, 28) Source(68, 24) + SourceIndex(0) +8 >Emitted(145, 29) Source(68, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(72, 2) Source(69, 2) + SourceIndex(0) +1 >Emitted(146, 6) Source(69, 2) + SourceIndex(0) --- ->>>for (var _9 = 0, _10 = [robotA, robotB]; _9 < _10.length; _9++) { -1-> +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +>>>} +>>>for (var _0 = 0, _1 = [robotA, robotB]; _0 < _1.length; _0++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^ -9 > ^^ -10> ^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ -16> ^^^^^^^^^^^-> -1-> +7 > ^^^^^^ +8 > ^^^^^^ +9 > ^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1699,49 +1838,49 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 5 > [robotA, robotB] 6 > 7 > [ -8 > robotA -9 > , -10> robotB -11> ] -12> -13> [robotA, robotB] -14> -15> [robotA, robotB] -1->Emitted(73, 1) Source(70, 1) + SourceIndex(0) -2 >Emitted(73, 4) Source(70, 4) + SourceIndex(0) -3 >Emitted(73, 5) Source(70, 5) + SourceIndex(0) -4 >Emitted(73, 6) Source(70, 37) + SourceIndex(0) -5 >Emitted(73, 16) Source(70, 53) + SourceIndex(0) -6 >Emitted(73, 18) Source(70, 37) + SourceIndex(0) -7 >Emitted(73, 25) Source(70, 38) + SourceIndex(0) -8 >Emitted(73, 31) Source(70, 44) + SourceIndex(0) -9 >Emitted(73, 33) Source(70, 46) + SourceIndex(0) -10>Emitted(73, 39) Source(70, 52) + SourceIndex(0) -11>Emitted(73, 40) Source(70, 53) + SourceIndex(0) -12>Emitted(73, 42) Source(70, 37) + SourceIndex(0) -13>Emitted(73, 57) Source(70, 53) + SourceIndex(0) -14>Emitted(73, 59) Source(70, 37) + SourceIndex(0) -15>Emitted(73, 63) Source(70, 53) + SourceIndex(0) ---- ->>> _11 = _10[_9], numberA2 = _11[0], nameA2 = _11[1], skillA2 = _11[2]; -1->^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ +8 > robotA +9 > , +10> robotB +11> ] +12> +13> [robotA, robotB] +14> +15> [robotA, robotB] +1 >Emitted(152, 1) Source(70, 1) + SourceIndex(0) +2 >Emitted(152, 4) Source(70, 4) + SourceIndex(0) +3 >Emitted(152, 5) Source(70, 5) + SourceIndex(0) +4 >Emitted(152, 6) Source(70, 37) + SourceIndex(0) +5 >Emitted(152, 16) Source(70, 53) + SourceIndex(0) +6 >Emitted(152, 18) Source(70, 37) + SourceIndex(0) +7 >Emitted(152, 24) Source(70, 38) + SourceIndex(0) +8 >Emitted(152, 30) Source(70, 44) + SourceIndex(0) +9 >Emitted(152, 32) Source(70, 46) + SourceIndex(0) +10>Emitted(152, 38) Source(70, 52) + SourceIndex(0) +11>Emitted(152, 39) Source(70, 53) + SourceIndex(0) +12>Emitted(152, 41) Source(70, 37) + SourceIndex(0) +13>Emitted(152, 55) Source(70, 53) + SourceIndex(0) +14>Emitted(152, 57) Source(70, 37) + SourceIndex(0) +15>Emitted(152, 61) Source(70, 53) + SourceIndex(0) +--- +>>> _2 = __read(_1[_0], 3), numberA2 = _2[0], nameA2 = _2[1], skillA2 = _2[2]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ 1-> -2 > numberA2 -3 > , -4 > nameA2 -5 > , -6 > skillA2 -1->Emitted(74, 20) Source(70, 7) + SourceIndex(0) -2 >Emitted(74, 37) Source(70, 15) + SourceIndex(0) -3 >Emitted(74, 39) Source(70, 17) + SourceIndex(0) -4 >Emitted(74, 54) Source(70, 23) + SourceIndex(0) -5 >Emitted(74, 56) Source(70, 25) + SourceIndex(0) -6 >Emitted(74, 72) Source(70, 32) + SourceIndex(0) +2 > numberA2 +3 > , +4 > nameA2 +5 > , +6 > skillA2 +1->Emitted(153, 29) Source(70, 7) + SourceIndex(0) +2 >Emitted(153, 45) Source(70, 15) + SourceIndex(0) +3 >Emitted(153, 47) Source(70, 17) + SourceIndex(0) +4 >Emitted(153, 61) Source(70, 23) + SourceIndex(0) +5 >Emitted(153, 63) Source(70, 25) + SourceIndex(0) +6 >Emitted(153, 78) Source(70, 32) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1761,296 +1900,321 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(75, 5) Source(71, 5) + SourceIndex(0) -2 >Emitted(75, 12) Source(71, 12) + SourceIndex(0) -3 >Emitted(75, 13) Source(71, 13) + SourceIndex(0) -4 >Emitted(75, 16) Source(71, 16) + SourceIndex(0) -5 >Emitted(75, 17) Source(71, 17) + SourceIndex(0) -6 >Emitted(75, 23) Source(71, 23) + SourceIndex(0) -7 >Emitted(75, 24) Source(71, 24) + SourceIndex(0) -8 >Emitted(75, 25) Source(71, 25) + SourceIndex(0) +1 >Emitted(154, 5) Source(71, 5) + SourceIndex(0) +2 >Emitted(154, 12) Source(71, 12) + SourceIndex(0) +3 >Emitted(154, 13) Source(71, 13) + SourceIndex(0) +4 >Emitted(154, 16) Source(71, 16) + SourceIndex(0) +5 >Emitted(154, 17) Source(71, 17) + SourceIndex(0) +6 >Emitted(154, 23) Source(71, 23) + SourceIndex(0) +7 >Emitted(154, 24) Source(71, 24) + SourceIndex(0) +8 >Emitted(154, 25) Source(71, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(76, 2) Source(72, 2) + SourceIndex(0) +1 >Emitted(155, 2) Source(72, 2) + SourceIndex(0) --- ->>>for (var _12 = 0, multiRobots_3 = multiRobots; _12 < multiRobots_3.length; _12++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ([nameMA, [primarySkillA, secondarySkillA]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(77, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(77, 4) Source(73, 4) + SourceIndex(0) -3 >Emitted(77, 5) Source(73, 5) + SourceIndex(0) -4 >Emitted(77, 6) Source(73, 52) + SourceIndex(0) -5 >Emitted(77, 17) Source(73, 63) + SourceIndex(0) -6 >Emitted(77, 19) Source(73, 52) + SourceIndex(0) -7 >Emitted(77, 46) Source(73, 63) + SourceIndex(0) -8 >Emitted(77, 48) Source(73, 52) + SourceIndex(0) -9 >Emitted(77, 74) Source(73, 63) + SourceIndex(0) -10>Emitted(77, 76) Source(73, 52) + SourceIndex(0) -11>Emitted(77, 81) Source(73, 63) + SourceIndex(0) ---- ->>> _13 = multiRobots_3[_12], nameMA = _13[0], _14 = _13[1], primarySkillA = _14[0], secondarySkillA = _14[1]; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([nameMA, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [nameMA, [primarySkillA, secondarySkillA]] +1->Emitted(157, 5) Source(73, 1) + SourceIndex(0) +2 >Emitted(157, 8) Source(73, 4) + SourceIndex(0) +3 >Emitted(157, 9) Source(73, 5) + SourceIndex(0) +4 >Emitted(157, 10) Source(73, 52) + SourceIndex(0) +5 >Emitted(157, 14) Source(73, 52) + SourceIndex(0) +6 >Emitted(157, 30) Source(73, 52) + SourceIndex(0) +7 >Emitted(157, 32) Source(73, 52) + SourceIndex(0) +8 >Emitted(157, 42) Source(73, 52) + SourceIndex(0) +9 >Emitted(157, 51) Source(73, 52) + SourceIndex(0) +10>Emitted(157, 62) Source(73, 63) + SourceIndex(0) +11>Emitted(157, 63) Source(73, 63) + SourceIndex(0) +12>Emitted(157, 65) Source(73, 63) + SourceIndex(0) +13>Emitted(157, 67) Source(73, 6) + SourceIndex(0) +14>Emitted(157, 88) Source(73, 48) + SourceIndex(0) +--- +>>> _3 = __read(multiRobots_3.result.value, 2), nameMA = _3[0], _4 = __read(_3[1], 2), primarySkillA = _4[0], secondarySkillA = _4[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA -3 > , -4 > [primarySkillA, secondarySkillA] -5 > -6 > primarySkillA -7 > , -8 > secondarySkillA -1->Emitted(78, 31) Source(73, 7) + SourceIndex(0) -2 >Emitted(78, 46) Source(73, 13) + SourceIndex(0) -3 >Emitted(78, 48) Source(73, 15) + SourceIndex(0) -4 >Emitted(78, 60) Source(73, 47) + SourceIndex(0) -5 >Emitted(78, 62) Source(73, 16) + SourceIndex(0) -6 >Emitted(78, 84) Source(73, 29) + SourceIndex(0) -7 >Emitted(78, 86) Source(73, 31) + SourceIndex(0) -8 >Emitted(78, 110) Source(73, 46) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > nameMA +3 > , +4 > [primarySkillA, secondarySkillA] +5 > +6 > primarySkillA +7 > , +8 > secondarySkillA +1->Emitted(158, 53) Source(73, 7) + SourceIndex(0) +2 >Emitted(158, 67) Source(73, 13) + SourceIndex(0) +3 >Emitted(158, 69) Source(73, 15) + SourceIndex(0) +4 >Emitted(158, 90) Source(73, 47) + SourceIndex(0) +5 >Emitted(158, 92) Source(73, 16) + SourceIndex(0) +6 >Emitted(158, 113) Source(73, 29) + SourceIndex(0) +7 >Emitted(158, 115) Source(73, 31) + SourceIndex(0) +8 >Emitted(158, 138) Source(73, 46) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(79, 5) Source(74, 5) + SourceIndex(0) -2 >Emitted(79, 12) Source(74, 12) + SourceIndex(0) -3 >Emitted(79, 13) Source(74, 13) + SourceIndex(0) -4 >Emitted(79, 16) Source(74, 16) + SourceIndex(0) -5 >Emitted(79, 17) Source(74, 17) + SourceIndex(0) -6 >Emitted(79, 23) Source(74, 23) + SourceIndex(0) -7 >Emitted(79, 24) Source(74, 24) + SourceIndex(0) -8 >Emitted(79, 25) Source(74, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(159, 9) Source(74, 5) + SourceIndex(0) +2 >Emitted(159, 16) Source(74, 12) + SourceIndex(0) +3 >Emitted(159, 17) Source(74, 13) + SourceIndex(0) +4 >Emitted(159, 20) Source(74, 16) + SourceIndex(0) +5 >Emitted(159, 21) Source(74, 17) + SourceIndex(0) +6 >Emitted(159, 27) Source(74, 23) + SourceIndex(0) +7 >Emitted(159, 28) Source(74, 24) + SourceIndex(0) +8 >Emitted(159, 29) Source(74, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(80, 2) Source(75, 2) + SourceIndex(0) +1 >Emitted(160, 6) Source(75, 2) + SourceIndex(0) --- ->>>for (var _15 = 0, _16 = getMultiRobots(); _15 < _16.length; _15++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([nameMA, [primarySkillA, secondarySkillA]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(81, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(81, 4) Source(76, 4) + SourceIndex(0) -3 >Emitted(81, 5) Source(76, 5) + SourceIndex(0) -4 >Emitted(81, 6) Source(76, 52) + SourceIndex(0) -5 >Emitted(81, 17) Source(76, 68) + SourceIndex(0) -6 >Emitted(81, 19) Source(76, 52) + SourceIndex(0) -7 >Emitted(81, 25) Source(76, 52) + SourceIndex(0) -8 >Emitted(81, 39) Source(76, 66) + SourceIndex(0) -9 >Emitted(81, 41) Source(76, 68) + SourceIndex(0) -10>Emitted(81, 43) Source(76, 52) + SourceIndex(0) -11>Emitted(81, 59) Source(76, 68) + SourceIndex(0) -12>Emitted(81, 61) Source(76, 52) + SourceIndex(0) -13>Emitted(81, 66) Source(76, 68) + SourceIndex(0) ---- ->>> _17 = _16[_15], nameMA = _17[0], _18 = _17[1], primarySkillA = _18[0], secondarySkillA = _18[1]; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([nameMA, [primarySkillA, secondarySkillA]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [nameMA, [primarySkillA, secondarySkillA]] +1 >Emitted(167, 5) Source(76, 1) + SourceIndex(0) +2 >Emitted(167, 8) Source(76, 4) + SourceIndex(0) +3 >Emitted(167, 9) Source(76, 5) + SourceIndex(0) +4 >Emitted(167, 10) Source(76, 52) + SourceIndex(0) +5 >Emitted(167, 14) Source(76, 52) + SourceIndex(0) +6 >Emitted(167, 27) Source(76, 52) + SourceIndex(0) +7 >Emitted(167, 29) Source(76, 52) + SourceIndex(0) +8 >Emitted(167, 39) Source(76, 52) + SourceIndex(0) +9 >Emitted(167, 48) Source(76, 52) + SourceIndex(0) +10>Emitted(167, 62) Source(76, 66) + SourceIndex(0) +11>Emitted(167, 64) Source(76, 68) + SourceIndex(0) +12>Emitted(167, 65) Source(76, 68) + SourceIndex(0) +13>Emitted(167, 67) Source(76, 68) + SourceIndex(0) +14>Emitted(167, 69) Source(76, 6) + SourceIndex(0) +15>Emitted(167, 87) Source(76, 48) + SourceIndex(0) +--- +>>> _5 = __read(iterator_6.result.value, 2), nameMA = _5[0], _6 = __read(_5[1], 2), primarySkillA = _6[0], secondarySkillA = _6[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA -3 > , -4 > [primarySkillA, secondarySkillA] -5 > -6 > primarySkillA -7 > , -8 > secondarySkillA -1->Emitted(82, 21) Source(76, 7) + SourceIndex(0) -2 >Emitted(82, 36) Source(76, 13) + SourceIndex(0) -3 >Emitted(82, 38) Source(76, 15) + SourceIndex(0) -4 >Emitted(82, 50) Source(76, 47) + SourceIndex(0) -5 >Emitted(82, 52) Source(76, 16) + SourceIndex(0) -6 >Emitted(82, 74) Source(76, 29) + SourceIndex(0) -7 >Emitted(82, 76) Source(76, 31) + SourceIndex(0) -8 >Emitted(82, 100) Source(76, 46) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > nameMA +3 > , +4 > [primarySkillA, secondarySkillA] +5 > +6 > primarySkillA +7 > , +8 > secondarySkillA +1->Emitted(168, 50) Source(76, 7) + SourceIndex(0) +2 >Emitted(168, 64) Source(76, 13) + SourceIndex(0) +3 >Emitted(168, 66) Source(76, 15) + SourceIndex(0) +4 >Emitted(168, 87) Source(76, 47) + SourceIndex(0) +5 >Emitted(168, 89) Source(76, 16) + SourceIndex(0) +6 >Emitted(168, 110) Source(76, 29) + SourceIndex(0) +7 >Emitted(168, 112) Source(76, 31) + SourceIndex(0) +8 >Emitted(168, 135) Source(76, 46) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(83, 5) Source(77, 5) + SourceIndex(0) -2 >Emitted(83, 12) Source(77, 12) + SourceIndex(0) -3 >Emitted(83, 13) Source(77, 13) + SourceIndex(0) -4 >Emitted(83, 16) Source(77, 16) + SourceIndex(0) -5 >Emitted(83, 17) Source(77, 17) + SourceIndex(0) -6 >Emitted(83, 23) Source(77, 23) + SourceIndex(0) -7 >Emitted(83, 24) Source(77, 24) + SourceIndex(0) -8 >Emitted(83, 25) Source(77, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(169, 9) Source(77, 5) + SourceIndex(0) +2 >Emitted(169, 16) Source(77, 12) + SourceIndex(0) +3 >Emitted(169, 17) Source(77, 13) + SourceIndex(0) +4 >Emitted(169, 20) Source(77, 16) + SourceIndex(0) +5 >Emitted(169, 21) Source(77, 17) + SourceIndex(0) +6 >Emitted(169, 27) Source(77, 23) + SourceIndex(0) +7 >Emitted(169, 28) Source(77, 24) + SourceIndex(0) +8 >Emitted(169, 29) Source(77, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(84, 2) Source(78, 2) + SourceIndex(0) +1 >Emitted(170, 6) Source(78, 2) + SourceIndex(0) --- ->>>for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { -1-> +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +>>>} +>>>for (var _7 = 0, _8 = [multiRobotA, multiRobotB]; _7 < _8.length; _7++) { +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > 4 > ([nameMA, [primarySkillA, secondarySkillA]] of 5 > [multiRobotA, multiRobotB] -6 > -7 > [ -8 > multiRobotA -9 > , -10> multiRobotB -11> ] -12> -13> [multiRobotA, multiRobotB] -14> -15> [multiRobotA, multiRobotB] -1->Emitted(85, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(85, 4) Source(79, 4) + SourceIndex(0) -3 >Emitted(85, 5) Source(79, 5) + SourceIndex(0) -4 >Emitted(85, 6) Source(79, 52) + SourceIndex(0) -5 >Emitted(85, 17) Source(79, 78) + SourceIndex(0) -6 >Emitted(85, 19) Source(79, 52) + SourceIndex(0) -7 >Emitted(85, 26) Source(79, 53) + SourceIndex(0) -8 >Emitted(85, 37) Source(79, 64) + SourceIndex(0) -9 >Emitted(85, 39) Source(79, 66) + SourceIndex(0) -10>Emitted(85, 50) Source(79, 77) + SourceIndex(0) -11>Emitted(85, 51) Source(79, 78) + SourceIndex(0) -12>Emitted(85, 53) Source(79, 52) + SourceIndex(0) -13>Emitted(85, 69) Source(79, 78) + SourceIndex(0) -14>Emitted(85, 71) Source(79, 52) + SourceIndex(0) -15>Emitted(85, 76) Source(79, 78) + SourceIndex(0) ---- ->>> _21 = _20[_19], nameMA = _21[0], _22 = _21[1], primarySkillA = _22[0], secondarySkillA = _22[1]; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^ +6 > +7 > [ +8 > multiRobotA +9 > , +10> multiRobotB +11> ] +12> +13> [multiRobotA, multiRobotB] +14> +15> [multiRobotA, multiRobotB] +1 >Emitted(176, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(176, 4) Source(79, 4) + SourceIndex(0) +3 >Emitted(176, 5) Source(79, 5) + SourceIndex(0) +4 >Emitted(176, 6) Source(79, 52) + SourceIndex(0) +5 >Emitted(176, 16) Source(79, 78) + SourceIndex(0) +6 >Emitted(176, 18) Source(79, 52) + SourceIndex(0) +7 >Emitted(176, 24) Source(79, 53) + SourceIndex(0) +8 >Emitted(176, 35) Source(79, 64) + SourceIndex(0) +9 >Emitted(176, 37) Source(79, 66) + SourceIndex(0) +10>Emitted(176, 48) Source(79, 77) + SourceIndex(0) +11>Emitted(176, 49) Source(79, 78) + SourceIndex(0) +12>Emitted(176, 51) Source(79, 52) + SourceIndex(0) +13>Emitted(176, 65) Source(79, 78) + SourceIndex(0) +14>Emitted(176, 67) Source(79, 52) + SourceIndex(0) +15>Emitted(176, 71) Source(79, 78) + SourceIndex(0) +--- +>>> _9 = __read(_8[_7], 2), nameMA = _9[0], _10 = __read(_9[1], 2), primarySkillA = _10[0], secondarySkillA = _10[1]; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA -3 > , -4 > [primarySkillA, secondarySkillA] -5 > -6 > primarySkillA -7 > , -8 > secondarySkillA -1->Emitted(86, 21) Source(79, 7) + SourceIndex(0) -2 >Emitted(86, 36) Source(79, 13) + SourceIndex(0) -3 >Emitted(86, 38) Source(79, 15) + SourceIndex(0) -4 >Emitted(86, 50) Source(79, 47) + SourceIndex(0) -5 >Emitted(86, 52) Source(79, 16) + SourceIndex(0) -6 >Emitted(86, 74) Source(79, 29) + SourceIndex(0) -7 >Emitted(86, 76) Source(79, 31) + SourceIndex(0) -8 >Emitted(86, 100) Source(79, 46) + SourceIndex(0) +2 > nameMA +3 > , +4 > [primarySkillA, secondarySkillA] +5 > +6 > primarySkillA +7 > , +8 > secondarySkillA +1->Emitted(177, 29) Source(79, 7) + SourceIndex(0) +2 >Emitted(177, 43) Source(79, 13) + SourceIndex(0) +3 >Emitted(177, 45) Source(79, 15) + SourceIndex(0) +4 >Emitted(177, 67) Source(79, 47) + SourceIndex(0) +5 >Emitted(177, 69) Source(79, 16) + SourceIndex(0) +6 >Emitted(177, 91) Source(79, 29) + SourceIndex(0) +7 >Emitted(177, 93) Source(79, 31) + SourceIndex(0) +8 >Emitted(177, 117) Source(79, 46) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2070,201 +2234,226 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(87, 5) Source(80, 5) + SourceIndex(0) -2 >Emitted(87, 12) Source(80, 12) + SourceIndex(0) -3 >Emitted(87, 13) Source(80, 13) + SourceIndex(0) -4 >Emitted(87, 16) Source(80, 16) + SourceIndex(0) -5 >Emitted(87, 17) Source(80, 17) + SourceIndex(0) -6 >Emitted(87, 23) Source(80, 23) + SourceIndex(0) -7 >Emitted(87, 24) Source(80, 24) + SourceIndex(0) -8 >Emitted(87, 25) Source(80, 25) + SourceIndex(0) +1 >Emitted(178, 5) Source(80, 5) + SourceIndex(0) +2 >Emitted(178, 12) Source(80, 12) + SourceIndex(0) +3 >Emitted(178, 13) Source(80, 13) + SourceIndex(0) +4 >Emitted(178, 16) Source(80, 16) + SourceIndex(0) +5 >Emitted(178, 17) Source(80, 17) + SourceIndex(0) +6 >Emitted(178, 23) Source(80, 23) + SourceIndex(0) +7 >Emitted(178, 24) Source(80, 24) + SourceIndex(0) +8 >Emitted(178, 25) Source(80, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(88, 2) Source(81, 2) + SourceIndex(0) +1 >Emitted(179, 2) Source(81, 2) + SourceIndex(0) --- ->>>for (var _23 = 0, robots_4 = robots; _23 < robots_4.length; _23++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^-> +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > ([numberA3, ...robotAInfo] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(89, 1) Source(83, 1) + SourceIndex(0) -2 >Emitted(89, 4) Source(83, 4) + SourceIndex(0) -3 >Emitted(89, 5) Source(83, 5) + SourceIndex(0) -4 >Emitted(89, 6) Source(83, 35) + SourceIndex(0) -5 >Emitted(89, 17) Source(83, 41) + SourceIndex(0) -6 >Emitted(89, 19) Source(83, 35) + SourceIndex(0) -7 >Emitted(89, 36) Source(83, 41) + SourceIndex(0) -8 >Emitted(89, 38) Source(83, 35) + SourceIndex(0) -9 >Emitted(89, 59) Source(83, 41) + SourceIndex(0) -10>Emitted(89, 61) Source(83, 35) + SourceIndex(0) -11>Emitted(89, 66) Source(83, 41) + SourceIndex(0) ---- ->>> _24 = robots_4[_23], numberA3 = _24[0], robotAInfo = _24.slice(1); -1->^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA3, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberA3, ...robotAInfo] +1->Emitted(181, 5) Source(83, 1) + SourceIndex(0) +2 >Emitted(181, 8) Source(83, 4) + SourceIndex(0) +3 >Emitted(181, 9) Source(83, 5) + SourceIndex(0) +4 >Emitted(181, 10) Source(83, 35) + SourceIndex(0) +5 >Emitted(181, 14) Source(83, 35) + SourceIndex(0) +6 >Emitted(181, 25) Source(83, 35) + SourceIndex(0) +7 >Emitted(181, 27) Source(83, 35) + SourceIndex(0) +8 >Emitted(181, 37) Source(83, 35) + SourceIndex(0) +9 >Emitted(181, 46) Source(83, 35) + SourceIndex(0) +10>Emitted(181, 52) Source(83, 41) + SourceIndex(0) +11>Emitted(181, 53) Source(83, 41) + SourceIndex(0) +12>Emitted(181, 55) Source(83, 41) + SourceIndex(0) +13>Emitted(181, 57) Source(83, 6) + SourceIndex(0) +14>Emitted(181, 73) Source(83, 31) + SourceIndex(0) +--- +>>> _11 = __read(robots_4.result.value), numberA3 = _11[0], robotAInfo = _11.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 -3 > , -4 > ...robotAInfo -1->Emitted(90, 26) Source(83, 7) + SourceIndex(0) -2 >Emitted(90, 43) Source(83, 15) + SourceIndex(0) -3 >Emitted(90, 45) Source(83, 17) + SourceIndex(0) -4 >Emitted(90, 70) Source(83, 30) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > numberA3 +3 > , +4 > ...robotAInfo +1->Emitted(182, 46) Source(83, 7) + SourceIndex(0) +2 >Emitted(182, 63) Source(83, 15) + SourceIndex(0) +3 >Emitted(182, 65) Source(83, 17) + SourceIndex(0) +4 >Emitted(182, 90) Source(83, 30) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(91, 5) Source(84, 5) + SourceIndex(0) -2 >Emitted(91, 12) Source(84, 12) + SourceIndex(0) -3 >Emitted(91, 13) Source(84, 13) + SourceIndex(0) -4 >Emitted(91, 16) Source(84, 16) + SourceIndex(0) -5 >Emitted(91, 17) Source(84, 17) + SourceIndex(0) -6 >Emitted(91, 25) Source(84, 25) + SourceIndex(0) -7 >Emitted(91, 26) Source(84, 26) + SourceIndex(0) -8 >Emitted(91, 27) Source(84, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(183, 9) Source(84, 5) + SourceIndex(0) +2 >Emitted(183, 16) Source(84, 12) + SourceIndex(0) +3 >Emitted(183, 17) Source(84, 13) + SourceIndex(0) +4 >Emitted(183, 20) Source(84, 16) + SourceIndex(0) +5 >Emitted(183, 21) Source(84, 17) + SourceIndex(0) +6 >Emitted(183, 29) Source(84, 25) + SourceIndex(0) +7 >Emitted(183, 30) Source(84, 26) + SourceIndex(0) +8 >Emitted(183, 31) Source(84, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(92, 2) Source(85, 2) + SourceIndex(0) +1 >Emitted(184, 6) Source(85, 2) + SourceIndex(0) --- ->>>for (var _25 = 0, _26 = getRobots(); _25 < _26.length; _25++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^-> -1-> +>>>} +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([numberA3, ...robotAInfo] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(93, 1) Source(86, 1) + SourceIndex(0) -2 >Emitted(93, 4) Source(86, 4) + SourceIndex(0) -3 >Emitted(93, 5) Source(86, 5) + SourceIndex(0) -4 >Emitted(93, 6) Source(86, 35) + SourceIndex(0) -5 >Emitted(93, 17) Source(86, 46) + SourceIndex(0) -6 >Emitted(93, 19) Source(86, 35) + SourceIndex(0) -7 >Emitted(93, 25) Source(86, 35) + SourceIndex(0) -8 >Emitted(93, 34) Source(86, 44) + SourceIndex(0) -9 >Emitted(93, 36) Source(86, 46) + SourceIndex(0) -10>Emitted(93, 38) Source(86, 35) + SourceIndex(0) -11>Emitted(93, 54) Source(86, 46) + SourceIndex(0) -12>Emitted(93, 56) Source(86, 35) + SourceIndex(0) -13>Emitted(93, 61) Source(86, 46) + SourceIndex(0) ---- ->>> _27 = _26[_25], numberA3 = _27[0], robotAInfo = _27.slice(1); -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA3, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberA3, ...robotAInfo] +1 >Emitted(191, 5) Source(86, 1) + SourceIndex(0) +2 >Emitted(191, 8) Source(86, 4) + SourceIndex(0) +3 >Emitted(191, 9) Source(86, 5) + SourceIndex(0) +4 >Emitted(191, 10) Source(86, 35) + SourceIndex(0) +5 >Emitted(191, 14) Source(86, 35) + SourceIndex(0) +6 >Emitted(191, 27) Source(86, 35) + SourceIndex(0) +7 >Emitted(191, 29) Source(86, 35) + SourceIndex(0) +8 >Emitted(191, 39) Source(86, 35) + SourceIndex(0) +9 >Emitted(191, 48) Source(86, 35) + SourceIndex(0) +10>Emitted(191, 57) Source(86, 44) + SourceIndex(0) +11>Emitted(191, 59) Source(86, 46) + SourceIndex(0) +12>Emitted(191, 60) Source(86, 46) + SourceIndex(0) +13>Emitted(191, 62) Source(86, 46) + SourceIndex(0) +14>Emitted(191, 64) Source(86, 6) + SourceIndex(0) +15>Emitted(191, 82) Source(86, 31) + SourceIndex(0) +--- +>>> _12 = __read(iterator_7.result.value), numberA3 = _12[0], robotAInfo = _12.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 -3 > , -4 > ...robotAInfo -1->Emitted(94, 21) Source(86, 7) + SourceIndex(0) -2 >Emitted(94, 38) Source(86, 15) + SourceIndex(0) -3 >Emitted(94, 40) Source(86, 17) + SourceIndex(0) -4 >Emitted(94, 65) Source(86, 30) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > numberA3 +3 > , +4 > ...robotAInfo +1->Emitted(192, 48) Source(86, 7) + SourceIndex(0) +2 >Emitted(192, 65) Source(86, 15) + SourceIndex(0) +3 >Emitted(192, 67) Source(86, 17) + SourceIndex(0) +4 >Emitted(192, 92) Source(86, 30) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(95, 5) Source(87, 5) + SourceIndex(0) -2 >Emitted(95, 12) Source(87, 12) + SourceIndex(0) -3 >Emitted(95, 13) Source(87, 13) + SourceIndex(0) -4 >Emitted(95, 16) Source(87, 16) + SourceIndex(0) -5 >Emitted(95, 17) Source(87, 17) + SourceIndex(0) -6 >Emitted(95, 25) Source(87, 25) + SourceIndex(0) -7 >Emitted(95, 26) Source(87, 26) + SourceIndex(0) -8 >Emitted(95, 27) Source(87, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(193, 9) Source(87, 5) + SourceIndex(0) +2 >Emitted(193, 16) Source(87, 12) + SourceIndex(0) +3 >Emitted(193, 17) Source(87, 13) + SourceIndex(0) +4 >Emitted(193, 20) Source(87, 16) + SourceIndex(0) +5 >Emitted(193, 21) Source(87, 17) + SourceIndex(0) +6 >Emitted(193, 29) Source(87, 25) + SourceIndex(0) +7 >Emitted(193, 30) Source(87, 26) + SourceIndex(0) +8 >Emitted(193, 31) Source(87, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(96, 2) Source(88, 2) + SourceIndex(0) +1 >Emitted(194, 6) Source(88, 2) + SourceIndex(0) --- ->>>for (var _28 = 0, _29 = [robotA, robotB]; _28 < _29.length; _28++) { -1-> +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +>>>} +>>>for (var _13 = 0, _14 = [robotA, robotB]; _13 < _14.length; _13++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2279,8 +2468,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^-> -1-> +16> ^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2296,35 +2485,35 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(97, 1) Source(89, 1) + SourceIndex(0) -2 >Emitted(97, 4) Source(89, 4) + SourceIndex(0) -3 >Emitted(97, 5) Source(89, 5) + SourceIndex(0) -4 >Emitted(97, 6) Source(89, 35) + SourceIndex(0) -5 >Emitted(97, 17) Source(89, 51) + SourceIndex(0) -6 >Emitted(97, 19) Source(89, 35) + SourceIndex(0) -7 >Emitted(97, 26) Source(89, 36) + SourceIndex(0) -8 >Emitted(97, 32) Source(89, 42) + SourceIndex(0) -9 >Emitted(97, 34) Source(89, 44) + SourceIndex(0) -10>Emitted(97, 40) Source(89, 50) + SourceIndex(0) -11>Emitted(97, 41) Source(89, 51) + SourceIndex(0) -12>Emitted(97, 43) Source(89, 35) + SourceIndex(0) -13>Emitted(97, 59) Source(89, 51) + SourceIndex(0) -14>Emitted(97, 61) Source(89, 35) + SourceIndex(0) -15>Emitted(97, 66) Source(89, 51) + SourceIndex(0) ---- ->>> _30 = _29[_28], numberA3 = _30[0], robotAInfo = _30.slice(1); -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(200, 1) Source(89, 1) + SourceIndex(0) +2 >Emitted(200, 4) Source(89, 4) + SourceIndex(0) +3 >Emitted(200, 5) Source(89, 5) + SourceIndex(0) +4 >Emitted(200, 6) Source(89, 35) + SourceIndex(0) +5 >Emitted(200, 17) Source(89, 51) + SourceIndex(0) +6 >Emitted(200, 19) Source(89, 35) + SourceIndex(0) +7 >Emitted(200, 26) Source(89, 36) + SourceIndex(0) +8 >Emitted(200, 32) Source(89, 42) + SourceIndex(0) +9 >Emitted(200, 34) Source(89, 44) + SourceIndex(0) +10>Emitted(200, 40) Source(89, 50) + SourceIndex(0) +11>Emitted(200, 41) Source(89, 51) + SourceIndex(0) +12>Emitted(200, 43) Source(89, 35) + SourceIndex(0) +13>Emitted(200, 59) Source(89, 51) + SourceIndex(0) +14>Emitted(200, 61) Source(89, 35) + SourceIndex(0) +15>Emitted(200, 66) Source(89, 51) + SourceIndex(0) +--- +>>> _15 = __read(_14[_13]), numberA3 = _15[0], robotAInfo = _15.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 -3 > , -4 > ...robotAInfo -1->Emitted(98, 21) Source(89, 7) + SourceIndex(0) -2 >Emitted(98, 38) Source(89, 15) + SourceIndex(0) -3 >Emitted(98, 40) Source(89, 17) + SourceIndex(0) -4 >Emitted(98, 65) Source(89, 30) + SourceIndex(0) +2 > numberA3 +3 > , +4 > ...robotAInfo +1->Emitted(201, 29) Source(89, 7) + SourceIndex(0) +2 >Emitted(201, 46) Source(89, 15) + SourceIndex(0) +3 >Emitted(201, 48) Source(89, 17) + SourceIndex(0) +4 >Emitted(201, 73) Source(89, 30) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2344,186 +2533,211 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > numberA3 7 > ) 8 > ; -1 >Emitted(99, 5) Source(90, 5) + SourceIndex(0) -2 >Emitted(99, 12) Source(90, 12) + SourceIndex(0) -3 >Emitted(99, 13) Source(90, 13) + SourceIndex(0) -4 >Emitted(99, 16) Source(90, 16) + SourceIndex(0) -5 >Emitted(99, 17) Source(90, 17) + SourceIndex(0) -6 >Emitted(99, 25) Source(90, 25) + SourceIndex(0) -7 >Emitted(99, 26) Source(90, 26) + SourceIndex(0) -8 >Emitted(99, 27) Source(90, 27) + SourceIndex(0) +1 >Emitted(202, 5) Source(90, 5) + SourceIndex(0) +2 >Emitted(202, 12) Source(90, 12) + SourceIndex(0) +3 >Emitted(202, 13) Source(90, 13) + SourceIndex(0) +4 >Emitted(202, 16) Source(90, 16) + SourceIndex(0) +5 >Emitted(202, 17) Source(90, 17) + SourceIndex(0) +6 >Emitted(202, 25) Source(90, 25) + SourceIndex(0) +7 >Emitted(202, 26) Source(90, 26) + SourceIndex(0) +8 >Emitted(202, 27) Source(90, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(100, 2) Source(91, 2) + SourceIndex(0) +1 >Emitted(203, 2) Source(91, 2) + SourceIndex(0) --- ->>>for (var _31 = 0, multiRobots_4 = multiRobots; _31 < multiRobots_4.length; _31++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ +>>>try { +>>> for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > ([...multiRobotAInfo] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(101, 1) Source(92, 1) + SourceIndex(0) -2 >Emitted(101, 4) Source(92, 4) + SourceIndex(0) -3 >Emitted(101, 5) Source(92, 5) + SourceIndex(0) -4 >Emitted(101, 6) Source(92, 30) + SourceIndex(0) -5 >Emitted(101, 17) Source(92, 41) + SourceIndex(0) -6 >Emitted(101, 19) Source(92, 30) + SourceIndex(0) -7 >Emitted(101, 46) Source(92, 41) + SourceIndex(0) -8 >Emitted(101, 48) Source(92, 30) + SourceIndex(0) -9 >Emitted(101, 74) Source(92, 41) + SourceIndex(0) -10>Emitted(101, 76) Source(92, 30) + SourceIndex(0) -11>Emitted(101, 81) Source(92, 41) + SourceIndex(0) ---- ->>> multiRobotAInfo = multiRobots_4[_31].slice(0); -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([...multiRobotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [...multiRobotAInfo] +1->Emitted(205, 5) Source(92, 1) + SourceIndex(0) +2 >Emitted(205, 8) Source(92, 4) + SourceIndex(0) +3 >Emitted(205, 9) Source(92, 5) + SourceIndex(0) +4 >Emitted(205, 10) Source(92, 30) + SourceIndex(0) +5 >Emitted(205, 14) Source(92, 30) + SourceIndex(0) +6 >Emitted(205, 30) Source(92, 30) + SourceIndex(0) +7 >Emitted(205, 32) Source(92, 30) + SourceIndex(0) +8 >Emitted(205, 42) Source(92, 30) + SourceIndex(0) +9 >Emitted(205, 51) Source(92, 30) + SourceIndex(0) +10>Emitted(205, 62) Source(92, 41) + SourceIndex(0) +11>Emitted(205, 63) Source(92, 41) + SourceIndex(0) +12>Emitted(205, 65) Source(92, 41) + SourceIndex(0) +13>Emitted(205, 67) Source(92, 6) + SourceIndex(0) +14>Emitted(205, 88) Source(92, 26) + SourceIndex(0) +--- +>>> _16 = __read(multiRobots_4.result.value), multiRobotAInfo = _16.slice(0); +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > ...multiRobotAInfo -1 >Emitted(102, 5) Source(92, 7) + SourceIndex(0) -2 >Emitted(102, 50) Source(92, 25) + SourceIndex(0) ---- ->>> console.log(multiRobotAInfo); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > ...multiRobotAInfo +1 >Emitted(206, 51) Source(92, 7) + SourceIndex(0) +2 >Emitted(206, 81) Source(92, 25) + SourceIndex(0) +--- +>>> console.log(multiRobotAInfo); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > multiRobotAInfo -7 > ) -8 > ; -1 >Emitted(103, 5) Source(93, 5) + SourceIndex(0) -2 >Emitted(103, 12) Source(93, 12) + SourceIndex(0) -3 >Emitted(103, 13) Source(93, 13) + SourceIndex(0) -4 >Emitted(103, 16) Source(93, 16) + SourceIndex(0) -5 >Emitted(103, 17) Source(93, 17) + SourceIndex(0) -6 >Emitted(103, 32) Source(93, 32) + SourceIndex(0) -7 >Emitted(103, 33) Source(93, 33) + SourceIndex(0) -8 >Emitted(103, 34) Source(93, 34) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > multiRobotAInfo +7 > ) +8 > ; +1 >Emitted(207, 9) Source(93, 5) + SourceIndex(0) +2 >Emitted(207, 16) Source(93, 12) + SourceIndex(0) +3 >Emitted(207, 17) Source(93, 13) + SourceIndex(0) +4 >Emitted(207, 20) Source(93, 16) + SourceIndex(0) +5 >Emitted(207, 21) Source(93, 17) + SourceIndex(0) +6 >Emitted(207, 36) Source(93, 32) + SourceIndex(0) +7 >Emitted(207, 37) Source(93, 33) + SourceIndex(0) +8 >Emitted(207, 38) Source(93, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(104, 2) Source(94, 2) + SourceIndex(0) +1 >Emitted(208, 6) Source(94, 2) + SourceIndex(0) --- ->>>for (var _32 = 0, _33 = getMultiRobots(); _32 < _33.length; _32++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -1-> - > -2 >for -3 > -4 > ([...multiRobotAInfo] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(105, 1) Source(95, 1) + SourceIndex(0) -2 >Emitted(105, 4) Source(95, 4) + SourceIndex(0) -3 >Emitted(105, 5) Source(95, 5) + SourceIndex(0) -4 >Emitted(105, 6) Source(95, 30) + SourceIndex(0) -5 >Emitted(105, 17) Source(95, 46) + SourceIndex(0) -6 >Emitted(105, 19) Source(95, 30) + SourceIndex(0) -7 >Emitted(105, 25) Source(95, 30) + SourceIndex(0) -8 >Emitted(105, 39) Source(95, 44) + SourceIndex(0) -9 >Emitted(105, 41) Source(95, 46) + SourceIndex(0) -10>Emitted(105, 43) Source(95, 30) + SourceIndex(0) -11>Emitted(105, 59) Source(95, 46) + SourceIndex(0) -12>Emitted(105, 61) Source(95, 30) + SourceIndex(0) -13>Emitted(105, 66) Source(95, 46) + SourceIndex(0) ---- ->>> multiRobotAInfo = _33[_32].slice(0); +>>>} +>>>catch (e_15_1) { e_15 = { error: e_15_1 }; } +>>>finally { +>>> try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +>>>} +>>>try { +>>> for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { 1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > ([...multiRobotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [...multiRobotAInfo] +1 >Emitted(215, 5) Source(95, 1) + SourceIndex(0) +2 >Emitted(215, 8) Source(95, 4) + SourceIndex(0) +3 >Emitted(215, 9) Source(95, 5) + SourceIndex(0) +4 >Emitted(215, 10) Source(95, 30) + SourceIndex(0) +5 >Emitted(215, 14) Source(95, 30) + SourceIndex(0) +6 >Emitted(215, 27) Source(95, 30) + SourceIndex(0) +7 >Emitted(215, 29) Source(95, 30) + SourceIndex(0) +8 >Emitted(215, 39) Source(95, 30) + SourceIndex(0) +9 >Emitted(215, 48) Source(95, 30) + SourceIndex(0) +10>Emitted(215, 62) Source(95, 44) + SourceIndex(0) +11>Emitted(215, 64) Source(95, 46) + SourceIndex(0) +12>Emitted(215, 65) Source(95, 46) + SourceIndex(0) +13>Emitted(215, 67) Source(95, 46) + SourceIndex(0) +14>Emitted(215, 69) Source(95, 6) + SourceIndex(0) +15>Emitted(215, 87) Source(95, 26) + SourceIndex(0) +--- +>>> _17 = __read(iterator_8.result.value), multiRobotAInfo = _17.slice(0); +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > ...multiRobotAInfo -1 >Emitted(106, 5) Source(95, 7) + SourceIndex(0) -2 >Emitted(106, 40) Source(95, 25) + SourceIndex(0) ---- ->>> console.log(multiRobotAInfo); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > ...multiRobotAInfo +1 >Emitted(216, 48) Source(95, 7) + SourceIndex(0) +2 >Emitted(216, 78) Source(95, 25) + SourceIndex(0) +--- +>>> console.log(multiRobotAInfo); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > multiRobotAInfo -7 > ) -8 > ; -1 >Emitted(107, 5) Source(96, 5) + SourceIndex(0) -2 >Emitted(107, 12) Source(96, 12) + SourceIndex(0) -3 >Emitted(107, 13) Source(96, 13) + SourceIndex(0) -4 >Emitted(107, 16) Source(96, 16) + SourceIndex(0) -5 >Emitted(107, 17) Source(96, 17) + SourceIndex(0) -6 >Emitted(107, 32) Source(96, 32) + SourceIndex(0) -7 >Emitted(107, 33) Source(96, 33) + SourceIndex(0) -8 >Emitted(107, 34) Source(96, 34) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > multiRobotAInfo +7 > ) +8 > ; +1 >Emitted(217, 9) Source(96, 5) + SourceIndex(0) +2 >Emitted(217, 16) Source(96, 12) + SourceIndex(0) +3 >Emitted(217, 17) Source(96, 13) + SourceIndex(0) +4 >Emitted(217, 20) Source(96, 16) + SourceIndex(0) +5 >Emitted(217, 21) Source(96, 17) + SourceIndex(0) +6 >Emitted(217, 36) Source(96, 32) + SourceIndex(0) +7 >Emitted(217, 37) Source(96, 33) + SourceIndex(0) +8 >Emitted(217, 38) Source(96, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(108, 2) Source(97, 2) + SourceIndex(0) +1 >Emitted(218, 6) Source(97, 2) + SourceIndex(0) --- ->>>for (var _34 = 0, _35 = [multiRobotA, multiRobotB]; _34 < _35.length; _34++) { -1-> +>>>} +>>>catch (e_16_1) { e_16 = { error: e_16_1 }; } +>>>finally { +>>> try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } +>>>} +>>>for (var _18 = 0, _19 = [multiRobotA, multiRobotB]; _18 < _19.length; _18++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2538,7 +2752,7 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -1-> +1 > > 2 >for 3 > @@ -2554,29 +2768,29 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(109, 1) Source(98, 1) + SourceIndex(0) -2 >Emitted(109, 4) Source(98, 4) + SourceIndex(0) -3 >Emitted(109, 5) Source(98, 5) + SourceIndex(0) -4 >Emitted(109, 6) Source(98, 30) + SourceIndex(0) -5 >Emitted(109, 17) Source(98, 56) + SourceIndex(0) -6 >Emitted(109, 19) Source(98, 30) + SourceIndex(0) -7 >Emitted(109, 26) Source(98, 31) + SourceIndex(0) -8 >Emitted(109, 37) Source(98, 42) + SourceIndex(0) -9 >Emitted(109, 39) Source(98, 44) + SourceIndex(0) -10>Emitted(109, 50) Source(98, 55) + SourceIndex(0) -11>Emitted(109, 51) Source(98, 56) + SourceIndex(0) -12>Emitted(109, 53) Source(98, 30) + SourceIndex(0) -13>Emitted(109, 69) Source(98, 56) + SourceIndex(0) -14>Emitted(109, 71) Source(98, 30) + SourceIndex(0) -15>Emitted(109, 76) Source(98, 56) + SourceIndex(0) ---- ->>> multiRobotAInfo = _35[_34].slice(0); -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(224, 1) Source(98, 1) + SourceIndex(0) +2 >Emitted(224, 4) Source(98, 4) + SourceIndex(0) +3 >Emitted(224, 5) Source(98, 5) + SourceIndex(0) +4 >Emitted(224, 6) Source(98, 30) + SourceIndex(0) +5 >Emitted(224, 17) Source(98, 56) + SourceIndex(0) +6 >Emitted(224, 19) Source(98, 30) + SourceIndex(0) +7 >Emitted(224, 26) Source(98, 31) + SourceIndex(0) +8 >Emitted(224, 37) Source(98, 42) + SourceIndex(0) +9 >Emitted(224, 39) Source(98, 44) + SourceIndex(0) +10>Emitted(224, 50) Source(98, 55) + SourceIndex(0) +11>Emitted(224, 51) Source(98, 56) + SourceIndex(0) +12>Emitted(224, 53) Source(98, 30) + SourceIndex(0) +13>Emitted(224, 69) Source(98, 56) + SourceIndex(0) +14>Emitted(224, 71) Source(98, 30) + SourceIndex(0) +15>Emitted(224, 76) Source(98, 56) + SourceIndex(0) +--- +>>> _20 = __read(_19[_18]), multiRobotAInfo = _20.slice(0); +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > ...multiRobotAInfo -1 >Emitted(110, 5) Source(98, 7) + SourceIndex(0) -2 >Emitted(110, 40) Source(98, 25) + SourceIndex(0) +2 > ...multiRobotAInfo +1 >Emitted(225, 29) Source(98, 7) + SourceIndex(0) +2 >Emitted(225, 59) Source(98, 25) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -2596,21 +2810,21 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPattern2.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(111, 5) Source(99, 5) + SourceIndex(0) -2 >Emitted(111, 12) Source(99, 12) + SourceIndex(0) -3 >Emitted(111, 13) Source(99, 13) + SourceIndex(0) -4 >Emitted(111, 16) Source(99, 16) + SourceIndex(0) -5 >Emitted(111, 17) Source(99, 17) + SourceIndex(0) -6 >Emitted(111, 32) Source(99, 32) + SourceIndex(0) -7 >Emitted(111, 33) Source(99, 33) + SourceIndex(0) -8 >Emitted(111, 34) Source(99, 34) + SourceIndex(0) +1 >Emitted(226, 5) Source(99, 5) + SourceIndex(0) +2 >Emitted(226, 12) Source(99, 12) + SourceIndex(0) +3 >Emitted(226, 13) Source(99, 13) + SourceIndex(0) +4 >Emitted(226, 16) Source(99, 16) + SourceIndex(0) +5 >Emitted(226, 17) Source(99, 17) + SourceIndex(0) +6 >Emitted(226, 32) Source(99, 32) + SourceIndex(0) +7 >Emitted(226, 33) Source(99, 33) + SourceIndex(0) +8 >Emitted(226, 34) Source(99, 34) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(112, 2) Source(100, 2) + SourceIndex(0) +1 >Emitted(227, 2) Source(100, 2) + SourceIndex(0) --- ->>>var _a, _d, _g, _j, _k, _o, _p, _s, _t, _5, _8, _11, _13, _14, _17, _18, _21, _22, _24, _27, _30; +>>>var _a, e_1, _b, e_2, _d, _e, _f, e_3, _g, _h, e_4, _l, _m, _o, e_5, _p, e_6, _s, _t, e_7, _u, e_8, _x, _y, e_9, _z, e_10, _2, _3, _4, e_11, _5, _6, e_12, _9, _10, _11, e_13, _12, e_14, _15, _16, e_15, _17, e_16, _20; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js index ff692af87f2fa..b845119728440 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js @@ -105,6 +105,25 @@ for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { } //// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var robots = [robotA, robotB]; @@ -117,88 +136,173 @@ var multiRobots = [multiRobotA, multiRobotB]; function getMultiRobots() { return multiRobots; } -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - var _a = robots_1[_i], _b = _a[1], nameA = _b === void 0 ? "noName" : _b; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + var _a = __read(robots_1.result.value, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; + console.log(nameA); + } } -for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) { - var _e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + var _c = __read(iterator_1.result.value, 2), _d = _c[1], nameA = _d === void 0 ? "noName" : _d; + console.log(nameA); + } +} +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } } -for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) { - var _j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k; +for (var _i = 0, _e = [robotA, robotB]; _i < _e.length; _i++) { + var _f = __read(_e[_i], 2), _g = _f[1], nameA = _g === void 0 ? "noName" : _g; console.log(nameA); } -for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) { - var _m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r; - console.log(primarySkillA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + var _h = __read(multiRobots_1.result.value, 2), _j = _h[1], _k = __read(_j === void 0 ? ["skill1", "skill2"] : _j, 2), _l = _k[0], primarySkillA = _l === void 0 ? "primary" : _l, _m = _k[1], secondarySkillA = _m === void 0 ? "secondary" : _m; + console.log(primarySkillA); + } } -for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) { - var _u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y; - console.log(primarySkillA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + var _o = __read(iterator_2.result.value, 2), _p = _o[1], _q = __read(_p === void 0 ? ["skill1", "skill2"] : _p, 2), _r = _q[0], primarySkillA = _r === void 0 ? "primary" : _r, _s = _q[1], secondarySkillA = _s === void 0 ? "secondary" : _s; + console.log(primarySkillA); + } } -for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) { - var _1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5; +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +} +for (var _t = 0, _u = [multiRobotA, multiRobotB]; _t < _u.length; _t++) { + var _v = __read(_u[_t], 2), _w = _v[1], _x = __read(_w === void 0 ? ["skill1", "skill2"] : _w, 2), _y = _x[0], primarySkillA = _y === void 0 ? "primary" : _y, _z = _x[1], secondarySkillA = _z === void 0 ? "secondary" : _z; console.log(primarySkillA); } -for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) { - var _7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7; - console.log(numberB); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + var _0 = __read(robots_2.result.value, 1), _1 = _0[0], numberB = _1 === void 0 ? -1 : _1; + console.log(numberB); + } } -for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) { - var _10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10; - console.log(numberB); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +} +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + var _2 = __read(iterator_3.result.value, 1), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3; + console.log(numberB); + } } -for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) { - var _13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13; +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +} +for (var _4 = 0, _5 = [robotA, robotB]; _4 < _5.length; _4++) { + var _6 = __read(_5[_4], 1), _7 = _6[0], numberB = _7 === void 0 ? -1 : _7; console.log(numberB); } -for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { - var _15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15; - console.log(nameB); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + var _8 = __read(multiRobots_2.result.value, 1), _9 = _8[0], nameB = _9 === void 0 ? "noName" : _9; + console.log(nameB); + } } -for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) { - var _18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18; - console.log(nameB); +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } } -for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { - var _21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21; +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + var _10 = __read(iterator_4.result.value, 1), _11 = _10[0], nameB = _11 === void 0 ? "noName" : _11; + console.log(nameB); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +} +for (var _12 = 0, _13 = [multiRobotA, multiRobotB]; _12 < _13.length; _12++) { + var _14 = __read(_13[_12], 1), _15 = _14[0], nameB = _15 === void 0 ? "noName" : _15; console.log(nameB); } -for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) { - var _23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26; - console.log(nameA2); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + var _16 = __read(robots_3.result.value, 3), _17 = _16[0], numberA2 = _17 === void 0 ? -1 : _17, _18 = _16[1], nameA2 = _18 === void 0 ? "noName" : _18, _19 = _16[2], skillA2 = _19 === void 0 ? "skill" : _19; + console.log(nameA2); + } } -for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) { - var _29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32; - console.log(nameA2); +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(robots_3); } finally { if (e_9) throw e_9.error; } } -for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) { - var _35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38; +try { + for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { + var _20 = __read(iterator_5.result.value, 3), _21 = _20[0], numberA2 = _21 === void 0 ? -1 : _21, _22 = _20[1], nameA2 = _22 === void 0 ? "noName" : _22, _23 = _20[2], skillA2 = _23 === void 0 ? "skill" : _23; + console.log(nameA2); + } +} +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +} +for (var _24 = 0, _25 = [robotA, robotB]; _24 < _25.length; _24++) { + var _26 = __read(_25[_24], 3), _27 = _26[0], numberA2 = _27 === void 0 ? -1 : _27, _28 = _26[1], nameA2 = _28 === void 0 ? "noName" : _28, _29 = _26[2], skillA2 = _29 === void 0 ? "skill" : _29; console.log(nameA2); } -for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { - var _40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45; - console.log(nameMA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + var _30 = __read(multiRobots_3.result.value, 2), _31 = _30[0], nameMA = _31 === void 0 ? "noName" : _31, _32 = _30[1], _33 = __read(_32 === void 0 ? ["skill1", "skill2"] : _32, 2), _34 = _33[0], primarySkillA = _34 === void 0 ? "primary" : _34, _35 = _33[1], secondarySkillA = _35 === void 0 ? "secondary" : _35; + console.log(nameMA); + } } -for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { - var _48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53; - console.log(nameMA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +} +try { + for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { + var _36 = __read(iterator_6.result.value, 2), _37 = _36[0], nameMA = _37 === void 0 ? "noName" : _37, _38 = _36[1], _39 = __read(_38 === void 0 ? ["skill1", "skill2"] : _38, 2), _40 = _39[0], primarySkillA = _40 === void 0 ? "primary" : _40, _41 = _39[1], secondarySkillA = _41 === void 0 ? "secondary" : _41; + console.log(nameMA); + } } -for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) { - var _56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61; +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +} +for (var _42 = 0, _43 = [multiRobotA, multiRobotB]; _42 < _43.length; _42++) { + var _44 = __read(_43[_42], 2), _45 = _44[0], nameMA = _45 === void 0 ? "noName" : _45, _46 = _44[1], _47 = __read(_46 === void 0 ? ["skill1", "skill2"] : _46, 2), _48 = _47[0], primarySkillA = _48 === void 0 ? "primary" : _48, _49 = _47[1], secondarySkillA = _49 === void 0 ? "secondary" : _49; console.log(nameMA); } -for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { - var _63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1); - console.log(numberA3); +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + var _50 = __read(robots_4.result.value), _51 = _50[0], numberA3 = _51 === void 0 ? -1 : _51, robotAInfo = _50.slice(1); + console.log(numberA3); + } } -for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) { - var _67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1); - console.log(numberA3); +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +} +try { + for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { + var _52 = __read(iterator_7.result.value), _53 = _52[0], numberA3 = _53 === void 0 ? -1 : _53, robotAInfo = _52.slice(1); + console.log(numberA3); + } +} +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } } -for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) { - var _71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1); +for (var _54 = 0, _55 = [robotA, robotB]; _54 < _55.length; _54++) { + var _56 = __read(_55[_54]), _57 = _56[0], numberA3 = _57 === void 0 ? -1 : _57, robotAInfo = _56.slice(1); console.log(numberA3); } +var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10, e_11, e_12, e_13, e_14; //# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map index 69f896d127407..18f5a83f7e71e 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAA6B,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAA9B,IAAA,iBAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6B,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAnC,IAAA,WAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6B,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAAxC,IAAA,WAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAGyB,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAH/B,IAAA,sBAGgB,EAHb,UAGY,EAHZ,8CAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAGyB,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAHpC,IAAA,WAGgB,EAHb,UAGY,EAHZ,8CAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAGyB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAH9C,IAAA,WAGgB,EAHb,UAGY,EAHZ,8CAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED,GAAG,CAAC,CAAuB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAvB,IAAA,oBAAY,EAAZ,iCAAY;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAuB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA5B,IAAA,eAAY,EAAZ,mCAAY;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAuB,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAjC,IAAA,iBAAY,EAAZ,mCAAY;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAA2B,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAAhC,IAAA,2BAAgB,EAAhB,uCAAgB;IACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA2B,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAArC,IAAA,iBAAgB,EAAhB,uCAAgB;IACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA2B,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAA/C,IAAA,iBAAgB,EAAhB,uCAAgB;IACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AAED,GAAG,CAAC,CAA8D,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;IAA/D,IAAA,mBAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA8D,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;IAApE,IAAA,cAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA8D,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAzE,IAAA,cAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAH/B,IAAA,wBAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,iDAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAHpC,IAAA,cAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,iDAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAH9C,IAAA,cAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,iDAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,GAAG,CAAC,CAAuC,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;IAAxC,IAAA,mBAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAuC,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;IAA7C,IAAA,cAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAuC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAlD,IAAA,cAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;;IAED,GAAG,CAAC,CAA6B,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAlC,gBAAwB;QAApB,IAAA,qCAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;QACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA6B,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAvC,kBAAwB;QAApB,IAAA,uCAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;QACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA6B,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAAxC,IAAA,sBAAoB,EAAjB,UAAgB,EAAhB,qCAAgB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAGyB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAHnC,qBAGoB;QAHhB,IAAA,0CAGgB,EAHb,UAGY,EAHZ,yDAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;;IACD,GAAG,CAAC,CAGyB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAHxC,kBAGoB;QAHhB,IAAA,uCAGgB,EAHb,UAGY,EAHZ,yDAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;AACD,GAAG,CAAC,CAGyB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;IAH9C,IAAA,sBAGgB,EAHb,UAGY,EAHZ,yDAGY,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;;IAED,GAAG,CAAC,CAAuB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA5B,gBAAkB;QAAd,IAAA,qCAAc,EAAb,UAAY,EAAZ,iCAAY;QAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;;IACD,GAAG,CAAC,CAAuB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAjC,kBAAkB;QAAd,IAAA,uCAAc,EAAb,UAAY,EAAZ,iCAAY;QAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;AACD,GAAG,CAAC,CAAuB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;IAAlC,IAAA,sBAAc,EAAb,UAAY,EAAZ,iCAAY;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;;IACD,GAAG,CAAC,CAA2B,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAArC,qBAAsB;QAAlB,IAAA,0CAAkB,EAAjB,UAAgB,EAAhB,qCAAgB;QACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA2B,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA1C,kBAAsB;QAAlB,IAAA,wCAAkB,EAAjB,YAAgB,EAAhB,uCAAgB;QACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA2B,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAAhD,IAAA,yBAAkB,EAAjB,YAAgB,EAAhB,uCAAgB;IACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IAED,GAAG,CAAC,CAA8D,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAnE,gBAAyD;QAArD,IAAA,sCAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;QACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAA8D,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxE,kBAAyD;QAArD,IAAA,wCAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;QACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAA8D,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAzE,IAAA,yBAAqD,EAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IACD,GAAG,CAAC,CAGyB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAHnC,qBAGoB;QAHhB,IAAA,2CAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,4DAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAGyB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAHxC,kBAGoB;QAHhB,IAAA,wCAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,4DAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAGyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAH9C,IAAA,yBAGgB,EAHf,YAAiB,EAAjB,wCAAiB,EAAE,YAGL,EAHK,4DAGL,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IAED,GAAG,CAAC,CAAuC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA5C,gBAAkC;QAA9B,IAAA,mCAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;QAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAAuC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAjD,kBAAkC;QAA9B,IAAA,qCAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;QAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAAuC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAlD,IAAA,sBAA8B,EAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.sourcemap.txt index d59dc00248d0d..bd5244513499d 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.sourcemap.txt @@ -8,6 +8,25 @@ sources: sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.t emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +59,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(20, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(20, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(20, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(20, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(20, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(20, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(20, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(20, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(20, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(20, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -79,18 +98,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(21, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(21, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(21, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(21, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(21, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(21, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(21, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(21, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(21, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(21, 41) Source(8, 48) + SourceIndex(0) --- >>>var robots = [robotA, robotB]; 1 > @@ -114,23 +133,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 8 > robotB 9 > ] 10> ; -1 >Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(9, 15) + SourceIndex(0) -6 >Emitted(3, 21) Source(9, 21) + SourceIndex(0) -7 >Emitted(3, 23) Source(9, 23) + SourceIndex(0) -8 >Emitted(3, 29) Source(9, 29) + SourceIndex(0) -9 >Emitted(3, 30) Source(9, 30) + SourceIndex(0) -10>Emitted(3, 31) Source(9, 31) + SourceIndex(0) +1 >Emitted(22, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(22, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(22, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(22, 15) Source(9, 15) + SourceIndex(0) +6 >Emitted(22, 21) Source(9, 21) + SourceIndex(0) +7 >Emitted(22, 23) Source(9, 23) + SourceIndex(0) +8 >Emitted(22, 29) Source(9, 29) + SourceIndex(0) +9 >Emitted(22, 30) Source(9, 30) + SourceIndex(0) +10>Emitted(22, 31) Source(9, 31) + SourceIndex(0) --- >>>function getRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) +1 >Emitted(23, 1) Source(10, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -144,11 +163,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(11, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(11, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) +1->Emitted(24, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(24, 11) Source(11, 11) + SourceIndex(0) +3 >Emitted(24, 12) Source(11, 12) + SourceIndex(0) +4 >Emitted(24, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(24, 19) Source(11, 19) + SourceIndex(0) --- >>>} 1 > @@ -157,8 +176,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 1 > > 2 >} -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(12, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(12, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -192,20 +211,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 12> ] 13> ] 14> ; -1->Emitted(7, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(14, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(14, 16) + SourceIndex(0) -4 >Emitted(7, 19) Source(14, 38) + SourceIndex(0) -5 >Emitted(7, 20) Source(14, 39) + SourceIndex(0) -6 >Emitted(7, 27) Source(14, 46) + SourceIndex(0) -7 >Emitted(7, 29) Source(14, 48) + SourceIndex(0) -8 >Emitted(7, 30) Source(14, 49) + SourceIndex(0) -9 >Emitted(7, 38) Source(14, 57) + SourceIndex(0) -10>Emitted(7, 40) Source(14, 59) + SourceIndex(0) -11>Emitted(7, 42) Source(14, 61) + SourceIndex(0) -12>Emitted(7, 43) Source(14, 62) + SourceIndex(0) -13>Emitted(7, 44) Source(14, 63) + SourceIndex(0) -14>Emitted(7, 45) Source(14, 64) + SourceIndex(0) +1->Emitted(26, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(26, 16) Source(14, 16) + SourceIndex(0) +4 >Emitted(26, 19) Source(14, 38) + SourceIndex(0) +5 >Emitted(26, 20) Source(14, 39) + SourceIndex(0) +6 >Emitted(26, 27) Source(14, 46) + SourceIndex(0) +7 >Emitted(26, 29) Source(14, 48) + SourceIndex(0) +8 >Emitted(26, 30) Source(14, 49) + SourceIndex(0) +9 >Emitted(26, 38) Source(14, 57) + SourceIndex(0) +10>Emitted(26, 40) Source(14, 59) + SourceIndex(0) +11>Emitted(26, 42) Source(14, 61) + SourceIndex(0) +12>Emitted(26, 43) Source(14, 62) + SourceIndex(0) +13>Emitted(26, 44) Source(14, 63) + SourceIndex(0) +14>Emitted(26, 45) Source(14, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -237,20 +256,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 12> ] 13> ] 14> ; -1->Emitted(8, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(8, 16) Source(15, 16) + SourceIndex(0) -4 >Emitted(8, 19) Source(15, 38) + SourceIndex(0) -5 >Emitted(8, 20) Source(15, 39) + SourceIndex(0) -6 >Emitted(8, 29) Source(15, 48) + SourceIndex(0) -7 >Emitted(8, 31) Source(15, 50) + SourceIndex(0) -8 >Emitted(8, 32) Source(15, 51) + SourceIndex(0) -9 >Emitted(8, 42) Source(15, 61) + SourceIndex(0) -10>Emitted(8, 44) Source(15, 63) + SourceIndex(0) -11>Emitted(8, 52) Source(15, 71) + SourceIndex(0) -12>Emitted(8, 53) Source(15, 72) + SourceIndex(0) -13>Emitted(8, 54) Source(15, 73) + SourceIndex(0) -14>Emitted(8, 55) Source(15, 74) + SourceIndex(0) +1->Emitted(27, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(27, 16) Source(15, 16) + SourceIndex(0) +4 >Emitted(27, 19) Source(15, 38) + SourceIndex(0) +5 >Emitted(27, 20) Source(15, 39) + SourceIndex(0) +6 >Emitted(27, 29) Source(15, 48) + SourceIndex(0) +7 >Emitted(27, 31) Source(15, 50) + SourceIndex(0) +8 >Emitted(27, 32) Source(15, 51) + SourceIndex(0) +9 >Emitted(27, 42) Source(15, 61) + SourceIndex(0) +10>Emitted(27, 44) Source(15, 63) + SourceIndex(0) +11>Emitted(27, 52) Source(15, 71) + SourceIndex(0) +12>Emitted(27, 53) Source(15, 72) + SourceIndex(0) +13>Emitted(27, 54) Source(15, 73) + SourceIndex(0) +14>Emitted(27, 55) Source(15, 74) + SourceIndex(0) --- >>>var multiRobots = [multiRobotA, multiRobotB]; 1 > @@ -274,23 +293,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 8 > multiRobotB 9 > ] 10> ; -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(9, 16) Source(16, 16) + SourceIndex(0) -4 >Emitted(9, 19) Source(16, 19) + SourceIndex(0) -5 >Emitted(9, 20) Source(16, 20) + SourceIndex(0) -6 >Emitted(9, 31) Source(16, 31) + SourceIndex(0) -7 >Emitted(9, 33) Source(16, 33) + SourceIndex(0) -8 >Emitted(9, 44) Source(16, 44) + SourceIndex(0) -9 >Emitted(9, 45) Source(16, 45) + SourceIndex(0) -10>Emitted(9, 46) Source(16, 46) + SourceIndex(0) +1 >Emitted(28, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(28, 16) Source(16, 16) + SourceIndex(0) +4 >Emitted(28, 19) Source(16, 19) + SourceIndex(0) +5 >Emitted(28, 20) Source(16, 20) + SourceIndex(0) +6 >Emitted(28, 31) Source(16, 31) + SourceIndex(0) +7 >Emitted(28, 33) Source(16, 33) + SourceIndex(0) +8 >Emitted(28, 44) Source(16, 44) + SourceIndex(0) +9 >Emitted(28, 45) Source(16, 45) + SourceIndex(0) +10>Emitted(28, 46) Source(16, 46) + SourceIndex(0) --- >>>function getMultiRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(10, 1) Source(17, 1) + SourceIndex(0) +1 >Emitted(29, 1) Source(17, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -304,219 +323,244 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 3 > 4 > multiRobots 5 > ; -1->Emitted(11, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(11, 11) Source(18, 11) + SourceIndex(0) -3 >Emitted(11, 12) Source(18, 12) + SourceIndex(0) -4 >Emitted(11, 23) Source(18, 23) + SourceIndex(0) -5 >Emitted(11, 24) Source(18, 24) + SourceIndex(0) +1->Emitted(30, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(30, 11) Source(18, 11) + SourceIndex(0) +3 >Emitted(30, 12) Source(18, 12) + SourceIndex(0) +4 >Emitted(30, 23) Source(18, 23) + SourceIndex(0) +5 >Emitted(30, 24) Source(18, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^-> 1 > > 2 >} -1 >Emitted(12, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(19, 2) + SourceIndex(0) --- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let [, nameA = "noName"] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 4) Source(21, 4) + SourceIndex(0) -3 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -4 >Emitted(13, 6) Source(21, 34) + SourceIndex(0) -5 >Emitted(13, 16) Source(21, 40) + SourceIndex(0) -6 >Emitted(13, 18) Source(21, 34) + SourceIndex(0) -7 >Emitted(13, 35) Source(21, 40) + SourceIndex(0) -8 >Emitted(13, 37) Source(21, 34) + SourceIndex(0) -9 >Emitted(13, 57) Source(21, 40) + SourceIndex(0) -10>Emitted(13, 59) Source(21, 34) + SourceIndex(0) -11>Emitted(13, 63) Source(21, 40) + SourceIndex(0) ---- ->>> var _a = robots_1[_i], _b = _a[1], nameA = _b === void 0 ? "noName" : _b; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [, nameA = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [, nameA = "noName"] +1->Emitted(33, 5) Source(21, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(21, 4) + SourceIndex(0) +3 >Emitted(33, 9) Source(21, 5) + SourceIndex(0) +4 >Emitted(33, 10) Source(21, 34) + SourceIndex(0) +5 >Emitted(33, 14) Source(21, 34) + SourceIndex(0) +6 >Emitted(33, 25) Source(21, 34) + SourceIndex(0) +7 >Emitted(33, 27) Source(21, 34) + SourceIndex(0) +8 >Emitted(33, 37) Source(21, 34) + SourceIndex(0) +9 >Emitted(33, 46) Source(21, 34) + SourceIndex(0) +10>Emitted(33, 52) Source(21, 40) + SourceIndex(0) +11>Emitted(33, 53) Source(21, 40) + SourceIndex(0) +12>Emitted(33, 55) Source(21, 40) + SourceIndex(0) +13>Emitted(33, 57) Source(21, 6) + SourceIndex(0) +14>Emitted(33, 73) Source(21, 30) + SourceIndex(0) +--- +>>> var _a = __read(robots_1.result.value, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [, nameA = "noName"] -4 > -5 > nameA = "noName" -6 > -7 > nameA = "noName" -1->Emitted(14, 5) Source(21, 10) + SourceIndex(0) -2 >Emitted(14, 9) Source(21, 10) + SourceIndex(0) -3 >Emitted(14, 26) Source(21, 30) + SourceIndex(0) -4 >Emitted(14, 28) Source(21, 13) + SourceIndex(0) -5 >Emitted(14, 38) Source(21, 29) + SourceIndex(0) -6 >Emitted(14, 40) Source(21, 13) + SourceIndex(0) -7 >Emitted(14, 77) Source(21, 29) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, nameA = "noName"] +4 > +5 > nameA = "noName" +6 > +7 > nameA = "noName" +1->Emitted(34, 9) Source(21, 10) + SourceIndex(0) +2 >Emitted(34, 13) Source(21, 10) + SourceIndex(0) +3 >Emitted(34, 50) Source(21, 30) + SourceIndex(0) +4 >Emitted(34, 52) Source(21, 13) + SourceIndex(0) +5 >Emitted(34, 62) Source(21, 29) + SourceIndex(0) +6 >Emitted(34, 64) Source(21, 13) + SourceIndex(0) +7 >Emitted(34, 101) Source(21, 29) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(15, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(15, 12) Source(22, 12) + SourceIndex(0) -3 >Emitted(15, 13) Source(22, 13) + SourceIndex(0) -4 >Emitted(15, 16) Source(22, 16) + SourceIndex(0) -5 >Emitted(15, 17) Source(22, 17) + SourceIndex(0) -6 >Emitted(15, 22) Source(22, 22) + SourceIndex(0) -7 >Emitted(15, 23) Source(22, 23) + SourceIndex(0) -8 >Emitted(15, 24) Source(22, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(35, 9) Source(22, 5) + SourceIndex(0) +2 >Emitted(35, 16) Source(22, 12) + SourceIndex(0) +3 >Emitted(35, 17) Source(22, 13) + SourceIndex(0) +4 >Emitted(35, 20) Source(22, 16) + SourceIndex(0) +5 >Emitted(35, 21) Source(22, 17) + SourceIndex(0) +6 >Emitted(35, 26) Source(22, 22) + SourceIndex(0) +7 >Emitted(35, 27) Source(22, 23) + SourceIndex(0) +8 >Emitted(35, 28) Source(22, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(16, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(36, 6) Source(23, 2) + SourceIndex(0) --- ->>>for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [, nameA = "noName"] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(17, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(17, 4) Source(24, 4) + SourceIndex(0) -3 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) -4 >Emitted(17, 6) Source(24, 34) + SourceIndex(0) -5 >Emitted(17, 16) Source(24, 45) + SourceIndex(0) -6 >Emitted(17, 18) Source(24, 34) + SourceIndex(0) -7 >Emitted(17, 23) Source(24, 34) + SourceIndex(0) -8 >Emitted(17, 32) Source(24, 43) + SourceIndex(0) -9 >Emitted(17, 34) Source(24, 45) + SourceIndex(0) -10>Emitted(17, 36) Source(24, 34) + SourceIndex(0) -11>Emitted(17, 50) Source(24, 45) + SourceIndex(0) -12>Emitted(17, 52) Source(24, 34) + SourceIndex(0) -13>Emitted(17, 56) Source(24, 45) + SourceIndex(0) ---- ->>> var _e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [, nameA = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [, nameA = "noName"] +1 >Emitted(43, 5) Source(24, 1) + SourceIndex(0) +2 >Emitted(43, 8) Source(24, 4) + SourceIndex(0) +3 >Emitted(43, 9) Source(24, 5) + SourceIndex(0) +4 >Emitted(43, 10) Source(24, 34) + SourceIndex(0) +5 >Emitted(43, 14) Source(24, 34) + SourceIndex(0) +6 >Emitted(43, 27) Source(24, 34) + SourceIndex(0) +7 >Emitted(43, 29) Source(24, 34) + SourceIndex(0) +8 >Emitted(43, 39) Source(24, 34) + SourceIndex(0) +9 >Emitted(43, 48) Source(24, 34) + SourceIndex(0) +10>Emitted(43, 57) Source(24, 43) + SourceIndex(0) +11>Emitted(43, 59) Source(24, 45) + SourceIndex(0) +12>Emitted(43, 60) Source(24, 45) + SourceIndex(0) +13>Emitted(43, 62) Source(24, 45) + SourceIndex(0) +14>Emitted(43, 64) Source(24, 6) + SourceIndex(0) +15>Emitted(43, 82) Source(24, 30) + SourceIndex(0) +--- +>>> var _c = __read(iterator_1.result.value, 2), _d = _c[1], nameA = _d === void 0 ? "noName" : _d; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [, nameA = "noName"] -4 > -5 > nameA = "noName" -6 > -7 > nameA = "noName" -1->Emitted(18, 5) Source(24, 10) + SourceIndex(0) -2 >Emitted(18, 9) Source(24, 10) + SourceIndex(0) -3 >Emitted(18, 20) Source(24, 30) + SourceIndex(0) -4 >Emitted(18, 22) Source(24, 13) + SourceIndex(0) -5 >Emitted(18, 32) Source(24, 29) + SourceIndex(0) -6 >Emitted(18, 34) Source(24, 13) + SourceIndex(0) -7 >Emitted(18, 71) Source(24, 29) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > +3 > [, nameA = "noName"] +4 > +5 > nameA = "noName" +6 > +7 > nameA = "noName" +1->Emitted(44, 9) Source(24, 10) + SourceIndex(0) +2 >Emitted(44, 13) Source(24, 10) + SourceIndex(0) +3 >Emitted(44, 52) Source(24, 30) + SourceIndex(0) +4 >Emitted(44, 54) Source(24, 13) + SourceIndex(0) +5 >Emitted(44, 64) Source(24, 29) + SourceIndex(0) +6 >Emitted(44, 66) Source(24, 13) + SourceIndex(0) +7 >Emitted(44, 103) Source(24, 29) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(19, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(25, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(25, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(25, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(25, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(25, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(25, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(25, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(45, 9) Source(25, 5) + SourceIndex(0) +2 >Emitted(45, 16) Source(25, 12) + SourceIndex(0) +3 >Emitted(45, 17) Source(25, 13) + SourceIndex(0) +4 >Emitted(45, 20) Source(25, 16) + SourceIndex(0) +5 >Emitted(45, 21) Source(25, 17) + SourceIndex(0) +6 >Emitted(45, 26) Source(25, 22) + SourceIndex(0) +7 >Emitted(45, 27) Source(25, 23) + SourceIndex(0) +8 >Emitted(45, 28) Source(25, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(20, 2) Source(26, 2) + SourceIndex(0) +1 >Emitted(46, 6) Source(26, 2) + SourceIndex(0) --- ->>>for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _e = [robotA, robotB]; _i < _e.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -531,8 +575,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -548,44 +592,44 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(21, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(27, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(27, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(27, 34) + SourceIndex(0) -5 >Emitted(21, 16) Source(27, 50) + SourceIndex(0) -6 >Emitted(21, 18) Source(27, 34) + SourceIndex(0) -7 >Emitted(21, 24) Source(27, 35) + SourceIndex(0) -8 >Emitted(21, 30) Source(27, 41) + SourceIndex(0) -9 >Emitted(21, 32) Source(27, 43) + SourceIndex(0) -10>Emitted(21, 38) Source(27, 49) + SourceIndex(0) -11>Emitted(21, 39) Source(27, 50) + SourceIndex(0) -12>Emitted(21, 41) Source(27, 34) + SourceIndex(0) -13>Emitted(21, 55) Source(27, 50) + SourceIndex(0) -14>Emitted(21, 57) Source(27, 34) + SourceIndex(0) -15>Emitted(21, 61) Source(27, 50) + SourceIndex(0) ---- ->>> var _j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k; +1 >Emitted(52, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(52, 4) Source(27, 4) + SourceIndex(0) +3 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) +4 >Emitted(52, 6) Source(27, 34) + SourceIndex(0) +5 >Emitted(52, 16) Source(27, 50) + SourceIndex(0) +6 >Emitted(52, 18) Source(27, 34) + SourceIndex(0) +7 >Emitted(52, 24) Source(27, 35) + SourceIndex(0) +8 >Emitted(52, 30) Source(27, 41) + SourceIndex(0) +9 >Emitted(52, 32) Source(27, 43) + SourceIndex(0) +10>Emitted(52, 38) Source(27, 49) + SourceIndex(0) +11>Emitted(52, 39) Source(27, 50) + SourceIndex(0) +12>Emitted(52, 41) Source(27, 34) + SourceIndex(0) +13>Emitted(52, 55) Source(27, 50) + SourceIndex(0) +14>Emitted(52, 57) Source(27, 34) + SourceIndex(0) +15>Emitted(52, 61) Source(27, 50) + SourceIndex(0) +--- +>>> var _f = __read(_e[_i], 2), _g = _f[1], nameA = _g === void 0 ? "noName" : _g; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [, nameA = "noName"] -4 > -5 > nameA = "noName" -6 > -7 > nameA = "noName" -1->Emitted(22, 5) Source(27, 10) + SourceIndex(0) -2 >Emitted(22, 9) Source(27, 10) + SourceIndex(0) -3 >Emitted(22, 20) Source(27, 30) + SourceIndex(0) -4 >Emitted(22, 22) Source(27, 13) + SourceIndex(0) -5 >Emitted(22, 32) Source(27, 29) + SourceIndex(0) -6 >Emitted(22, 34) Source(27, 13) + SourceIndex(0) -7 >Emitted(22, 71) Source(27, 29) + SourceIndex(0) +4 > +5 > nameA = "noName" +6 > +7 > nameA = "noName" +1->Emitted(53, 5) Source(27, 10) + SourceIndex(0) +2 >Emitted(53, 9) Source(27, 10) + SourceIndex(0) +3 >Emitted(53, 31) Source(27, 30) + SourceIndex(0) +4 >Emitted(53, 33) Source(27, 13) + SourceIndex(0) +5 >Emitted(53, 43) Source(27, 29) + SourceIndex(0) +6 >Emitted(53, 45) Source(27, 13) + SourceIndex(0) +7 >Emitted(53, 82) Source(27, 29) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -605,294 +649,325 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameA 7 > ) 8 > ; -1 >Emitted(23, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(28, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(28, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(28, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(28, 17) + SourceIndex(0) -6 >Emitted(23, 22) Source(28, 22) + SourceIndex(0) -7 >Emitted(23, 23) Source(28, 23) + SourceIndex(0) -8 >Emitted(23, 24) Source(28, 24) + SourceIndex(0) +1 >Emitted(54, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(54, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(54, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(54, 16) Source(28, 16) + SourceIndex(0) +5 >Emitted(54, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(54, 22) Source(28, 22) + SourceIndex(0) +7 >Emitted(54, 23) Source(28, 23) + SourceIndex(0) +8 >Emitted(54, 24) Source(28, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(24, 2) Source(29, 2) + SourceIndex(0) +1 >Emitted(55, 2) Source(29, 2) + SourceIndex(0) --- ->>>for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(25, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(30, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(30, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(33, 30) + SourceIndex(0) -5 >Emitted(25, 16) Source(33, 41) + SourceIndex(0) -6 >Emitted(25, 18) Source(33, 30) + SourceIndex(0) -7 >Emitted(25, 45) Source(33, 41) + SourceIndex(0) -8 >Emitted(25, 47) Source(33, 30) + SourceIndex(0) -9 >Emitted(25, 72) Source(33, 41) + SourceIndex(0) -10>Emitted(25, 74) Source(33, 30) + SourceIndex(0) -11>Emitted(25, 78) Source(33, 41) + SourceIndex(0) ---- ->>> var _m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [, [ +2 > for +3 > +4 > (let [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] -4 > -5 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -6 > -7 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -8 > -9 > primarySkillA = "primary" -10> -11> primarySkillA = "primary" -12> , - > -13> secondarySkillA = "secondary" -14> -15> secondarySkillA = "secondary" -1->Emitted(26, 5) Source(30, 10) + SourceIndex(0) -2 >Emitted(26, 9) Source(30, 10) + SourceIndex(0) -3 >Emitted(26, 31) Source(33, 26) + SourceIndex(0) -4 >Emitted(26, 33) Source(30, 13) + SourceIndex(0) -5 >Emitted(26, 43) Source(33, 25) + SourceIndex(0) -6 >Emitted(26, 45) Source(30, 13) + SourceIndex(0) -7 >Emitted(26, 91) Source(33, 25) + SourceIndex(0) -8 >Emitted(26, 93) Source(31, 5) + SourceIndex(0) -9 >Emitted(26, 103) Source(31, 30) + SourceIndex(0) -10>Emitted(26, 105) Source(31, 5) + SourceIndex(0) -11>Emitted(26, 151) Source(31, 30) + SourceIndex(0) -12>Emitted(26, 153) Source(32, 5) + SourceIndex(0) -13>Emitted(26, 163) Source(32, 34) + SourceIndex(0) -14>Emitted(26, 165) Source(32, 5) + SourceIndex(0) -15>Emitted(26, 215) Source(32, 34) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1->Emitted(57, 5) Source(30, 1) + SourceIndex(0) +2 >Emitted(57, 8) Source(30, 4) + SourceIndex(0) +3 >Emitted(57, 9) Source(30, 5) + SourceIndex(0) +4 >Emitted(57, 10) Source(33, 30) + SourceIndex(0) +5 >Emitted(57, 14) Source(33, 30) + SourceIndex(0) +6 >Emitted(57, 30) Source(33, 30) + SourceIndex(0) +7 >Emitted(57, 32) Source(33, 30) + SourceIndex(0) +8 >Emitted(57, 42) Source(33, 30) + SourceIndex(0) +9 >Emitted(57, 51) Source(33, 30) + SourceIndex(0) +10>Emitted(57, 62) Source(33, 41) + SourceIndex(0) +11>Emitted(57, 63) Source(33, 41) + SourceIndex(0) +12>Emitted(57, 65) Source(33, 41) + SourceIndex(0) +13>Emitted(57, 67) Source(30, 6) + SourceIndex(0) +14>Emitted(57, 88) Source(33, 26) + SourceIndex(0) +--- +>>> var _h = __read(multiRobots_1.result.value, 2), _j = _h[1], _k = __read(_j === void 0 ? ["skill1", "skill2"] : _j, 2), _l = _k[0], primarySkillA = _l === void 0 ? "primary" : _l, _m = _k[1], secondarySkillA = _m === void 0 ? "secondary" : _m; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +4 > +5 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +6 > +7 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +8 > +9 > primarySkillA = "primary" +10> +11> primarySkillA = "primary" +12> , + > +13> secondarySkillA = "secondary" +14> +15> secondarySkillA = "secondary" +1->Emitted(58, 9) Source(30, 10) + SourceIndex(0) +2 >Emitted(58, 13) Source(30, 10) + SourceIndex(0) +3 >Emitted(58, 55) Source(33, 26) + SourceIndex(0) +4 >Emitted(58, 57) Source(30, 13) + SourceIndex(0) +5 >Emitted(58, 67) Source(33, 25) + SourceIndex(0) +6 >Emitted(58, 69) Source(30, 13) + SourceIndex(0) +7 >Emitted(58, 126) Source(33, 25) + SourceIndex(0) +8 >Emitted(58, 128) Source(31, 5) + SourceIndex(0) +9 >Emitted(58, 138) Source(31, 30) + SourceIndex(0) +10>Emitted(58, 140) Source(31, 5) + SourceIndex(0) +11>Emitted(58, 186) Source(31, 30) + SourceIndex(0) +12>Emitted(58, 188) Source(32, 5) + SourceIndex(0) +13>Emitted(58, 198) Source(32, 34) + SourceIndex(0) +14>Emitted(58, 200) Source(32, 5) + SourceIndex(0) +15>Emitted(58, 250) Source(32, 34) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(27, 5) Source(34, 5) + SourceIndex(0) -2 >Emitted(27, 12) Source(34, 12) + SourceIndex(0) -3 >Emitted(27, 13) Source(34, 13) + SourceIndex(0) -4 >Emitted(27, 16) Source(34, 16) + SourceIndex(0) -5 >Emitted(27, 17) Source(34, 17) + SourceIndex(0) -6 >Emitted(27, 30) Source(34, 30) + SourceIndex(0) -7 >Emitted(27, 31) Source(34, 31) + SourceIndex(0) -8 >Emitted(27, 32) Source(34, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(59, 9) Source(34, 5) + SourceIndex(0) +2 >Emitted(59, 16) Source(34, 12) + SourceIndex(0) +3 >Emitted(59, 17) Source(34, 13) + SourceIndex(0) +4 >Emitted(59, 20) Source(34, 16) + SourceIndex(0) +5 >Emitted(59, 21) Source(34, 17) + SourceIndex(0) +6 >Emitted(59, 34) Source(34, 30) + SourceIndex(0) +7 >Emitted(59, 35) Source(34, 31) + SourceIndex(0) +8 >Emitted(59, 36) Source(34, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(28, 2) Source(35, 2) + SourceIndex(0) +1 >Emitted(60, 6) Source(35, 2) + SourceIndex(0) --- ->>>for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(29, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(29, 4) Source(36, 4) + SourceIndex(0) -3 >Emitted(29, 5) Source(36, 5) + SourceIndex(0) -4 >Emitted(29, 6) Source(39, 30) + SourceIndex(0) -5 >Emitted(29, 16) Source(39, 46) + SourceIndex(0) -6 >Emitted(29, 18) Source(39, 30) + SourceIndex(0) -7 >Emitted(29, 23) Source(39, 30) + SourceIndex(0) -8 >Emitted(29, 37) Source(39, 44) + SourceIndex(0) -9 >Emitted(29, 39) Source(39, 46) + SourceIndex(0) -10>Emitted(29, 41) Source(39, 30) + SourceIndex(0) -11>Emitted(29, 55) Source(39, 46) + SourceIndex(0) -12>Emitted(29, 57) Source(39, 30) + SourceIndex(0) -13>Emitted(29, 61) Source(39, 46) + SourceIndex(0) ---- ->>> var _u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [, [ +2 > for +3 > +4 > (let [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] -4 > -5 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -6 > -7 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -8 > -9 > primarySkillA = "primary" -10> -11> primarySkillA = "primary" -12> , - > -13> secondarySkillA = "secondary" -14> -15> secondarySkillA = "secondary" -1->Emitted(30, 5) Source(36, 10) + SourceIndex(0) -2 >Emitted(30, 9) Source(36, 10) + SourceIndex(0) -3 >Emitted(30, 20) Source(39, 26) + SourceIndex(0) -4 >Emitted(30, 22) Source(36, 13) + SourceIndex(0) -5 >Emitted(30, 32) Source(39, 25) + SourceIndex(0) -6 >Emitted(30, 34) Source(36, 13) + SourceIndex(0) -7 >Emitted(30, 80) Source(39, 25) + SourceIndex(0) -8 >Emitted(30, 82) Source(37, 5) + SourceIndex(0) -9 >Emitted(30, 92) Source(37, 30) + SourceIndex(0) -10>Emitted(30, 94) Source(37, 5) + SourceIndex(0) -11>Emitted(30, 140) Source(37, 30) + SourceIndex(0) -12>Emitted(30, 142) Source(38, 5) + SourceIndex(0) -13>Emitted(30, 152) Source(38, 34) + SourceIndex(0) -14>Emitted(30, 154) Source(38, 5) + SourceIndex(0) -15>Emitted(30, 204) Source(38, 34) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1 >Emitted(67, 5) Source(36, 1) + SourceIndex(0) +2 >Emitted(67, 8) Source(36, 4) + SourceIndex(0) +3 >Emitted(67, 9) Source(36, 5) + SourceIndex(0) +4 >Emitted(67, 10) Source(39, 30) + SourceIndex(0) +5 >Emitted(67, 14) Source(39, 30) + SourceIndex(0) +6 >Emitted(67, 27) Source(39, 30) + SourceIndex(0) +7 >Emitted(67, 29) Source(39, 30) + SourceIndex(0) +8 >Emitted(67, 39) Source(39, 30) + SourceIndex(0) +9 >Emitted(67, 48) Source(39, 30) + SourceIndex(0) +10>Emitted(67, 62) Source(39, 44) + SourceIndex(0) +11>Emitted(67, 64) Source(39, 46) + SourceIndex(0) +12>Emitted(67, 65) Source(39, 46) + SourceIndex(0) +13>Emitted(67, 67) Source(39, 46) + SourceIndex(0) +14>Emitted(67, 69) Source(36, 6) + SourceIndex(0) +15>Emitted(67, 87) Source(39, 26) + SourceIndex(0) +--- +>>> var _o = __read(iterator_2.result.value, 2), _p = _o[1], _q = __read(_p === void 0 ? ["skill1", "skill2"] : _p, 2), _r = _q[0], primarySkillA = _r === void 0 ? "primary" : _r, _s = _q[1], secondarySkillA = _s === void 0 ? "secondary" : _s; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +4 > +5 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +6 > +7 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +8 > +9 > primarySkillA = "primary" +10> +11> primarySkillA = "primary" +12> , + > +13> secondarySkillA = "secondary" +14> +15> secondarySkillA = "secondary" +1->Emitted(68, 9) Source(36, 10) + SourceIndex(0) +2 >Emitted(68, 13) Source(36, 10) + SourceIndex(0) +3 >Emitted(68, 52) Source(39, 26) + SourceIndex(0) +4 >Emitted(68, 54) Source(36, 13) + SourceIndex(0) +5 >Emitted(68, 64) Source(39, 25) + SourceIndex(0) +6 >Emitted(68, 66) Source(36, 13) + SourceIndex(0) +7 >Emitted(68, 123) Source(39, 25) + SourceIndex(0) +8 >Emitted(68, 125) Source(37, 5) + SourceIndex(0) +9 >Emitted(68, 135) Source(37, 30) + SourceIndex(0) +10>Emitted(68, 137) Source(37, 5) + SourceIndex(0) +11>Emitted(68, 183) Source(37, 30) + SourceIndex(0) +12>Emitted(68, 185) Source(38, 5) + SourceIndex(0) +13>Emitted(68, 195) Source(38, 34) + SourceIndex(0) +14>Emitted(68, 197) Source(38, 5) + SourceIndex(0) +15>Emitted(68, 247) Source(38, 34) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(31, 5) Source(40, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(40, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(40, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(40, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(40, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(40, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(40, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(40, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(69, 9) Source(40, 5) + SourceIndex(0) +2 >Emitted(69, 16) Source(40, 12) + SourceIndex(0) +3 >Emitted(69, 17) Source(40, 13) + SourceIndex(0) +4 >Emitted(69, 20) Source(40, 16) + SourceIndex(0) +5 >Emitted(69, 21) Source(40, 17) + SourceIndex(0) +6 >Emitted(69, 34) Source(40, 30) + SourceIndex(0) +7 >Emitted(69, 35) Source(40, 31) + SourceIndex(0) +8 >Emitted(69, 36) Source(40, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(32, 2) Source(41, 2) + SourceIndex(0) +1 >Emitted(70, 6) Source(41, 2) + SourceIndex(0) --- ->>>for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) { -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _t = 0, _u = [multiRobotA, multiRobotB]; _t < _u.length; _t++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -907,8 +982,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -927,78 +1002,78 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(33, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(42, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(42, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(45, 30) + SourceIndex(0) -5 >Emitted(33, 16) Source(45, 56) + SourceIndex(0) -6 >Emitted(33, 18) Source(45, 30) + SourceIndex(0) -7 >Emitted(33, 24) Source(45, 31) + SourceIndex(0) -8 >Emitted(33, 35) Source(45, 42) + SourceIndex(0) -9 >Emitted(33, 37) Source(45, 44) + SourceIndex(0) -10>Emitted(33, 48) Source(45, 55) + SourceIndex(0) -11>Emitted(33, 49) Source(45, 56) + SourceIndex(0) -12>Emitted(33, 51) Source(45, 30) + SourceIndex(0) -13>Emitted(33, 65) Source(45, 56) + SourceIndex(0) -14>Emitted(33, 67) Source(45, 30) + SourceIndex(0) -15>Emitted(33, 71) Source(45, 56) + SourceIndex(0) ---- ->>> var _1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5; +1 >Emitted(76, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(76, 4) Source(42, 4) + SourceIndex(0) +3 >Emitted(76, 5) Source(42, 5) + SourceIndex(0) +4 >Emitted(76, 6) Source(45, 30) + SourceIndex(0) +5 >Emitted(76, 16) Source(45, 56) + SourceIndex(0) +6 >Emitted(76, 18) Source(45, 30) + SourceIndex(0) +7 >Emitted(76, 24) Source(45, 31) + SourceIndex(0) +8 >Emitted(76, 35) Source(45, 42) + SourceIndex(0) +9 >Emitted(76, 37) Source(45, 44) + SourceIndex(0) +10>Emitted(76, 48) Source(45, 55) + SourceIndex(0) +11>Emitted(76, 49) Source(45, 56) + SourceIndex(0) +12>Emitted(76, 51) Source(45, 30) + SourceIndex(0) +13>Emitted(76, 65) Source(45, 56) + SourceIndex(0) +14>Emitted(76, 67) Source(45, 30) + SourceIndex(0) +15>Emitted(76, 71) Source(45, 56) + SourceIndex(0) +--- +>>> var _v = __read(_u[_t], 2), _w = _v[1], _x = __read(_w === void 0 ? ["skill1", "skill2"] : _w, 2), _y = _x[0], primarySkillA = _y === void 0 ? "primary" : _y, _z = _x[1], secondarySkillA = _z === void 0 ? "secondary" : _z; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [, [ > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["skill1", "skill2"]] -4 > -5 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -6 > -7 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -8 > -9 > primarySkillA = "primary" -10> -11> primarySkillA = "primary" -12> , - > -13> secondarySkillA = "secondary" -14> -15> secondarySkillA = "secondary" -1->Emitted(34, 5) Source(42, 10) + SourceIndex(0) -2 >Emitted(34, 9) Source(42, 10) + SourceIndex(0) -3 >Emitted(34, 20) Source(45, 26) + SourceIndex(0) -4 >Emitted(34, 22) Source(42, 13) + SourceIndex(0) -5 >Emitted(34, 32) Source(45, 25) + SourceIndex(0) -6 >Emitted(34, 34) Source(42, 13) + SourceIndex(0) -7 >Emitted(34, 80) Source(45, 25) + SourceIndex(0) -8 >Emitted(34, 82) Source(43, 5) + SourceIndex(0) -9 >Emitted(34, 92) Source(43, 30) + SourceIndex(0) -10>Emitted(34, 94) Source(43, 5) + SourceIndex(0) -11>Emitted(34, 140) Source(43, 30) + SourceIndex(0) -12>Emitted(34, 142) Source(44, 5) + SourceIndex(0) -13>Emitted(34, 152) Source(44, 34) + SourceIndex(0) -14>Emitted(34, 154) Source(44, 5) + SourceIndex(0) -15>Emitted(34, 204) Source(44, 34) + SourceIndex(0) +4 > +5 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +6 > +7 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +8 > +9 > primarySkillA = "primary" +10> +11> primarySkillA = "primary" +12> , + > +13> secondarySkillA = "secondary" +14> +15> secondarySkillA = "secondary" +1->Emitted(77, 5) Source(42, 10) + SourceIndex(0) +2 >Emitted(77, 9) Source(42, 10) + SourceIndex(0) +3 >Emitted(77, 31) Source(45, 26) + SourceIndex(0) +4 >Emitted(77, 33) Source(42, 13) + SourceIndex(0) +5 >Emitted(77, 43) Source(45, 25) + SourceIndex(0) +6 >Emitted(77, 45) Source(42, 13) + SourceIndex(0) +7 >Emitted(77, 102) Source(45, 25) + SourceIndex(0) +8 >Emitted(77, 104) Source(43, 5) + SourceIndex(0) +9 >Emitted(77, 114) Source(43, 30) + SourceIndex(0) +10>Emitted(77, 116) Source(43, 5) + SourceIndex(0) +11>Emitted(77, 162) Source(43, 30) + SourceIndex(0) +12>Emitted(77, 164) Source(44, 5) + SourceIndex(0) +13>Emitted(77, 174) Source(44, 34) + SourceIndex(0) +14>Emitted(77, 176) Source(44, 5) + SourceIndex(0) +15>Emitted(77, 226) Source(44, 34) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -1019,269 +1094,313 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(35, 5) Source(46, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(46, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(46, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(46, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(46, 17) + SourceIndex(0) -6 >Emitted(35, 30) Source(46, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(46, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(46, 32) + SourceIndex(0) +1 >Emitted(78, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(78, 12) Source(46, 12) + SourceIndex(0) +3 >Emitted(78, 13) Source(46, 13) + SourceIndex(0) +4 >Emitted(78, 16) Source(46, 16) + SourceIndex(0) +5 >Emitted(78, 17) Source(46, 17) + SourceIndex(0) +6 >Emitted(78, 30) Source(46, 30) + SourceIndex(0) +7 >Emitted(78, 31) Source(46, 31) + SourceIndex(0) +8 >Emitted(78, 32) Source(46, 32) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(36, 2) Source(47, 2) + SourceIndex(0) +1 >Emitted(79, 2) Source(47, 2) + SourceIndex(0) --- ->>>for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^-> +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let [numberB = -1] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(37, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(49, 28) + SourceIndex(0) -5 >Emitted(37, 16) Source(49, 34) + SourceIndex(0) -6 >Emitted(37, 18) Source(49, 28) + SourceIndex(0) -7 >Emitted(37, 35) Source(49, 34) + SourceIndex(0) -8 >Emitted(37, 37) Source(49, 28) + SourceIndex(0) -9 >Emitted(37, 57) Source(49, 34) + SourceIndex(0) -10>Emitted(37, 59) Source(49, 28) + SourceIndex(0) -11>Emitted(37, 63) Source(49, 34) + SourceIndex(0) ---- ->>> var _7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberB = -1] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberB = -1] +1->Emitted(81, 5) Source(49, 1) + SourceIndex(0) +2 >Emitted(81, 8) Source(49, 4) + SourceIndex(0) +3 >Emitted(81, 9) Source(49, 5) + SourceIndex(0) +4 >Emitted(81, 10) Source(49, 28) + SourceIndex(0) +5 >Emitted(81, 14) Source(49, 28) + SourceIndex(0) +6 >Emitted(81, 25) Source(49, 28) + SourceIndex(0) +7 >Emitted(81, 27) Source(49, 28) + SourceIndex(0) +8 >Emitted(81, 37) Source(49, 28) + SourceIndex(0) +9 >Emitted(81, 46) Source(49, 28) + SourceIndex(0) +10>Emitted(81, 52) Source(49, 34) + SourceIndex(0) +11>Emitted(81, 53) Source(49, 34) + SourceIndex(0) +12>Emitted(81, 55) Source(49, 34) + SourceIndex(0) +13>Emitted(81, 57) Source(49, 6) + SourceIndex(0) +14>Emitted(81, 73) Source(49, 24) + SourceIndex(0) +--- +>>> var _0 = __read(robots_2.result.value, 1), _1 = _0[0], numberB = _1 === void 0 ? -1 : _1; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > numberB = -1 -4 > -5 > numberB = -1 -1->Emitted(38, 5) Source(49, 11) + SourceIndex(0) -2 >Emitted(38, 9) Source(49, 11) + SourceIndex(0) -3 >Emitted(38, 29) Source(49, 23) + SourceIndex(0) -4 >Emitted(38, 31) Source(49, 11) + SourceIndex(0) -5 >Emitted(38, 64) Source(49, 23) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberB = -1] +4 > +5 > numberB = -1 +6 > +7 > numberB = -1 +1->Emitted(82, 9) Source(49, 10) + SourceIndex(0) +2 >Emitted(82, 13) Source(49, 10) + SourceIndex(0) +3 >Emitted(82, 50) Source(49, 24) + SourceIndex(0) +4 >Emitted(82, 52) Source(49, 11) + SourceIndex(0) +5 >Emitted(82, 62) Source(49, 23) + SourceIndex(0) +6 >Emitted(82, 64) Source(49, 11) + SourceIndex(0) +7 >Emitted(82, 97) Source(49, 23) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(39, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(39, 24) Source(50, 24) + SourceIndex(0) -7 >Emitted(39, 25) Source(50, 25) + SourceIndex(0) -8 >Emitted(39, 26) Source(50, 26) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(83, 9) Source(50, 5) + SourceIndex(0) +2 >Emitted(83, 16) Source(50, 12) + SourceIndex(0) +3 >Emitted(83, 17) Source(50, 13) + SourceIndex(0) +4 >Emitted(83, 20) Source(50, 16) + SourceIndex(0) +5 >Emitted(83, 21) Source(50, 17) + SourceIndex(0) +6 >Emitted(83, 28) Source(50, 24) + SourceIndex(0) +7 >Emitted(83, 29) Source(50, 25) + SourceIndex(0) +8 >Emitted(83, 30) Source(50, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(84, 6) Source(51, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > (let [numberB = -1] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberB = -1] +1 >Emitted(91, 5) Source(52, 1) + SourceIndex(0) +2 >Emitted(91, 8) Source(52, 4) + SourceIndex(0) +3 >Emitted(91, 9) Source(52, 5) + SourceIndex(0) +4 >Emitted(91, 10) Source(52, 28) + SourceIndex(0) +5 >Emitted(91, 14) Source(52, 28) + SourceIndex(0) +6 >Emitted(91, 27) Source(52, 28) + SourceIndex(0) +7 >Emitted(91, 29) Source(52, 28) + SourceIndex(0) +8 >Emitted(91, 39) Source(52, 28) + SourceIndex(0) +9 >Emitted(91, 48) Source(52, 28) + SourceIndex(0) +10>Emitted(91, 57) Source(52, 37) + SourceIndex(0) +11>Emitted(91, 59) Source(52, 39) + SourceIndex(0) +12>Emitted(91, 60) Source(52, 39) + SourceIndex(0) +13>Emitted(91, 62) Source(52, 39) + SourceIndex(0) +14>Emitted(91, 64) Source(52, 6) + SourceIndex(0) +15>Emitted(91, 82) Source(52, 24) + SourceIndex(0) +--- +>>> var _2 = __read(iterator_3.result.value, 1), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [numberB = -1] +4 > +5 > numberB = -1 +6 > +7 > numberB = -1 +1->Emitted(92, 9) Source(52, 10) + SourceIndex(0) +2 >Emitted(92, 13) Source(52, 10) + SourceIndex(0) +3 >Emitted(92, 52) Source(52, 24) + SourceIndex(0) +4 >Emitted(92, 54) Source(52, 11) + SourceIndex(0) +5 >Emitted(92, 64) Source(52, 23) + SourceIndex(0) +6 >Emitted(92, 66) Source(52, 11) + SourceIndex(0) +7 >Emitted(92, 99) Source(52, 23) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ +1 >] of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(93, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(93, 16) Source(53, 12) + SourceIndex(0) +3 >Emitted(93, 17) Source(53, 13) + SourceIndex(0) +4 >Emitted(93, 20) Source(53, 16) + SourceIndex(0) +5 >Emitted(93, 21) Source(53, 17) + SourceIndex(0) +6 >Emitted(93, 28) Source(53, 24) + SourceIndex(0) +7 >Emitted(93, 29) Source(53, 25) + SourceIndex(0) +8 >Emitted(93, 30) Source(53, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(40, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(94, 6) Source(54, 2) + SourceIndex(0) --- ->>>for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _4 = 0, _5 = [robotA, robotB]; _4 < _5.length; _4++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^-> -1-> +7 > ^^^^^^ +8 > ^^^^^^ +9 > ^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > 4 > (let [numberB = -1] of -5 > getRobots() +5 > [robotA, robotB] 6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(41, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(52, 28) + SourceIndex(0) -5 >Emitted(41, 16) Source(52, 39) + SourceIndex(0) -6 >Emitted(41, 18) Source(52, 28) + SourceIndex(0) -7 >Emitted(41, 23) Source(52, 28) + SourceIndex(0) -8 >Emitted(41, 32) Source(52, 37) + SourceIndex(0) -9 >Emitted(41, 34) Source(52, 39) + SourceIndex(0) -10>Emitted(41, 36) Source(52, 28) + SourceIndex(0) -11>Emitted(41, 50) Source(52, 39) + SourceIndex(0) -12>Emitted(41, 52) Source(52, 28) + SourceIndex(0) -13>Emitted(41, 56) Source(52, 39) + SourceIndex(0) ---- ->>> var _10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10; +7 > [ +8 > robotA +9 > , +10> robotB +11> ] +12> +13> [robotA, robotB] +14> +15> [robotA, robotB] +1 >Emitted(100, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(100, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(100, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(100, 6) Source(55, 28) + SourceIndex(0) +5 >Emitted(100, 16) Source(55, 44) + SourceIndex(0) +6 >Emitted(100, 18) Source(55, 28) + SourceIndex(0) +7 >Emitted(100, 24) Source(55, 29) + SourceIndex(0) +8 >Emitted(100, 30) Source(55, 35) + SourceIndex(0) +9 >Emitted(100, 32) Source(55, 37) + SourceIndex(0) +10>Emitted(100, 38) Source(55, 43) + SourceIndex(0) +11>Emitted(100, 39) Source(55, 44) + SourceIndex(0) +12>Emitted(100, 41) Source(55, 28) + SourceIndex(0) +13>Emitted(100, 55) Source(55, 44) + SourceIndex(0) +14>Emitted(100, 57) Source(55, 28) + SourceIndex(0) +15>Emitted(100, 61) Source(55, 44) + SourceIndex(0) +--- +>>> var _6 = __read(_5[_4], 1), _7 = _6[0], numberB = _7 === void 0 ? -1 : _7; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > -3 > numberB = -1 -4 > -5 > numberB = -1 -1->Emitted(42, 5) Source(52, 11) + SourceIndex(0) -2 >Emitted(42, 9) Source(52, 11) + SourceIndex(0) -3 >Emitted(42, 24) Source(52, 23) + SourceIndex(0) -4 >Emitted(42, 26) Source(52, 11) + SourceIndex(0) -5 >Emitted(42, 61) Source(52, 23) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ -1 >] of getRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(43, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(43, 24) Source(53, 24) + SourceIndex(0) -7 >Emitted(43, 25) Source(53, 25) + SourceIndex(0) -8 >Emitted(43, 26) Source(53, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(44, 2) Source(54, 2) + SourceIndex(0) ---- ->>>for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^ -9 > ^^ -10> ^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^ -1-> - > -2 >for -3 > -4 > (let [numberB = -1] of -5 > [robotA, robotB] -6 > -7 > [ -8 > robotA -9 > , -10> robotB -11> ] -12> -13> [robotA, robotB] -14> -15> [robotA, robotB] -1->Emitted(45, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(55, 28) + SourceIndex(0) -5 >Emitted(45, 17) Source(55, 44) + SourceIndex(0) -6 >Emitted(45, 19) Source(55, 28) + SourceIndex(0) -7 >Emitted(45, 26) Source(55, 29) + SourceIndex(0) -8 >Emitted(45, 32) Source(55, 35) + SourceIndex(0) -9 >Emitted(45, 34) Source(55, 37) + SourceIndex(0) -10>Emitted(45, 40) Source(55, 43) + SourceIndex(0) -11>Emitted(45, 41) Source(55, 44) + SourceIndex(0) -12>Emitted(45, 43) Source(55, 28) + SourceIndex(0) -13>Emitted(45, 59) Source(55, 44) + SourceIndex(0) -14>Emitted(45, 61) Source(55, 28) + SourceIndex(0) -15>Emitted(45, 66) Source(55, 44) + SourceIndex(0) ---- ->>> var _13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > -3 > numberB = -1 -4 > -5 > numberB = -1 -1 >Emitted(46, 5) Source(55, 11) + SourceIndex(0) -2 >Emitted(46, 9) Source(55, 11) + SourceIndex(0) -3 >Emitted(46, 26) Source(55, 23) + SourceIndex(0) -4 >Emitted(46, 28) Source(55, 11) + SourceIndex(0) -5 >Emitted(46, 63) Source(55, 23) + SourceIndex(0) +3 > [numberB = -1] +4 > +5 > numberB = -1 +6 > +7 > numberB = -1 +1->Emitted(101, 5) Source(55, 10) + SourceIndex(0) +2 >Emitted(101, 9) Source(55, 10) + SourceIndex(0) +3 >Emitted(101, 31) Source(55, 24) + SourceIndex(0) +4 >Emitted(101, 33) Source(55, 11) + SourceIndex(0) +5 >Emitted(101, 43) Source(55, 23) + SourceIndex(0) +6 >Emitted(101, 45) Source(55, 11) + SourceIndex(0) +7 >Emitted(101, 78) Source(55, 23) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1301,547 +1420,617 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > numberB 7 > ) 8 > ; -1 >Emitted(47, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(47, 24) Source(56, 24) + SourceIndex(0) -7 >Emitted(47, 25) Source(56, 25) + SourceIndex(0) -8 >Emitted(47, 26) Source(56, 26) + SourceIndex(0) +1 >Emitted(102, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(102, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(102, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(102, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(102, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(102, 24) Source(56, 24) + SourceIndex(0) +7 >Emitted(102, 25) Source(56, 25) + SourceIndex(0) +8 >Emitted(102, 26) Source(56, 26) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(48, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(103, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let [nameB = "noName"] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(49, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(58, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(58, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(58, 32) + SourceIndex(0) -5 >Emitted(49, 17) Source(58, 43) + SourceIndex(0) -6 >Emitted(49, 19) Source(58, 32) + SourceIndex(0) -7 >Emitted(49, 46) Source(58, 43) + SourceIndex(0) -8 >Emitted(49, 48) Source(58, 32) + SourceIndex(0) -9 >Emitted(49, 74) Source(58, 43) + SourceIndex(0) -10>Emitted(49, 76) Source(58, 32) + SourceIndex(0) -11>Emitted(49, 81) Source(58, 43) + SourceIndex(0) ---- ->>> var _15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > -3 > nameB = "noName" -4 > -5 > nameB = "noName" -1 >Emitted(50, 5) Source(58, 11) + SourceIndex(0) -2 >Emitted(50, 9) Source(58, 11) + SourceIndex(0) -3 >Emitted(50, 36) Source(58, 27) + SourceIndex(0) -4 >Emitted(50, 38) Source(58, 11) + SourceIndex(0) -5 >Emitted(50, 77) Source(58, 27) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > for +3 > +4 > (let [nameB = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [nameB = "noName"] +1->Emitted(105, 5) Source(58, 1) + SourceIndex(0) +2 >Emitted(105, 8) Source(58, 4) + SourceIndex(0) +3 >Emitted(105, 9) Source(58, 5) + SourceIndex(0) +4 >Emitted(105, 10) Source(58, 32) + SourceIndex(0) +5 >Emitted(105, 14) Source(58, 32) + SourceIndex(0) +6 >Emitted(105, 30) Source(58, 32) + SourceIndex(0) +7 >Emitted(105, 32) Source(58, 32) + SourceIndex(0) +8 >Emitted(105, 42) Source(58, 32) + SourceIndex(0) +9 >Emitted(105, 51) Source(58, 32) + SourceIndex(0) +10>Emitted(105, 62) Source(58, 43) + SourceIndex(0) +11>Emitted(105, 63) Source(58, 43) + SourceIndex(0) +12>Emitted(105, 65) Source(58, 43) + SourceIndex(0) +13>Emitted(105, 67) Source(58, 6) + SourceIndex(0) +14>Emitted(105, 88) Source(58, 28) + SourceIndex(0) +--- +>>> var _8 = __read(multiRobots_2.result.value, 1), _9 = _8[0], nameB = _9 === void 0 ? "noName" : _9; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [nameB = "noName"] +4 > +5 > nameB = "noName" +6 > +7 > nameB = "noName" +1->Emitted(106, 9) Source(58, 10) + SourceIndex(0) +2 >Emitted(106, 13) Source(58, 10) + SourceIndex(0) +3 >Emitted(106, 55) Source(58, 28) + SourceIndex(0) +4 >Emitted(106, 57) Source(58, 11) + SourceIndex(0) +5 >Emitted(106, 67) Source(58, 27) + SourceIndex(0) +6 >Emitted(106, 69) Source(58, 11) + SourceIndex(0) +7 >Emitted(106, 106) Source(58, 27) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(51, 5) Source(59, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(59, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(59, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(59, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(59, 17) + SourceIndex(0) -6 >Emitted(51, 22) Source(59, 22) + SourceIndex(0) -7 >Emitted(51, 23) Source(59, 23) + SourceIndex(0) -8 >Emitted(51, 24) Source(59, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(107, 9) Source(59, 5) + SourceIndex(0) +2 >Emitted(107, 16) Source(59, 12) + SourceIndex(0) +3 >Emitted(107, 17) Source(59, 13) + SourceIndex(0) +4 >Emitted(107, 20) Source(59, 16) + SourceIndex(0) +5 >Emitted(107, 21) Source(59, 17) + SourceIndex(0) +6 >Emitted(107, 26) Source(59, 22) + SourceIndex(0) +7 >Emitted(107, 27) Source(59, 23) + SourceIndex(0) +8 >Emitted(107, 28) Source(59, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(52, 2) Source(60, 2) + SourceIndex(0) ---- ->>>for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^-> -1-> - > -2 >for -3 > -4 > (let [nameB = "noName"] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(53, 1) Source(61, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(61, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(61, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(61, 32) + SourceIndex(0) -5 >Emitted(53, 17) Source(61, 48) + SourceIndex(0) -6 >Emitted(53, 19) Source(61, 32) + SourceIndex(0) -7 >Emitted(53, 25) Source(61, 32) + SourceIndex(0) -8 >Emitted(53, 39) Source(61, 46) + SourceIndex(0) -9 >Emitted(53, 41) Source(61, 48) + SourceIndex(0) -10>Emitted(53, 43) Source(61, 32) + SourceIndex(0) -11>Emitted(53, 59) Source(61, 48) + SourceIndex(0) -12>Emitted(53, 61) Source(61, 32) + SourceIndex(0) -13>Emitted(53, 66) Source(61, 48) + SourceIndex(0) ---- ->>> var _18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > nameB = "noName" -4 > -5 > nameB = "noName" -1->Emitted(54, 5) Source(61, 11) + SourceIndex(0) -2 >Emitted(54, 9) Source(61, 11) + SourceIndex(0) -3 >Emitted(54, 26) Source(61, 27) + SourceIndex(0) -4 >Emitted(54, 28) Source(61, 11) + SourceIndex(0) -5 >Emitted(54, 67) Source(61, 27) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of getMultiRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(55, 5) Source(62, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(62, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(62, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(62, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(62, 17) + SourceIndex(0) -6 >Emitted(55, 22) Source(62, 22) + SourceIndex(0) -7 >Emitted(55, 23) Source(62, 23) + SourceIndex(0) -8 >Emitted(55, 24) Source(62, 24) + SourceIndex(0) +1 >Emitted(108, 6) Source(60, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(56, 2) Source(63, 2) + SourceIndex(0) ---- ->>>for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^ -1-> - > -2 >for -3 > -4 > (let [nameB = "noName"] of -5 > [multiRobotA, multiRobotB] -6 > -7 > [ -8 > multiRobotA -9 > , -10> multiRobotB -11> ] -12> -13> [multiRobotA, multiRobotB] -14> -15> [multiRobotA, multiRobotB] -1->Emitted(57, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(64, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(64, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(64, 32) + SourceIndex(0) -5 >Emitted(57, 17) Source(64, 58) + SourceIndex(0) -6 >Emitted(57, 19) Source(64, 32) + SourceIndex(0) -7 >Emitted(57, 26) Source(64, 33) + SourceIndex(0) -8 >Emitted(57, 37) Source(64, 44) + SourceIndex(0) -9 >Emitted(57, 39) Source(64, 46) + SourceIndex(0) -10>Emitted(57, 50) Source(64, 57) + SourceIndex(0) -11>Emitted(57, 51) Source(64, 58) + SourceIndex(0) -12>Emitted(57, 53) Source(64, 32) + SourceIndex(0) -13>Emitted(57, 69) Source(64, 58) + SourceIndex(0) -14>Emitted(57, 71) Source(64, 32) + SourceIndex(0) -15>Emitted(57, 76) Source(64, 58) + SourceIndex(0) ---- ->>> var _21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > -3 > nameB = "noName" -4 > -5 > nameB = "noName" -1 >Emitted(58, 5) Source(64, 11) + SourceIndex(0) -2 >Emitted(58, 9) Source(64, 11) + SourceIndex(0) -3 >Emitted(58, 26) Source(64, 27) + SourceIndex(0) -4 >Emitted(58, 28) Source(64, 11) + SourceIndex(0) -5 >Emitted(58, 67) Source(64, 27) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of [multiRobotA, multiRobotB]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(59, 5) Source(65, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(65, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(65, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(65, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(65, 17) + SourceIndex(0) -6 >Emitted(59, 22) Source(65, 22) + SourceIndex(0) -7 >Emitted(59, 23) Source(65, 23) + SourceIndex(0) -8 >Emitted(59, 24) Source(65, 24) + SourceIndex(0) ---- +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(60, 2) Source(66, 2) + SourceIndex(0) ---- ->>>for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -2 >for -3 > -4 > (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(61, 1) Source(68, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(68, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(68, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(68, 67) + SourceIndex(0) -5 >Emitted(61, 17) Source(68, 73) + SourceIndex(0) -6 >Emitted(61, 19) Source(68, 67) + SourceIndex(0) -7 >Emitted(61, 36) Source(68, 73) + SourceIndex(0) -8 >Emitted(61, 38) Source(68, 67) + SourceIndex(0) -9 >Emitted(61, 59) Source(68, 73) + SourceIndex(0) -10>Emitted(61, 61) Source(68, 67) + SourceIndex(0) -11>Emitted(61, 66) Source(68, 73) + SourceIndex(0) ---- ->>> var _23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] -4 > -5 > numberA2 = -1 -6 > -7 > numberA2 = -1 -8 > , -9 > nameA2 = "noName" -10> -11> nameA2 = "noName" -12> , -13> skillA2 = "skill" -14> -15> skillA2 = "skill" -1->Emitted(62, 5) Source(68, 10) + SourceIndex(0) -2 >Emitted(62, 9) Source(68, 10) + SourceIndex(0) -3 >Emitted(62, 28) Source(68, 63) + SourceIndex(0) -4 >Emitted(62, 30) Source(68, 11) + SourceIndex(0) -5 >Emitted(62, 42) Source(68, 24) + SourceIndex(0) -6 >Emitted(62, 44) Source(68, 11) + SourceIndex(0) -7 >Emitted(62, 80) Source(68, 24) + SourceIndex(0) -8 >Emitted(62, 82) Source(68, 26) + SourceIndex(0) -9 >Emitted(62, 94) Source(68, 43) + SourceIndex(0) -10>Emitted(62, 96) Source(68, 26) + SourceIndex(0) -11>Emitted(62, 136) Source(68, 43) + SourceIndex(0) -12>Emitted(62, 138) Source(68, 45) + SourceIndex(0) -13>Emitted(62, 150) Source(68, 62) + SourceIndex(0) -14>Emitted(62, 152) Source(68, 45) + SourceIndex(0) -15>Emitted(62, 192) Source(68, 62) + SourceIndex(0) ---- ->>> console.log(nameA2); +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { 1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ -1 >] of robots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(63, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(63, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(63, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(63, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(63, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(63, 23) Source(69, 23) + SourceIndex(0) -7 >Emitted(63, 24) Source(69, 24) + SourceIndex(0) -8 >Emitted(63, 25) Source(69, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > (let [nameB = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [nameB = "noName"] +1 >Emitted(115, 5) Source(61, 1) + SourceIndex(0) +2 >Emitted(115, 8) Source(61, 4) + SourceIndex(0) +3 >Emitted(115, 9) Source(61, 5) + SourceIndex(0) +4 >Emitted(115, 10) Source(61, 32) + SourceIndex(0) +5 >Emitted(115, 14) Source(61, 32) + SourceIndex(0) +6 >Emitted(115, 27) Source(61, 32) + SourceIndex(0) +7 >Emitted(115, 29) Source(61, 32) + SourceIndex(0) +8 >Emitted(115, 39) Source(61, 32) + SourceIndex(0) +9 >Emitted(115, 48) Source(61, 32) + SourceIndex(0) +10>Emitted(115, 62) Source(61, 46) + SourceIndex(0) +11>Emitted(115, 64) Source(61, 48) + SourceIndex(0) +12>Emitted(115, 65) Source(61, 48) + SourceIndex(0) +13>Emitted(115, 67) Source(61, 48) + SourceIndex(0) +14>Emitted(115, 69) Source(61, 6) + SourceIndex(0) +15>Emitted(115, 87) Source(61, 28) + SourceIndex(0) +--- +>>> var _10 = __read(iterator_4.result.value, 1), _11 = _10[0], nameB = _11 === void 0 ? "noName" : _11; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [nameB = "noName"] +4 > +5 > nameB = "noName" +6 > +7 > nameB = "noName" +1->Emitted(116, 9) Source(61, 10) + SourceIndex(0) +2 >Emitted(116, 13) Source(61, 10) + SourceIndex(0) +3 >Emitted(116, 53) Source(61, 28) + SourceIndex(0) +4 >Emitted(116, 55) Source(61, 11) + SourceIndex(0) +5 >Emitted(116, 67) Source(61, 27) + SourceIndex(0) +6 >Emitted(116, 69) Source(61, 11) + SourceIndex(0) +7 >Emitted(116, 108) Source(61, 27) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of getMultiRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(117, 9) Source(62, 5) + SourceIndex(0) +2 >Emitted(117, 16) Source(62, 12) + SourceIndex(0) +3 >Emitted(117, 17) Source(62, 13) + SourceIndex(0) +4 >Emitted(117, 20) Source(62, 16) + SourceIndex(0) +5 >Emitted(117, 21) Source(62, 17) + SourceIndex(0) +6 >Emitted(117, 26) Source(62, 22) + SourceIndex(0) +7 >Emitted(117, 27) Source(62, 23) + SourceIndex(0) +8 >Emitted(117, 28) Source(62, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(64, 2) Source(70, 2) + SourceIndex(0) +1 >Emitted(118, 6) Source(63, 2) + SourceIndex(0) --- ->>>for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) { -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _12 = 0, _13 = [multiRobotA, multiRobotB]; _12 < _13.length; _12++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +7 > ^^^^^^^ +8 > ^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^ +16> ^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > -4 > (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of -5 > getRobots() +4 > (let [nameB = "noName"] of +5 > [multiRobotA, multiRobotB] 6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(65, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(65, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(65, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(65, 6) Source(71, 67) + SourceIndex(0) -5 >Emitted(65, 17) Source(71, 78) + SourceIndex(0) -6 >Emitted(65, 19) Source(71, 67) + SourceIndex(0) -7 >Emitted(65, 25) Source(71, 67) + SourceIndex(0) -8 >Emitted(65, 34) Source(71, 76) + SourceIndex(0) -9 >Emitted(65, 36) Source(71, 78) + SourceIndex(0) -10>Emitted(65, 38) Source(71, 67) + SourceIndex(0) -11>Emitted(65, 54) Source(71, 78) + SourceIndex(0) -12>Emitted(65, 56) Source(71, 67) + SourceIndex(0) -13>Emitted(65, 61) Source(71, 78) + SourceIndex(0) ---- ->>> var _29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32; +7 > [ +8 > multiRobotA +9 > , +10> multiRobotB +11> ] +12> +13> [multiRobotA, multiRobotB] +14> +15> [multiRobotA, multiRobotB] +1 >Emitted(124, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(124, 4) Source(64, 4) + SourceIndex(0) +3 >Emitted(124, 5) Source(64, 5) + SourceIndex(0) +4 >Emitted(124, 6) Source(64, 32) + SourceIndex(0) +5 >Emitted(124, 17) Source(64, 58) + SourceIndex(0) +6 >Emitted(124, 19) Source(64, 32) + SourceIndex(0) +7 >Emitted(124, 26) Source(64, 33) + SourceIndex(0) +8 >Emitted(124, 37) Source(64, 44) + SourceIndex(0) +9 >Emitted(124, 39) Source(64, 46) + SourceIndex(0) +10>Emitted(124, 50) Source(64, 57) + SourceIndex(0) +11>Emitted(124, 51) Source(64, 58) + SourceIndex(0) +12>Emitted(124, 53) Source(64, 32) + SourceIndex(0) +13>Emitted(124, 69) Source(64, 58) + SourceIndex(0) +14>Emitted(124, 71) Source(64, 32) + SourceIndex(0) +15>Emitted(124, 76) Source(64, 58) + SourceIndex(0) +--- +>>> var _14 = __read(_13[_12], 1), _15 = _14[0], nameB = _15 === void 0 ? "noName" : _15; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > -3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] -4 > -5 > numberA2 = -1 -6 > -7 > numberA2 = -1 -8 > , -9 > nameA2 = "noName" -10> -11> nameA2 = "noName" -12> , -13> skillA2 = "skill" -14> -15> skillA2 = "skill" -1->Emitted(66, 5) Source(71, 10) + SourceIndex(0) -2 >Emitted(66, 9) Source(71, 10) + SourceIndex(0) -3 >Emitted(66, 23) Source(71, 63) + SourceIndex(0) -4 >Emitted(66, 25) Source(71, 11) + SourceIndex(0) -5 >Emitted(66, 37) Source(71, 24) + SourceIndex(0) -6 >Emitted(66, 39) Source(71, 11) + SourceIndex(0) -7 >Emitted(66, 75) Source(71, 24) + SourceIndex(0) -8 >Emitted(66, 77) Source(71, 26) + SourceIndex(0) -9 >Emitted(66, 89) Source(71, 43) + SourceIndex(0) -10>Emitted(66, 91) Source(71, 26) + SourceIndex(0) -11>Emitted(66, 131) Source(71, 43) + SourceIndex(0) -12>Emitted(66, 133) Source(71, 45) + SourceIndex(0) -13>Emitted(66, 145) Source(71, 62) + SourceIndex(0) -14>Emitted(66, 147) Source(71, 45) + SourceIndex(0) -15>Emitted(66, 187) Source(71, 62) + SourceIndex(0) +3 > [nameB = "noName"] +4 > +5 > nameB = "noName" +6 > +7 > nameB = "noName" +1->Emitted(125, 5) Source(64, 10) + SourceIndex(0) +2 >Emitted(125, 9) Source(64, 10) + SourceIndex(0) +3 >Emitted(125, 34) Source(64, 28) + SourceIndex(0) +4 >Emitted(125, 36) Source(64, 11) + SourceIndex(0) +5 >Emitted(125, 48) Source(64, 27) + SourceIndex(0) +6 >Emitted(125, 50) Source(64, 11) + SourceIndex(0) +7 >Emitted(125, 89) Source(64, 27) + SourceIndex(0) --- ->>> console.log(nameA2); +>>> console.log(nameB); 1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ -1 >] of getRobots()) { +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of [multiRobotA, multiRobotB]) { > 2 > console 3 > . 4 > log 5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(67, 5) Source(72, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(72, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(72, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(72, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(72, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(72, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(72, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(72, 25) + SourceIndex(0) +6 > nameB +7 > ) +8 > ; +1 >Emitted(126, 5) Source(65, 5) + SourceIndex(0) +2 >Emitted(126, 12) Source(65, 12) + SourceIndex(0) +3 >Emitted(126, 13) Source(65, 13) + SourceIndex(0) +4 >Emitted(126, 16) Source(65, 16) + SourceIndex(0) +5 >Emitted(126, 17) Source(65, 17) + SourceIndex(0) +6 >Emitted(126, 22) Source(65, 22) + SourceIndex(0) +7 >Emitted(126, 23) Source(65, 23) + SourceIndex(0) +8 >Emitted(126, 24) Source(65, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(68, 2) Source(73, 2) + SourceIndex(0) +1 >Emitted(127, 2) Source(66, 2) + SourceIndex(0) --- ->>>for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) { +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 > for +3 > +4 > (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +1->Emitted(129, 5) Source(68, 1) + SourceIndex(0) +2 >Emitted(129, 8) Source(68, 4) + SourceIndex(0) +3 >Emitted(129, 9) Source(68, 5) + SourceIndex(0) +4 >Emitted(129, 10) Source(68, 67) + SourceIndex(0) +5 >Emitted(129, 14) Source(68, 67) + SourceIndex(0) +6 >Emitted(129, 25) Source(68, 67) + SourceIndex(0) +7 >Emitted(129, 27) Source(68, 67) + SourceIndex(0) +8 >Emitted(129, 37) Source(68, 67) + SourceIndex(0) +9 >Emitted(129, 46) Source(68, 67) + SourceIndex(0) +10>Emitted(129, 52) Source(68, 73) + SourceIndex(0) +11>Emitted(129, 53) Source(68, 73) + SourceIndex(0) +12>Emitted(129, 55) Source(68, 73) + SourceIndex(0) +13>Emitted(129, 57) Source(68, 6) + SourceIndex(0) +14>Emitted(129, 73) Source(68, 63) + SourceIndex(0) +--- +>>> var _16 = __read(robots_3.result.value, 3), _17 = _16[0], numberA2 = _17 === void 0 ? -1 : _17, _18 = _16[1], nameA2 = _18 === void 0 ? "noName" : _18, _19 = _16[2], skillA2 = _19 === void 0 ? "skill" : _19; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +4 > +5 > numberA2 = -1 +6 > +7 > numberA2 = -1 +8 > , +9 > nameA2 = "noName" +10> +11> nameA2 = "noName" +12> , +13> skillA2 = "skill" +14> +15> skillA2 = "skill" +1->Emitted(130, 9) Source(68, 10) + SourceIndex(0) +2 >Emitted(130, 13) Source(68, 10) + SourceIndex(0) +3 >Emitted(130, 51) Source(68, 63) + SourceIndex(0) +4 >Emitted(130, 53) Source(68, 11) + SourceIndex(0) +5 >Emitted(130, 65) Source(68, 24) + SourceIndex(0) +6 >Emitted(130, 67) Source(68, 11) + SourceIndex(0) +7 >Emitted(130, 103) Source(68, 24) + SourceIndex(0) +8 >Emitted(130, 105) Source(68, 26) + SourceIndex(0) +9 >Emitted(130, 117) Source(68, 43) + SourceIndex(0) +10>Emitted(130, 119) Source(68, 26) + SourceIndex(0) +11>Emitted(130, 159) Source(68, 43) + SourceIndex(0) +12>Emitted(130, 161) Source(68, 45) + SourceIndex(0) +13>Emitted(130, 173) Source(68, 62) + SourceIndex(0) +14>Emitted(130, 175) Source(68, 45) + SourceIndex(0) +15>Emitted(130, 215) Source(68, 62) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ +1 >] of robots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(131, 9) Source(69, 5) + SourceIndex(0) +2 >Emitted(131, 16) Source(69, 12) + SourceIndex(0) +3 >Emitted(131, 17) Source(69, 13) + SourceIndex(0) +4 >Emitted(131, 20) Source(69, 16) + SourceIndex(0) +5 >Emitted(131, 21) Source(69, 17) + SourceIndex(0) +6 >Emitted(131, 27) Source(69, 23) + SourceIndex(0) +7 >Emitted(131, 28) Source(69, 24) + SourceIndex(0) +8 >Emitted(131, 29) Source(69, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(132, 6) Source(70, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +1 >Emitted(139, 5) Source(71, 1) + SourceIndex(0) +2 >Emitted(139, 8) Source(71, 4) + SourceIndex(0) +3 >Emitted(139, 9) Source(71, 5) + SourceIndex(0) +4 >Emitted(139, 10) Source(71, 67) + SourceIndex(0) +5 >Emitted(139, 14) Source(71, 67) + SourceIndex(0) +6 >Emitted(139, 27) Source(71, 67) + SourceIndex(0) +7 >Emitted(139, 29) Source(71, 67) + SourceIndex(0) +8 >Emitted(139, 39) Source(71, 67) + SourceIndex(0) +9 >Emitted(139, 48) Source(71, 67) + SourceIndex(0) +10>Emitted(139, 57) Source(71, 76) + SourceIndex(0) +11>Emitted(139, 59) Source(71, 78) + SourceIndex(0) +12>Emitted(139, 60) Source(71, 78) + SourceIndex(0) +13>Emitted(139, 62) Source(71, 78) + SourceIndex(0) +14>Emitted(139, 64) Source(71, 6) + SourceIndex(0) +15>Emitted(139, 82) Source(71, 63) + SourceIndex(0) +--- +>>> var _20 = __read(iterator_5.result.value, 3), _21 = _20[0], numberA2 = _21 === void 0 ? -1 : _21, _22 = _20[1], nameA2 = _22 === void 0 ? "noName" : _22, _23 = _20[2], skillA2 = _23 === void 0 ? "skill" : _23; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> +2 > +3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +4 > +5 > numberA2 = -1 +6 > +7 > numberA2 = -1 +8 > , +9 > nameA2 = "noName" +10> +11> nameA2 = "noName" +12> , +13> skillA2 = "skill" +14> +15> skillA2 = "skill" +1->Emitted(140, 9) Source(71, 10) + SourceIndex(0) +2 >Emitted(140, 13) Source(71, 10) + SourceIndex(0) +3 >Emitted(140, 53) Source(71, 63) + SourceIndex(0) +4 >Emitted(140, 55) Source(71, 11) + SourceIndex(0) +5 >Emitted(140, 67) Source(71, 24) + SourceIndex(0) +6 >Emitted(140, 69) Source(71, 11) + SourceIndex(0) +7 >Emitted(140, 105) Source(71, 24) + SourceIndex(0) +8 >Emitted(140, 107) Source(71, 26) + SourceIndex(0) +9 >Emitted(140, 119) Source(71, 43) + SourceIndex(0) +10>Emitted(140, 121) Source(71, 26) + SourceIndex(0) +11>Emitted(140, 161) Source(71, 43) + SourceIndex(0) +12>Emitted(140, 163) Source(71, 45) + SourceIndex(0) +13>Emitted(140, 175) Source(71, 62) + SourceIndex(0) +14>Emitted(140, 177) Source(71, 45) + SourceIndex(0) +15>Emitted(140, 217) Source(71, 62) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ +1 >] of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(141, 9) Source(72, 5) + SourceIndex(0) +2 >Emitted(141, 16) Source(72, 12) + SourceIndex(0) +3 >Emitted(141, 17) Source(72, 13) + SourceIndex(0) +4 >Emitted(141, 20) Source(72, 16) + SourceIndex(0) +5 >Emitted(141, 21) Source(72, 17) + SourceIndex(0) +6 >Emitted(141, 27) Source(72, 23) + SourceIndex(0) +7 >Emitted(141, 28) Source(72, 24) + SourceIndex(0) +8 >Emitted(141, 29) Source(72, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(142, 6) Source(73, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +>>>} +>>>for (var _24 = 0, _25 = [robotA, robotB]; _24 < _25.length; _24++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1856,8 +2045,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1873,68 +2062,68 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(69, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(74, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(74, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(74, 67) + SourceIndex(0) -5 >Emitted(69, 17) Source(74, 83) + SourceIndex(0) -6 >Emitted(69, 19) Source(74, 67) + SourceIndex(0) -7 >Emitted(69, 26) Source(74, 68) + SourceIndex(0) -8 >Emitted(69, 32) Source(74, 74) + SourceIndex(0) -9 >Emitted(69, 34) Source(74, 76) + SourceIndex(0) -10>Emitted(69, 40) Source(74, 82) + SourceIndex(0) -11>Emitted(69, 41) Source(74, 83) + SourceIndex(0) -12>Emitted(69, 43) Source(74, 67) + SourceIndex(0) -13>Emitted(69, 59) Source(74, 83) + SourceIndex(0) -14>Emitted(69, 61) Source(74, 67) + SourceIndex(0) -15>Emitted(69, 66) Source(74, 83) + SourceIndex(0) ---- ->>> var _35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38; +1 >Emitted(148, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(148, 4) Source(74, 4) + SourceIndex(0) +3 >Emitted(148, 5) Source(74, 5) + SourceIndex(0) +4 >Emitted(148, 6) Source(74, 67) + SourceIndex(0) +5 >Emitted(148, 17) Source(74, 83) + SourceIndex(0) +6 >Emitted(148, 19) Source(74, 67) + SourceIndex(0) +7 >Emitted(148, 26) Source(74, 68) + SourceIndex(0) +8 >Emitted(148, 32) Source(74, 74) + SourceIndex(0) +9 >Emitted(148, 34) Source(74, 76) + SourceIndex(0) +10>Emitted(148, 40) Source(74, 82) + SourceIndex(0) +11>Emitted(148, 41) Source(74, 83) + SourceIndex(0) +12>Emitted(148, 43) Source(74, 67) + SourceIndex(0) +13>Emitted(148, 59) Source(74, 83) + SourceIndex(0) +14>Emitted(148, 61) Source(74, 67) + SourceIndex(0) +15>Emitted(148, 66) Source(74, 83) + SourceIndex(0) +--- +>>> var _26 = __read(_25[_24], 3), _27 = _26[0], numberA2 = _27 === void 0 ? -1 : _27, _28 = _26[1], nameA2 = _28 === void 0 ? "noName" : _28, _29 = _26[2], skillA2 = _29 === void 0 ? "skill" : _29; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] -4 > -5 > numberA2 = -1 -6 > -7 > numberA2 = -1 -8 > , -9 > nameA2 = "noName" -10> -11> nameA2 = "noName" -12> , -13> skillA2 = "skill" -14> -15> skillA2 = "skill" -1->Emitted(70, 5) Source(74, 10) + SourceIndex(0) -2 >Emitted(70, 9) Source(74, 10) + SourceIndex(0) -3 >Emitted(70, 23) Source(74, 63) + SourceIndex(0) -4 >Emitted(70, 25) Source(74, 11) + SourceIndex(0) -5 >Emitted(70, 37) Source(74, 24) + SourceIndex(0) -6 >Emitted(70, 39) Source(74, 11) + SourceIndex(0) -7 >Emitted(70, 75) Source(74, 24) + SourceIndex(0) -8 >Emitted(70, 77) Source(74, 26) + SourceIndex(0) -9 >Emitted(70, 89) Source(74, 43) + SourceIndex(0) -10>Emitted(70, 91) Source(74, 26) + SourceIndex(0) -11>Emitted(70, 131) Source(74, 43) + SourceIndex(0) -12>Emitted(70, 133) Source(74, 45) + SourceIndex(0) -13>Emitted(70, 145) Source(74, 62) + SourceIndex(0) -14>Emitted(70, 147) Source(74, 45) + SourceIndex(0) -15>Emitted(70, 187) Source(74, 62) + SourceIndex(0) +4 > +5 > numberA2 = -1 +6 > +7 > numberA2 = -1 +8 > , +9 > nameA2 = "noName" +10> +11> nameA2 = "noName" +12> , +13> skillA2 = "skill" +14> +15> skillA2 = "skill" +1->Emitted(149, 5) Source(74, 10) + SourceIndex(0) +2 >Emitted(149, 9) Source(74, 10) + SourceIndex(0) +3 >Emitted(149, 34) Source(74, 63) + SourceIndex(0) +4 >Emitted(149, 36) Source(74, 11) + SourceIndex(0) +5 >Emitted(149, 48) Source(74, 24) + SourceIndex(0) +6 >Emitted(149, 50) Source(74, 11) + SourceIndex(0) +7 >Emitted(149, 86) Source(74, 24) + SourceIndex(0) +8 >Emitted(149, 88) Source(74, 26) + SourceIndex(0) +9 >Emitted(149, 100) Source(74, 43) + SourceIndex(0) +10>Emitted(149, 102) Source(74, 26) + SourceIndex(0) +11>Emitted(149, 142) Source(74, 43) + SourceIndex(0) +12>Emitted(149, 144) Source(74, 45) + SourceIndex(0) +13>Emitted(149, 156) Source(74, 62) + SourceIndex(0) +14>Emitted(149, 158) Source(74, 45) + SourceIndex(0) +15>Emitted(149, 198) Source(74, 62) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1954,318 +2143,349 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameA2 7 > ) 8 > ; -1 >Emitted(71, 5) Source(75, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(75, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(75, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(75, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(75, 17) + SourceIndex(0) -6 >Emitted(71, 23) Source(75, 23) + SourceIndex(0) -7 >Emitted(71, 24) Source(75, 24) + SourceIndex(0) -8 >Emitted(71, 25) Source(75, 25) + SourceIndex(0) +1 >Emitted(150, 5) Source(75, 5) + SourceIndex(0) +2 >Emitted(150, 12) Source(75, 12) + SourceIndex(0) +3 >Emitted(150, 13) Source(75, 13) + SourceIndex(0) +4 >Emitted(150, 16) Source(75, 16) + SourceIndex(0) +5 >Emitted(150, 17) Source(75, 17) + SourceIndex(0) +6 >Emitted(150, 23) Source(75, 23) + SourceIndex(0) +7 >Emitted(150, 24) Source(75, 24) + SourceIndex(0) +8 >Emitted(150, 25) Source(75, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(72, 2) Source(76, 2) + SourceIndex(0) +1 >Emitted(151, 2) Source(76, 2) + SourceIndex(0) --- ->>>for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(73, 1) Source(77, 1) + SourceIndex(0) -2 >Emitted(73, 4) Source(77, 4) + SourceIndex(0) -3 >Emitted(73, 5) Source(77, 5) + SourceIndex(0) -4 >Emitted(73, 6) Source(80, 30) + SourceIndex(0) -5 >Emitted(73, 17) Source(80, 41) + SourceIndex(0) -6 >Emitted(73, 19) Source(80, 30) + SourceIndex(0) -7 >Emitted(73, 46) Source(80, 41) + SourceIndex(0) -8 >Emitted(73, 48) Source(80, 30) + SourceIndex(0) -9 >Emitted(73, 74) Source(80, 41) + SourceIndex(0) -10>Emitted(73, 76) Source(80, 30) + SourceIndex(0) -11>Emitted(73, 81) Source(80, 41) + SourceIndex(0) ---- ->>> var _40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [nameMA = "noName", [ +2 > for +3 > +4 > (let [nameMA = "noName", [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] -4 > -5 > nameMA = "noName" -6 > -7 > nameMA = "noName" -8 > , -9 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -10> -11> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -12> -13> primarySkillA = "primary" -14> -15> primarySkillA = "primary" -16> , - > -17> secondarySkillA = "secondary" -18> -19> secondarySkillA = "secondary" -1->Emitted(74, 5) Source(77, 10) + SourceIndex(0) -2 >Emitted(74, 9) Source(77, 10) + SourceIndex(0) -3 >Emitted(74, 33) Source(80, 26) + SourceIndex(0) -4 >Emitted(74, 35) Source(77, 11) + SourceIndex(0) -5 >Emitted(74, 47) Source(77, 28) + SourceIndex(0) -6 >Emitted(74, 49) Source(77, 11) + SourceIndex(0) -7 >Emitted(74, 89) Source(77, 28) + SourceIndex(0) -8 >Emitted(74, 91) Source(77, 30) + SourceIndex(0) -9 >Emitted(74, 103) Source(80, 25) + SourceIndex(0) -10>Emitted(74, 105) Source(77, 30) + SourceIndex(0) -11>Emitted(74, 154) Source(80, 25) + SourceIndex(0) -12>Emitted(74, 156) Source(78, 5) + SourceIndex(0) -13>Emitted(74, 168) Source(78, 30) + SourceIndex(0) -14>Emitted(74, 170) Source(78, 5) + SourceIndex(0) -15>Emitted(74, 218) Source(78, 30) + SourceIndex(0) -16>Emitted(74, 220) Source(79, 5) + SourceIndex(0) -17>Emitted(74, 232) Source(79, 34) + SourceIndex(0) -18>Emitted(74, 234) Source(79, 5) + SourceIndex(0) -19>Emitted(74, 286) Source(79, 34) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1->Emitted(153, 5) Source(77, 1) + SourceIndex(0) +2 >Emitted(153, 8) Source(77, 4) + SourceIndex(0) +3 >Emitted(153, 9) Source(77, 5) + SourceIndex(0) +4 >Emitted(153, 10) Source(80, 30) + SourceIndex(0) +5 >Emitted(153, 14) Source(80, 30) + SourceIndex(0) +6 >Emitted(153, 30) Source(80, 30) + SourceIndex(0) +7 >Emitted(153, 32) Source(80, 30) + SourceIndex(0) +8 >Emitted(153, 42) Source(80, 30) + SourceIndex(0) +9 >Emitted(153, 51) Source(80, 30) + SourceIndex(0) +10>Emitted(153, 62) Source(80, 41) + SourceIndex(0) +11>Emitted(153, 63) Source(80, 41) + SourceIndex(0) +12>Emitted(153, 65) Source(80, 41) + SourceIndex(0) +13>Emitted(153, 67) Source(77, 6) + SourceIndex(0) +14>Emitted(153, 88) Source(80, 26) + SourceIndex(0) +--- +>>> var _30 = __read(multiRobots_3.result.value, 2), _31 = _30[0], nameMA = _31 === void 0 ? "noName" : _31, _32 = _30[1], _33 = __read(_32 === void 0 ? ["skill1", "skill2"] : _32, 2), _34 = _33[0], primarySkillA = _34 === void 0 ? "primary" : _34, _35 = _33[1], secondarySkillA = _35 === void 0 ? "secondary" : _35; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +4 > +5 > nameMA = "noName" +6 > +7 > nameMA = "noName" +8 > , +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +10> +11> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +12> +13> primarySkillA = "primary" +14> +15> primarySkillA = "primary" +16> , + > +17> secondarySkillA = "secondary" +18> +19> secondarySkillA = "secondary" +1->Emitted(154, 9) Source(77, 10) + SourceIndex(0) +2 >Emitted(154, 13) Source(77, 10) + SourceIndex(0) +3 >Emitted(154, 56) Source(80, 26) + SourceIndex(0) +4 >Emitted(154, 58) Source(77, 11) + SourceIndex(0) +5 >Emitted(154, 70) Source(77, 28) + SourceIndex(0) +6 >Emitted(154, 72) Source(77, 11) + SourceIndex(0) +7 >Emitted(154, 112) Source(77, 28) + SourceIndex(0) +8 >Emitted(154, 114) Source(77, 30) + SourceIndex(0) +9 >Emitted(154, 126) Source(80, 25) + SourceIndex(0) +10>Emitted(154, 128) Source(77, 30) + SourceIndex(0) +11>Emitted(154, 188) Source(80, 25) + SourceIndex(0) +12>Emitted(154, 190) Source(78, 5) + SourceIndex(0) +13>Emitted(154, 202) Source(78, 30) + SourceIndex(0) +14>Emitted(154, 204) Source(78, 5) + SourceIndex(0) +15>Emitted(154, 252) Source(78, 30) + SourceIndex(0) +16>Emitted(154, 254) Source(79, 5) + SourceIndex(0) +17>Emitted(154, 266) Source(79, 34) + SourceIndex(0) +18>Emitted(154, 268) Source(79, 5) + SourceIndex(0) +19>Emitted(154, 320) Source(79, 34) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(75, 5) Source(81, 5) + SourceIndex(0) -2 >Emitted(75, 12) Source(81, 12) + SourceIndex(0) -3 >Emitted(75, 13) Source(81, 13) + SourceIndex(0) -4 >Emitted(75, 16) Source(81, 16) + SourceIndex(0) -5 >Emitted(75, 17) Source(81, 17) + SourceIndex(0) -6 >Emitted(75, 23) Source(81, 23) + SourceIndex(0) -7 >Emitted(75, 24) Source(81, 24) + SourceIndex(0) -8 >Emitted(75, 25) Source(81, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(155, 9) Source(81, 5) + SourceIndex(0) +2 >Emitted(155, 16) Source(81, 12) + SourceIndex(0) +3 >Emitted(155, 17) Source(81, 13) + SourceIndex(0) +4 >Emitted(155, 20) Source(81, 16) + SourceIndex(0) +5 >Emitted(155, 21) Source(81, 17) + SourceIndex(0) +6 >Emitted(155, 27) Source(81, 23) + SourceIndex(0) +7 >Emitted(155, 28) Source(81, 24) + SourceIndex(0) +8 >Emitted(155, 29) Source(81, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(76, 2) Source(82, 2) + SourceIndex(0) +1 >Emitted(156, 6) Source(82, 2) + SourceIndex(0) --- ->>>for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(77, 1) Source(83, 1) + SourceIndex(0) -2 >Emitted(77, 4) Source(83, 4) + SourceIndex(0) -3 >Emitted(77, 5) Source(83, 5) + SourceIndex(0) -4 >Emitted(77, 6) Source(86, 30) + SourceIndex(0) -5 >Emitted(77, 17) Source(86, 46) + SourceIndex(0) -6 >Emitted(77, 19) Source(86, 30) + SourceIndex(0) -7 >Emitted(77, 25) Source(86, 30) + SourceIndex(0) -8 >Emitted(77, 39) Source(86, 44) + SourceIndex(0) -9 >Emitted(77, 41) Source(86, 46) + SourceIndex(0) -10>Emitted(77, 43) Source(86, 30) + SourceIndex(0) -11>Emitted(77, 59) Source(86, 46) + SourceIndex(0) -12>Emitted(77, 61) Source(86, 30) + SourceIndex(0) -13>Emitted(77, 66) Source(86, 46) + SourceIndex(0) ---- ->>> var _48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > [nameMA = "noName", [ +2 > for +3 > +4 > (let [nameMA = "noName", [ > primarySkillA = "primary", > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] -4 > -5 > nameMA = "noName" -6 > -7 > nameMA = "noName" -8 > , -9 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -10> -11> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -12> -13> primarySkillA = "primary" -14> -15> primarySkillA = "primary" -16> , - > -17> secondarySkillA = "secondary" -18> -19> secondarySkillA = "secondary" -1->Emitted(78, 5) Source(83, 10) + SourceIndex(0) -2 >Emitted(78, 9) Source(83, 10) + SourceIndex(0) -3 >Emitted(78, 23) Source(86, 26) + SourceIndex(0) -4 >Emitted(78, 25) Source(83, 11) + SourceIndex(0) -5 >Emitted(78, 37) Source(83, 28) + SourceIndex(0) -6 >Emitted(78, 39) Source(83, 11) + SourceIndex(0) -7 >Emitted(78, 79) Source(83, 28) + SourceIndex(0) -8 >Emitted(78, 81) Source(83, 30) + SourceIndex(0) -9 >Emitted(78, 93) Source(86, 25) + SourceIndex(0) -10>Emitted(78, 95) Source(83, 30) + SourceIndex(0) -11>Emitted(78, 144) Source(86, 25) + SourceIndex(0) -12>Emitted(78, 146) Source(84, 5) + SourceIndex(0) -13>Emitted(78, 158) Source(84, 30) + SourceIndex(0) -14>Emitted(78, 160) Source(84, 5) + SourceIndex(0) -15>Emitted(78, 208) Source(84, 30) + SourceIndex(0) -16>Emitted(78, 210) Source(85, 5) + SourceIndex(0) -17>Emitted(78, 222) Source(85, 34) + SourceIndex(0) -18>Emitted(78, 224) Source(85, 5) + SourceIndex(0) -19>Emitted(78, 276) Source(85, 34) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1 >Emitted(163, 5) Source(83, 1) + SourceIndex(0) +2 >Emitted(163, 8) Source(83, 4) + SourceIndex(0) +3 >Emitted(163, 9) Source(83, 5) + SourceIndex(0) +4 >Emitted(163, 10) Source(86, 30) + SourceIndex(0) +5 >Emitted(163, 14) Source(86, 30) + SourceIndex(0) +6 >Emitted(163, 27) Source(86, 30) + SourceIndex(0) +7 >Emitted(163, 29) Source(86, 30) + SourceIndex(0) +8 >Emitted(163, 39) Source(86, 30) + SourceIndex(0) +9 >Emitted(163, 48) Source(86, 30) + SourceIndex(0) +10>Emitted(163, 62) Source(86, 44) + SourceIndex(0) +11>Emitted(163, 64) Source(86, 46) + SourceIndex(0) +12>Emitted(163, 65) Source(86, 46) + SourceIndex(0) +13>Emitted(163, 67) Source(86, 46) + SourceIndex(0) +14>Emitted(163, 69) Source(83, 6) + SourceIndex(0) +15>Emitted(163, 87) Source(86, 26) + SourceIndex(0) +--- +>>> var _36 = __read(iterator_6.result.value, 2), _37 = _36[0], nameMA = _37 === void 0 ? "noName" : _37, _38 = _36[1], _39 = __read(_38 === void 0 ? ["skill1", "skill2"] : _38, 2), _40 = _39[0], primarySkillA = _40 === void 0 ? "primary" : _40, _41 = _39[1], secondarySkillA = _41 === void 0 ? "secondary" : _41; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +4 > +5 > nameMA = "noName" +6 > +7 > nameMA = "noName" +8 > , +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +10> +11> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +12> +13> primarySkillA = "primary" +14> +15> primarySkillA = "primary" +16> , + > +17> secondarySkillA = "secondary" +18> +19> secondarySkillA = "secondary" +1->Emitted(164, 9) Source(83, 10) + SourceIndex(0) +2 >Emitted(164, 13) Source(83, 10) + SourceIndex(0) +3 >Emitted(164, 53) Source(86, 26) + SourceIndex(0) +4 >Emitted(164, 55) Source(83, 11) + SourceIndex(0) +5 >Emitted(164, 67) Source(83, 28) + SourceIndex(0) +6 >Emitted(164, 69) Source(83, 11) + SourceIndex(0) +7 >Emitted(164, 109) Source(83, 28) + SourceIndex(0) +8 >Emitted(164, 111) Source(83, 30) + SourceIndex(0) +9 >Emitted(164, 123) Source(86, 25) + SourceIndex(0) +10>Emitted(164, 125) Source(83, 30) + SourceIndex(0) +11>Emitted(164, 185) Source(86, 25) + SourceIndex(0) +12>Emitted(164, 187) Source(84, 5) + SourceIndex(0) +13>Emitted(164, 199) Source(84, 30) + SourceIndex(0) +14>Emitted(164, 201) Source(84, 5) + SourceIndex(0) +15>Emitted(164, 249) Source(84, 30) + SourceIndex(0) +16>Emitted(164, 251) Source(85, 5) + SourceIndex(0) +17>Emitted(164, 263) Source(85, 34) + SourceIndex(0) +18>Emitted(164, 265) Source(85, 5) + SourceIndex(0) +19>Emitted(164, 317) Source(85, 34) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(79, 5) Source(87, 5) + SourceIndex(0) -2 >Emitted(79, 12) Source(87, 12) + SourceIndex(0) -3 >Emitted(79, 13) Source(87, 13) + SourceIndex(0) -4 >Emitted(79, 16) Source(87, 16) + SourceIndex(0) -5 >Emitted(79, 17) Source(87, 17) + SourceIndex(0) -6 >Emitted(79, 23) Source(87, 23) + SourceIndex(0) -7 >Emitted(79, 24) Source(87, 24) + SourceIndex(0) -8 >Emitted(79, 25) Source(87, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(165, 9) Source(87, 5) + SourceIndex(0) +2 >Emitted(165, 16) Source(87, 12) + SourceIndex(0) +3 >Emitted(165, 17) Source(87, 13) + SourceIndex(0) +4 >Emitted(165, 20) Source(87, 16) + SourceIndex(0) +5 >Emitted(165, 21) Source(87, 17) + SourceIndex(0) +6 >Emitted(165, 27) Source(87, 23) + SourceIndex(0) +7 >Emitted(165, 28) Source(87, 24) + SourceIndex(0) +8 >Emitted(165, 29) Source(87, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(80, 2) Source(88, 2) + SourceIndex(0) +1 >Emitted(166, 6) Source(88, 2) + SourceIndex(0) --- ->>>for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) { -1-> +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +>>>} +>>>for (var _42 = 0, _43 = [multiRobotA, multiRobotB]; _42 < _43.length; _42++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2280,8 +2500,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2300,90 +2520,90 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(81, 1) Source(89, 1) + SourceIndex(0) -2 >Emitted(81, 4) Source(89, 4) + SourceIndex(0) -3 >Emitted(81, 5) Source(89, 5) + SourceIndex(0) -4 >Emitted(81, 6) Source(92, 30) + SourceIndex(0) -5 >Emitted(81, 17) Source(92, 56) + SourceIndex(0) -6 >Emitted(81, 19) Source(92, 30) + SourceIndex(0) -7 >Emitted(81, 26) Source(92, 31) + SourceIndex(0) -8 >Emitted(81, 37) Source(92, 42) + SourceIndex(0) -9 >Emitted(81, 39) Source(92, 44) + SourceIndex(0) -10>Emitted(81, 50) Source(92, 55) + SourceIndex(0) -11>Emitted(81, 51) Source(92, 56) + SourceIndex(0) -12>Emitted(81, 53) Source(92, 30) + SourceIndex(0) -13>Emitted(81, 69) Source(92, 56) + SourceIndex(0) -14>Emitted(81, 71) Source(92, 30) + SourceIndex(0) -15>Emitted(81, 76) Source(92, 56) + SourceIndex(0) ---- ->>> var _56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61; +1 >Emitted(172, 1) Source(89, 1) + SourceIndex(0) +2 >Emitted(172, 4) Source(89, 4) + SourceIndex(0) +3 >Emitted(172, 5) Source(89, 5) + SourceIndex(0) +4 >Emitted(172, 6) Source(92, 30) + SourceIndex(0) +5 >Emitted(172, 17) Source(92, 56) + SourceIndex(0) +6 >Emitted(172, 19) Source(92, 30) + SourceIndex(0) +7 >Emitted(172, 26) Source(92, 31) + SourceIndex(0) +8 >Emitted(172, 37) Source(92, 42) + SourceIndex(0) +9 >Emitted(172, 39) Source(92, 44) + SourceIndex(0) +10>Emitted(172, 50) Source(92, 55) + SourceIndex(0) +11>Emitted(172, 51) Source(92, 56) + SourceIndex(0) +12>Emitted(172, 53) Source(92, 30) + SourceIndex(0) +13>Emitted(172, 69) Source(92, 56) + SourceIndex(0) +14>Emitted(172, 71) Source(92, 30) + SourceIndex(0) +15>Emitted(172, 76) Source(92, 56) + SourceIndex(0) +--- +>>> var _44 = __read(_43[_42], 2), _45 = _44[0], nameMA = _45 === void 0 ? "noName" : _45, _46 = _44[1], _47 = __read(_46 === void 0 ? ["skill1", "skill2"] : _46, 2), _48 = _47[0], primarySkillA = _48 === void 0 ? "primary" : _48, _49 = _47[1], secondarySkillA = _49 === void 0 ? "secondary" : _49; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [nameMA = "noName", [ > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["skill1", "skill2"]] -4 > -5 > nameMA = "noName" -6 > -7 > nameMA = "noName" -8 > , -9 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -10> -11> [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -12> -13> primarySkillA = "primary" -14> -15> primarySkillA = "primary" -16> , - > -17> secondarySkillA = "secondary" -18> -19> secondarySkillA = "secondary" -1->Emitted(82, 5) Source(89, 10) + SourceIndex(0) -2 >Emitted(82, 9) Source(89, 10) + SourceIndex(0) -3 >Emitted(82, 23) Source(92, 26) + SourceIndex(0) -4 >Emitted(82, 25) Source(89, 11) + SourceIndex(0) -5 >Emitted(82, 37) Source(89, 28) + SourceIndex(0) -6 >Emitted(82, 39) Source(89, 11) + SourceIndex(0) -7 >Emitted(82, 79) Source(89, 28) + SourceIndex(0) -8 >Emitted(82, 81) Source(89, 30) + SourceIndex(0) -9 >Emitted(82, 93) Source(92, 25) + SourceIndex(0) -10>Emitted(82, 95) Source(89, 30) + SourceIndex(0) -11>Emitted(82, 144) Source(92, 25) + SourceIndex(0) -12>Emitted(82, 146) Source(90, 5) + SourceIndex(0) -13>Emitted(82, 158) Source(90, 30) + SourceIndex(0) -14>Emitted(82, 160) Source(90, 5) + SourceIndex(0) -15>Emitted(82, 208) Source(90, 30) + SourceIndex(0) -16>Emitted(82, 210) Source(91, 5) + SourceIndex(0) -17>Emitted(82, 222) Source(91, 34) + SourceIndex(0) -18>Emitted(82, 224) Source(91, 5) + SourceIndex(0) -19>Emitted(82, 276) Source(91, 34) + SourceIndex(0) +4 > +5 > nameMA = "noName" +6 > +7 > nameMA = "noName" +8 > , +9 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +10> +11> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +12> +13> primarySkillA = "primary" +14> +15> primarySkillA = "primary" +16> , + > +17> secondarySkillA = "secondary" +18> +19> secondarySkillA = "secondary" +1->Emitted(173, 5) Source(89, 10) + SourceIndex(0) +2 >Emitted(173, 9) Source(89, 10) + SourceIndex(0) +3 >Emitted(173, 34) Source(92, 26) + SourceIndex(0) +4 >Emitted(173, 36) Source(89, 11) + SourceIndex(0) +5 >Emitted(173, 48) Source(89, 28) + SourceIndex(0) +6 >Emitted(173, 50) Source(89, 11) + SourceIndex(0) +7 >Emitted(173, 90) Source(89, 28) + SourceIndex(0) +8 >Emitted(173, 92) Source(89, 30) + SourceIndex(0) +9 >Emitted(173, 104) Source(92, 25) + SourceIndex(0) +10>Emitted(173, 106) Source(89, 30) + SourceIndex(0) +11>Emitted(173, 166) Source(92, 25) + SourceIndex(0) +12>Emitted(173, 168) Source(90, 5) + SourceIndex(0) +13>Emitted(173, 180) Source(90, 30) + SourceIndex(0) +14>Emitted(173, 182) Source(90, 5) + SourceIndex(0) +15>Emitted(173, 230) Source(90, 30) + SourceIndex(0) +16>Emitted(173, 232) Source(91, 5) + SourceIndex(0) +17>Emitted(173, 244) Source(91, 34) + SourceIndex(0) +18>Emitted(173, 246) Source(91, 5) + SourceIndex(0) +19>Emitted(173, 298) Source(91, 34) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2404,231 +2624,256 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameMA 7 > ) 8 > ; -1 >Emitted(83, 5) Source(93, 5) + SourceIndex(0) -2 >Emitted(83, 12) Source(93, 12) + SourceIndex(0) -3 >Emitted(83, 13) Source(93, 13) + SourceIndex(0) -4 >Emitted(83, 16) Source(93, 16) + SourceIndex(0) -5 >Emitted(83, 17) Source(93, 17) + SourceIndex(0) -6 >Emitted(83, 23) Source(93, 23) + SourceIndex(0) -7 >Emitted(83, 24) Source(93, 24) + SourceIndex(0) -8 >Emitted(83, 25) Source(93, 25) + SourceIndex(0) +1 >Emitted(174, 5) Source(93, 5) + SourceIndex(0) +2 >Emitted(174, 12) Source(93, 12) + SourceIndex(0) +3 >Emitted(174, 13) Source(93, 13) + SourceIndex(0) +4 >Emitted(174, 16) Source(93, 16) + SourceIndex(0) +5 >Emitted(174, 17) Source(93, 17) + SourceIndex(0) +6 >Emitted(174, 23) Source(93, 23) + SourceIndex(0) +7 >Emitted(174, 24) Source(93, 24) + SourceIndex(0) +8 >Emitted(174, 25) Source(93, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(84, 2) Source(94, 2) + SourceIndex(0) +1 >Emitted(175, 2) Source(94, 2) + SourceIndex(0) --- ->>>for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let [numberA3 = -1, ...robotAInfo] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(85, 1) Source(96, 1) + SourceIndex(0) -2 >Emitted(85, 4) Source(96, 4) + SourceIndex(0) -3 >Emitted(85, 5) Source(96, 5) + SourceIndex(0) -4 >Emitted(85, 6) Source(96, 44) + SourceIndex(0) -5 >Emitted(85, 17) Source(96, 50) + SourceIndex(0) -6 >Emitted(85, 19) Source(96, 44) + SourceIndex(0) -7 >Emitted(85, 36) Source(96, 50) + SourceIndex(0) -8 >Emitted(85, 38) Source(96, 44) + SourceIndex(0) -9 >Emitted(85, 59) Source(96, 50) + SourceIndex(0) -10>Emitted(85, 61) Source(96, 44) + SourceIndex(0) -11>Emitted(85, 66) Source(96, 50) + SourceIndex(0) ---- ->>> var _63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA3 = -1, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let [numberA3 = -1, ...robotAInfo] +1->Emitted(177, 5) Source(96, 1) + SourceIndex(0) +2 >Emitted(177, 8) Source(96, 4) + SourceIndex(0) +3 >Emitted(177, 9) Source(96, 5) + SourceIndex(0) +4 >Emitted(177, 10) Source(96, 44) + SourceIndex(0) +5 >Emitted(177, 14) Source(96, 44) + SourceIndex(0) +6 >Emitted(177, 25) Source(96, 44) + SourceIndex(0) +7 >Emitted(177, 27) Source(96, 44) + SourceIndex(0) +8 >Emitted(177, 37) Source(96, 44) + SourceIndex(0) +9 >Emitted(177, 46) Source(96, 44) + SourceIndex(0) +10>Emitted(177, 52) Source(96, 50) + SourceIndex(0) +11>Emitted(177, 53) Source(96, 50) + SourceIndex(0) +12>Emitted(177, 55) Source(96, 50) + SourceIndex(0) +13>Emitted(177, 57) Source(96, 6) + SourceIndex(0) +14>Emitted(177, 73) Source(96, 40) + SourceIndex(0) +--- +>>> var _50 = __read(robots_4.result.value), _51 = _50[0], numberA3 = _51 === void 0 ? -1 : _51, robotAInfo = _50.slice(1); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA3 = -1, ...robotAInfo] -4 > -5 > numberA3 = -1 -6 > -7 > numberA3 = -1 -8 > , -9 > ...robotAInfo -1->Emitted(86, 5) Source(96, 10) + SourceIndex(0) -2 >Emitted(86, 9) Source(96, 10) + SourceIndex(0) -3 >Emitted(86, 28) Source(96, 40) + SourceIndex(0) -4 >Emitted(86, 30) Source(96, 11) + SourceIndex(0) -5 >Emitted(86, 42) Source(96, 24) + SourceIndex(0) -6 >Emitted(86, 44) Source(96, 11) + SourceIndex(0) -7 >Emitted(86, 80) Source(96, 24) + SourceIndex(0) -8 >Emitted(86, 82) Source(96, 26) + SourceIndex(0) -9 >Emitted(86, 107) Source(96, 39) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA3 = -1, ...robotAInfo] +4 > +5 > numberA3 = -1 +6 > +7 > numberA3 = -1 +8 > , +9 > ...robotAInfo +1->Emitted(178, 9) Source(96, 10) + SourceIndex(0) +2 >Emitted(178, 13) Source(96, 10) + SourceIndex(0) +3 >Emitted(178, 48) Source(96, 40) + SourceIndex(0) +4 >Emitted(178, 50) Source(96, 11) + SourceIndex(0) +5 >Emitted(178, 62) Source(96, 24) + SourceIndex(0) +6 >Emitted(178, 64) Source(96, 11) + SourceIndex(0) +7 >Emitted(178, 100) Source(96, 24) + SourceIndex(0) +8 >Emitted(178, 102) Source(96, 26) + SourceIndex(0) +9 >Emitted(178, 127) Source(96, 39) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(87, 5) Source(97, 5) + SourceIndex(0) -2 >Emitted(87, 12) Source(97, 12) + SourceIndex(0) -3 >Emitted(87, 13) Source(97, 13) + SourceIndex(0) -4 >Emitted(87, 16) Source(97, 16) + SourceIndex(0) -5 >Emitted(87, 17) Source(97, 17) + SourceIndex(0) -6 >Emitted(87, 25) Source(97, 25) + SourceIndex(0) -7 >Emitted(87, 26) Source(97, 26) + SourceIndex(0) -8 >Emitted(87, 27) Source(97, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(179, 9) Source(97, 5) + SourceIndex(0) +2 >Emitted(179, 16) Source(97, 12) + SourceIndex(0) +3 >Emitted(179, 17) Source(97, 13) + SourceIndex(0) +4 >Emitted(179, 20) Source(97, 16) + SourceIndex(0) +5 >Emitted(179, 21) Source(97, 17) + SourceIndex(0) +6 >Emitted(179, 29) Source(97, 25) + SourceIndex(0) +7 >Emitted(179, 30) Source(97, 26) + SourceIndex(0) +8 >Emitted(179, 31) Source(97, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(88, 2) Source(98, 2) + SourceIndex(0) +1 >Emitted(180, 6) Source(98, 2) + SourceIndex(0) --- ->>>for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let [numberA3 = -1, ...robotAInfo] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(89, 1) Source(99, 1) + SourceIndex(0) -2 >Emitted(89, 4) Source(99, 4) + SourceIndex(0) -3 >Emitted(89, 5) Source(99, 5) + SourceIndex(0) -4 >Emitted(89, 6) Source(99, 44) + SourceIndex(0) -5 >Emitted(89, 17) Source(99, 55) + SourceIndex(0) -6 >Emitted(89, 19) Source(99, 44) + SourceIndex(0) -7 >Emitted(89, 25) Source(99, 44) + SourceIndex(0) -8 >Emitted(89, 34) Source(99, 53) + SourceIndex(0) -9 >Emitted(89, 36) Source(99, 55) + SourceIndex(0) -10>Emitted(89, 38) Source(99, 44) + SourceIndex(0) -11>Emitted(89, 54) Source(99, 55) + SourceIndex(0) -12>Emitted(89, 56) Source(99, 44) + SourceIndex(0) -13>Emitted(89, 61) Source(99, 55) + SourceIndex(0) ---- ->>> var _67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > (let [numberA3 = -1, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let [numberA3 = -1, ...robotAInfo] +1 >Emitted(187, 5) Source(99, 1) + SourceIndex(0) +2 >Emitted(187, 8) Source(99, 4) + SourceIndex(0) +3 >Emitted(187, 9) Source(99, 5) + SourceIndex(0) +4 >Emitted(187, 10) Source(99, 44) + SourceIndex(0) +5 >Emitted(187, 14) Source(99, 44) + SourceIndex(0) +6 >Emitted(187, 27) Source(99, 44) + SourceIndex(0) +7 >Emitted(187, 29) Source(99, 44) + SourceIndex(0) +8 >Emitted(187, 39) Source(99, 44) + SourceIndex(0) +9 >Emitted(187, 48) Source(99, 44) + SourceIndex(0) +10>Emitted(187, 57) Source(99, 53) + SourceIndex(0) +11>Emitted(187, 59) Source(99, 55) + SourceIndex(0) +12>Emitted(187, 60) Source(99, 55) + SourceIndex(0) +13>Emitted(187, 62) Source(99, 55) + SourceIndex(0) +14>Emitted(187, 64) Source(99, 6) + SourceIndex(0) +15>Emitted(187, 82) Source(99, 40) + SourceIndex(0) +--- +>>> var _52 = __read(iterator_7.result.value), _53 = _52[0], numberA3 = _53 === void 0 ? -1 : _53, robotAInfo = _52.slice(1); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > [numberA3 = -1, ...robotAInfo] -4 > -5 > numberA3 = -1 -6 > -7 > numberA3 = -1 -8 > , -9 > ...robotAInfo -1->Emitted(90, 5) Source(99, 10) + SourceIndex(0) -2 >Emitted(90, 9) Source(99, 10) + SourceIndex(0) -3 >Emitted(90, 23) Source(99, 40) + SourceIndex(0) -4 >Emitted(90, 25) Source(99, 11) + SourceIndex(0) -5 >Emitted(90, 37) Source(99, 24) + SourceIndex(0) -6 >Emitted(90, 39) Source(99, 11) + SourceIndex(0) -7 >Emitted(90, 75) Source(99, 24) + SourceIndex(0) -8 >Emitted(90, 77) Source(99, 26) + SourceIndex(0) -9 >Emitted(90, 102) Source(99, 39) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > +3 > [numberA3 = -1, ...robotAInfo] +4 > +5 > numberA3 = -1 +6 > +7 > numberA3 = -1 +8 > , +9 > ...robotAInfo +1->Emitted(188, 9) Source(99, 10) + SourceIndex(0) +2 >Emitted(188, 13) Source(99, 10) + SourceIndex(0) +3 >Emitted(188, 50) Source(99, 40) + SourceIndex(0) +4 >Emitted(188, 52) Source(99, 11) + SourceIndex(0) +5 >Emitted(188, 64) Source(99, 24) + SourceIndex(0) +6 >Emitted(188, 66) Source(99, 11) + SourceIndex(0) +7 >Emitted(188, 102) Source(99, 24) + SourceIndex(0) +8 >Emitted(188, 104) Source(99, 26) + SourceIndex(0) +9 >Emitted(188, 129) Source(99, 39) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(91, 5) Source(100, 5) + SourceIndex(0) -2 >Emitted(91, 12) Source(100, 12) + SourceIndex(0) -3 >Emitted(91, 13) Source(100, 13) + SourceIndex(0) -4 >Emitted(91, 16) Source(100, 16) + SourceIndex(0) -5 >Emitted(91, 17) Source(100, 17) + SourceIndex(0) -6 >Emitted(91, 25) Source(100, 25) + SourceIndex(0) -7 >Emitted(91, 26) Source(100, 26) + SourceIndex(0) -8 >Emitted(91, 27) Source(100, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(189, 9) Source(100, 5) + SourceIndex(0) +2 >Emitted(189, 16) Source(100, 12) + SourceIndex(0) +3 >Emitted(189, 17) Source(100, 13) + SourceIndex(0) +4 >Emitted(189, 20) Source(100, 16) + SourceIndex(0) +5 >Emitted(189, 21) Source(100, 17) + SourceIndex(0) +6 >Emitted(189, 29) Source(100, 25) + SourceIndex(0) +7 >Emitted(189, 30) Source(100, 26) + SourceIndex(0) +8 >Emitted(189, 31) Source(100, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(92, 2) Source(101, 2) + SourceIndex(0) +1 >Emitted(190, 6) Source(101, 2) + SourceIndex(0) --- ->>>for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) { -1-> +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +>>>} +>>>for (var _54 = 0, _55 = [robotA, robotB]; _54 < _55.length; _54++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2643,8 +2888,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2660,50 +2905,50 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(93, 1) Source(102, 1) + SourceIndex(0) -2 >Emitted(93, 4) Source(102, 4) + SourceIndex(0) -3 >Emitted(93, 5) Source(102, 5) + SourceIndex(0) -4 >Emitted(93, 6) Source(102, 44) + SourceIndex(0) -5 >Emitted(93, 17) Source(102, 60) + SourceIndex(0) -6 >Emitted(93, 19) Source(102, 44) + SourceIndex(0) -7 >Emitted(93, 26) Source(102, 45) + SourceIndex(0) -8 >Emitted(93, 32) Source(102, 51) + SourceIndex(0) -9 >Emitted(93, 34) Source(102, 53) + SourceIndex(0) -10>Emitted(93, 40) Source(102, 59) + SourceIndex(0) -11>Emitted(93, 41) Source(102, 60) + SourceIndex(0) -12>Emitted(93, 43) Source(102, 44) + SourceIndex(0) -13>Emitted(93, 59) Source(102, 60) + SourceIndex(0) -14>Emitted(93, 61) Source(102, 44) + SourceIndex(0) -15>Emitted(93, 66) Source(102, 60) + SourceIndex(0) ---- ->>> var _71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1); +1 >Emitted(196, 1) Source(102, 1) + SourceIndex(0) +2 >Emitted(196, 4) Source(102, 4) + SourceIndex(0) +3 >Emitted(196, 5) Source(102, 5) + SourceIndex(0) +4 >Emitted(196, 6) Source(102, 44) + SourceIndex(0) +5 >Emitted(196, 17) Source(102, 60) + SourceIndex(0) +6 >Emitted(196, 19) Source(102, 44) + SourceIndex(0) +7 >Emitted(196, 26) Source(102, 45) + SourceIndex(0) +8 >Emitted(196, 32) Source(102, 51) + SourceIndex(0) +9 >Emitted(196, 34) Source(102, 53) + SourceIndex(0) +10>Emitted(196, 40) Source(102, 59) + SourceIndex(0) +11>Emitted(196, 41) Source(102, 60) + SourceIndex(0) +12>Emitted(196, 43) Source(102, 44) + SourceIndex(0) +13>Emitted(196, 59) Source(102, 60) + SourceIndex(0) +14>Emitted(196, 61) Source(102, 44) + SourceIndex(0) +15>Emitted(196, 66) Source(102, 60) + SourceIndex(0) +--- +>>> var _56 = __read(_55[_54]), _57 = _56[0], numberA3 = _57 === void 0 ? -1 : _57, robotAInfo = _56.slice(1); 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > [numberA3 = -1, ...robotAInfo] -4 > -5 > numberA3 = -1 -6 > -7 > numberA3 = -1 -8 > , -9 > ...robotAInfo -1->Emitted(94, 5) Source(102, 10) + SourceIndex(0) -2 >Emitted(94, 9) Source(102, 10) + SourceIndex(0) -3 >Emitted(94, 23) Source(102, 40) + SourceIndex(0) -4 >Emitted(94, 25) Source(102, 11) + SourceIndex(0) -5 >Emitted(94, 37) Source(102, 24) + SourceIndex(0) -6 >Emitted(94, 39) Source(102, 11) + SourceIndex(0) -7 >Emitted(94, 75) Source(102, 24) + SourceIndex(0) -8 >Emitted(94, 77) Source(102, 26) + SourceIndex(0) -9 >Emitted(94, 102) Source(102, 39) + SourceIndex(0) +4 > +5 > numberA3 = -1 +6 > +7 > numberA3 = -1 +8 > , +9 > ...robotAInfo +1->Emitted(197, 5) Source(102, 10) + SourceIndex(0) +2 >Emitted(197, 9) Source(102, 10) + SourceIndex(0) +3 >Emitted(197, 31) Source(102, 40) + SourceIndex(0) +4 >Emitted(197, 33) Source(102, 11) + SourceIndex(0) +5 >Emitted(197, 45) Source(102, 24) + SourceIndex(0) +6 >Emitted(197, 47) Source(102, 11) + SourceIndex(0) +7 >Emitted(197, 83) Source(102, 24) + SourceIndex(0) +8 >Emitted(197, 85) Source(102, 26) + SourceIndex(0) +9 >Emitted(197, 110) Source(102, 39) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2723,20 +2968,21 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > numberA3 7 > ) 8 > ; -1 >Emitted(95, 5) Source(103, 5) + SourceIndex(0) -2 >Emitted(95, 12) Source(103, 12) + SourceIndex(0) -3 >Emitted(95, 13) Source(103, 13) + SourceIndex(0) -4 >Emitted(95, 16) Source(103, 16) + SourceIndex(0) -5 >Emitted(95, 17) Source(103, 17) + SourceIndex(0) -6 >Emitted(95, 25) Source(103, 25) + SourceIndex(0) -7 >Emitted(95, 26) Source(103, 26) + SourceIndex(0) -8 >Emitted(95, 27) Source(103, 27) + SourceIndex(0) +1 >Emitted(198, 5) Source(103, 5) + SourceIndex(0) +2 >Emitted(198, 12) Source(103, 12) + SourceIndex(0) +3 >Emitted(198, 13) Source(103, 13) + SourceIndex(0) +4 >Emitted(198, 16) Source(103, 16) + SourceIndex(0) +5 >Emitted(198, 17) Source(103, 17) + SourceIndex(0) +6 >Emitted(198, 25) Source(103, 25) + SourceIndex(0) +7 >Emitted(198, 26) Source(103, 26) + SourceIndex(0) +8 >Emitted(198, 27) Source(103, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(96, 2) Source(104, 2) + SourceIndex(0) +1 >Emitted(199, 2) Source(104, 2) + SourceIndex(0) --- +>>>var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10, e_11, e_12, e_13, e_14; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js index 9cff7412ea967..c82b329c45fad 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js @@ -110,6 +110,25 @@ for ([numberA3 = -1, ...robotAInfo] of [robotA, robotB]) { } //// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var robots = [robotA, robotB]; @@ -126,89 +145,173 @@ var nameA, primarySkillA, secondarySkillA; var numberB, nameB; var numberA2, nameA2, skillA2, nameMA; var numberA3, robotAInfo, multiRobotAInfo; -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - _a = robots_1[_i], _b = _a[1], nameA = _b === void 0 ? "noName" : _b; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + _a = __read(robots_1.result.value, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; + console.log(nameA); + } } -for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) { - _e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + _c = __read(iterator_1.result.value, 2), _d = _c[1], nameA = _d === void 0 ? "noName" : _d; + console.log(nameA); + } +} +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } } -for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) { - _j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k; +for (var _i = 0, _e = [robotA, robotB]; _i < _e.length; _i++) { + _f = __read(_e[_i], 2), _g = _f[1], nameA = _g === void 0 ? "noName" : _g; console.log(nameA); } -for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) { - _m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r; - console.log(primarySkillA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + _h = __read(multiRobots_1.result.value, 2), _j = _h[1], _k = __read(_j === void 0 ? ["skill1", "skill2"] : _j, 2), _l = _k[0], primarySkillA = _l === void 0 ? "primary" : _l, _m = _k[1], secondarySkillA = _m === void 0 ? "secondary" : _m; + console.log(primarySkillA); + } } -for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) { - _u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y; - console.log(primarySkillA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + _o = __read(iterator_2.result.value, 2), _p = _o[1], _q = __read(_p === void 0 ? ["skill1", "skill2"] : _p, 2), _r = _q[0], primarySkillA = _r === void 0 ? "primary" : _r, _s = _q[1], secondarySkillA = _s === void 0 ? "secondary" : _s; + console.log(primarySkillA); + } } -for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) { - _1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5; +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +} +for (var _t = 0, _u = [multiRobotA, multiRobotB]; _t < _u.length; _t++) { + _v = __read(_u[_t], 2), _w = _v[1], _x = __read(_w === void 0 ? ["skill1", "skill2"] : _w, 2), _y = _x[0], primarySkillA = _y === void 0 ? "primary" : _y, _z = _x[1], secondarySkillA = _z === void 0 ? "secondary" : _z; console.log(primarySkillA); } -for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) { - _7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7; - console.log(numberB); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + _0 = __read(robots_2.result.value, 1), _1 = _0[0], numberB = _1 === void 0 ? -1 : _1; + console.log(numberB); + } } -for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) { - _10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10; - console.log(numberB); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +} +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + _2 = __read(iterator_3.result.value, 1), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3; + console.log(numberB); + } } -for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) { - _13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13; +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +} +for (var _4 = 0, _5 = [robotA, robotB]; _4 < _5.length; _4++) { + _6 = __read(_5[_4], 1), _7 = _6[0], numberB = _7 === void 0 ? -1 : _7; console.log(numberB); } -for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { - _15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15; - console.log(nameB); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + _8 = __read(multiRobots_2.result.value, 1), _9 = _8[0], nameB = _9 === void 0 ? "noName" : _9; + console.log(nameB); + } } -for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) { - _18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18; - console.log(nameB); +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } } -for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { - _21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21; +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + _10 = __read(iterator_4.result.value, 1), _11 = _10[0], nameB = _11 === void 0 ? "noName" : _11; + console.log(nameB); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +} +for (var _12 = 0, _13 = [multiRobotA, multiRobotB]; _12 < _13.length; _12++) { + _14 = __read(_13[_12], 1), _15 = _14[0], nameB = _15 === void 0 ? "noName" : _15; console.log(nameB); } -for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) { - _23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26; - console.log(nameA2); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + _16 = __read(robots_3.result.value, 3), _17 = _16[0], numberA2 = _17 === void 0 ? -1 : _17, _18 = _16[1], nameA2 = _18 === void 0 ? "noName" : _18, _19 = _16[2], skillA2 = _19 === void 0 ? "skill" : _19; + console.log(nameA2); + } } -for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) { - _29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32; - console.log(nameA2); +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(robots_3); } finally { if (e_9) throw e_9.error; } } -for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) { - _35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38; +try { + for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { + _20 = __read(iterator_5.result.value, 3), _21 = _20[0], numberA2 = _21 === void 0 ? -1 : _21, _22 = _20[1], nameA2 = _22 === void 0 ? "noName" : _22, _23 = _20[2], skillA2 = _23 === void 0 ? "skill" : _23; + console.log(nameA2); + } +} +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +} +for (var _24 = 0, _25 = [robotA, robotB]; _24 < _25.length; _24++) { + _26 = __read(_25[_24], 3), _27 = _26[0], numberA2 = _27 === void 0 ? -1 : _27, _28 = _26[1], nameA2 = _28 === void 0 ? "noName" : _28, _29 = _26[2], skillA2 = _29 === void 0 ? "skill" : _29; console.log(nameA2); } -for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { - _40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45; - console.log(nameMA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + _30 = __read(multiRobots_3.result.value, 2), _31 = _30[0], nameMA = _31 === void 0 ? "noName" : _31, _32 = _30[1], _33 = __read(_32 === void 0 ? ["skill1", "skill2"] : _32, 2), _34 = _33[0], primarySkillA = _34 === void 0 ? "primary" : _34, _35 = _33[1], secondarySkillA = _35 === void 0 ? "secondary" : _35; + console.log(nameMA); + } } -for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { - _48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53; - console.log(nameMA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +} +try { + for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { + _36 = __read(iterator_6.result.value, 2), _37 = _36[0], nameMA = _37 === void 0 ? "noName" : _37, _38 = _36[1], _39 = __read(_38 === void 0 ? ["skill1", "skill2"] : _38, 2), _40 = _39[0], primarySkillA = _40 === void 0 ? "primary" : _40, _41 = _39[1], secondarySkillA = _41 === void 0 ? "secondary" : _41; + console.log(nameMA); + } } -for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) { - _56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61; +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +} +for (var _42 = 0, _43 = [multiRobotA, multiRobotB]; _42 < _43.length; _42++) { + _44 = __read(_43[_42], 2), _45 = _44[0], nameMA = _45 === void 0 ? "noName" : _45, _46 = _44[1], _47 = __read(_46 === void 0 ? ["skill1", "skill2"] : _46, 2), _48 = _47[0], primarySkillA = _48 === void 0 ? "primary" : _48, _49 = _47[1], secondarySkillA = _49 === void 0 ? "secondary" : _49; console.log(nameMA); } -for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { - _63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1); - console.log(numberA3); +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + _50 = __read(robots_4.result.value), _51 = _50[0], numberA3 = _51 === void 0 ? -1 : _51, robotAInfo = _50.slice(1); + console.log(numberA3); + } } -for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) { - _67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1); - console.log(numberA3); +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +} +try { + for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { + _52 = __read(iterator_7.result.value), _53 = _52[0], numberA3 = _53 === void 0 ? -1 : _53, robotAInfo = _52.slice(1); + console.log(numberA3); + } +} +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } } -for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) { - _71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1); +for (var _54 = 0, _55 = [robotA, robotB]; _54 < _55.length; _54++) { + _56 = __read(_55[_54]), _57 = _56[0], numberA3 = _57 === void 0 ? -1 : _57, robotAInfo = _56.slice(1); console.log(numberA3); } -var _a, _b, _e, _f, _j, _k, _m, _o, _p, _q, _r, _u, _v, _w, _x, _y, _1, _2, _3, _4, _5, _7, _10, _13, _15, _18, _21, _23, _24, _25, _26, _29, _30, _31, _32, _35, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _67, _68, _71, _72; +var _a, _b, e_1, _c, _d, e_2, _f, _g, _h, _j, _k, _l, _m, e_3, _o, _p, _q, _r, _s, e_4, _v, _w, _x, _y, _z, _0, _1, e_5, _2, _3, e_6, _6, _7, _8, _9, e_7, _10, _11, e_8, _14, _15, _16, _17, _18, _19, e_9, _20, _21, _22, _23, e_10, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, e_11, _36, _37, _38, _39, _40, _41, e_12, _44, _45, _46, _47, _48, _49, _50, _51, e_13, _52, _53, e_14, _56, _57; //# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map index f0224061c2bb8..28fd390200f1c 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;AAEtG,GAAG,CAAC,CAAyB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;uBAA3B,UAAgB,EAAhB,qCAAgB;IACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;iBAAhC,UAAgB,EAAhB,qCAAgB;IACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;iBAArC,UAAgB,EAAhB,qCAAgB;IACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAGyB,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;4BAHhC,UAGgB,EAHhB,8CAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAGyB,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;iBAHrC,UAGgB,EAHhB,8CAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AACD,GAAG,CAAC,CAGyB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;iBAH/C,UAGgB,EAHhB,8CAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED,GAAG,CAAC,CAAmB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAvB,oBAAY,EAAZ,iCAAY;IACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAmB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA5B,eAAY,EAAZ,mCAAY;IACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAmB,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;IAAjC,iBAAY,EAAZ,mCAAY;IACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;AACD,GAAG,CAAC,CAAuB,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IAAhC,2BAAgB,EAAhB,uCAAgB;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAuB,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAArC,iBAAgB,EAAhB,uCAAgB;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAuB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;IAA/C,iBAAgB,EAAhB,uCAAgB;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AAED,GAAG,CAAC,CAA0D,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAA9D,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA0D,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAAnE,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAA0D,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;oBAAxE,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;8BAHlC,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,iDAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBAHvC,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,iDAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AACD,GAAG,CAAC,CAGyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;oBAHjD,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,iDAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,GAAG,CAAC,CAAmC,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAAvC,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAmC,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAA5C,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAmC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;oBAAjD,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9B;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,IAAI,WAAW,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC7C;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClE,IAAI,OAAe,EAAE,KAAa,CAAC;AACnC,IAAI,QAAgB,EAAE,MAAc,EAAE,OAAe,EAAE,MAAc,CAAC;AACtE,IAAI,QAAgB,EAAE,UAA+B,EAAE,eAA8C,CAAC;;IAEtG,GAAG,CAAC,CAAyB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA9B,gBAAoB;+CAAjB,UAAgB,EAAhB,qCAAgB;QACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAyB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAnC,kBAAoB;iDAAjB,UAAgB,EAAhB,qCAAgB;QACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAyB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;4BAArC,UAAgB,EAAhB,qCAAgB;IACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAGyB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAHnC,qBAGoB;oDAHjB,UAGgB,EAHhB,yDAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;;IACD,GAAG,CAAC,CAGyB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAHxC,kBAGoB;iDAHjB,UAGgB,EAHhB,yDAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC9B;;;;;;AACD,GAAG,CAAC,CAGyB,UAA0B,EAA1B,MAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,cAA0B,EAA1B,IAA0B;4BAH/C,UAGgB,EAHhB,yDAGgB,EAFpB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAC9B;;IAED,GAAG,CAAC,CAAmB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAxB,gBAAc;+CAAb,UAAY,EAAZ,iCAAY;QACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;;IACD,GAAG,CAAC,CAAmB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA7B,kBAAc;iDAAb,UAAY,EAAZ,iCAAY;QACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACxB;;;;;;AACD,GAAG,CAAC,CAAmB,UAAgB,EAAhB,MAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,cAAgB,EAAhB,IAAgB;4BAAjC,UAAY,EAAZ,iCAAY;IACd,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;CACxB;;IACD,GAAG,CAAC,CAAuB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAjC,qBAAkB;oDAAjB,UAAgB,EAAhB,qCAAgB;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAuB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAtC,kBAAkB;kDAAjB,YAAgB,EAAhB,uCAAgB;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAuB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;+BAA/C,YAAgB,EAAhB,uCAAgB;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IAED,GAAG,CAAC,CAA0D,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA/D,gBAAqD;gDAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;QACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAA0D,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAApE,kBAAqD;kDAApD,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;QACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAA0D,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;+BAAxE,YAAa,EAAb,oCAAa,EAAE,YAAiB,EAAjB,wCAAiB,EAAE,YAAiB,EAAjB,wCAAiB;IACrD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IACD,GAAG,CAAC,CAGyB,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAHnC,qBAGoB;qDAHnB,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,4DAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;;IACD,GAAG,CAAC,CAGyB,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAHxC,kBAGoB;kDAHnB,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,4DAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;QAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;;;;;;AACD,GAAG,CAAC,CAGyB,WAA0B,EAA1B,OAAC,WAAW,EAAE,WAAW,CAAC,EAA1B,gBAA0B,EAA1B,KAA0B;+BAHjD,YAAiB,EAAjB,wCAAiB,EAAE,YAGD,EAHC,4DAGD,EAFpB,YAAyB,EAAzB,gDAAyB,EACzB,YAA6B,EAA7B,oDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;CACvB;;IAED,GAAG,CAAC,CAAmC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAxC,gBAA8B;6CAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;QAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAAmC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA7C,kBAA8B;+CAA7B,YAAa,EAAb,oCAAa,EAAE,yBAAa;QAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAAmC,WAAgB,EAAhB,OAAC,MAAM,EAAE,MAAM,CAAC,EAAhB,gBAAgB,EAAhB,KAAgB;4BAAjD,YAAa,EAAb,oCAAa,EAAE,yBAAa;IAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.sourcemap.txt index f9ab0c470e7cd..398fbb59ceda4 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.sourcemap.txt @@ -8,6 +8,25 @@ sources: sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2. emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +59,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(20, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(20, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(20, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(20, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(20, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(20, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(20, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(20, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(20, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(20, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -79,18 +98,18 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(21, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(21, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(21, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(21, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(21, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(21, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(21, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(21, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(21, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(21, 41) Source(8, 48) + SourceIndex(0) --- >>>var robots = [robotA, robotB]; 1 > @@ -114,23 +133,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 8 > robotB 9 > ] 10> ; -1 >Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(9, 15) + SourceIndex(0) -6 >Emitted(3, 21) Source(9, 21) + SourceIndex(0) -7 >Emitted(3, 23) Source(9, 23) + SourceIndex(0) -8 >Emitted(3, 29) Source(9, 29) + SourceIndex(0) -9 >Emitted(3, 30) Source(9, 30) + SourceIndex(0) -10>Emitted(3, 31) Source(9, 31) + SourceIndex(0) +1 >Emitted(22, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(22, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(22, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(22, 15) Source(9, 15) + SourceIndex(0) +6 >Emitted(22, 21) Source(9, 21) + SourceIndex(0) +7 >Emitted(22, 23) Source(9, 23) + SourceIndex(0) +8 >Emitted(22, 29) Source(9, 29) + SourceIndex(0) +9 >Emitted(22, 30) Source(9, 30) + SourceIndex(0) +10>Emitted(22, 31) Source(9, 31) + SourceIndex(0) --- >>>function getRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(4, 1) Source(10, 1) + SourceIndex(0) +1 >Emitted(23, 1) Source(10, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -144,11 +163,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(11, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(11, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) +1->Emitted(24, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(24, 11) Source(11, 11) + SourceIndex(0) +3 >Emitted(24, 12) Source(11, 12) + SourceIndex(0) +4 >Emitted(24, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(24, 19) Source(11, 19) + SourceIndex(0) --- >>>} 1 > @@ -157,8 +176,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 1 > > 2 >} -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(12, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(12, 2) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -192,20 +211,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 12> ] 13> ] 14> ; -1->Emitted(7, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(14, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(14, 16) + SourceIndex(0) -4 >Emitted(7, 19) Source(14, 38) + SourceIndex(0) -5 >Emitted(7, 20) Source(14, 39) + SourceIndex(0) -6 >Emitted(7, 27) Source(14, 46) + SourceIndex(0) -7 >Emitted(7, 29) Source(14, 48) + SourceIndex(0) -8 >Emitted(7, 30) Source(14, 49) + SourceIndex(0) -9 >Emitted(7, 38) Source(14, 57) + SourceIndex(0) -10>Emitted(7, 40) Source(14, 59) + SourceIndex(0) -11>Emitted(7, 42) Source(14, 61) + SourceIndex(0) -12>Emitted(7, 43) Source(14, 62) + SourceIndex(0) -13>Emitted(7, 44) Source(14, 63) + SourceIndex(0) -14>Emitted(7, 45) Source(14, 64) + SourceIndex(0) +1->Emitted(26, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(26, 16) Source(14, 16) + SourceIndex(0) +4 >Emitted(26, 19) Source(14, 38) + SourceIndex(0) +5 >Emitted(26, 20) Source(14, 39) + SourceIndex(0) +6 >Emitted(26, 27) Source(14, 46) + SourceIndex(0) +7 >Emitted(26, 29) Source(14, 48) + SourceIndex(0) +8 >Emitted(26, 30) Source(14, 49) + SourceIndex(0) +9 >Emitted(26, 38) Source(14, 57) + SourceIndex(0) +10>Emitted(26, 40) Source(14, 59) + SourceIndex(0) +11>Emitted(26, 42) Source(14, 61) + SourceIndex(0) +12>Emitted(26, 43) Source(14, 62) + SourceIndex(0) +13>Emitted(26, 44) Source(14, 63) + SourceIndex(0) +14>Emitted(26, 45) Source(14, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -237,20 +256,20 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 12> ] 13> ] 14> ; -1->Emitted(8, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(8, 16) Source(15, 16) + SourceIndex(0) -4 >Emitted(8, 19) Source(15, 38) + SourceIndex(0) -5 >Emitted(8, 20) Source(15, 39) + SourceIndex(0) -6 >Emitted(8, 29) Source(15, 48) + SourceIndex(0) -7 >Emitted(8, 31) Source(15, 50) + SourceIndex(0) -8 >Emitted(8, 32) Source(15, 51) + SourceIndex(0) -9 >Emitted(8, 42) Source(15, 61) + SourceIndex(0) -10>Emitted(8, 44) Source(15, 63) + SourceIndex(0) -11>Emitted(8, 52) Source(15, 71) + SourceIndex(0) -12>Emitted(8, 53) Source(15, 72) + SourceIndex(0) -13>Emitted(8, 54) Source(15, 73) + SourceIndex(0) -14>Emitted(8, 55) Source(15, 74) + SourceIndex(0) +1->Emitted(27, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(27, 16) Source(15, 16) + SourceIndex(0) +4 >Emitted(27, 19) Source(15, 38) + SourceIndex(0) +5 >Emitted(27, 20) Source(15, 39) + SourceIndex(0) +6 >Emitted(27, 29) Source(15, 48) + SourceIndex(0) +7 >Emitted(27, 31) Source(15, 50) + SourceIndex(0) +8 >Emitted(27, 32) Source(15, 51) + SourceIndex(0) +9 >Emitted(27, 42) Source(15, 61) + SourceIndex(0) +10>Emitted(27, 44) Source(15, 63) + SourceIndex(0) +11>Emitted(27, 52) Source(15, 71) + SourceIndex(0) +12>Emitted(27, 53) Source(15, 72) + SourceIndex(0) +13>Emitted(27, 54) Source(15, 73) + SourceIndex(0) +14>Emitted(27, 55) Source(15, 74) + SourceIndex(0) --- >>>var multiRobots = [multiRobotA, multiRobotB]; 1 > @@ -274,23 +293,23 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 8 > multiRobotB 9 > ] 10> ; -1 >Emitted(9, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(9, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(9, 16) Source(16, 16) + SourceIndex(0) -4 >Emitted(9, 19) Source(16, 19) + SourceIndex(0) -5 >Emitted(9, 20) Source(16, 20) + SourceIndex(0) -6 >Emitted(9, 31) Source(16, 31) + SourceIndex(0) -7 >Emitted(9, 33) Source(16, 33) + SourceIndex(0) -8 >Emitted(9, 44) Source(16, 44) + SourceIndex(0) -9 >Emitted(9, 45) Source(16, 45) + SourceIndex(0) -10>Emitted(9, 46) Source(16, 46) + SourceIndex(0) +1 >Emitted(28, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(28, 16) Source(16, 16) + SourceIndex(0) +4 >Emitted(28, 19) Source(16, 19) + SourceIndex(0) +5 >Emitted(28, 20) Source(16, 20) + SourceIndex(0) +6 >Emitted(28, 31) Source(16, 31) + SourceIndex(0) +7 >Emitted(28, 33) Source(16, 33) + SourceIndex(0) +8 >Emitted(28, 44) Source(16, 44) + SourceIndex(0) +9 >Emitted(28, 45) Source(16, 45) + SourceIndex(0) +10>Emitted(28, 46) Source(16, 46) + SourceIndex(0) --- >>>function getMultiRobots() { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(10, 1) Source(17, 1) + SourceIndex(0) +1 >Emitted(29, 1) Source(17, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -304,11 +323,11 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 3 > 4 > multiRobots 5 > ; -1->Emitted(11, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(11, 11) Source(18, 11) + SourceIndex(0) -3 >Emitted(11, 12) Source(18, 12) + SourceIndex(0) -4 >Emitted(11, 23) Source(18, 23) + SourceIndex(0) -5 >Emitted(11, 24) Source(18, 24) + SourceIndex(0) +1->Emitted(30, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(30, 11) Source(18, 11) + SourceIndex(0) +3 >Emitted(30, 12) Source(18, 12) + SourceIndex(0) +4 >Emitted(30, 23) Source(18, 23) + SourceIndex(0) +5 >Emitted(30, 24) Source(18, 24) + SourceIndex(0) --- >>>} 1 > @@ -317,8 +336,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 1 > > 2 >} -1 >Emitted(12, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(12, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(19, 2) + SourceIndex(0) --- >>>var nameA, primarySkillA, secondarySkillA; 1-> @@ -339,14 +358,14 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > , 7 > secondarySkillA: string 8 > ; -1->Emitted(13, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(13, 5) Source(21, 5) + SourceIndex(0) -3 >Emitted(13, 10) Source(21, 18) + SourceIndex(0) -4 >Emitted(13, 12) Source(21, 20) + SourceIndex(0) -5 >Emitted(13, 25) Source(21, 41) + SourceIndex(0) -6 >Emitted(13, 27) Source(21, 43) + SourceIndex(0) -7 >Emitted(13, 42) Source(21, 66) + SourceIndex(0) -8 >Emitted(13, 43) Source(21, 67) + SourceIndex(0) +1->Emitted(32, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(21, 5) + SourceIndex(0) +3 >Emitted(32, 10) Source(21, 18) + SourceIndex(0) +4 >Emitted(32, 12) Source(21, 20) + SourceIndex(0) +5 >Emitted(32, 25) Source(21, 41) + SourceIndex(0) +6 >Emitted(32, 27) Source(21, 43) + SourceIndex(0) +7 >Emitted(32, 42) Source(21, 66) + SourceIndex(0) +8 >Emitted(32, 43) Source(21, 67) + SourceIndex(0) --- >>>var numberB, nameB; 1 > @@ -363,12 +382,12 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 4 > , 5 > nameB: string 6 > ; -1 >Emitted(14, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -3 >Emitted(14, 12) Source(22, 20) + SourceIndex(0) -4 >Emitted(14, 14) Source(22, 22) + SourceIndex(0) -5 >Emitted(14, 19) Source(22, 35) + SourceIndex(0) -6 >Emitted(14, 20) Source(22, 36) + SourceIndex(0) +1 >Emitted(33, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(22, 5) + SourceIndex(0) +3 >Emitted(33, 12) Source(22, 20) + SourceIndex(0) +4 >Emitted(33, 14) Source(22, 22) + SourceIndex(0) +5 >Emitted(33, 19) Source(22, 35) + SourceIndex(0) +6 >Emitted(33, 20) Source(22, 36) + SourceIndex(0) --- >>>var numberA2, nameA2, skillA2, nameMA; 1-> @@ -393,16 +412,16 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 8 > , 9 > nameMA: string 10> ; -1->Emitted(15, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(15, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(15, 13) Source(23, 21) + SourceIndex(0) -4 >Emitted(15, 15) Source(23, 23) + SourceIndex(0) -5 >Emitted(15, 21) Source(23, 37) + SourceIndex(0) -6 >Emitted(15, 23) Source(23, 39) + SourceIndex(0) -7 >Emitted(15, 30) Source(23, 54) + SourceIndex(0) -8 >Emitted(15, 32) Source(23, 56) + SourceIndex(0) -9 >Emitted(15, 38) Source(23, 70) + SourceIndex(0) -10>Emitted(15, 39) Source(23, 71) + SourceIndex(0) +1->Emitted(34, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(34, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(34, 13) Source(23, 21) + SourceIndex(0) +4 >Emitted(34, 15) Source(23, 23) + SourceIndex(0) +5 >Emitted(34, 21) Source(23, 37) + SourceIndex(0) +6 >Emitted(34, 23) Source(23, 39) + SourceIndex(0) +7 >Emitted(34, 30) Source(23, 54) + SourceIndex(0) +8 >Emitted(34, 32) Source(23, 56) + SourceIndex(0) +9 >Emitted(34, 38) Source(23, 70) + SourceIndex(0) +10>Emitted(34, 39) Source(23, 71) + SourceIndex(0) --- >>>var numberA3, robotAInfo, multiRobotAInfo; 1-> @@ -413,7 +432,6 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > ^^ 7 > ^^^^^^^^^^^^^^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >let @@ -423,194 +441,219 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > , 7 > multiRobotAInfo: (string | [string, string])[] 8 > ; -1->Emitted(16, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(16, 5) Source(24, 5) + SourceIndex(0) -3 >Emitted(16, 13) Source(24, 21) + SourceIndex(0) -4 >Emitted(16, 15) Source(24, 23) + SourceIndex(0) -5 >Emitted(16, 25) Source(24, 54) + SourceIndex(0) -6 >Emitted(16, 27) Source(24, 56) + SourceIndex(0) -7 >Emitted(16, 42) Source(24, 102) + SourceIndex(0) -8 >Emitted(16, 43) Source(24, 103) + SourceIndex(0) ---- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^-> -1-> +1->Emitted(35, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(35, 5) Source(24, 5) + SourceIndex(0) +3 >Emitted(35, 13) Source(24, 21) + SourceIndex(0) +4 >Emitted(35, 15) Source(24, 23) + SourceIndex(0) +5 >Emitted(35, 25) Source(24, 54) + SourceIndex(0) +6 >Emitted(35, 27) Source(24, 56) + SourceIndex(0) +7 >Emitted(35, 42) Source(24, 102) + SourceIndex(0) +8 >Emitted(35, 43) Source(24, 103) + SourceIndex(0) +--- +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > > -2 >for -3 > -4 > ([, nameA = "noName"] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(17, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(17, 4) Source(26, 4) + SourceIndex(0) -3 >Emitted(17, 5) Source(26, 5) + SourceIndex(0) -4 >Emitted(17, 6) Source(26, 30) + SourceIndex(0) -5 >Emitted(17, 16) Source(26, 36) + SourceIndex(0) -6 >Emitted(17, 18) Source(26, 30) + SourceIndex(0) -7 >Emitted(17, 35) Source(26, 36) + SourceIndex(0) -8 >Emitted(17, 37) Source(26, 30) + SourceIndex(0) -9 >Emitted(17, 57) Source(26, 36) + SourceIndex(0) -10>Emitted(17, 59) Source(26, 30) + SourceIndex(0) -11>Emitted(17, 63) Source(26, 36) + SourceIndex(0) ---- ->>> _a = robots_1[_i], _b = _a[1], nameA = _b === void 0 ? "noName" : _b; -1->^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, nameA = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [, nameA = "noName"] +1 >Emitted(37, 5) Source(26, 1) + SourceIndex(0) +2 >Emitted(37, 8) Source(26, 4) + SourceIndex(0) +3 >Emitted(37, 9) Source(26, 5) + SourceIndex(0) +4 >Emitted(37, 10) Source(26, 30) + SourceIndex(0) +5 >Emitted(37, 14) Source(26, 30) + SourceIndex(0) +6 >Emitted(37, 25) Source(26, 30) + SourceIndex(0) +7 >Emitted(37, 27) Source(26, 30) + SourceIndex(0) +8 >Emitted(37, 37) Source(26, 30) + SourceIndex(0) +9 >Emitted(37, 46) Source(26, 30) + SourceIndex(0) +10>Emitted(37, 52) Source(26, 36) + SourceIndex(0) +11>Emitted(37, 53) Source(26, 36) + SourceIndex(0) +12>Emitted(37, 55) Source(26, 36) + SourceIndex(0) +13>Emitted(37, 57) Source(26, 6) + SourceIndex(0) +14>Emitted(37, 73) Source(26, 26) + SourceIndex(0) +--- +>>> _a = __read(robots_1.result.value, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameA = "noName" -3 > -4 > nameA = "noName" -1->Emitted(18, 24) Source(26, 9) + SourceIndex(0) -2 >Emitted(18, 34) Source(26, 25) + SourceIndex(0) -3 >Emitted(18, 36) Source(26, 9) + SourceIndex(0) -4 >Emitted(18, 73) Source(26, 25) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > nameA = "noName" +3 > +4 > nameA = "noName" +1->Emitted(38, 48) Source(26, 9) + SourceIndex(0) +2 >Emitted(38, 58) Source(26, 25) + SourceIndex(0) +3 >Emitted(38, 60) Source(26, 9) + SourceIndex(0) +4 >Emitted(38, 97) Source(26, 25) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(19, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(19, 12) Source(27, 12) + SourceIndex(0) -3 >Emitted(19, 13) Source(27, 13) + SourceIndex(0) -4 >Emitted(19, 16) Source(27, 16) + SourceIndex(0) -5 >Emitted(19, 17) Source(27, 17) + SourceIndex(0) -6 >Emitted(19, 22) Source(27, 22) + SourceIndex(0) -7 >Emitted(19, 23) Source(27, 23) + SourceIndex(0) -8 >Emitted(19, 24) Source(27, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(39, 9) Source(27, 5) + SourceIndex(0) +2 >Emitted(39, 16) Source(27, 12) + SourceIndex(0) +3 >Emitted(39, 17) Source(27, 13) + SourceIndex(0) +4 >Emitted(39, 20) Source(27, 16) + SourceIndex(0) +5 >Emitted(39, 21) Source(27, 17) + SourceIndex(0) +6 >Emitted(39, 26) Source(27, 22) + SourceIndex(0) +7 >Emitted(39, 27) Source(27, 23) + SourceIndex(0) +8 >Emitted(39, 28) Source(27, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(20, 2) Source(28, 2) + SourceIndex(0) +1 >Emitted(40, 6) Source(28, 2) + SourceIndex(0) --- ->>>for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([, nameA = "noName"] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(21, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(21, 4) Source(29, 4) + SourceIndex(0) -3 >Emitted(21, 5) Source(29, 5) + SourceIndex(0) -4 >Emitted(21, 6) Source(29, 30) + SourceIndex(0) -5 >Emitted(21, 16) Source(29, 41) + SourceIndex(0) -6 >Emitted(21, 18) Source(29, 30) + SourceIndex(0) -7 >Emitted(21, 23) Source(29, 30) + SourceIndex(0) -8 >Emitted(21, 32) Source(29, 39) + SourceIndex(0) -9 >Emitted(21, 34) Source(29, 41) + SourceIndex(0) -10>Emitted(21, 36) Source(29, 30) + SourceIndex(0) -11>Emitted(21, 50) Source(29, 41) + SourceIndex(0) -12>Emitted(21, 52) Source(29, 30) + SourceIndex(0) -13>Emitted(21, 56) Source(29, 41) + SourceIndex(0) ---- ->>> _e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, nameA = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [, nameA = "noName"] +1 >Emitted(47, 5) Source(29, 1) + SourceIndex(0) +2 >Emitted(47, 8) Source(29, 4) + SourceIndex(0) +3 >Emitted(47, 9) Source(29, 5) + SourceIndex(0) +4 >Emitted(47, 10) Source(29, 30) + SourceIndex(0) +5 >Emitted(47, 14) Source(29, 30) + SourceIndex(0) +6 >Emitted(47, 27) Source(29, 30) + SourceIndex(0) +7 >Emitted(47, 29) Source(29, 30) + SourceIndex(0) +8 >Emitted(47, 39) Source(29, 30) + SourceIndex(0) +9 >Emitted(47, 48) Source(29, 30) + SourceIndex(0) +10>Emitted(47, 57) Source(29, 39) + SourceIndex(0) +11>Emitted(47, 59) Source(29, 41) + SourceIndex(0) +12>Emitted(47, 60) Source(29, 41) + SourceIndex(0) +13>Emitted(47, 62) Source(29, 41) + SourceIndex(0) +14>Emitted(47, 64) Source(29, 6) + SourceIndex(0) +15>Emitted(47, 82) Source(29, 26) + SourceIndex(0) +--- +>>> _c = __read(iterator_1.result.value, 2), _d = _c[1], nameA = _d === void 0 ? "noName" : _d; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameA = "noName" -3 > -4 > nameA = "noName" -1->Emitted(22, 18) Source(29, 9) + SourceIndex(0) -2 >Emitted(22, 28) Source(29, 25) + SourceIndex(0) -3 >Emitted(22, 30) Source(29, 9) + SourceIndex(0) -4 >Emitted(22, 67) Source(29, 25) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > nameA = "noName" +3 > +4 > nameA = "noName" +1->Emitted(48, 50) Source(29, 9) + SourceIndex(0) +2 >Emitted(48, 60) Source(29, 25) + SourceIndex(0) +3 >Emitted(48, 62) Source(29, 9) + SourceIndex(0) +4 >Emitted(48, 99) Source(29, 25) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(23, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(23, 12) Source(30, 12) + SourceIndex(0) -3 >Emitted(23, 13) Source(30, 13) + SourceIndex(0) -4 >Emitted(23, 16) Source(30, 16) + SourceIndex(0) -5 >Emitted(23, 17) Source(30, 17) + SourceIndex(0) -6 >Emitted(23, 22) Source(30, 22) + SourceIndex(0) -7 >Emitted(23, 23) Source(30, 23) + SourceIndex(0) -8 >Emitted(23, 24) Source(30, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(49, 9) Source(30, 5) + SourceIndex(0) +2 >Emitted(49, 16) Source(30, 12) + SourceIndex(0) +3 >Emitted(49, 17) Source(30, 13) + SourceIndex(0) +4 >Emitted(49, 20) Source(30, 16) + SourceIndex(0) +5 >Emitted(49, 21) Source(30, 17) + SourceIndex(0) +6 >Emitted(49, 26) Source(30, 22) + SourceIndex(0) +7 >Emitted(49, 27) Source(30, 23) + SourceIndex(0) +8 >Emitted(49, 28) Source(30, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(24, 2) Source(31, 2) + SourceIndex(0) +1 >Emitted(50, 6) Source(31, 2) + SourceIndex(0) --- ->>>for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _e = [robotA, robotB]; _i < _e.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -625,8 +668,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -642,35 +685,35 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(25, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(25, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(25, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(25, 6) Source(32, 30) + SourceIndex(0) -5 >Emitted(25, 16) Source(32, 46) + SourceIndex(0) -6 >Emitted(25, 18) Source(32, 30) + SourceIndex(0) -7 >Emitted(25, 24) Source(32, 31) + SourceIndex(0) -8 >Emitted(25, 30) Source(32, 37) + SourceIndex(0) -9 >Emitted(25, 32) Source(32, 39) + SourceIndex(0) -10>Emitted(25, 38) Source(32, 45) + SourceIndex(0) -11>Emitted(25, 39) Source(32, 46) + SourceIndex(0) -12>Emitted(25, 41) Source(32, 30) + SourceIndex(0) -13>Emitted(25, 55) Source(32, 46) + SourceIndex(0) -14>Emitted(25, 57) Source(32, 30) + SourceIndex(0) -15>Emitted(25, 61) Source(32, 46) + SourceIndex(0) ---- ->>> _j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(56, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(56, 4) Source(32, 4) + SourceIndex(0) +3 >Emitted(56, 5) Source(32, 5) + SourceIndex(0) +4 >Emitted(56, 6) Source(32, 30) + SourceIndex(0) +5 >Emitted(56, 16) Source(32, 46) + SourceIndex(0) +6 >Emitted(56, 18) Source(32, 30) + SourceIndex(0) +7 >Emitted(56, 24) Source(32, 31) + SourceIndex(0) +8 >Emitted(56, 30) Source(32, 37) + SourceIndex(0) +9 >Emitted(56, 32) Source(32, 39) + SourceIndex(0) +10>Emitted(56, 38) Source(32, 45) + SourceIndex(0) +11>Emitted(56, 39) Source(32, 46) + SourceIndex(0) +12>Emitted(56, 41) Source(32, 30) + SourceIndex(0) +13>Emitted(56, 55) Source(32, 46) + SourceIndex(0) +14>Emitted(56, 57) Source(32, 30) + SourceIndex(0) +15>Emitted(56, 61) Source(32, 46) + SourceIndex(0) +--- +>>> _f = __read(_e[_i], 2), _g = _f[1], nameA = _g === void 0 ? "noName" : _g; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameA = "noName" -3 > -4 > nameA = "noName" -1->Emitted(26, 18) Source(32, 9) + SourceIndex(0) -2 >Emitted(26, 28) Source(32, 25) + SourceIndex(0) -3 >Emitted(26, 30) Source(32, 9) + SourceIndex(0) -4 >Emitted(26, 67) Source(32, 25) + SourceIndex(0) +2 > nameA = "noName" +3 > +4 > nameA = "noName" +1->Emitted(57, 29) Source(32, 9) + SourceIndex(0) +2 >Emitted(57, 39) Source(32, 25) + SourceIndex(0) +3 >Emitted(57, 41) Source(32, 9) + SourceIndex(0) +4 >Emitted(57, 78) Source(32, 25) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -690,270 +733,301 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameA 7 > ) 8 > ; -1 >Emitted(27, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(27, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(27, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(27, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(27, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(27, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(27, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(27, 24) Source(33, 24) + SourceIndex(0) +1 >Emitted(58, 5) Source(33, 5) + SourceIndex(0) +2 >Emitted(58, 12) Source(33, 12) + SourceIndex(0) +3 >Emitted(58, 13) Source(33, 13) + SourceIndex(0) +4 >Emitted(58, 16) Source(33, 16) + SourceIndex(0) +5 >Emitted(58, 17) Source(33, 17) + SourceIndex(0) +6 >Emitted(58, 22) Source(33, 22) + SourceIndex(0) +7 >Emitted(58, 23) Source(33, 23) + SourceIndex(0) +8 >Emitted(58, 24) Source(33, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(28, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(59, 2) Source(34, 2) + SourceIndex(0) --- ->>>for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ([, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(29, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(29, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(29, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(29, 6) Source(38, 30) + SourceIndex(0) -5 >Emitted(29, 16) Source(38, 41) + SourceIndex(0) -6 >Emitted(29, 18) Source(38, 30) + SourceIndex(0) -7 >Emitted(29, 45) Source(38, 41) + SourceIndex(0) -8 >Emitted(29, 47) Source(38, 30) + SourceIndex(0) -9 >Emitted(29, 72) Source(38, 41) + SourceIndex(0) -10>Emitted(29, 74) Source(38, 30) + SourceIndex(0) -11>Emitted(29, 78) Source(38, 41) + SourceIndex(0) ---- ->>> _m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1->Emitted(61, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(61, 8) Source(35, 4) + SourceIndex(0) +3 >Emitted(61, 9) Source(35, 5) + SourceIndex(0) +4 >Emitted(61, 10) Source(38, 30) + SourceIndex(0) +5 >Emitted(61, 14) Source(38, 30) + SourceIndex(0) +6 >Emitted(61, 30) Source(38, 30) + SourceIndex(0) +7 >Emitted(61, 32) Source(38, 30) + SourceIndex(0) +8 >Emitted(61, 42) Source(38, 30) + SourceIndex(0) +9 >Emitted(61, 51) Source(38, 30) + SourceIndex(0) +10>Emitted(61, 62) Source(38, 41) + SourceIndex(0) +11>Emitted(61, 63) Source(38, 41) + SourceIndex(0) +12>Emitted(61, 65) Source(38, 41) + SourceIndex(0) +13>Emitted(61, 67) Source(35, 6) + SourceIndex(0) +14>Emitted(61, 88) Source(38, 26) + SourceIndex(0) +--- +>>> _h = __read(multiRobots_1.result.value, 2), _j = _h[1], _k = __read(_j === void 0 ? ["skill1", "skill2"] : _j, 2), _l = _k[0], primarySkillA = _l === void 0 ? "primary" : _l, _m = _k[1], secondarySkillA = _m === void 0 ? "secondary" : _m; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -3 > -4 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -5 > -6 > primarySkillA = "primary" -7 > -8 > primarySkillA = "primary" -9 > , - > -10> secondarySkillA = "secondary" -11> -12> secondarySkillA = "secondary" -1->Emitted(30, 29) Source(35, 9) + SourceIndex(0) -2 >Emitted(30, 39) Source(38, 25) + SourceIndex(0) -3 >Emitted(30, 41) Source(35, 9) + SourceIndex(0) -4 >Emitted(30, 87) Source(38, 25) + SourceIndex(0) -5 >Emitted(30, 89) Source(36, 5) + SourceIndex(0) -6 >Emitted(30, 99) Source(36, 30) + SourceIndex(0) -7 >Emitted(30, 101) Source(36, 5) + SourceIndex(0) -8 >Emitted(30, 147) Source(36, 30) + SourceIndex(0) -9 >Emitted(30, 149) Source(37, 5) + SourceIndex(0) -10>Emitted(30, 159) Source(37, 34) + SourceIndex(0) -11>Emitted(30, 161) Source(37, 5) + SourceIndex(0) -12>Emitted(30, 211) Source(37, 34) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +3 > +4 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +5 > +6 > primarySkillA = "primary" +7 > +8 > primarySkillA = "primary" +9 > , + > +10> secondarySkillA = "secondary" +11> +12> secondarySkillA = "secondary" +1->Emitted(62, 53) Source(35, 9) + SourceIndex(0) +2 >Emitted(62, 63) Source(38, 25) + SourceIndex(0) +3 >Emitted(62, 65) Source(35, 9) + SourceIndex(0) +4 >Emitted(62, 122) Source(38, 25) + SourceIndex(0) +5 >Emitted(62, 124) Source(36, 5) + SourceIndex(0) +6 >Emitted(62, 134) Source(36, 30) + SourceIndex(0) +7 >Emitted(62, 136) Source(36, 5) + SourceIndex(0) +8 >Emitted(62, 182) Source(36, 30) + SourceIndex(0) +9 >Emitted(62, 184) Source(37, 5) + SourceIndex(0) +10>Emitted(62, 194) Source(37, 34) + SourceIndex(0) +11>Emitted(62, 196) Source(37, 5) + SourceIndex(0) +12>Emitted(62, 246) Source(37, 34) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(31, 5) Source(39, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(39, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(39, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(39, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(39, 17) + SourceIndex(0) -6 >Emitted(31, 30) Source(39, 30) + SourceIndex(0) -7 >Emitted(31, 31) Source(39, 31) + SourceIndex(0) -8 >Emitted(31, 32) Source(39, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(63, 9) Source(39, 5) + SourceIndex(0) +2 >Emitted(63, 16) Source(39, 12) + SourceIndex(0) +3 >Emitted(63, 17) Source(39, 13) + SourceIndex(0) +4 >Emitted(63, 20) Source(39, 16) + SourceIndex(0) +5 >Emitted(63, 21) Source(39, 17) + SourceIndex(0) +6 >Emitted(63, 34) Source(39, 30) + SourceIndex(0) +7 >Emitted(63, 35) Source(39, 31) + SourceIndex(0) +8 >Emitted(63, 36) Source(39, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(32, 2) Source(40, 2) + SourceIndex(0) +1 >Emitted(64, 6) Source(40, 2) + SourceIndex(0) --- ->>>for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([, [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(33, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(33, 4) Source(41, 4) + SourceIndex(0) -3 >Emitted(33, 5) Source(41, 5) + SourceIndex(0) -4 >Emitted(33, 6) Source(44, 30) + SourceIndex(0) -5 >Emitted(33, 16) Source(44, 46) + SourceIndex(0) -6 >Emitted(33, 18) Source(44, 30) + SourceIndex(0) -7 >Emitted(33, 23) Source(44, 30) + SourceIndex(0) -8 >Emitted(33, 37) Source(44, 44) + SourceIndex(0) -9 >Emitted(33, 39) Source(44, 46) + SourceIndex(0) -10>Emitted(33, 41) Source(44, 30) + SourceIndex(0) -11>Emitted(33, 55) Source(44, 46) + SourceIndex(0) -12>Emitted(33, 57) Source(44, 30) + SourceIndex(0) -13>Emitted(33, 61) Source(44, 46) + SourceIndex(0) ---- ->>> _u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [, [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1 >Emitted(71, 5) Source(41, 1) + SourceIndex(0) +2 >Emitted(71, 8) Source(41, 4) + SourceIndex(0) +3 >Emitted(71, 9) Source(41, 5) + SourceIndex(0) +4 >Emitted(71, 10) Source(44, 30) + SourceIndex(0) +5 >Emitted(71, 14) Source(44, 30) + SourceIndex(0) +6 >Emitted(71, 27) Source(44, 30) + SourceIndex(0) +7 >Emitted(71, 29) Source(44, 30) + SourceIndex(0) +8 >Emitted(71, 39) Source(44, 30) + SourceIndex(0) +9 >Emitted(71, 48) Source(44, 30) + SourceIndex(0) +10>Emitted(71, 62) Source(44, 44) + SourceIndex(0) +11>Emitted(71, 64) Source(44, 46) + SourceIndex(0) +12>Emitted(71, 65) Source(44, 46) + SourceIndex(0) +13>Emitted(71, 67) Source(44, 46) + SourceIndex(0) +14>Emitted(71, 69) Source(41, 6) + SourceIndex(0) +15>Emitted(71, 87) Source(44, 26) + SourceIndex(0) +--- +>>> _o = __read(iterator_2.result.value, 2), _p = _o[1], _q = __read(_p === void 0 ? ["skill1", "skill2"] : _p, 2), _r = _q[0], primarySkillA = _r === void 0 ? "primary" : _r, _s = _q[1], secondarySkillA = _s === void 0 ? "secondary" : _s; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -3 > -4 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -5 > -6 > primarySkillA = "primary" -7 > -8 > primarySkillA = "primary" -9 > , - > -10> secondarySkillA = "secondary" -11> -12> secondarySkillA = "secondary" -1->Emitted(34, 18) Source(41, 9) + SourceIndex(0) -2 >Emitted(34, 28) Source(44, 25) + SourceIndex(0) -3 >Emitted(34, 30) Source(41, 9) + SourceIndex(0) -4 >Emitted(34, 76) Source(44, 25) + SourceIndex(0) -5 >Emitted(34, 78) Source(42, 5) + SourceIndex(0) -6 >Emitted(34, 88) Source(42, 30) + SourceIndex(0) -7 >Emitted(34, 90) Source(42, 5) + SourceIndex(0) -8 >Emitted(34, 136) Source(42, 30) + SourceIndex(0) -9 >Emitted(34, 138) Source(43, 5) + SourceIndex(0) -10>Emitted(34, 148) Source(43, 34) + SourceIndex(0) -11>Emitted(34, 150) Source(43, 5) + SourceIndex(0) -12>Emitted(34, 200) Source(43, 34) + SourceIndex(0) ---- ->>> console.log(primarySkillA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ +2 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +3 > +4 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +5 > +6 > primarySkillA = "primary" +7 > +8 > primarySkillA = "primary" +9 > , + > +10> secondarySkillA = "secondary" +11> +12> secondarySkillA = "secondary" +1->Emitted(72, 50) Source(41, 9) + SourceIndex(0) +2 >Emitted(72, 60) Source(44, 25) + SourceIndex(0) +3 >Emitted(72, 62) Source(41, 9) + SourceIndex(0) +4 >Emitted(72, 119) Source(44, 25) + SourceIndex(0) +5 >Emitted(72, 121) Source(42, 5) + SourceIndex(0) +6 >Emitted(72, 131) Source(42, 30) + SourceIndex(0) +7 >Emitted(72, 133) Source(42, 5) + SourceIndex(0) +8 >Emitted(72, 179) Source(42, 30) + SourceIndex(0) +9 >Emitted(72, 181) Source(43, 5) + SourceIndex(0) +10>Emitted(72, 191) Source(43, 34) + SourceIndex(0) +11>Emitted(72, 193) Source(43, 5) + SourceIndex(0) +12>Emitted(72, 243) Source(43, 34) + SourceIndex(0) +--- +>>> console.log(primarySkillA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primarySkillA -7 > ) -8 > ; -1 >Emitted(35, 5) Source(45, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(45, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(45, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(45, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(45, 17) + SourceIndex(0) -6 >Emitted(35, 30) Source(45, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(45, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(45, 32) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primarySkillA +7 > ) +8 > ; +1 >Emitted(73, 9) Source(45, 5) + SourceIndex(0) +2 >Emitted(73, 16) Source(45, 12) + SourceIndex(0) +3 >Emitted(73, 17) Source(45, 13) + SourceIndex(0) +4 >Emitted(73, 20) Source(45, 16) + SourceIndex(0) +5 >Emitted(73, 21) Source(45, 17) + SourceIndex(0) +6 >Emitted(73, 34) Source(45, 30) + SourceIndex(0) +7 >Emitted(73, 35) Source(45, 31) + SourceIndex(0) +8 >Emitted(73, 36) Source(45, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(36, 2) Source(46, 2) + SourceIndex(0) +1 >Emitted(74, 6) Source(46, 2) + SourceIndex(0) --- ->>>for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) { -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _t = 0, _u = [multiRobotA, multiRobotB]; _t < _u.length; _t++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -968,8 +1042,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -988,66 +1062,66 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(37, 1) Source(47, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(47, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(47, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(50, 30) + SourceIndex(0) -5 >Emitted(37, 16) Source(50, 56) + SourceIndex(0) -6 >Emitted(37, 18) Source(50, 30) + SourceIndex(0) -7 >Emitted(37, 24) Source(50, 31) + SourceIndex(0) -8 >Emitted(37, 35) Source(50, 42) + SourceIndex(0) -9 >Emitted(37, 37) Source(50, 44) + SourceIndex(0) -10>Emitted(37, 48) Source(50, 55) + SourceIndex(0) -11>Emitted(37, 49) Source(50, 56) + SourceIndex(0) -12>Emitted(37, 51) Source(50, 30) + SourceIndex(0) -13>Emitted(37, 65) Source(50, 56) + SourceIndex(0) -14>Emitted(37, 67) Source(50, 30) + SourceIndex(0) -15>Emitted(37, 71) Source(50, 56) + SourceIndex(0) ---- ->>> _1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5; -1->^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(80, 1) Source(47, 1) + SourceIndex(0) +2 >Emitted(80, 4) Source(47, 4) + SourceIndex(0) +3 >Emitted(80, 5) Source(47, 5) + SourceIndex(0) +4 >Emitted(80, 6) Source(50, 30) + SourceIndex(0) +5 >Emitted(80, 16) Source(50, 56) + SourceIndex(0) +6 >Emitted(80, 18) Source(50, 30) + SourceIndex(0) +7 >Emitted(80, 24) Source(50, 31) + SourceIndex(0) +8 >Emitted(80, 35) Source(50, 42) + SourceIndex(0) +9 >Emitted(80, 37) Source(50, 44) + SourceIndex(0) +10>Emitted(80, 48) Source(50, 55) + SourceIndex(0) +11>Emitted(80, 49) Source(50, 56) + SourceIndex(0) +12>Emitted(80, 51) Source(50, 30) + SourceIndex(0) +13>Emitted(80, 65) Source(50, 56) + SourceIndex(0) +14>Emitted(80, 67) Source(50, 30) + SourceIndex(0) +15>Emitted(80, 71) Source(50, 56) + SourceIndex(0) +--- +>>> _v = __read(_u[_t], 2), _w = _v[1], _x = __read(_w === void 0 ? ["skill1", "skill2"] : _w, 2), _y = _x[0], primarySkillA = _y === void 0 ? "primary" : _y, _z = _x[1], secondarySkillA = _z === void 0 ? "secondary" : _z; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -3 > -4 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -5 > -6 > primarySkillA = "primary" -7 > -8 > primarySkillA = "primary" -9 > , - > -10> secondarySkillA = "secondary" -11> -12> secondarySkillA = "secondary" -1->Emitted(38, 18) Source(47, 9) + SourceIndex(0) -2 >Emitted(38, 28) Source(50, 25) + SourceIndex(0) -3 >Emitted(38, 30) Source(47, 9) + SourceIndex(0) -4 >Emitted(38, 76) Source(50, 25) + SourceIndex(0) -5 >Emitted(38, 78) Source(48, 5) + SourceIndex(0) -6 >Emitted(38, 88) Source(48, 30) + SourceIndex(0) -7 >Emitted(38, 90) Source(48, 5) + SourceIndex(0) -8 >Emitted(38, 136) Source(48, 30) + SourceIndex(0) -9 >Emitted(38, 138) Source(49, 5) + SourceIndex(0) -10>Emitted(38, 148) Source(49, 34) + SourceIndex(0) -11>Emitted(38, 150) Source(49, 5) + SourceIndex(0) -12>Emitted(38, 200) Source(49, 34) + SourceIndex(0) +2 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +3 > +4 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +5 > +6 > primarySkillA = "primary" +7 > +8 > primarySkillA = "primary" +9 > , + > +10> secondarySkillA = "secondary" +11> +12> secondarySkillA = "secondary" +1->Emitted(81, 29) Source(47, 9) + SourceIndex(0) +2 >Emitted(81, 39) Source(50, 25) + SourceIndex(0) +3 >Emitted(81, 41) Source(47, 9) + SourceIndex(0) +4 >Emitted(81, 98) Source(50, 25) + SourceIndex(0) +5 >Emitted(81, 100) Source(48, 5) + SourceIndex(0) +6 >Emitted(81, 110) Source(48, 30) + SourceIndex(0) +7 >Emitted(81, 112) Source(48, 5) + SourceIndex(0) +8 >Emitted(81, 158) Source(48, 30) + SourceIndex(0) +9 >Emitted(81, 160) Source(49, 5) + SourceIndex(0) +10>Emitted(81, 170) Source(49, 34) + SourceIndex(0) +11>Emitted(81, 172) Source(49, 5) + SourceIndex(0) +12>Emitted(81, 222) Source(49, 34) + SourceIndex(0) --- >>> console.log(primarySkillA); 1 >^^^^ @@ -1068,259 +1142,286 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > primarySkillA 7 > ) 8 > ; -1 >Emitted(39, 5) Source(51, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(51, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(51, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(51, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(51, 17) + SourceIndex(0) -6 >Emitted(39, 30) Source(51, 30) + SourceIndex(0) -7 >Emitted(39, 31) Source(51, 31) + SourceIndex(0) -8 >Emitted(39, 32) Source(51, 32) + SourceIndex(0) +1 >Emitted(82, 5) Source(51, 5) + SourceIndex(0) +2 >Emitted(82, 12) Source(51, 12) + SourceIndex(0) +3 >Emitted(82, 13) Source(51, 13) + SourceIndex(0) +4 >Emitted(82, 16) Source(51, 16) + SourceIndex(0) +5 >Emitted(82, 17) Source(51, 17) + SourceIndex(0) +6 >Emitted(82, 30) Source(51, 30) + SourceIndex(0) +7 >Emitted(82, 31) Source(51, 31) + SourceIndex(0) +8 >Emitted(82, 32) Source(51, 32) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(40, 2) Source(52, 2) + SourceIndex(0) +1 >Emitted(83, 2) Source(52, 2) + SourceIndex(0) --- ->>>for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > ([numberB = -1] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(41, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(54, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(54, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(54, 24) + SourceIndex(0) -5 >Emitted(41, 16) Source(54, 30) + SourceIndex(0) -6 >Emitted(41, 18) Source(54, 24) + SourceIndex(0) -7 >Emitted(41, 35) Source(54, 30) + SourceIndex(0) -8 >Emitted(41, 37) Source(54, 24) + SourceIndex(0) -9 >Emitted(41, 57) Source(54, 30) + SourceIndex(0) -10>Emitted(41, 59) Source(54, 24) + SourceIndex(0) -11>Emitted(41, 63) Source(54, 30) + SourceIndex(0) ---- ->>> _7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > numberB = -1 -3 > -4 > numberB = -1 -1 >Emitted(42, 5) Source(54, 7) + SourceIndex(0) -2 >Emitted(42, 25) Source(54, 19) + SourceIndex(0) -3 >Emitted(42, 27) Source(54, 7) + SourceIndex(0) -4 >Emitted(42, 60) Source(54, 19) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ +2 > for +3 > +4 > ([numberB = -1] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberB = -1] +1->Emitted(85, 5) Source(54, 1) + SourceIndex(0) +2 >Emitted(85, 8) Source(54, 4) + SourceIndex(0) +3 >Emitted(85, 9) Source(54, 5) + SourceIndex(0) +4 >Emitted(85, 10) Source(54, 24) + SourceIndex(0) +5 >Emitted(85, 14) Source(54, 24) + SourceIndex(0) +6 >Emitted(85, 25) Source(54, 24) + SourceIndex(0) +7 >Emitted(85, 27) Source(54, 24) + SourceIndex(0) +8 >Emitted(85, 37) Source(54, 24) + SourceIndex(0) +9 >Emitted(85, 46) Source(54, 24) + SourceIndex(0) +10>Emitted(85, 52) Source(54, 30) + SourceIndex(0) +11>Emitted(85, 53) Source(54, 30) + SourceIndex(0) +12>Emitted(85, 55) Source(54, 30) + SourceIndex(0) +13>Emitted(85, 57) Source(54, 6) + SourceIndex(0) +14>Emitted(85, 73) Source(54, 20) + SourceIndex(0) +--- +>>> _0 = __read(robots_2.result.value, 1), _1 = _0[0], numberB = _1 === void 0 ? -1 : _1; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > numberB = -1 +3 > +4 > numberB = -1 +1->Emitted(86, 48) Source(54, 7) + SourceIndex(0) +2 >Emitted(86, 58) Source(54, 19) + SourceIndex(0) +3 >Emitted(86, 60) Source(54, 7) + SourceIndex(0) +4 >Emitted(86, 93) Source(54, 19) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(43, 5) Source(55, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(55, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(55, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(55, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(55, 17) + SourceIndex(0) -6 >Emitted(43, 24) Source(55, 24) + SourceIndex(0) -7 >Emitted(43, 25) Source(55, 25) + SourceIndex(0) -8 >Emitted(43, 26) Source(55, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(87, 9) Source(55, 5) + SourceIndex(0) +2 >Emitted(87, 16) Source(55, 12) + SourceIndex(0) +3 >Emitted(87, 17) Source(55, 13) + SourceIndex(0) +4 >Emitted(87, 20) Source(55, 16) + SourceIndex(0) +5 >Emitted(87, 21) Source(55, 17) + SourceIndex(0) +6 >Emitted(87, 28) Source(55, 24) + SourceIndex(0) +7 >Emitted(87, 29) Source(55, 25) + SourceIndex(0) +8 >Emitted(87, 30) Source(55, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(44, 2) Source(56, 2) + SourceIndex(0) +1 >Emitted(88, 6) Source(56, 2) + SourceIndex(0) --- ->>>for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^-> -1-> +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([numberB = -1] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(45, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(57, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(57, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(57, 24) + SourceIndex(0) -5 >Emitted(45, 16) Source(57, 35) + SourceIndex(0) -6 >Emitted(45, 18) Source(57, 24) + SourceIndex(0) -7 >Emitted(45, 23) Source(57, 24) + SourceIndex(0) -8 >Emitted(45, 32) Source(57, 33) + SourceIndex(0) -9 >Emitted(45, 34) Source(57, 35) + SourceIndex(0) -10>Emitted(45, 36) Source(57, 24) + SourceIndex(0) -11>Emitted(45, 50) Source(57, 35) + SourceIndex(0) -12>Emitted(45, 52) Source(57, 24) + SourceIndex(0) -13>Emitted(45, 56) Source(57, 35) + SourceIndex(0) ---- ->>> _10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10; -1->^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberB = -1] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberB = -1] +1 >Emitted(95, 5) Source(57, 1) + SourceIndex(0) +2 >Emitted(95, 8) Source(57, 4) + SourceIndex(0) +3 >Emitted(95, 9) Source(57, 5) + SourceIndex(0) +4 >Emitted(95, 10) Source(57, 24) + SourceIndex(0) +5 >Emitted(95, 14) Source(57, 24) + SourceIndex(0) +6 >Emitted(95, 27) Source(57, 24) + SourceIndex(0) +7 >Emitted(95, 29) Source(57, 24) + SourceIndex(0) +8 >Emitted(95, 39) Source(57, 24) + SourceIndex(0) +9 >Emitted(95, 48) Source(57, 24) + SourceIndex(0) +10>Emitted(95, 57) Source(57, 33) + SourceIndex(0) +11>Emitted(95, 59) Source(57, 35) + SourceIndex(0) +12>Emitted(95, 60) Source(57, 35) + SourceIndex(0) +13>Emitted(95, 62) Source(57, 35) + SourceIndex(0) +14>Emitted(95, 64) Source(57, 6) + SourceIndex(0) +15>Emitted(95, 82) Source(57, 20) + SourceIndex(0) +--- +>>> _2 = __read(iterator_3.result.value, 1), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberB = -1 -3 > -4 > numberB = -1 -1->Emitted(46, 5) Source(57, 7) + SourceIndex(0) -2 >Emitted(46, 20) Source(57, 19) + SourceIndex(0) -3 >Emitted(46, 22) Source(57, 7) + SourceIndex(0) -4 >Emitted(46, 57) Source(57, 19) + SourceIndex(0) ---- ->>> console.log(numberB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^ -7 > ^ -8 > ^ +2 > numberB = -1 +3 > +4 > numberB = -1 +1->Emitted(96, 50) Source(57, 7) + SourceIndex(0) +2 >Emitted(96, 60) Source(57, 19) + SourceIndex(0) +3 >Emitted(96, 62) Source(57, 7) + SourceIndex(0) +4 >Emitted(96, 95) Source(57, 19) + SourceIndex(0) +--- +>>> console.log(numberB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberB -7 > ) -8 > ; -1 >Emitted(47, 5) Source(58, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(58, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(58, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(58, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(58, 17) + SourceIndex(0) -6 >Emitted(47, 24) Source(58, 24) + SourceIndex(0) -7 >Emitted(47, 25) Source(58, 25) + SourceIndex(0) -8 >Emitted(47, 26) Source(58, 26) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberB +7 > ) +8 > ; +1 >Emitted(97, 9) Source(58, 5) + SourceIndex(0) +2 >Emitted(97, 16) Source(58, 12) + SourceIndex(0) +3 >Emitted(97, 17) Source(58, 13) + SourceIndex(0) +4 >Emitted(97, 20) Source(58, 16) + SourceIndex(0) +5 >Emitted(97, 21) Source(58, 17) + SourceIndex(0) +6 >Emitted(97, 28) Source(58, 24) + SourceIndex(0) +7 >Emitted(97, 29) Source(58, 25) + SourceIndex(0) +8 >Emitted(97, 30) Source(58, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(48, 2) Source(59, 2) + SourceIndex(0) +1 >Emitted(98, 6) Source(59, 2) + SourceIndex(0) --- ->>>for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _4 = 0, _5 = [robotA, robotB]; _4 < _5.length; _4++) { +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^^^^^ -9 > ^^ -10> ^^^^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^ -1-> +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^^^^^ +9 > ^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^ +16> ^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > 4 > ([numberB = -1] of 5 > [robotA, robotB] -6 > -7 > [ -8 > robotA -9 > , -10> robotB -11> ] -12> -13> [robotA, robotB] -14> -15> [robotA, robotB] -1->Emitted(49, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(60, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(60, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(60, 24) + SourceIndex(0) -5 >Emitted(49, 17) Source(60, 40) + SourceIndex(0) -6 >Emitted(49, 19) Source(60, 24) + SourceIndex(0) -7 >Emitted(49, 26) Source(60, 25) + SourceIndex(0) -8 >Emitted(49, 32) Source(60, 31) + SourceIndex(0) -9 >Emitted(49, 34) Source(60, 33) + SourceIndex(0) -10>Emitted(49, 40) Source(60, 39) + SourceIndex(0) -11>Emitted(49, 41) Source(60, 40) + SourceIndex(0) -12>Emitted(49, 43) Source(60, 24) + SourceIndex(0) -13>Emitted(49, 59) Source(60, 40) + SourceIndex(0) -14>Emitted(49, 61) Source(60, 24) + SourceIndex(0) -15>Emitted(49, 66) Source(60, 40) + SourceIndex(0) ---- ->>> _13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > numberB = -1 -3 > -4 > numberB = -1 -1 >Emitted(50, 5) Source(60, 7) + SourceIndex(0) -2 >Emitted(50, 22) Source(60, 19) + SourceIndex(0) -3 >Emitted(50, 24) Source(60, 7) + SourceIndex(0) -4 >Emitted(50, 59) Source(60, 19) + SourceIndex(0) +6 > +7 > [ +8 > robotA +9 > , +10> robotB +11> ] +12> +13> [robotA, robotB] +14> +15> [robotA, robotB] +1 >Emitted(104, 1) Source(60, 1) + SourceIndex(0) +2 >Emitted(104, 4) Source(60, 4) + SourceIndex(0) +3 >Emitted(104, 5) Source(60, 5) + SourceIndex(0) +4 >Emitted(104, 6) Source(60, 24) + SourceIndex(0) +5 >Emitted(104, 16) Source(60, 40) + SourceIndex(0) +6 >Emitted(104, 18) Source(60, 24) + SourceIndex(0) +7 >Emitted(104, 24) Source(60, 25) + SourceIndex(0) +8 >Emitted(104, 30) Source(60, 31) + SourceIndex(0) +9 >Emitted(104, 32) Source(60, 33) + SourceIndex(0) +10>Emitted(104, 38) Source(60, 39) + SourceIndex(0) +11>Emitted(104, 39) Source(60, 40) + SourceIndex(0) +12>Emitted(104, 41) Source(60, 24) + SourceIndex(0) +13>Emitted(104, 55) Source(60, 40) + SourceIndex(0) +14>Emitted(104, 57) Source(60, 24) + SourceIndex(0) +15>Emitted(104, 61) Source(60, 40) + SourceIndex(0) +--- +>>> _6 = __read(_5[_4], 1), _7 = _6[0], numberB = _7 === void 0 ? -1 : _7; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > numberB = -1 +3 > +4 > numberB = -1 +1->Emitted(105, 29) Source(60, 7) + SourceIndex(0) +2 >Emitted(105, 39) Source(60, 19) + SourceIndex(0) +3 >Emitted(105, 41) Source(60, 7) + SourceIndex(0) +4 >Emitted(105, 74) Source(60, 19) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -1340,198 +1441,225 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > numberB 7 > ) 8 > ; -1 >Emitted(51, 5) Source(61, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(61, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(61, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(61, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(61, 17) + SourceIndex(0) -6 >Emitted(51, 24) Source(61, 24) + SourceIndex(0) -7 >Emitted(51, 25) Source(61, 25) + SourceIndex(0) -8 >Emitted(51, 26) Source(61, 26) + SourceIndex(0) +1 >Emitted(106, 5) Source(61, 5) + SourceIndex(0) +2 >Emitted(106, 12) Source(61, 12) + SourceIndex(0) +3 >Emitted(106, 13) Source(61, 13) + SourceIndex(0) +4 >Emitted(106, 16) Source(61, 16) + SourceIndex(0) +5 >Emitted(106, 17) Source(61, 17) + SourceIndex(0) +6 >Emitted(106, 24) Source(61, 24) + SourceIndex(0) +7 >Emitted(106, 25) Source(61, 25) + SourceIndex(0) +8 >Emitted(106, 26) Source(61, 26) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(52, 2) Source(62, 2) + SourceIndex(0) +1 >Emitted(107, 2) Source(62, 2) + SourceIndex(0) --- ->>>for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ([nameB = "noName"] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(53, 1) Source(63, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(63, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(63, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(63, 28) + SourceIndex(0) -5 >Emitted(53, 17) Source(63, 39) + SourceIndex(0) -6 >Emitted(53, 19) Source(63, 28) + SourceIndex(0) -7 >Emitted(53, 46) Source(63, 39) + SourceIndex(0) -8 >Emitted(53, 48) Source(63, 28) + SourceIndex(0) -9 >Emitted(53, 74) Source(63, 39) + SourceIndex(0) -10>Emitted(53, 76) Source(63, 28) + SourceIndex(0) -11>Emitted(53, 81) Source(63, 39) + SourceIndex(0) ---- ->>> _15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > nameB = "noName" -3 > -4 > nameB = "noName" -1 >Emitted(54, 5) Source(63, 7) + SourceIndex(0) -2 >Emitted(54, 32) Source(63, 23) + SourceIndex(0) -3 >Emitted(54, 34) Source(63, 7) + SourceIndex(0) -4 >Emitted(54, 73) Source(63, 23) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(55, 5) Source(64, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(64, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(64, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(64, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(64, 17) + SourceIndex(0) -6 >Emitted(55, 22) Source(64, 22) + SourceIndex(0) -7 >Emitted(55, 23) Source(64, 23) + SourceIndex(0) -8 >Emitted(55, 24) Source(64, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(56, 2) Source(65, 2) + SourceIndex(0) ---- ->>>for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) { +2 > for +3 > +4 > ([nameB = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [nameB = "noName"] +1->Emitted(109, 5) Source(63, 1) + SourceIndex(0) +2 >Emitted(109, 8) Source(63, 4) + SourceIndex(0) +3 >Emitted(109, 9) Source(63, 5) + SourceIndex(0) +4 >Emitted(109, 10) Source(63, 28) + SourceIndex(0) +5 >Emitted(109, 14) Source(63, 28) + SourceIndex(0) +6 >Emitted(109, 30) Source(63, 28) + SourceIndex(0) +7 >Emitted(109, 32) Source(63, 28) + SourceIndex(0) +8 >Emitted(109, 42) Source(63, 28) + SourceIndex(0) +9 >Emitted(109, 51) Source(63, 28) + SourceIndex(0) +10>Emitted(109, 62) Source(63, 39) + SourceIndex(0) +11>Emitted(109, 63) Source(63, 39) + SourceIndex(0) +12>Emitted(109, 65) Source(63, 39) + SourceIndex(0) +13>Emitted(109, 67) Source(63, 6) + SourceIndex(0) +14>Emitted(109, 88) Source(63, 24) + SourceIndex(0) +--- +>>> _8 = __read(multiRobots_2.result.value, 1), _9 = _8[0], nameB = _9 === void 0 ? "noName" : _9; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -1-> - > -2 >for -3 > -4 > ([nameB = "noName"] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(57, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(66, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(66, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(66, 28) + SourceIndex(0) -5 >Emitted(57, 17) Source(66, 44) + SourceIndex(0) -6 >Emitted(57, 19) Source(66, 28) + SourceIndex(0) -7 >Emitted(57, 25) Source(66, 28) + SourceIndex(0) -8 >Emitted(57, 39) Source(66, 42) + SourceIndex(0) -9 >Emitted(57, 41) Source(66, 44) + SourceIndex(0) -10>Emitted(57, 43) Source(66, 28) + SourceIndex(0) -11>Emitted(57, 59) Source(66, 44) + SourceIndex(0) -12>Emitted(57, 61) Source(66, 28) + SourceIndex(0) -13>Emitted(57, 66) Source(66, 44) + SourceIndex(0) ---- ->>> _18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > nameB = "noName" -3 > -4 > nameB = "noName" -1 >Emitted(58, 5) Source(66, 7) + SourceIndex(0) -2 >Emitted(58, 22) Source(66, 23) + SourceIndex(0) -3 >Emitted(58, 24) Source(66, 7) + SourceIndex(0) -4 >Emitted(58, 63) Source(66, 23) + SourceIndex(0) ---- ->>> console.log(nameB); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 >] of getMultiRobots()) { +2 > nameB = "noName" +3 > +4 > nameB = "noName" +1->Emitted(110, 53) Source(63, 7) + SourceIndex(0) +2 >Emitted(110, 63) Source(63, 23) + SourceIndex(0) +3 >Emitted(110, 65) Source(63, 7) + SourceIndex(0) +4 >Emitted(110, 102) Source(63, 23) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameB -7 > ) -8 > ; -1 >Emitted(59, 5) Source(67, 5) + SourceIndex(0) -2 >Emitted(59, 12) Source(67, 12) + SourceIndex(0) -3 >Emitted(59, 13) Source(67, 13) + SourceIndex(0) -4 >Emitted(59, 16) Source(67, 16) + SourceIndex(0) -5 >Emitted(59, 17) Source(67, 17) + SourceIndex(0) -6 >Emitted(59, 22) Source(67, 22) + SourceIndex(0) -7 >Emitted(59, 23) Source(67, 23) + SourceIndex(0) -8 >Emitted(59, 24) Source(67, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(111, 9) Source(64, 5) + SourceIndex(0) +2 >Emitted(111, 16) Source(64, 12) + SourceIndex(0) +3 >Emitted(111, 17) Source(64, 13) + SourceIndex(0) +4 >Emitted(111, 20) Source(64, 16) + SourceIndex(0) +5 >Emitted(111, 21) Source(64, 17) + SourceIndex(0) +6 >Emitted(111, 26) Source(64, 22) + SourceIndex(0) +7 >Emitted(111, 27) Source(64, 23) + SourceIndex(0) +8 >Emitted(111, 28) Source(64, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(112, 6) Source(65, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > ([nameB = "noName"] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [nameB = "noName"] +1 >Emitted(119, 5) Source(66, 1) + SourceIndex(0) +2 >Emitted(119, 8) Source(66, 4) + SourceIndex(0) +3 >Emitted(119, 9) Source(66, 5) + SourceIndex(0) +4 >Emitted(119, 10) Source(66, 28) + SourceIndex(0) +5 >Emitted(119, 14) Source(66, 28) + SourceIndex(0) +6 >Emitted(119, 27) Source(66, 28) + SourceIndex(0) +7 >Emitted(119, 29) Source(66, 28) + SourceIndex(0) +8 >Emitted(119, 39) Source(66, 28) + SourceIndex(0) +9 >Emitted(119, 48) Source(66, 28) + SourceIndex(0) +10>Emitted(119, 62) Source(66, 42) + SourceIndex(0) +11>Emitted(119, 64) Source(66, 44) + SourceIndex(0) +12>Emitted(119, 65) Source(66, 44) + SourceIndex(0) +13>Emitted(119, 67) Source(66, 44) + SourceIndex(0) +14>Emitted(119, 69) Source(66, 6) + SourceIndex(0) +15>Emitted(119, 87) Source(66, 24) + SourceIndex(0) +--- +>>> _10 = __read(iterator_4.result.value, 1), _11 = _10[0], nameB = _11 === void 0 ? "noName" : _11; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > nameB = "noName" +3 > +4 > nameB = "noName" +1->Emitted(120, 51) Source(66, 7) + SourceIndex(0) +2 >Emitted(120, 63) Source(66, 23) + SourceIndex(0) +3 >Emitted(120, 65) Source(66, 7) + SourceIndex(0) +4 >Emitted(120, 104) Source(66, 23) + SourceIndex(0) +--- +>>> console.log(nameB); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 >] of getMultiRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameB +7 > ) +8 > ; +1 >Emitted(121, 9) Source(67, 5) + SourceIndex(0) +2 >Emitted(121, 16) Source(67, 12) + SourceIndex(0) +3 >Emitted(121, 17) Source(67, 13) + SourceIndex(0) +4 >Emitted(121, 20) Source(67, 16) + SourceIndex(0) +5 >Emitted(121, 21) Source(67, 17) + SourceIndex(0) +6 >Emitted(121, 26) Source(67, 22) + SourceIndex(0) +7 >Emitted(121, 27) Source(67, 23) + SourceIndex(0) +8 >Emitted(121, 28) Source(67, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(60, 2) Source(68, 2) + SourceIndex(0) +1 >Emitted(122, 6) Source(68, 2) + SourceIndex(0) --- ->>>for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) { -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _12 = 0, _13 = [multiRobotA, multiRobotB]; _12 < _13.length; _12++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1546,7 +1674,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -1-> +16> ^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1562,35 +1691,35 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(61, 1) Source(69, 1) + SourceIndex(0) -2 >Emitted(61, 4) Source(69, 4) + SourceIndex(0) -3 >Emitted(61, 5) Source(69, 5) + SourceIndex(0) -4 >Emitted(61, 6) Source(69, 28) + SourceIndex(0) -5 >Emitted(61, 17) Source(69, 54) + SourceIndex(0) -6 >Emitted(61, 19) Source(69, 28) + SourceIndex(0) -7 >Emitted(61, 26) Source(69, 29) + SourceIndex(0) -8 >Emitted(61, 37) Source(69, 40) + SourceIndex(0) -9 >Emitted(61, 39) Source(69, 42) + SourceIndex(0) -10>Emitted(61, 50) Source(69, 53) + SourceIndex(0) -11>Emitted(61, 51) Source(69, 54) + SourceIndex(0) -12>Emitted(61, 53) Source(69, 28) + SourceIndex(0) -13>Emitted(61, 69) Source(69, 54) + SourceIndex(0) -14>Emitted(61, 71) Source(69, 28) + SourceIndex(0) -15>Emitted(61, 76) Source(69, 54) + SourceIndex(0) ---- ->>> _21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > nameB = "noName" -3 > -4 > nameB = "noName" -1 >Emitted(62, 5) Source(69, 7) + SourceIndex(0) -2 >Emitted(62, 22) Source(69, 23) + SourceIndex(0) -3 >Emitted(62, 24) Source(69, 7) + SourceIndex(0) -4 >Emitted(62, 63) Source(69, 23) + SourceIndex(0) +1 >Emitted(128, 1) Source(69, 1) + SourceIndex(0) +2 >Emitted(128, 4) Source(69, 4) + SourceIndex(0) +3 >Emitted(128, 5) Source(69, 5) + SourceIndex(0) +4 >Emitted(128, 6) Source(69, 28) + SourceIndex(0) +5 >Emitted(128, 17) Source(69, 54) + SourceIndex(0) +6 >Emitted(128, 19) Source(69, 28) + SourceIndex(0) +7 >Emitted(128, 26) Source(69, 29) + SourceIndex(0) +8 >Emitted(128, 37) Source(69, 40) + SourceIndex(0) +9 >Emitted(128, 39) Source(69, 42) + SourceIndex(0) +10>Emitted(128, 50) Source(69, 53) + SourceIndex(0) +11>Emitted(128, 51) Source(69, 54) + SourceIndex(0) +12>Emitted(128, 53) Source(69, 28) + SourceIndex(0) +13>Emitted(128, 69) Source(69, 54) + SourceIndex(0) +14>Emitted(128, 71) Source(69, 28) + SourceIndex(0) +15>Emitted(128, 76) Source(69, 54) + SourceIndex(0) +--- +>>> _14 = __read(_13[_12], 1), _15 = _14[0], nameB = _15 === void 0 ? "noName" : _15; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > nameB = "noName" +3 > +4 > nameB = "noName" +1->Emitted(129, 32) Source(69, 7) + SourceIndex(0) +2 >Emitted(129, 44) Source(69, 23) + SourceIndex(0) +3 >Emitted(129, 46) Source(69, 7) + SourceIndex(0) +4 >Emitted(129, 85) Source(69, 23) + SourceIndex(0) --- >>> console.log(nameB); 1 >^^^^ @@ -1610,249 +1739,274 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameB 7 > ) 8 > ; -1 >Emitted(63, 5) Source(70, 5) + SourceIndex(0) -2 >Emitted(63, 12) Source(70, 12) + SourceIndex(0) -3 >Emitted(63, 13) Source(70, 13) + SourceIndex(0) -4 >Emitted(63, 16) Source(70, 16) + SourceIndex(0) -5 >Emitted(63, 17) Source(70, 17) + SourceIndex(0) -6 >Emitted(63, 22) Source(70, 22) + SourceIndex(0) -7 >Emitted(63, 23) Source(70, 23) + SourceIndex(0) -8 >Emitted(63, 24) Source(70, 24) + SourceIndex(0) +1 >Emitted(130, 5) Source(70, 5) + SourceIndex(0) +2 >Emitted(130, 12) Source(70, 12) + SourceIndex(0) +3 >Emitted(130, 13) Source(70, 13) + SourceIndex(0) +4 >Emitted(130, 16) Source(70, 16) + SourceIndex(0) +5 >Emitted(130, 17) Source(70, 17) + SourceIndex(0) +6 >Emitted(130, 22) Source(70, 22) + SourceIndex(0) +7 >Emitted(130, 23) Source(70, 23) + SourceIndex(0) +8 >Emitted(130, 24) Source(70, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(64, 2) Source(71, 2) + SourceIndex(0) +1 >Emitted(131, 2) Source(71, 2) + SourceIndex(0) --- ->>>for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(65, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(65, 4) Source(73, 4) + SourceIndex(0) -3 >Emitted(65, 5) Source(73, 5) + SourceIndex(0) -4 >Emitted(65, 6) Source(73, 63) + SourceIndex(0) -5 >Emitted(65, 17) Source(73, 69) + SourceIndex(0) -6 >Emitted(65, 19) Source(73, 63) + SourceIndex(0) -7 >Emitted(65, 36) Source(73, 69) + SourceIndex(0) -8 >Emitted(65, 38) Source(73, 63) + SourceIndex(0) -9 >Emitted(65, 59) Source(73, 69) + SourceIndex(0) -10>Emitted(65, 61) Source(73, 63) + SourceIndex(0) -11>Emitted(65, 66) Source(73, 69) + SourceIndex(0) ---- ->>> _23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26; -1->^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +1->Emitted(133, 5) Source(73, 1) + SourceIndex(0) +2 >Emitted(133, 8) Source(73, 4) + SourceIndex(0) +3 >Emitted(133, 9) Source(73, 5) + SourceIndex(0) +4 >Emitted(133, 10) Source(73, 63) + SourceIndex(0) +5 >Emitted(133, 14) Source(73, 63) + SourceIndex(0) +6 >Emitted(133, 25) Source(73, 63) + SourceIndex(0) +7 >Emitted(133, 27) Source(73, 63) + SourceIndex(0) +8 >Emitted(133, 37) Source(73, 63) + SourceIndex(0) +9 >Emitted(133, 46) Source(73, 63) + SourceIndex(0) +10>Emitted(133, 52) Source(73, 69) + SourceIndex(0) +11>Emitted(133, 53) Source(73, 69) + SourceIndex(0) +12>Emitted(133, 55) Source(73, 69) + SourceIndex(0) +13>Emitted(133, 57) Source(73, 6) + SourceIndex(0) +14>Emitted(133, 73) Source(73, 59) + SourceIndex(0) +--- +>>> _16 = __read(robots_3.result.value, 3), _17 = _16[0], numberA2 = _17 === void 0 ? -1 : _17, _18 = _16[1], nameA2 = _18 === void 0 ? "noName" : _18, _19 = _16[2], skillA2 = _19 === void 0 ? "skill" : _19; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA2 = -1 -3 > -4 > numberA2 = -1 -5 > , -6 > nameA2 = "noName" -7 > -8 > nameA2 = "noName" -9 > , -10> skillA2 = "skill" -11> -12> skillA2 = "skill" -1->Emitted(66, 26) Source(73, 7) + SourceIndex(0) -2 >Emitted(66, 38) Source(73, 20) + SourceIndex(0) -3 >Emitted(66, 40) Source(73, 7) + SourceIndex(0) -4 >Emitted(66, 76) Source(73, 20) + SourceIndex(0) -5 >Emitted(66, 78) Source(73, 22) + SourceIndex(0) -6 >Emitted(66, 90) Source(73, 39) + SourceIndex(0) -7 >Emitted(66, 92) Source(73, 22) + SourceIndex(0) -8 >Emitted(66, 132) Source(73, 39) + SourceIndex(0) -9 >Emitted(66, 134) Source(73, 41) + SourceIndex(0) -10>Emitted(66, 146) Source(73, 58) + SourceIndex(0) -11>Emitted(66, 148) Source(73, 41) + SourceIndex(0) -12>Emitted(66, 188) Source(73, 58) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > numberA2 = -1 +3 > +4 > numberA2 = -1 +5 > , +6 > nameA2 = "noName" +7 > +8 > nameA2 = "noName" +9 > , +10> skillA2 = "skill" +11> +12> skillA2 = "skill" +1->Emitted(134, 49) Source(73, 7) + SourceIndex(0) +2 >Emitted(134, 61) Source(73, 20) + SourceIndex(0) +3 >Emitted(134, 63) Source(73, 7) + SourceIndex(0) +4 >Emitted(134, 99) Source(73, 20) + SourceIndex(0) +5 >Emitted(134, 101) Source(73, 22) + SourceIndex(0) +6 >Emitted(134, 113) Source(73, 39) + SourceIndex(0) +7 >Emitted(134, 115) Source(73, 22) + SourceIndex(0) +8 >Emitted(134, 155) Source(73, 39) + SourceIndex(0) +9 >Emitted(134, 157) Source(73, 41) + SourceIndex(0) +10>Emitted(134, 169) Source(73, 58) + SourceIndex(0) +11>Emitted(134, 171) Source(73, 41) + SourceIndex(0) +12>Emitted(134, 211) Source(73, 58) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(67, 5) Source(74, 5) + SourceIndex(0) -2 >Emitted(67, 12) Source(74, 12) + SourceIndex(0) -3 >Emitted(67, 13) Source(74, 13) + SourceIndex(0) -4 >Emitted(67, 16) Source(74, 16) + SourceIndex(0) -5 >Emitted(67, 17) Source(74, 17) + SourceIndex(0) -6 >Emitted(67, 23) Source(74, 23) + SourceIndex(0) -7 >Emitted(67, 24) Source(74, 24) + SourceIndex(0) -8 >Emitted(67, 25) Source(74, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(135, 9) Source(74, 5) + SourceIndex(0) +2 >Emitted(135, 16) Source(74, 12) + SourceIndex(0) +3 >Emitted(135, 17) Source(74, 13) + SourceIndex(0) +4 >Emitted(135, 20) Source(74, 16) + SourceIndex(0) +5 >Emitted(135, 21) Source(74, 17) + SourceIndex(0) +6 >Emitted(135, 27) Source(74, 23) + SourceIndex(0) +7 >Emitted(135, 28) Source(74, 24) + SourceIndex(0) +8 >Emitted(135, 29) Source(74, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(68, 2) Source(75, 2) + SourceIndex(0) +1 >Emitted(136, 6) Source(75, 2) + SourceIndex(0) --- ->>>for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(69, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(69, 4) Source(76, 4) + SourceIndex(0) -3 >Emitted(69, 5) Source(76, 5) + SourceIndex(0) -4 >Emitted(69, 6) Source(76, 63) + SourceIndex(0) -5 >Emitted(69, 17) Source(76, 74) + SourceIndex(0) -6 >Emitted(69, 19) Source(76, 63) + SourceIndex(0) -7 >Emitted(69, 25) Source(76, 63) + SourceIndex(0) -8 >Emitted(69, 34) Source(76, 72) + SourceIndex(0) -9 >Emitted(69, 36) Source(76, 74) + SourceIndex(0) -10>Emitted(69, 38) Source(76, 63) + SourceIndex(0) -11>Emitted(69, 54) Source(76, 74) + SourceIndex(0) -12>Emitted(69, 56) Source(76, 63) + SourceIndex(0) -13>Emitted(69, 61) Source(76, 74) + SourceIndex(0) ---- ->>> _29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] +1 >Emitted(143, 5) Source(76, 1) + SourceIndex(0) +2 >Emitted(143, 8) Source(76, 4) + SourceIndex(0) +3 >Emitted(143, 9) Source(76, 5) + SourceIndex(0) +4 >Emitted(143, 10) Source(76, 63) + SourceIndex(0) +5 >Emitted(143, 14) Source(76, 63) + SourceIndex(0) +6 >Emitted(143, 27) Source(76, 63) + SourceIndex(0) +7 >Emitted(143, 29) Source(76, 63) + SourceIndex(0) +8 >Emitted(143, 39) Source(76, 63) + SourceIndex(0) +9 >Emitted(143, 48) Source(76, 63) + SourceIndex(0) +10>Emitted(143, 57) Source(76, 72) + SourceIndex(0) +11>Emitted(143, 59) Source(76, 74) + SourceIndex(0) +12>Emitted(143, 60) Source(76, 74) + SourceIndex(0) +13>Emitted(143, 62) Source(76, 74) + SourceIndex(0) +14>Emitted(143, 64) Source(76, 6) + SourceIndex(0) +15>Emitted(143, 82) Source(76, 59) + SourceIndex(0) +--- +>>> _20 = __read(iterator_5.result.value, 3), _21 = _20[0], numberA2 = _21 === void 0 ? -1 : _21, _22 = _20[1], nameA2 = _22 === void 0 ? "noName" : _22, _23 = _20[2], skillA2 = _23 === void 0 ? "skill" : _23; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA2 = -1 -3 > -4 > numberA2 = -1 -5 > , -6 > nameA2 = "noName" -7 > -8 > nameA2 = "noName" -9 > , -10> skillA2 = "skill" -11> -12> skillA2 = "skill" -1->Emitted(70, 21) Source(76, 7) + SourceIndex(0) -2 >Emitted(70, 33) Source(76, 20) + SourceIndex(0) -3 >Emitted(70, 35) Source(76, 7) + SourceIndex(0) -4 >Emitted(70, 71) Source(76, 20) + SourceIndex(0) -5 >Emitted(70, 73) Source(76, 22) + SourceIndex(0) -6 >Emitted(70, 85) Source(76, 39) + SourceIndex(0) -7 >Emitted(70, 87) Source(76, 22) + SourceIndex(0) -8 >Emitted(70, 127) Source(76, 39) + SourceIndex(0) -9 >Emitted(70, 129) Source(76, 41) + SourceIndex(0) -10>Emitted(70, 141) Source(76, 58) + SourceIndex(0) -11>Emitted(70, 143) Source(76, 41) + SourceIndex(0) -12>Emitted(70, 183) Source(76, 58) + SourceIndex(0) ---- ->>> console.log(nameA2); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > numberA2 = -1 +3 > +4 > numberA2 = -1 +5 > , +6 > nameA2 = "noName" +7 > +8 > nameA2 = "noName" +9 > , +10> skillA2 = "skill" +11> +12> skillA2 = "skill" +1->Emitted(144, 51) Source(76, 7) + SourceIndex(0) +2 >Emitted(144, 63) Source(76, 20) + SourceIndex(0) +3 >Emitted(144, 65) Source(76, 7) + SourceIndex(0) +4 >Emitted(144, 101) Source(76, 20) + SourceIndex(0) +5 >Emitted(144, 103) Source(76, 22) + SourceIndex(0) +6 >Emitted(144, 115) Source(76, 39) + SourceIndex(0) +7 >Emitted(144, 117) Source(76, 22) + SourceIndex(0) +8 >Emitted(144, 157) Source(76, 39) + SourceIndex(0) +9 >Emitted(144, 159) Source(76, 41) + SourceIndex(0) +10>Emitted(144, 171) Source(76, 58) + SourceIndex(0) +11>Emitted(144, 173) Source(76, 41) + SourceIndex(0) +12>Emitted(144, 213) Source(76, 58) + SourceIndex(0) +--- +>>> console.log(nameA2); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA2 -7 > ) -8 > ; -1 >Emitted(71, 5) Source(77, 5) + SourceIndex(0) -2 >Emitted(71, 12) Source(77, 12) + SourceIndex(0) -3 >Emitted(71, 13) Source(77, 13) + SourceIndex(0) -4 >Emitted(71, 16) Source(77, 16) + SourceIndex(0) -5 >Emitted(71, 17) Source(77, 17) + SourceIndex(0) -6 >Emitted(71, 23) Source(77, 23) + SourceIndex(0) -7 >Emitted(71, 24) Source(77, 24) + SourceIndex(0) -8 >Emitted(71, 25) Source(77, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA2 +7 > ) +8 > ; +1 >Emitted(145, 9) Source(77, 5) + SourceIndex(0) +2 >Emitted(145, 16) Source(77, 12) + SourceIndex(0) +3 >Emitted(145, 17) Source(77, 13) + SourceIndex(0) +4 >Emitted(145, 20) Source(77, 16) + SourceIndex(0) +5 >Emitted(145, 21) Source(77, 17) + SourceIndex(0) +6 >Emitted(145, 27) Source(77, 23) + SourceIndex(0) +7 >Emitted(145, 28) Source(77, 24) + SourceIndex(0) +8 >Emitted(145, 29) Source(77, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(72, 2) Source(78, 2) + SourceIndex(0) +1 >Emitted(146, 6) Source(78, 2) + SourceIndex(0) --- ->>>for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) { -1-> +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +>>>} +>>>for (var _24 = 0, _25 = [robotA, robotB]; _24 < _25.length; _24++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1867,8 +2021,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1884,59 +2038,59 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(73, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(73, 4) Source(79, 4) + SourceIndex(0) -3 >Emitted(73, 5) Source(79, 5) + SourceIndex(0) -4 >Emitted(73, 6) Source(79, 63) + SourceIndex(0) -5 >Emitted(73, 17) Source(79, 79) + SourceIndex(0) -6 >Emitted(73, 19) Source(79, 63) + SourceIndex(0) -7 >Emitted(73, 26) Source(79, 64) + SourceIndex(0) -8 >Emitted(73, 32) Source(79, 70) + SourceIndex(0) -9 >Emitted(73, 34) Source(79, 72) + SourceIndex(0) -10>Emitted(73, 40) Source(79, 78) + SourceIndex(0) -11>Emitted(73, 41) Source(79, 79) + SourceIndex(0) -12>Emitted(73, 43) Source(79, 63) + SourceIndex(0) -13>Emitted(73, 59) Source(79, 79) + SourceIndex(0) -14>Emitted(73, 61) Source(79, 63) + SourceIndex(0) -15>Emitted(73, 66) Source(79, 79) + SourceIndex(0) ---- ->>> _35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(152, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(152, 4) Source(79, 4) + SourceIndex(0) +3 >Emitted(152, 5) Source(79, 5) + SourceIndex(0) +4 >Emitted(152, 6) Source(79, 63) + SourceIndex(0) +5 >Emitted(152, 17) Source(79, 79) + SourceIndex(0) +6 >Emitted(152, 19) Source(79, 63) + SourceIndex(0) +7 >Emitted(152, 26) Source(79, 64) + SourceIndex(0) +8 >Emitted(152, 32) Source(79, 70) + SourceIndex(0) +9 >Emitted(152, 34) Source(79, 72) + SourceIndex(0) +10>Emitted(152, 40) Source(79, 78) + SourceIndex(0) +11>Emitted(152, 41) Source(79, 79) + SourceIndex(0) +12>Emitted(152, 43) Source(79, 63) + SourceIndex(0) +13>Emitted(152, 59) Source(79, 79) + SourceIndex(0) +14>Emitted(152, 61) Source(79, 63) + SourceIndex(0) +15>Emitted(152, 66) Source(79, 79) + SourceIndex(0) +--- +>>> _26 = __read(_25[_24], 3), _27 = _26[0], numberA2 = _27 === void 0 ? -1 : _27, _28 = _26[1], nameA2 = _28 === void 0 ? "noName" : _28, _29 = _26[2], skillA2 = _29 === void 0 ? "skill" : _29; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA2 = -1 -3 > -4 > numberA2 = -1 -5 > , -6 > nameA2 = "noName" -7 > -8 > nameA2 = "noName" -9 > , -10> skillA2 = "skill" -11> -12> skillA2 = "skill" -1->Emitted(74, 21) Source(79, 7) + SourceIndex(0) -2 >Emitted(74, 33) Source(79, 20) + SourceIndex(0) -3 >Emitted(74, 35) Source(79, 7) + SourceIndex(0) -4 >Emitted(74, 71) Source(79, 20) + SourceIndex(0) -5 >Emitted(74, 73) Source(79, 22) + SourceIndex(0) -6 >Emitted(74, 85) Source(79, 39) + SourceIndex(0) -7 >Emitted(74, 87) Source(79, 22) + SourceIndex(0) -8 >Emitted(74, 127) Source(79, 39) + SourceIndex(0) -9 >Emitted(74, 129) Source(79, 41) + SourceIndex(0) -10>Emitted(74, 141) Source(79, 58) + SourceIndex(0) -11>Emitted(74, 143) Source(79, 41) + SourceIndex(0) -12>Emitted(74, 183) Source(79, 58) + SourceIndex(0) +2 > numberA2 = -1 +3 > +4 > numberA2 = -1 +5 > , +6 > nameA2 = "noName" +7 > +8 > nameA2 = "noName" +9 > , +10> skillA2 = "skill" +11> +12> skillA2 = "skill" +1->Emitted(153, 32) Source(79, 7) + SourceIndex(0) +2 >Emitted(153, 44) Source(79, 20) + SourceIndex(0) +3 >Emitted(153, 46) Source(79, 7) + SourceIndex(0) +4 >Emitted(153, 82) Source(79, 20) + SourceIndex(0) +5 >Emitted(153, 84) Source(79, 22) + SourceIndex(0) +6 >Emitted(153, 96) Source(79, 39) + SourceIndex(0) +7 >Emitted(153, 98) Source(79, 22) + SourceIndex(0) +8 >Emitted(153, 138) Source(79, 39) + SourceIndex(0) +9 >Emitted(153, 140) Source(79, 41) + SourceIndex(0) +10>Emitted(153, 152) Source(79, 58) + SourceIndex(0) +11>Emitted(153, 154) Source(79, 41) + SourceIndex(0) +12>Emitted(153, 194) Source(79, 58) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -1956,294 +2110,325 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameA2 7 > ) 8 > ; -1 >Emitted(75, 5) Source(80, 5) + SourceIndex(0) -2 >Emitted(75, 12) Source(80, 12) + SourceIndex(0) -3 >Emitted(75, 13) Source(80, 13) + SourceIndex(0) -4 >Emitted(75, 16) Source(80, 16) + SourceIndex(0) -5 >Emitted(75, 17) Source(80, 17) + SourceIndex(0) -6 >Emitted(75, 23) Source(80, 23) + SourceIndex(0) -7 >Emitted(75, 24) Source(80, 24) + SourceIndex(0) -8 >Emitted(75, 25) Source(80, 25) + SourceIndex(0) +1 >Emitted(154, 5) Source(80, 5) + SourceIndex(0) +2 >Emitted(154, 12) Source(80, 12) + SourceIndex(0) +3 >Emitted(154, 13) Source(80, 13) + SourceIndex(0) +4 >Emitted(154, 16) Source(80, 16) + SourceIndex(0) +5 >Emitted(154, 17) Source(80, 17) + SourceIndex(0) +6 >Emitted(154, 23) Source(80, 23) + SourceIndex(0) +7 >Emitted(154, 24) Source(80, 24) + SourceIndex(0) +8 >Emitted(154, 25) Source(80, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(76, 2) Source(81, 2) + SourceIndex(0) +1 >Emitted(155, 2) Source(81, 2) + SourceIndex(0) --- ->>>for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ([nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(77, 1) Source(82, 1) + SourceIndex(0) -2 >Emitted(77, 4) Source(82, 4) + SourceIndex(0) -3 >Emitted(77, 5) Source(82, 5) + SourceIndex(0) -4 >Emitted(77, 6) Source(85, 30) + SourceIndex(0) -5 >Emitted(77, 17) Source(85, 41) + SourceIndex(0) -6 >Emitted(77, 19) Source(85, 30) + SourceIndex(0) -7 >Emitted(77, 46) Source(85, 41) + SourceIndex(0) -8 >Emitted(77, 48) Source(85, 30) + SourceIndex(0) -9 >Emitted(77, 74) Source(85, 41) + SourceIndex(0) -10>Emitted(77, 76) Source(85, 30) + SourceIndex(0) -11>Emitted(77, 81) Source(85, 41) + SourceIndex(0) ---- ->>> _40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1->Emitted(157, 5) Source(82, 1) + SourceIndex(0) +2 >Emitted(157, 8) Source(82, 4) + SourceIndex(0) +3 >Emitted(157, 9) Source(82, 5) + SourceIndex(0) +4 >Emitted(157, 10) Source(85, 30) + SourceIndex(0) +5 >Emitted(157, 14) Source(85, 30) + SourceIndex(0) +6 >Emitted(157, 30) Source(85, 30) + SourceIndex(0) +7 >Emitted(157, 32) Source(85, 30) + SourceIndex(0) +8 >Emitted(157, 42) Source(85, 30) + SourceIndex(0) +9 >Emitted(157, 51) Source(85, 30) + SourceIndex(0) +10>Emitted(157, 62) Source(85, 41) + SourceIndex(0) +11>Emitted(157, 63) Source(85, 41) + SourceIndex(0) +12>Emitted(157, 65) Source(85, 41) + SourceIndex(0) +13>Emitted(157, 67) Source(82, 6) + SourceIndex(0) +14>Emitted(157, 88) Source(85, 26) + SourceIndex(0) +--- +>>> _30 = __read(multiRobots_3.result.value, 2), _31 = _30[0], nameMA = _31 === void 0 ? "noName" : _31, _32 = _30[1], _33 = __read(_32 === void 0 ? ["skill1", "skill2"] : _32, 2), _34 = _33[0], primarySkillA = _34 === void 0 ? "primary" : _34, _35 = _33[1], secondarySkillA = _35 === void 0 ? "secondary" : _35; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA = "noName" -3 > -4 > nameMA = "noName" -5 > , -6 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -9 > -10> primarySkillA = "primary" -11> -12> primarySkillA = "primary" -13> , - > -14> secondarySkillA = "secondary" -15> -16> secondarySkillA = "secondary" -1->Emitted(78, 31) Source(82, 7) + SourceIndex(0) -2 >Emitted(78, 43) Source(82, 24) + SourceIndex(0) -3 >Emitted(78, 45) Source(82, 7) + SourceIndex(0) -4 >Emitted(78, 85) Source(82, 24) + SourceIndex(0) -5 >Emitted(78, 87) Source(82, 26) + SourceIndex(0) -6 >Emitted(78, 99) Source(85, 25) + SourceIndex(0) -7 >Emitted(78, 101) Source(82, 26) + SourceIndex(0) -8 >Emitted(78, 150) Source(85, 25) + SourceIndex(0) -9 >Emitted(78, 152) Source(83, 5) + SourceIndex(0) -10>Emitted(78, 164) Source(83, 30) + SourceIndex(0) -11>Emitted(78, 166) Source(83, 5) + SourceIndex(0) -12>Emitted(78, 214) Source(83, 30) + SourceIndex(0) -13>Emitted(78, 216) Source(84, 5) + SourceIndex(0) -14>Emitted(78, 228) Source(84, 34) + SourceIndex(0) -15>Emitted(78, 230) Source(84, 5) + SourceIndex(0) -16>Emitted(78, 282) Source(84, 34) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > nameMA = "noName" +3 > +4 > nameMA = "noName" +5 > , +6 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +7 > +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +9 > +10> primarySkillA = "primary" +11> +12> primarySkillA = "primary" +13> , + > +14> secondarySkillA = "secondary" +15> +16> secondarySkillA = "secondary" +1->Emitted(158, 54) Source(82, 7) + SourceIndex(0) +2 >Emitted(158, 66) Source(82, 24) + SourceIndex(0) +3 >Emitted(158, 68) Source(82, 7) + SourceIndex(0) +4 >Emitted(158, 108) Source(82, 24) + SourceIndex(0) +5 >Emitted(158, 110) Source(82, 26) + SourceIndex(0) +6 >Emitted(158, 122) Source(85, 25) + SourceIndex(0) +7 >Emitted(158, 124) Source(82, 26) + SourceIndex(0) +8 >Emitted(158, 184) Source(85, 25) + SourceIndex(0) +9 >Emitted(158, 186) Source(83, 5) + SourceIndex(0) +10>Emitted(158, 198) Source(83, 30) + SourceIndex(0) +11>Emitted(158, 200) Source(83, 5) + SourceIndex(0) +12>Emitted(158, 248) Source(83, 30) + SourceIndex(0) +13>Emitted(158, 250) Source(84, 5) + SourceIndex(0) +14>Emitted(158, 262) Source(84, 34) + SourceIndex(0) +15>Emitted(158, 264) Source(84, 5) + SourceIndex(0) +16>Emitted(158, 316) Source(84, 34) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(79, 5) Source(86, 5) + SourceIndex(0) -2 >Emitted(79, 12) Source(86, 12) + SourceIndex(0) -3 >Emitted(79, 13) Source(86, 13) + SourceIndex(0) -4 >Emitted(79, 16) Source(86, 16) + SourceIndex(0) -5 >Emitted(79, 17) Source(86, 17) + SourceIndex(0) -6 >Emitted(79, 23) Source(86, 23) + SourceIndex(0) -7 >Emitted(79, 24) Source(86, 24) + SourceIndex(0) -8 >Emitted(79, 25) Source(86, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(159, 9) Source(86, 5) + SourceIndex(0) +2 >Emitted(159, 16) Source(86, 12) + SourceIndex(0) +3 >Emitted(159, 17) Source(86, 13) + SourceIndex(0) +4 >Emitted(159, 20) Source(86, 16) + SourceIndex(0) +5 >Emitted(159, 21) Source(86, 17) + SourceIndex(0) +6 >Emitted(159, 27) Source(86, 23) + SourceIndex(0) +7 >Emitted(159, 28) Source(86, 24) + SourceIndex(0) +8 >Emitted(159, 29) Source(86, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(80, 2) Source(87, 2) + SourceIndex(0) +1 >Emitted(160, 6) Source(87, 2) + SourceIndex(0) --- ->>>for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([nameMA = "noName", [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"]] of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(81, 1) Source(88, 1) + SourceIndex(0) -2 >Emitted(81, 4) Source(88, 4) + SourceIndex(0) -3 >Emitted(81, 5) Source(88, 5) + SourceIndex(0) -4 >Emitted(81, 6) Source(91, 30) + SourceIndex(0) -5 >Emitted(81, 17) Source(91, 46) + SourceIndex(0) -6 >Emitted(81, 19) Source(91, 30) + SourceIndex(0) -7 >Emitted(81, 25) Source(91, 30) + SourceIndex(0) -8 >Emitted(81, 39) Source(91, 44) + SourceIndex(0) -9 >Emitted(81, 41) Source(91, 46) + SourceIndex(0) -10>Emitted(81, 43) Source(91, 30) + SourceIndex(0) -11>Emitted(81, 59) Source(91, 46) + SourceIndex(0) -12>Emitted(81, 61) Source(91, 30) + SourceIndex(0) -13>Emitted(81, 66) Source(91, 46) + SourceIndex(0) ---- ->>> _48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"]] +1 >Emitted(167, 5) Source(88, 1) + SourceIndex(0) +2 >Emitted(167, 8) Source(88, 4) + SourceIndex(0) +3 >Emitted(167, 9) Source(88, 5) + SourceIndex(0) +4 >Emitted(167, 10) Source(91, 30) + SourceIndex(0) +5 >Emitted(167, 14) Source(91, 30) + SourceIndex(0) +6 >Emitted(167, 27) Source(91, 30) + SourceIndex(0) +7 >Emitted(167, 29) Source(91, 30) + SourceIndex(0) +8 >Emitted(167, 39) Source(91, 30) + SourceIndex(0) +9 >Emitted(167, 48) Source(91, 30) + SourceIndex(0) +10>Emitted(167, 62) Source(91, 44) + SourceIndex(0) +11>Emitted(167, 64) Source(91, 46) + SourceIndex(0) +12>Emitted(167, 65) Source(91, 46) + SourceIndex(0) +13>Emitted(167, 67) Source(91, 46) + SourceIndex(0) +14>Emitted(167, 69) Source(88, 6) + SourceIndex(0) +15>Emitted(167, 87) Source(91, 26) + SourceIndex(0) +--- +>>> _36 = __read(iterator_6.result.value, 2), _37 = _36[0], nameMA = _37 === void 0 ? "noName" : _37, _38 = _36[1], _39 = __read(_38 === void 0 ? ["skill1", "skill2"] : _38, 2), _40 = _39[0], primarySkillA = _40 === void 0 ? "primary" : _40, _41 = _39[1], secondarySkillA = _41 === void 0 ? "secondary" : _41; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA = "noName" -3 > -4 > nameMA = "noName" -5 > , -6 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -9 > -10> primarySkillA = "primary" -11> -12> primarySkillA = "primary" -13> , - > -14> secondarySkillA = "secondary" -15> -16> secondarySkillA = "secondary" -1->Emitted(82, 21) Source(88, 7) + SourceIndex(0) -2 >Emitted(82, 33) Source(88, 24) + SourceIndex(0) -3 >Emitted(82, 35) Source(88, 7) + SourceIndex(0) -4 >Emitted(82, 75) Source(88, 24) + SourceIndex(0) -5 >Emitted(82, 77) Source(88, 26) + SourceIndex(0) -6 >Emitted(82, 89) Source(91, 25) + SourceIndex(0) -7 >Emitted(82, 91) Source(88, 26) + SourceIndex(0) -8 >Emitted(82, 140) Source(91, 25) + SourceIndex(0) -9 >Emitted(82, 142) Source(89, 5) + SourceIndex(0) -10>Emitted(82, 154) Source(89, 30) + SourceIndex(0) -11>Emitted(82, 156) Source(89, 5) + SourceIndex(0) -12>Emitted(82, 204) Source(89, 30) + SourceIndex(0) -13>Emitted(82, 206) Source(90, 5) + SourceIndex(0) -14>Emitted(82, 218) Source(90, 34) + SourceIndex(0) -15>Emitted(82, 220) Source(90, 5) + SourceIndex(0) -16>Emitted(82, 272) Source(90, 34) + SourceIndex(0) ---- ->>> console.log(nameMA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^ -7 > ^ -8 > ^ +2 > nameMA = "noName" +3 > +4 > nameMA = "noName" +5 > , +6 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +7 > +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +9 > +10> primarySkillA = "primary" +11> +12> primarySkillA = "primary" +13> , + > +14> secondarySkillA = "secondary" +15> +16> secondarySkillA = "secondary" +1->Emitted(168, 51) Source(88, 7) + SourceIndex(0) +2 >Emitted(168, 63) Source(88, 24) + SourceIndex(0) +3 >Emitted(168, 65) Source(88, 7) + SourceIndex(0) +4 >Emitted(168, 105) Source(88, 24) + SourceIndex(0) +5 >Emitted(168, 107) Source(88, 26) + SourceIndex(0) +6 >Emitted(168, 119) Source(91, 25) + SourceIndex(0) +7 >Emitted(168, 121) Source(88, 26) + SourceIndex(0) +8 >Emitted(168, 181) Source(91, 25) + SourceIndex(0) +9 >Emitted(168, 183) Source(89, 5) + SourceIndex(0) +10>Emitted(168, 195) Source(89, 30) + SourceIndex(0) +11>Emitted(168, 197) Source(89, 5) + SourceIndex(0) +12>Emitted(168, 245) Source(89, 30) + SourceIndex(0) +13>Emitted(168, 247) Source(90, 5) + SourceIndex(0) +14>Emitted(168, 259) Source(90, 34) + SourceIndex(0) +15>Emitted(168, 261) Source(90, 5) + SourceIndex(0) +16>Emitted(168, 313) Source(90, 34) + SourceIndex(0) +--- +>>> console.log(nameMA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +8 > ^ 1 > >] = ["skill1", "skill2"]] of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameMA -7 > ) -8 > ; -1 >Emitted(83, 5) Source(92, 5) + SourceIndex(0) -2 >Emitted(83, 12) Source(92, 12) + SourceIndex(0) -3 >Emitted(83, 13) Source(92, 13) + SourceIndex(0) -4 >Emitted(83, 16) Source(92, 16) + SourceIndex(0) -5 >Emitted(83, 17) Source(92, 17) + SourceIndex(0) -6 >Emitted(83, 23) Source(92, 23) + SourceIndex(0) -7 >Emitted(83, 24) Source(92, 24) + SourceIndex(0) -8 >Emitted(83, 25) Source(92, 25) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameMA +7 > ) +8 > ; +1 >Emitted(169, 9) Source(92, 5) + SourceIndex(0) +2 >Emitted(169, 16) Source(92, 12) + SourceIndex(0) +3 >Emitted(169, 17) Source(92, 13) + SourceIndex(0) +4 >Emitted(169, 20) Source(92, 16) + SourceIndex(0) +5 >Emitted(169, 21) Source(92, 17) + SourceIndex(0) +6 >Emitted(169, 27) Source(92, 23) + SourceIndex(0) +7 >Emitted(169, 28) Source(92, 24) + SourceIndex(0) +8 >Emitted(169, 29) Source(92, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(84, 2) Source(93, 2) + SourceIndex(0) +1 >Emitted(170, 6) Source(93, 2) + SourceIndex(0) --- ->>>for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) { -1-> +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +>>>} +>>>for (var _42 = 0, _43 = [multiRobotA, multiRobotB]; _42 < _43.length; _42++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2258,8 +2443,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2278,78 +2463,78 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [multiRobotA, multiRobotB] 14> 15> [multiRobotA, multiRobotB] -1->Emitted(85, 1) Source(94, 1) + SourceIndex(0) -2 >Emitted(85, 4) Source(94, 4) + SourceIndex(0) -3 >Emitted(85, 5) Source(94, 5) + SourceIndex(0) -4 >Emitted(85, 6) Source(97, 30) + SourceIndex(0) -5 >Emitted(85, 17) Source(97, 56) + SourceIndex(0) -6 >Emitted(85, 19) Source(97, 30) + SourceIndex(0) -7 >Emitted(85, 26) Source(97, 31) + SourceIndex(0) -8 >Emitted(85, 37) Source(97, 42) + SourceIndex(0) -9 >Emitted(85, 39) Source(97, 44) + SourceIndex(0) -10>Emitted(85, 50) Source(97, 55) + SourceIndex(0) -11>Emitted(85, 51) Source(97, 56) + SourceIndex(0) -12>Emitted(85, 53) Source(97, 30) + SourceIndex(0) -13>Emitted(85, 69) Source(97, 56) + SourceIndex(0) -14>Emitted(85, 71) Source(97, 30) + SourceIndex(0) -15>Emitted(85, 76) Source(97, 56) + SourceIndex(0) ---- ->>> _56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(176, 1) Source(94, 1) + SourceIndex(0) +2 >Emitted(176, 4) Source(94, 4) + SourceIndex(0) +3 >Emitted(176, 5) Source(94, 5) + SourceIndex(0) +4 >Emitted(176, 6) Source(97, 30) + SourceIndex(0) +5 >Emitted(176, 17) Source(97, 56) + SourceIndex(0) +6 >Emitted(176, 19) Source(97, 30) + SourceIndex(0) +7 >Emitted(176, 26) Source(97, 31) + SourceIndex(0) +8 >Emitted(176, 37) Source(97, 42) + SourceIndex(0) +9 >Emitted(176, 39) Source(97, 44) + SourceIndex(0) +10>Emitted(176, 50) Source(97, 55) + SourceIndex(0) +11>Emitted(176, 51) Source(97, 56) + SourceIndex(0) +12>Emitted(176, 53) Source(97, 30) + SourceIndex(0) +13>Emitted(176, 69) Source(97, 56) + SourceIndex(0) +14>Emitted(176, 71) Source(97, 30) + SourceIndex(0) +15>Emitted(176, 76) Source(97, 56) + SourceIndex(0) +--- +>>> _44 = __read(_43[_42], 2), _45 = _44[0], nameMA = _45 === void 0 ? "noName" : _45, _46 = _44[1], _47 = __read(_46 === void 0 ? ["skill1", "skill2"] : _46, 2), _48 = _47[0], primarySkillA = _48 === void 0 ? "primary" : _48, _49 = _47[1], secondarySkillA = _49 === void 0 ? "secondary" : _49; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA = "noName" -3 > -4 > nameMA = "noName" -5 > , -6 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["skill1", "skill2"] -9 > -10> primarySkillA = "primary" -11> -12> primarySkillA = "primary" -13> , - > -14> secondarySkillA = "secondary" -15> -16> secondarySkillA = "secondary" -1->Emitted(86, 21) Source(94, 7) + SourceIndex(0) -2 >Emitted(86, 33) Source(94, 24) + SourceIndex(0) -3 >Emitted(86, 35) Source(94, 7) + SourceIndex(0) -4 >Emitted(86, 75) Source(94, 24) + SourceIndex(0) -5 >Emitted(86, 77) Source(94, 26) + SourceIndex(0) -6 >Emitted(86, 89) Source(97, 25) + SourceIndex(0) -7 >Emitted(86, 91) Source(94, 26) + SourceIndex(0) -8 >Emitted(86, 140) Source(97, 25) + SourceIndex(0) -9 >Emitted(86, 142) Source(95, 5) + SourceIndex(0) -10>Emitted(86, 154) Source(95, 30) + SourceIndex(0) -11>Emitted(86, 156) Source(95, 5) + SourceIndex(0) -12>Emitted(86, 204) Source(95, 30) + SourceIndex(0) -13>Emitted(86, 206) Source(96, 5) + SourceIndex(0) -14>Emitted(86, 218) Source(96, 34) + SourceIndex(0) -15>Emitted(86, 220) Source(96, 5) + SourceIndex(0) -16>Emitted(86, 272) Source(96, 34) + SourceIndex(0) +2 > nameMA = "noName" +3 > +4 > nameMA = "noName" +5 > , +6 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +7 > +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["skill1", "skill2"] +9 > +10> primarySkillA = "primary" +11> +12> primarySkillA = "primary" +13> , + > +14> secondarySkillA = "secondary" +15> +16> secondarySkillA = "secondary" +1->Emitted(177, 32) Source(94, 7) + SourceIndex(0) +2 >Emitted(177, 44) Source(94, 24) + SourceIndex(0) +3 >Emitted(177, 46) Source(94, 7) + SourceIndex(0) +4 >Emitted(177, 86) Source(94, 24) + SourceIndex(0) +5 >Emitted(177, 88) Source(94, 26) + SourceIndex(0) +6 >Emitted(177, 100) Source(97, 25) + SourceIndex(0) +7 >Emitted(177, 102) Source(94, 26) + SourceIndex(0) +8 >Emitted(177, 162) Source(97, 25) + SourceIndex(0) +9 >Emitted(177, 164) Source(95, 5) + SourceIndex(0) +10>Emitted(177, 176) Source(95, 30) + SourceIndex(0) +11>Emitted(177, 178) Source(95, 5) + SourceIndex(0) +12>Emitted(177, 226) Source(95, 30) + SourceIndex(0) +13>Emitted(177, 228) Source(96, 5) + SourceIndex(0) +14>Emitted(177, 240) Source(96, 34) + SourceIndex(0) +15>Emitted(177, 242) Source(96, 5) + SourceIndex(0) +16>Emitted(177, 294) Source(96, 34) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -2370,213 +2555,238 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > nameMA 7 > ) 8 > ; -1 >Emitted(87, 5) Source(98, 5) + SourceIndex(0) -2 >Emitted(87, 12) Source(98, 12) + SourceIndex(0) -3 >Emitted(87, 13) Source(98, 13) + SourceIndex(0) -4 >Emitted(87, 16) Source(98, 16) + SourceIndex(0) -5 >Emitted(87, 17) Source(98, 17) + SourceIndex(0) -6 >Emitted(87, 23) Source(98, 23) + SourceIndex(0) -7 >Emitted(87, 24) Source(98, 24) + SourceIndex(0) -8 >Emitted(87, 25) Source(98, 25) + SourceIndex(0) +1 >Emitted(178, 5) Source(98, 5) + SourceIndex(0) +2 >Emitted(178, 12) Source(98, 12) + SourceIndex(0) +3 >Emitted(178, 13) Source(98, 13) + SourceIndex(0) +4 >Emitted(178, 16) Source(98, 16) + SourceIndex(0) +5 >Emitted(178, 17) Source(98, 17) + SourceIndex(0) +6 >Emitted(178, 23) Source(98, 23) + SourceIndex(0) +7 >Emitted(178, 24) Source(98, 24) + SourceIndex(0) +8 >Emitted(178, 25) Source(98, 25) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(88, 2) Source(99, 2) + SourceIndex(0) +1 >Emitted(179, 2) Source(99, 2) + SourceIndex(0) --- ->>>for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > ([numberA3 = -1, ...robotAInfo] of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(89, 1) Source(101, 1) + SourceIndex(0) -2 >Emitted(89, 4) Source(101, 4) + SourceIndex(0) -3 >Emitted(89, 5) Source(101, 5) + SourceIndex(0) -4 >Emitted(89, 6) Source(101, 40) + SourceIndex(0) -5 >Emitted(89, 17) Source(101, 46) + SourceIndex(0) -6 >Emitted(89, 19) Source(101, 40) + SourceIndex(0) -7 >Emitted(89, 36) Source(101, 46) + SourceIndex(0) -8 >Emitted(89, 38) Source(101, 40) + SourceIndex(0) -9 >Emitted(89, 59) Source(101, 46) + SourceIndex(0) -10>Emitted(89, 61) Source(101, 40) + SourceIndex(0) -11>Emitted(89, 66) Source(101, 46) + SourceIndex(0) ---- ->>> _63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1); -1->^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA3 = -1, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> [numberA3 = -1, ...robotAInfo] +1->Emitted(181, 5) Source(101, 1) + SourceIndex(0) +2 >Emitted(181, 8) Source(101, 4) + SourceIndex(0) +3 >Emitted(181, 9) Source(101, 5) + SourceIndex(0) +4 >Emitted(181, 10) Source(101, 40) + SourceIndex(0) +5 >Emitted(181, 14) Source(101, 40) + SourceIndex(0) +6 >Emitted(181, 25) Source(101, 40) + SourceIndex(0) +7 >Emitted(181, 27) Source(101, 40) + SourceIndex(0) +8 >Emitted(181, 37) Source(101, 40) + SourceIndex(0) +9 >Emitted(181, 46) Source(101, 40) + SourceIndex(0) +10>Emitted(181, 52) Source(101, 46) + SourceIndex(0) +11>Emitted(181, 53) Source(101, 46) + SourceIndex(0) +12>Emitted(181, 55) Source(101, 46) + SourceIndex(0) +13>Emitted(181, 57) Source(101, 6) + SourceIndex(0) +14>Emitted(181, 73) Source(101, 36) + SourceIndex(0) +--- +>>> _50 = __read(robots_4.result.value), _51 = _50[0], numberA3 = _51 === void 0 ? -1 : _51, robotAInfo = _50.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 = -1 -3 > -4 > numberA3 = -1 -5 > , -6 > ...robotAInfo -1->Emitted(90, 26) Source(101, 7) + SourceIndex(0) -2 >Emitted(90, 38) Source(101, 20) + SourceIndex(0) -3 >Emitted(90, 40) Source(101, 7) + SourceIndex(0) -4 >Emitted(90, 76) Source(101, 20) + SourceIndex(0) -5 >Emitted(90, 78) Source(101, 22) + SourceIndex(0) -6 >Emitted(90, 103) Source(101, 35) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > numberA3 = -1 +3 > +4 > numberA3 = -1 +5 > , +6 > ...robotAInfo +1->Emitted(182, 46) Source(101, 7) + SourceIndex(0) +2 >Emitted(182, 58) Source(101, 20) + SourceIndex(0) +3 >Emitted(182, 60) Source(101, 7) + SourceIndex(0) +4 >Emitted(182, 96) Source(101, 20) + SourceIndex(0) +5 >Emitted(182, 98) Source(101, 22) + SourceIndex(0) +6 >Emitted(182, 123) Source(101, 35) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(91, 5) Source(102, 5) + SourceIndex(0) -2 >Emitted(91, 12) Source(102, 12) + SourceIndex(0) -3 >Emitted(91, 13) Source(102, 13) + SourceIndex(0) -4 >Emitted(91, 16) Source(102, 16) + SourceIndex(0) -5 >Emitted(91, 17) Source(102, 17) + SourceIndex(0) -6 >Emitted(91, 25) Source(102, 25) + SourceIndex(0) -7 >Emitted(91, 26) Source(102, 26) + SourceIndex(0) -8 >Emitted(91, 27) Source(102, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(183, 9) Source(102, 5) + SourceIndex(0) +2 >Emitted(183, 16) Source(102, 12) + SourceIndex(0) +3 >Emitted(183, 17) Source(102, 13) + SourceIndex(0) +4 >Emitted(183, 20) Source(102, 16) + SourceIndex(0) +5 >Emitted(183, 21) Source(102, 17) + SourceIndex(0) +6 >Emitted(183, 29) Source(102, 25) + SourceIndex(0) +7 >Emitted(183, 30) Source(102, 26) + SourceIndex(0) +8 >Emitted(183, 31) Source(102, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(92, 2) Source(103, 2) + SourceIndex(0) +1 >Emitted(184, 6) Source(103, 2) + SourceIndex(0) --- ->>>for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ([numberA3 = -1, ...robotAInfo] of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(93, 1) Source(104, 1) + SourceIndex(0) -2 >Emitted(93, 4) Source(104, 4) + SourceIndex(0) -3 >Emitted(93, 5) Source(104, 5) + SourceIndex(0) -4 >Emitted(93, 6) Source(104, 40) + SourceIndex(0) -5 >Emitted(93, 17) Source(104, 51) + SourceIndex(0) -6 >Emitted(93, 19) Source(104, 40) + SourceIndex(0) -7 >Emitted(93, 25) Source(104, 40) + SourceIndex(0) -8 >Emitted(93, 34) Source(104, 49) + SourceIndex(0) -9 >Emitted(93, 36) Source(104, 51) + SourceIndex(0) -10>Emitted(93, 38) Source(104, 40) + SourceIndex(0) -11>Emitted(93, 54) Source(104, 51) + SourceIndex(0) -12>Emitted(93, 56) Source(104, 40) + SourceIndex(0) -13>Emitted(93, 61) Source(104, 51) + SourceIndex(0) ---- ->>> _67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1); -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ([numberA3 = -1, ...robotAInfo] of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> [numberA3 = -1, ...robotAInfo] +1 >Emitted(191, 5) Source(104, 1) + SourceIndex(0) +2 >Emitted(191, 8) Source(104, 4) + SourceIndex(0) +3 >Emitted(191, 9) Source(104, 5) + SourceIndex(0) +4 >Emitted(191, 10) Source(104, 40) + SourceIndex(0) +5 >Emitted(191, 14) Source(104, 40) + SourceIndex(0) +6 >Emitted(191, 27) Source(104, 40) + SourceIndex(0) +7 >Emitted(191, 29) Source(104, 40) + SourceIndex(0) +8 >Emitted(191, 39) Source(104, 40) + SourceIndex(0) +9 >Emitted(191, 48) Source(104, 40) + SourceIndex(0) +10>Emitted(191, 57) Source(104, 49) + SourceIndex(0) +11>Emitted(191, 59) Source(104, 51) + SourceIndex(0) +12>Emitted(191, 60) Source(104, 51) + SourceIndex(0) +13>Emitted(191, 62) Source(104, 51) + SourceIndex(0) +14>Emitted(191, 64) Source(104, 6) + SourceIndex(0) +15>Emitted(191, 82) Source(104, 36) + SourceIndex(0) +--- +>>> _52 = __read(iterator_7.result.value), _53 = _52[0], numberA3 = _53 === void 0 ? -1 : _53, robotAInfo = _52.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 = -1 -3 > -4 > numberA3 = -1 -5 > , -6 > ...robotAInfo -1->Emitted(94, 21) Source(104, 7) + SourceIndex(0) -2 >Emitted(94, 33) Source(104, 20) + SourceIndex(0) -3 >Emitted(94, 35) Source(104, 7) + SourceIndex(0) -4 >Emitted(94, 71) Source(104, 20) + SourceIndex(0) -5 >Emitted(94, 73) Source(104, 22) + SourceIndex(0) -6 >Emitted(94, 98) Source(104, 35) + SourceIndex(0) ---- ->>> console.log(numberA3); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > numberA3 = -1 +3 > +4 > numberA3 = -1 +5 > , +6 > ...robotAInfo +1->Emitted(192, 48) Source(104, 7) + SourceIndex(0) +2 >Emitted(192, 60) Source(104, 20) + SourceIndex(0) +3 >Emitted(192, 62) Source(104, 7) + SourceIndex(0) +4 >Emitted(192, 98) Source(104, 20) + SourceIndex(0) +5 >Emitted(192, 100) Source(104, 22) + SourceIndex(0) +6 >Emitted(192, 125) Source(104, 35) + SourceIndex(0) +--- +>>> console.log(numberA3); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 >] of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > numberA3 -7 > ) -8 > ; -1 >Emitted(95, 5) Source(105, 5) + SourceIndex(0) -2 >Emitted(95, 12) Source(105, 12) + SourceIndex(0) -3 >Emitted(95, 13) Source(105, 13) + SourceIndex(0) -4 >Emitted(95, 16) Source(105, 16) + SourceIndex(0) -5 >Emitted(95, 17) Source(105, 17) + SourceIndex(0) -6 >Emitted(95, 25) Source(105, 25) + SourceIndex(0) -7 >Emitted(95, 26) Source(105, 26) + SourceIndex(0) -8 >Emitted(95, 27) Source(105, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > numberA3 +7 > ) +8 > ; +1 >Emitted(193, 9) Source(105, 5) + SourceIndex(0) +2 >Emitted(193, 16) Source(105, 12) + SourceIndex(0) +3 >Emitted(193, 17) Source(105, 13) + SourceIndex(0) +4 >Emitted(193, 20) Source(105, 16) + SourceIndex(0) +5 >Emitted(193, 21) Source(105, 17) + SourceIndex(0) +6 >Emitted(193, 29) Source(105, 25) + SourceIndex(0) +7 >Emitted(193, 30) Source(105, 26) + SourceIndex(0) +8 >Emitted(193, 31) Source(105, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(96, 2) Source(106, 2) + SourceIndex(0) +1 >Emitted(194, 6) Source(106, 2) + SourceIndex(0) --- ->>>for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) { -1-> +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +>>>} +>>>for (var _54 = 0, _55 = [robotA, robotB]; _54 < _55.length; _54++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -2591,8 +2801,8 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> ^^^^^^^^^^^^^^^^ 14> ^^ 15> ^^^^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -2608,41 +2818,41 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 13> [robotA, robotB] 14> 15> [robotA, robotB] -1->Emitted(97, 1) Source(107, 1) + SourceIndex(0) -2 >Emitted(97, 4) Source(107, 4) + SourceIndex(0) -3 >Emitted(97, 5) Source(107, 5) + SourceIndex(0) -4 >Emitted(97, 6) Source(107, 40) + SourceIndex(0) -5 >Emitted(97, 17) Source(107, 56) + SourceIndex(0) -6 >Emitted(97, 19) Source(107, 40) + SourceIndex(0) -7 >Emitted(97, 26) Source(107, 41) + SourceIndex(0) -8 >Emitted(97, 32) Source(107, 47) + SourceIndex(0) -9 >Emitted(97, 34) Source(107, 49) + SourceIndex(0) -10>Emitted(97, 40) Source(107, 55) + SourceIndex(0) -11>Emitted(97, 41) Source(107, 56) + SourceIndex(0) -12>Emitted(97, 43) Source(107, 40) + SourceIndex(0) -13>Emitted(97, 59) Source(107, 56) + SourceIndex(0) -14>Emitted(97, 61) Source(107, 40) + SourceIndex(0) -15>Emitted(97, 66) Source(107, 56) + SourceIndex(0) ---- ->>> _71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1); -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +1 >Emitted(200, 1) Source(107, 1) + SourceIndex(0) +2 >Emitted(200, 4) Source(107, 4) + SourceIndex(0) +3 >Emitted(200, 5) Source(107, 5) + SourceIndex(0) +4 >Emitted(200, 6) Source(107, 40) + SourceIndex(0) +5 >Emitted(200, 17) Source(107, 56) + SourceIndex(0) +6 >Emitted(200, 19) Source(107, 40) + SourceIndex(0) +7 >Emitted(200, 26) Source(107, 41) + SourceIndex(0) +8 >Emitted(200, 32) Source(107, 47) + SourceIndex(0) +9 >Emitted(200, 34) Source(107, 49) + SourceIndex(0) +10>Emitted(200, 40) Source(107, 55) + SourceIndex(0) +11>Emitted(200, 41) Source(107, 56) + SourceIndex(0) +12>Emitted(200, 43) Source(107, 40) + SourceIndex(0) +13>Emitted(200, 59) Source(107, 56) + SourceIndex(0) +14>Emitted(200, 61) Source(107, 40) + SourceIndex(0) +15>Emitted(200, 66) Source(107, 56) + SourceIndex(0) +--- +>>> _56 = __read(_55[_54]), _57 = _56[0], numberA3 = _57 === void 0 ? -1 : _57, robotAInfo = _56.slice(1); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 = -1 -3 > -4 > numberA3 = -1 -5 > , -6 > ...robotAInfo -1->Emitted(98, 21) Source(107, 7) + SourceIndex(0) -2 >Emitted(98, 33) Source(107, 20) + SourceIndex(0) -3 >Emitted(98, 35) Source(107, 7) + SourceIndex(0) -4 >Emitted(98, 71) Source(107, 20) + SourceIndex(0) -5 >Emitted(98, 73) Source(107, 22) + SourceIndex(0) -6 >Emitted(98, 98) Source(107, 35) + SourceIndex(0) +2 > numberA3 = -1 +3 > +4 > numberA3 = -1 +5 > , +6 > ...robotAInfo +1->Emitted(201, 29) Source(107, 7) + SourceIndex(0) +2 >Emitted(201, 41) Source(107, 20) + SourceIndex(0) +3 >Emitted(201, 43) Source(107, 7) + SourceIndex(0) +4 >Emitted(201, 79) Source(107, 20) + SourceIndex(0) +5 >Emitted(201, 81) Source(107, 22) + SourceIndex(0) +6 >Emitted(201, 106) Source(107, 35) + SourceIndex(0) --- >>> console.log(numberA3); 1 >^^^^ @@ -2662,21 +2872,21 @@ sourceFile:sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues 6 > numberA3 7 > ) 8 > ; -1 >Emitted(99, 5) Source(108, 5) + SourceIndex(0) -2 >Emitted(99, 12) Source(108, 12) + SourceIndex(0) -3 >Emitted(99, 13) Source(108, 13) + SourceIndex(0) -4 >Emitted(99, 16) Source(108, 16) + SourceIndex(0) -5 >Emitted(99, 17) Source(108, 17) + SourceIndex(0) -6 >Emitted(99, 25) Source(108, 25) + SourceIndex(0) -7 >Emitted(99, 26) Source(108, 26) + SourceIndex(0) -8 >Emitted(99, 27) Source(108, 27) + SourceIndex(0) +1 >Emitted(202, 5) Source(108, 5) + SourceIndex(0) +2 >Emitted(202, 12) Source(108, 12) + SourceIndex(0) +3 >Emitted(202, 13) Source(108, 13) + SourceIndex(0) +4 >Emitted(202, 16) Source(108, 16) + SourceIndex(0) +5 >Emitted(202, 17) Source(108, 17) + SourceIndex(0) +6 >Emitted(202, 25) Source(108, 25) + SourceIndex(0) +7 >Emitted(202, 26) Source(108, 26) + SourceIndex(0) +8 >Emitted(202, 27) Source(108, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(100, 2) Source(109, 2) + SourceIndex(0) +1 >Emitted(203, 2) Source(109, 2) + SourceIndex(0) --- ->>>var _a, _b, _e, _f, _j, _k, _m, _o, _p, _q, _r, _u, _v, _w, _x, _y, _1, _2, _3, _4, _5, _7, _10, _13, _15, _18, _21, _23, _24, _25, _26, _29, _30, _31, _32, _35, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _67, _68, _71, _72; +>>>var _a, _b, e_1, _c, _d, e_2, _f, _g, _h, _j, _k, _l, _m, e_3, _o, _p, _q, _r, _s, e_4, _v, _w, _x, _y, _z, _0, _1, e_5, _2, _3, e_6, _6, _7, _8, _9, e_7, _10, _11, e_8, _14, _15, _16, _17, _18, _19, e_9, _20, _21, _22, _23, e_10, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, e_11, _36, _37, _38, _39, _40, _41, e_12, _44, _45, _46, _47, _48, _49, _50, _51, e_13, _52, _53, e_14, _56, _57; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js index 247e23ff1f136..f78e43ccf8b67 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js @@ -68,6 +68,17 @@ for (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of } //// [sourceMapValidationDestructuringForOfObjectBindingPattern.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; @@ -77,54 +88,103 @@ function getRobots() { function getMultiRobots() { return multiRobots; } -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - var nameA = robots_1[_i].name; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + var nameA = robots_1.result.value.name; + console.log(nameA); + } } -for (var _a = 0, _b = getRobots(); _a < _b.length; _a++) { - var nameA = _b[_a].name; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + var nameA = iterator_1.result.value.name; + console.log(nameA); + } +} +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } } -for (var _c = 0, _d = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _c < _d.length; _c++) { - var nameA = _d[_c].name; +for (var _i = 0, _a = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _a.length; _i++) { + var nameA = _a[_i].name; console.log(nameA); } -for (var _e = 0, multiRobots_1 = multiRobots; _e < multiRobots_1.length; _e++) { - var _f = multiRobots_1[_e].skills, primaryA = _f.primary, secondaryA = _f.secondary; - console.log(primaryA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + var _b = multiRobots_1.result.value.skills, primaryA = _b.primary, secondaryA = _b.secondary; + console.log(primaryA); + } } -for (var _g = 0, _h = getMultiRobots(); _g < _h.length; _g++) { - var _j = _h[_g].skills, primaryA = _j.primary, secondaryA = _j.secondary; - console.log(primaryA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + var _c = iterator_2.result.value.skills, primaryA = _c.primary, secondaryA = _c.secondary; + console.log(primaryA); + } +} +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _k = 0, _l = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _k < _l.length; _k++) { - var _m = _l[_k].skills, primaryA = _m.primary, secondaryA = _m.secondary; +for (var _d = 0, _e = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _d < _e.length; _d++) { + var _f = _e[_d].skills, primaryA = _f.primary, secondaryA = _f.secondary; console.log(primaryA); } -for (var _o = 0, robots_2 = robots; _o < robots_2.length; _o++) { - var _p = robots_2[_o], nameA = _p.name, skillA = _p.skill; - console.log(nameA); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + var _g = robots_2.result.value, nameA = _g.name, skillA = _g.skill; + console.log(nameA); + } } -for (var _q = 0, _r = getRobots(); _q < _r.length; _q++) { - var _s = _r[_q], nameA = _s.name, skillA = _s.skill; - console.log(nameA); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } } -for (var _t = 0, _u = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _t < _u.length; _t++) { - var _v = _u[_t], nameA = _v.name, skillA = _v.skill; - console.log(nameA); +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + var _h = iterator_3.result.value, nameA = _h.name, skillA = _h.skill; + console.log(nameA); + } } -for (var _w = 0, multiRobots_2 = multiRobots; _w < multiRobots_2.length; _w++) { - var _x = multiRobots_2[_w], nameA = _x.name, _y = _x.skills, primaryA = _y.primary, secondaryA = _y.secondary; - console.log(nameA); +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } } -for (var _z = 0, _0 = getMultiRobots(); _z < _0.length; _z++) { - var _1 = _0[_z], nameA = _1.name, _2 = _1.skills, primaryA = _2.primary, secondaryA = _2.secondary; +for (var _j = 0, _k = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _j < _k.length; _j++) { + var _l = _k[_j], nameA = _l.name, skillA = _l.skill; console.log(nameA); } -for (var _3 = 0, _4 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _3 < _4.length; _3++) { - var _5 = _4[_3], nameA = _5.name, _6 = _5.skills, primaryA = _6.primary, secondaryA = _6.secondary; +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + var _m = multiRobots_2.result.value, nameA = _m.name, _o = _m.skills, primaryA = _o.primary, secondaryA = _o.secondary; + console.log(nameA); + } +} +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +} +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + var _p = iterator_4.result.value, nameA = _p.name, _q = _p.skills, primaryA = _q.primary, secondaryA = _q.secondary; + console.log(nameA); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +} +for (var _r = 0, _s = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _r < _s.length; _r++) { + var _t = _s[_r], nameA = _t.name, _u = _t.skills, primaryA = _u.primary, secondaryA = _u.secondary; console.log(nameA); } +var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8; //# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js.map index 3fe49ed9ef9d6..67be7284a94f5 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfObjectBindingPattern.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPattern.ts"],"names":[],"mappings":"AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAuB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAvB,IAAA,yBAAW;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAuB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA5B,IAAA,mBAAW;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAuB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7F,IAAA,mBAAW;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAiE,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAArE,IAAA,6BAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAiE,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAA1E,IAAA,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAiE,UACS,EADT,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADT,cACS,EADT,IACS;IADnE,IAAA,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED,GAAG,CAAC,CAAsC,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAvC,IAAA,iBAA6B,EAA5B,eAAW,EAAE,iBAAa;IAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAsC,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA5C,IAAA,WAA6B,EAA5B,eAAW,EAAE,iBAAa;IAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAsC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7G,IAAA,WAA6B,EAA5B,eAAW,EAAE,iBAAa;IAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6E,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAAnF,IAAA,sBAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACrE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6E,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAAxF,IAAA,WAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACrE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6E,UACH,EADG,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACjJ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADG,cACH,EADG,IACH;IADrE,IAAA,WAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAErE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPattern.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;;IAED,GAAG,CAAC,CAAuB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA5B,gBAAkB;QAAb,IAAA,kCAAW;QACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAuB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAjC,kBAAkB;QAAb,IAAA,oCAAW;QACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAuB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7F,IAAA,mBAAW;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAAiE,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAA3E,qBAA4D;QAAtD,IAAA,sCAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAAiE,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAhF,kBAA4D;QAAtD,IAAA,mCAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAAiE,UACS,EADT,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADT,cACS,EADT,IACS;IADnE,IAAA,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IAED,GAAG,CAAC,CAAsC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA3C,gBAAiC;QAA7B,IAAA,0BAA6B,EAA5B,eAAW,EAAE,iBAAa;QAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAsC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAhD,kBAAiC;QAA7B,IAAA,4BAA6B,EAA5B,eAAW,EAAE,iBAAa;QAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAsC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7G,IAAA,WAA6B,EAA5B,eAAW,EAAE,iBAAa;IAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAA6E,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAvF,qBAAwE;QAApE,IAAA,+BAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACrE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA6E,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA5F,kBAAwE;QAApE,IAAA,4BAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACrE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA6E,UACH,EADG,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACjJ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADG,cACH,EADG,IACH;IADrE,IAAA,WAAoE,EAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAErE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.sourcemap.txt index a22c02644c2bb..ea8f34e92e20b 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern.sourcemap.txt @@ -8,6 +8,17 @@ sources: sourceMapValidationDestructuringForOfObjectBindingPattern.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPattern.js sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts ------------------------------------------------------------------- +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; 1 > 2 >^^^^ @@ -77,32 +88,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 24> } 25> ] 26> ; -1 >Emitted(1, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(17, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(17, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(17, 23) + SourceIndex(0) -5 >Emitted(1, 15) Source(17, 24) + SourceIndex(0) -6 >Emitted(1, 17) Source(17, 26) + SourceIndex(0) -7 >Emitted(1, 21) Source(17, 30) + SourceIndex(0) -8 >Emitted(1, 23) Source(17, 32) + SourceIndex(0) -9 >Emitted(1, 30) Source(17, 39) + SourceIndex(0) -10>Emitted(1, 32) Source(17, 41) + SourceIndex(0) -11>Emitted(1, 37) Source(17, 46) + SourceIndex(0) -12>Emitted(1, 39) Source(17, 48) + SourceIndex(0) -13>Emitted(1, 47) Source(17, 56) + SourceIndex(0) -14>Emitted(1, 49) Source(17, 58) + SourceIndex(0) -15>Emitted(1, 51) Source(17, 60) + SourceIndex(0) -16>Emitted(1, 53) Source(17, 62) + SourceIndex(0) -17>Emitted(1, 57) Source(17, 66) + SourceIndex(0) -18>Emitted(1, 59) Source(17, 68) + SourceIndex(0) -19>Emitted(1, 68) Source(17, 77) + SourceIndex(0) -20>Emitted(1, 70) Source(17, 79) + SourceIndex(0) -21>Emitted(1, 75) Source(17, 84) + SourceIndex(0) -22>Emitted(1, 77) Source(17, 86) + SourceIndex(0) -23>Emitted(1, 87) Source(17, 96) + SourceIndex(0) -24>Emitted(1, 89) Source(17, 98) + SourceIndex(0) -25>Emitted(1, 90) Source(17, 99) + SourceIndex(0) -26>Emitted(1, 91) Source(17, 100) + SourceIndex(0) +1 >Emitted(12, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(17, 5) + SourceIndex(0) +3 >Emitted(12, 11) Source(17, 11) + SourceIndex(0) +4 >Emitted(12, 14) Source(17, 23) + SourceIndex(0) +5 >Emitted(12, 15) Source(17, 24) + SourceIndex(0) +6 >Emitted(12, 17) Source(17, 26) + SourceIndex(0) +7 >Emitted(12, 21) Source(17, 30) + SourceIndex(0) +8 >Emitted(12, 23) Source(17, 32) + SourceIndex(0) +9 >Emitted(12, 30) Source(17, 39) + SourceIndex(0) +10>Emitted(12, 32) Source(17, 41) + SourceIndex(0) +11>Emitted(12, 37) Source(17, 46) + SourceIndex(0) +12>Emitted(12, 39) Source(17, 48) + SourceIndex(0) +13>Emitted(12, 47) Source(17, 56) + SourceIndex(0) +14>Emitted(12, 49) Source(17, 58) + SourceIndex(0) +15>Emitted(12, 51) Source(17, 60) + SourceIndex(0) +16>Emitted(12, 53) Source(17, 62) + SourceIndex(0) +17>Emitted(12, 57) Source(17, 66) + SourceIndex(0) +18>Emitted(12, 59) Source(17, 68) + SourceIndex(0) +19>Emitted(12, 68) Source(17, 77) + SourceIndex(0) +20>Emitted(12, 70) Source(17, 79) + SourceIndex(0) +21>Emitted(12, 75) Source(17, 84) + SourceIndex(0) +22>Emitted(12, 77) Source(17, 86) + SourceIndex(0) +23>Emitted(12, 87) Source(17, 96) + SourceIndex(0) +24>Emitted(12, 89) Source(17, 98) + SourceIndex(0) +25>Emitted(12, 90) Source(17, 99) + SourceIndex(0) +26>Emitted(12, 91) Source(17, 100) + SourceIndex(0) --- >>>var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, 1 > @@ -150,28 +161,28 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 20> "none" 21> } 22> } -1 >Emitted(2, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(18, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(18, 33) + SourceIndex(0) -5 >Emitted(2, 20) Source(18, 34) + SourceIndex(0) -6 >Emitted(2, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(2, 26) Source(18, 40) + SourceIndex(0) -8 >Emitted(2, 28) Source(18, 42) + SourceIndex(0) -9 >Emitted(2, 35) Source(18, 49) + SourceIndex(0) -10>Emitted(2, 37) Source(18, 51) + SourceIndex(0) -11>Emitted(2, 43) Source(18, 57) + SourceIndex(0) -12>Emitted(2, 45) Source(18, 59) + SourceIndex(0) -13>Emitted(2, 47) Source(18, 61) + SourceIndex(0) -14>Emitted(2, 54) Source(18, 68) + SourceIndex(0) -15>Emitted(2, 56) Source(18, 70) + SourceIndex(0) -16>Emitted(2, 64) Source(18, 78) + SourceIndex(0) -17>Emitted(2, 66) Source(18, 80) + SourceIndex(0) -18>Emitted(2, 75) Source(18, 89) + SourceIndex(0) -19>Emitted(2, 77) Source(18, 91) + SourceIndex(0) -20>Emitted(2, 83) Source(18, 97) + SourceIndex(0) -21>Emitted(2, 85) Source(18, 99) + SourceIndex(0) -22>Emitted(2, 87) Source(18, 101) + SourceIndex(0) +1 >Emitted(13, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(18, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(18, 33) + SourceIndex(0) +5 >Emitted(13, 20) Source(18, 34) + SourceIndex(0) +6 >Emitted(13, 22) Source(18, 36) + SourceIndex(0) +7 >Emitted(13, 26) Source(18, 40) + SourceIndex(0) +8 >Emitted(13, 28) Source(18, 42) + SourceIndex(0) +9 >Emitted(13, 35) Source(18, 49) + SourceIndex(0) +10>Emitted(13, 37) Source(18, 51) + SourceIndex(0) +11>Emitted(13, 43) Source(18, 57) + SourceIndex(0) +12>Emitted(13, 45) Source(18, 59) + SourceIndex(0) +13>Emitted(13, 47) Source(18, 61) + SourceIndex(0) +14>Emitted(13, 54) Source(18, 68) + SourceIndex(0) +15>Emitted(13, 56) Source(18, 70) + SourceIndex(0) +16>Emitted(13, 64) Source(18, 78) + SourceIndex(0) +17>Emitted(13, 66) Source(18, 80) + SourceIndex(0) +18>Emitted(13, 75) Source(18, 89) + SourceIndex(0) +19>Emitted(13, 77) Source(18, 91) + SourceIndex(0) +20>Emitted(13, 83) Source(18, 97) + SourceIndex(0) +21>Emitted(13, 85) Source(18, 99) + SourceIndex(0) +22>Emitted(13, 87) Source(18, 101) + SourceIndex(0) --- >>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; 1 >^^^^ @@ -215,26 +226,26 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 18> } 19> ] 20> ; -1 >Emitted(3, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(3, 7) Source(19, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(19, 11) + SourceIndex(0) -4 >Emitted(3, 13) Source(19, 13) + SourceIndex(0) -5 >Emitted(3, 22) Source(19, 22) + SourceIndex(0) -6 >Emitted(3, 24) Source(19, 24) + SourceIndex(0) -7 >Emitted(3, 30) Source(19, 30) + SourceIndex(0) -8 >Emitted(3, 32) Source(19, 32) + SourceIndex(0) -9 >Emitted(3, 34) Source(19, 34) + SourceIndex(0) -10>Emitted(3, 41) Source(19, 41) + SourceIndex(0) -11>Emitted(3, 43) Source(19, 43) + SourceIndex(0) -12>Emitted(3, 53) Source(19, 53) + SourceIndex(0) -13>Emitted(3, 55) Source(19, 55) + SourceIndex(0) -14>Emitted(3, 64) Source(19, 64) + SourceIndex(0) -15>Emitted(3, 66) Source(19, 66) + SourceIndex(0) -16>Emitted(3, 74) Source(19, 74) + SourceIndex(0) -17>Emitted(3, 76) Source(19, 76) + SourceIndex(0) -18>Emitted(3, 78) Source(19, 78) + SourceIndex(0) -19>Emitted(3, 79) Source(19, 79) + SourceIndex(0) -20>Emitted(3, 80) Source(19, 80) + SourceIndex(0) +1 >Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 7) Source(19, 7) + SourceIndex(0) +3 >Emitted(14, 11) Source(19, 11) + SourceIndex(0) +4 >Emitted(14, 13) Source(19, 13) + SourceIndex(0) +5 >Emitted(14, 22) Source(19, 22) + SourceIndex(0) +6 >Emitted(14, 24) Source(19, 24) + SourceIndex(0) +7 >Emitted(14, 30) Source(19, 30) + SourceIndex(0) +8 >Emitted(14, 32) Source(19, 32) + SourceIndex(0) +9 >Emitted(14, 34) Source(19, 34) + SourceIndex(0) +10>Emitted(14, 41) Source(19, 41) + SourceIndex(0) +11>Emitted(14, 43) Source(19, 43) + SourceIndex(0) +12>Emitted(14, 53) Source(19, 53) + SourceIndex(0) +13>Emitted(14, 55) Source(19, 55) + SourceIndex(0) +14>Emitted(14, 64) Source(19, 64) + SourceIndex(0) +15>Emitted(14, 66) Source(19, 66) + SourceIndex(0) +16>Emitted(14, 74) Source(19, 74) + SourceIndex(0) +17>Emitted(14, 76) Source(19, 76) + SourceIndex(0) +18>Emitted(14, 78) Source(19, 78) + SourceIndex(0) +19>Emitted(14, 79) Source(19, 79) + SourceIndex(0) +20>Emitted(14, 80) Source(19, 80) + SourceIndex(0) --- >>>function getRobots() { 1 > @@ -242,7 +253,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 1 > > > -1 >Emitted(4, 1) Source(21, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(21, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -256,11 +267,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(22, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(22, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(22, 19) + SourceIndex(0) +1->Emitted(16, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(22, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(22, 12) + SourceIndex(0) +4 >Emitted(16, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(16, 19) Source(22, 19) + SourceIndex(0) --- >>>} 1 > @@ -269,8 +280,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 1 > > 2 >} -1 >Emitted(6, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(23, 2) + SourceIndex(0) --- >>>function getMultiRobots() { 1-> @@ -278,7 +289,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 1-> > > -1->Emitted(7, 1) Source(25, 1) + SourceIndex(0) +1->Emitted(18, 1) Source(25, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -292,193 +303,218 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 3 > 4 > multiRobots 5 > ; -1->Emitted(8, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(26, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(26, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(26, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(26, 24) + SourceIndex(0) +1->Emitted(19, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(19, 11) Source(26, 11) + SourceIndex(0) +3 >Emitted(19, 12) Source(26, 12) + SourceIndex(0) +4 >Emitted(19, 23) Source(26, 23) + SourceIndex(0) +5 >Emitted(19, 24) Source(26, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^-> 1 > > 2 >} -1 >Emitted(9, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(27, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(27, 2) + SourceIndex(0) --- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > > -2 >for -3 > -4 > (let {name: nameA } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(10, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(10, 4) Source(29, 4) + SourceIndex(0) -3 >Emitted(10, 5) Source(29, 5) + SourceIndex(0) -4 >Emitted(10, 6) Source(29, 28) + SourceIndex(0) -5 >Emitted(10, 16) Source(29, 34) + SourceIndex(0) -6 >Emitted(10, 18) Source(29, 28) + SourceIndex(0) -7 >Emitted(10, 35) Source(29, 34) + SourceIndex(0) -8 >Emitted(10, 37) Source(29, 28) + SourceIndex(0) -9 >Emitted(10, 57) Source(29, 34) + SourceIndex(0) -10>Emitted(10, 59) Source(29, 28) + SourceIndex(0) -11>Emitted(10, 63) Source(29, 34) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let {name: nameA } +1->Emitted(22, 5) Source(29, 1) + SourceIndex(0) +2 >Emitted(22, 8) Source(29, 4) + SourceIndex(0) +3 >Emitted(22, 9) Source(29, 5) + SourceIndex(0) +4 >Emitted(22, 10) Source(29, 28) + SourceIndex(0) +5 >Emitted(22, 14) Source(29, 28) + SourceIndex(0) +6 >Emitted(22, 25) Source(29, 28) + SourceIndex(0) +7 >Emitted(22, 27) Source(29, 28) + SourceIndex(0) +8 >Emitted(22, 37) Source(29, 28) + SourceIndex(0) +9 >Emitted(22, 46) Source(29, 28) + SourceIndex(0) +10>Emitted(22, 52) Source(29, 34) + SourceIndex(0) +11>Emitted(22, 53) Source(29, 34) + SourceIndex(0) +12>Emitted(22, 55) Source(29, 34) + SourceIndex(0) +13>Emitted(22, 57) Source(29, 6) + SourceIndex(0) +14>Emitted(22, 73) Source(29, 24) + SourceIndex(0) --- ->>> var nameA = robots_1[_i].name; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var nameA = robots_1.result.value.name; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > -3 > name: nameA -1 >Emitted(11, 5) Source(29, 11) + SourceIndex(0) -2 >Emitted(11, 9) Source(29, 11) + SourceIndex(0) -3 >Emitted(11, 34) Source(29, 22) + SourceIndex(0) +2 > +3 > name: nameA +1 >Emitted(23, 9) Source(29, 11) + SourceIndex(0) +2 >Emitted(23, 13) Source(29, 11) + SourceIndex(0) +3 >Emitted(23, 47) Source(29, 22) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(12, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(30, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(30, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(30, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(30, 17) + SourceIndex(0) -6 >Emitted(12, 22) Source(30, 22) + SourceIndex(0) -7 >Emitted(12, 23) Source(30, 23) + SourceIndex(0) -8 >Emitted(12, 24) Source(30, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(24, 9) Source(30, 5) + SourceIndex(0) +2 >Emitted(24, 16) Source(30, 12) + SourceIndex(0) +3 >Emitted(24, 17) Source(30, 13) + SourceIndex(0) +4 >Emitted(24, 20) Source(30, 16) + SourceIndex(0) +5 >Emitted(24, 21) Source(30, 17) + SourceIndex(0) +6 >Emitted(24, 26) Source(30, 22) + SourceIndex(0) +7 >Emitted(24, 27) Source(30, 23) + SourceIndex(0) +8 >Emitted(24, 28) Source(30, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(13, 2) Source(31, 2) + SourceIndex(0) +1 >Emitted(25, 6) Source(31, 2) + SourceIndex(0) --- ->>>for (var _a = 0, _b = getRobots(); _a < _b.length; _a++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > (let {name: nameA } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(14, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(14, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(14, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(14, 6) Source(32, 28) + SourceIndex(0) -5 >Emitted(14, 16) Source(32, 39) + SourceIndex(0) -6 >Emitted(14, 18) Source(32, 28) + SourceIndex(0) -7 >Emitted(14, 23) Source(32, 28) + SourceIndex(0) -8 >Emitted(14, 32) Source(32, 37) + SourceIndex(0) -9 >Emitted(14, 34) Source(32, 39) + SourceIndex(0) -10>Emitted(14, 36) Source(32, 28) + SourceIndex(0) -11>Emitted(14, 50) Source(32, 39) + SourceIndex(0) -12>Emitted(14, 52) Source(32, 28) + SourceIndex(0) -13>Emitted(14, 56) Source(32, 39) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let {name: nameA } +1 >Emitted(32, 5) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 8) Source(32, 4) + SourceIndex(0) +3 >Emitted(32, 9) Source(32, 5) + SourceIndex(0) +4 >Emitted(32, 10) Source(32, 28) + SourceIndex(0) +5 >Emitted(32, 14) Source(32, 28) + SourceIndex(0) +6 >Emitted(32, 27) Source(32, 28) + SourceIndex(0) +7 >Emitted(32, 29) Source(32, 28) + SourceIndex(0) +8 >Emitted(32, 39) Source(32, 28) + SourceIndex(0) +9 >Emitted(32, 48) Source(32, 28) + SourceIndex(0) +10>Emitted(32, 57) Source(32, 37) + SourceIndex(0) +11>Emitted(32, 59) Source(32, 39) + SourceIndex(0) +12>Emitted(32, 60) Source(32, 39) + SourceIndex(0) +13>Emitted(32, 62) Source(32, 39) + SourceIndex(0) +14>Emitted(32, 64) Source(32, 6) + SourceIndex(0) +15>Emitted(32, 82) Source(32, 24) + SourceIndex(0) --- ->>> var nameA = _b[_a].name; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ +>>> var nameA = iterator_1.result.value.name; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > -3 > name: nameA -1 >Emitted(15, 5) Source(32, 11) + SourceIndex(0) -2 >Emitted(15, 9) Source(32, 11) + SourceIndex(0) -3 >Emitted(15, 28) Source(32, 22) + SourceIndex(0) +2 > +3 > name: nameA +1 >Emitted(33, 9) Source(32, 11) + SourceIndex(0) +2 >Emitted(33, 13) Source(32, 11) + SourceIndex(0) +3 >Emitted(33, 49) Source(32, 22) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(16, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(16, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(16, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(16, 24) Source(33, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(34, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(34, 16) Source(33, 12) + SourceIndex(0) +3 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) +4 >Emitted(34, 20) Source(33, 16) + SourceIndex(0) +5 >Emitted(34, 21) Source(33, 17) + SourceIndex(0) +6 >Emitted(34, 26) Source(33, 22) + SourceIndex(0) +7 >Emitted(34, 27) Source(33, 23) + SourceIndex(0) +8 >Emitted(34, 28) Source(33, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(17, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(35, 6) Source(34, 2) + SourceIndex(0) --- ->>>for (var _c = 0, _d = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _c < _d.length; _c++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _a = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _a.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -509,7 +545,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -541,48 +577,48 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(18, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(18, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(18, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(18, 6) Source(35, 28) + SourceIndex(0) -5 >Emitted(18, 16) Source(35, 104) + SourceIndex(0) -6 >Emitted(18, 18) Source(35, 28) + SourceIndex(0) -7 >Emitted(18, 24) Source(35, 29) + SourceIndex(0) -8 >Emitted(18, 26) Source(35, 31) + SourceIndex(0) -9 >Emitted(18, 30) Source(35, 35) + SourceIndex(0) -10>Emitted(18, 32) Source(35, 37) + SourceIndex(0) -11>Emitted(18, 39) Source(35, 44) + SourceIndex(0) -12>Emitted(18, 41) Source(35, 46) + SourceIndex(0) -13>Emitted(18, 46) Source(35, 51) + SourceIndex(0) -14>Emitted(18, 48) Source(35, 53) + SourceIndex(0) -15>Emitted(18, 56) Source(35, 61) + SourceIndex(0) -16>Emitted(18, 58) Source(35, 63) + SourceIndex(0) -17>Emitted(18, 60) Source(35, 65) + SourceIndex(0) -18>Emitted(18, 62) Source(35, 67) + SourceIndex(0) -19>Emitted(18, 66) Source(35, 71) + SourceIndex(0) -20>Emitted(18, 68) Source(35, 73) + SourceIndex(0) -21>Emitted(18, 77) Source(35, 82) + SourceIndex(0) -22>Emitted(18, 79) Source(35, 84) + SourceIndex(0) -23>Emitted(18, 84) Source(35, 89) + SourceIndex(0) -24>Emitted(18, 86) Source(35, 91) + SourceIndex(0) -25>Emitted(18, 96) Source(35, 101) + SourceIndex(0) -26>Emitted(18, 98) Source(35, 103) + SourceIndex(0) -27>Emitted(18, 99) Source(35, 104) + SourceIndex(0) -28>Emitted(18, 101) Source(35, 28) + SourceIndex(0) -29>Emitted(18, 115) Source(35, 104) + SourceIndex(0) -30>Emitted(18, 117) Source(35, 28) + SourceIndex(0) -31>Emitted(18, 121) Source(35, 104) + SourceIndex(0) +1 >Emitted(41, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(41, 4) Source(35, 4) + SourceIndex(0) +3 >Emitted(41, 5) Source(35, 5) + SourceIndex(0) +4 >Emitted(41, 6) Source(35, 28) + SourceIndex(0) +5 >Emitted(41, 16) Source(35, 104) + SourceIndex(0) +6 >Emitted(41, 18) Source(35, 28) + SourceIndex(0) +7 >Emitted(41, 24) Source(35, 29) + SourceIndex(0) +8 >Emitted(41, 26) Source(35, 31) + SourceIndex(0) +9 >Emitted(41, 30) Source(35, 35) + SourceIndex(0) +10>Emitted(41, 32) Source(35, 37) + SourceIndex(0) +11>Emitted(41, 39) Source(35, 44) + SourceIndex(0) +12>Emitted(41, 41) Source(35, 46) + SourceIndex(0) +13>Emitted(41, 46) Source(35, 51) + SourceIndex(0) +14>Emitted(41, 48) Source(35, 53) + SourceIndex(0) +15>Emitted(41, 56) Source(35, 61) + SourceIndex(0) +16>Emitted(41, 58) Source(35, 63) + SourceIndex(0) +17>Emitted(41, 60) Source(35, 65) + SourceIndex(0) +18>Emitted(41, 62) Source(35, 67) + SourceIndex(0) +19>Emitted(41, 66) Source(35, 71) + SourceIndex(0) +20>Emitted(41, 68) Source(35, 73) + SourceIndex(0) +21>Emitted(41, 77) Source(35, 82) + SourceIndex(0) +22>Emitted(41, 79) Source(35, 84) + SourceIndex(0) +23>Emitted(41, 84) Source(35, 89) + SourceIndex(0) +24>Emitted(41, 86) Source(35, 91) + SourceIndex(0) +25>Emitted(41, 96) Source(35, 101) + SourceIndex(0) +26>Emitted(41, 98) Source(35, 103) + SourceIndex(0) +27>Emitted(41, 99) Source(35, 104) + SourceIndex(0) +28>Emitted(41, 101) Source(35, 28) + SourceIndex(0) +29>Emitted(41, 115) Source(35, 104) + SourceIndex(0) +30>Emitted(41, 117) Source(35, 28) + SourceIndex(0) +31>Emitted(41, 121) Source(35, 104) + SourceIndex(0) --- ->>> var nameA = _d[_c].name; +>>> var nameA = _a[_i].name; 1 >^^^^ 2 > ^^^^ 3 > ^^^^^^^^^^^^^^^^^^^ 1 > 2 > 3 > name: nameA -1 >Emitted(19, 5) Source(35, 11) + SourceIndex(0) -2 >Emitted(19, 9) Source(35, 11) + SourceIndex(0) -3 >Emitted(19, 28) Source(35, 22) + SourceIndex(0) +1 >Emitted(42, 5) Source(35, 11) + SourceIndex(0) +2 >Emitted(42, 9) Source(35, 11) + SourceIndex(0) +3 >Emitted(42, 28) Source(35, 22) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -602,218 +638,243 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(20, 5) Source(36, 5) + SourceIndex(0) -2 >Emitted(20, 12) Source(36, 12) + SourceIndex(0) -3 >Emitted(20, 13) Source(36, 13) + SourceIndex(0) -4 >Emitted(20, 16) Source(36, 16) + SourceIndex(0) -5 >Emitted(20, 17) Source(36, 17) + SourceIndex(0) -6 >Emitted(20, 22) Source(36, 22) + SourceIndex(0) -7 >Emitted(20, 23) Source(36, 23) + SourceIndex(0) -8 >Emitted(20, 24) Source(36, 24) + SourceIndex(0) +1 >Emitted(43, 5) Source(36, 5) + SourceIndex(0) +2 >Emitted(43, 12) Source(36, 12) + SourceIndex(0) +3 >Emitted(43, 13) Source(36, 13) + SourceIndex(0) +4 >Emitted(43, 16) Source(36, 16) + SourceIndex(0) +5 >Emitted(43, 17) Source(36, 17) + SourceIndex(0) +6 >Emitted(43, 22) Source(36, 22) + SourceIndex(0) +7 >Emitted(43, 23) Source(36, 23) + SourceIndex(0) +8 >Emitted(43, 24) Source(36, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(21, 2) Source(37, 2) + SourceIndex(0) +1 >Emitted(44, 2) Source(37, 2) + SourceIndex(0) --- ->>>for (var _e = 0, multiRobots_1 = multiRobots; _e < multiRobots_1.length; _e++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let { skills: { primary: primaryA, secondary: secondaryA } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(22, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(22, 4) Source(38, 4) + SourceIndex(0) -3 >Emitted(22, 5) Source(38, 5) + SourceIndex(0) -4 >Emitted(22, 6) Source(38, 70) + SourceIndex(0) -5 >Emitted(22, 16) Source(38, 81) + SourceIndex(0) -6 >Emitted(22, 18) Source(38, 70) + SourceIndex(0) -7 >Emitted(22, 45) Source(38, 81) + SourceIndex(0) -8 >Emitted(22, 47) Source(38, 70) + SourceIndex(0) -9 >Emitted(22, 72) Source(38, 81) + SourceIndex(0) -10>Emitted(22, 74) Source(38, 70) + SourceIndex(0) -11>Emitted(22, 78) Source(38, 81) + SourceIndex(0) +2 > for +3 > +4 > (let { skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let { skills: { primary: primaryA, secondary: secondaryA } } +1->Emitted(46, 5) Source(38, 1) + SourceIndex(0) +2 >Emitted(46, 8) Source(38, 4) + SourceIndex(0) +3 >Emitted(46, 9) Source(38, 5) + SourceIndex(0) +4 >Emitted(46, 10) Source(38, 70) + SourceIndex(0) +5 >Emitted(46, 14) Source(38, 70) + SourceIndex(0) +6 >Emitted(46, 30) Source(38, 70) + SourceIndex(0) +7 >Emitted(46, 32) Source(38, 70) + SourceIndex(0) +8 >Emitted(46, 42) Source(38, 70) + SourceIndex(0) +9 >Emitted(46, 51) Source(38, 70) + SourceIndex(0) +10>Emitted(46, 62) Source(38, 81) + SourceIndex(0) +11>Emitted(46, 63) Source(38, 81) + SourceIndex(0) +12>Emitted(46, 65) Source(38, 81) + SourceIndex(0) +13>Emitted(46, 67) Source(38, 6) + SourceIndex(0) +14>Emitted(46, 88) Source(38, 66) + SourceIndex(0) --- ->>> var _f = multiRobots_1[_e].skills, primaryA = _f.primary, secondaryA = _f.secondary; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _b = multiRobots_1.result.value.skills, primaryA = _b.primary, secondaryA = _b.secondary; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > skills: { primary: primaryA, secondary: secondaryA } -4 > -5 > primary: primaryA -6 > , -7 > secondary: secondaryA -1->Emitted(23, 5) Source(38, 12) + SourceIndex(0) -2 >Emitted(23, 9) Source(38, 12) + SourceIndex(0) -3 >Emitted(23, 38) Source(38, 64) + SourceIndex(0) -4 >Emitted(23, 40) Source(38, 22) + SourceIndex(0) -5 >Emitted(23, 61) Source(38, 39) + SourceIndex(0) -6 >Emitted(23, 63) Source(38, 41) + SourceIndex(0) -7 >Emitted(23, 88) Source(38, 62) + SourceIndex(0) +2 > +3 > skills: { primary: primaryA, secondary: secondaryA } +4 > +5 > primary: primaryA +6 > , +7 > secondary: secondaryA +1->Emitted(47, 9) Source(38, 12) + SourceIndex(0) +2 >Emitted(47, 13) Source(38, 12) + SourceIndex(0) +3 >Emitted(47, 51) Source(38, 64) + SourceIndex(0) +4 >Emitted(47, 53) Source(38, 22) + SourceIndex(0) +5 >Emitted(47, 74) Source(38, 39) + SourceIndex(0) +6 >Emitted(47, 76) Source(38, 41) + SourceIndex(0) +7 >Emitted(47, 101) Source(38, 62) + SourceIndex(0) --- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(24, 5) Source(39, 5) + SourceIndex(0) -2 >Emitted(24, 12) Source(39, 12) + SourceIndex(0) -3 >Emitted(24, 13) Source(39, 13) + SourceIndex(0) -4 >Emitted(24, 16) Source(39, 16) + SourceIndex(0) -5 >Emitted(24, 17) Source(39, 17) + SourceIndex(0) -6 >Emitted(24, 25) Source(39, 25) + SourceIndex(0) -7 >Emitted(24, 26) Source(39, 26) + SourceIndex(0) -8 >Emitted(24, 27) Source(39, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(48, 9) Source(39, 5) + SourceIndex(0) +2 >Emitted(48, 16) Source(39, 12) + SourceIndex(0) +3 >Emitted(48, 17) Source(39, 13) + SourceIndex(0) +4 >Emitted(48, 20) Source(39, 16) + SourceIndex(0) +5 >Emitted(48, 21) Source(39, 17) + SourceIndex(0) +6 >Emitted(48, 29) Source(39, 25) + SourceIndex(0) +7 >Emitted(48, 30) Source(39, 26) + SourceIndex(0) +8 >Emitted(48, 31) Source(39, 27) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(25, 2) Source(40, 2) + SourceIndex(0) +1 >Emitted(49, 6) Source(40, 2) + SourceIndex(0) --- ->>>for (var _g = 0, _h = getMultiRobots(); _g < _h.length; _g++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let { skills: { primary: primaryA, secondary: secondaryA } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(26, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(26, 4) Source(41, 4) + SourceIndex(0) -3 >Emitted(26, 5) Source(41, 5) + SourceIndex(0) -4 >Emitted(26, 6) Source(41, 70) + SourceIndex(0) -5 >Emitted(26, 16) Source(41, 86) + SourceIndex(0) -6 >Emitted(26, 18) Source(41, 70) + SourceIndex(0) -7 >Emitted(26, 23) Source(41, 70) + SourceIndex(0) -8 >Emitted(26, 37) Source(41, 84) + SourceIndex(0) -9 >Emitted(26, 39) Source(41, 86) + SourceIndex(0) -10>Emitted(26, 41) Source(41, 70) + SourceIndex(0) -11>Emitted(26, 55) Source(41, 86) + SourceIndex(0) -12>Emitted(26, 57) Source(41, 70) + SourceIndex(0) -13>Emitted(26, 61) Source(41, 86) + SourceIndex(0) +2 > for +3 > +4 > (let { skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let { skills: { primary: primaryA, secondary: secondaryA } } +1 >Emitted(56, 5) Source(41, 1) + SourceIndex(0) +2 >Emitted(56, 8) Source(41, 4) + SourceIndex(0) +3 >Emitted(56, 9) Source(41, 5) + SourceIndex(0) +4 >Emitted(56, 10) Source(41, 70) + SourceIndex(0) +5 >Emitted(56, 14) Source(41, 70) + SourceIndex(0) +6 >Emitted(56, 27) Source(41, 70) + SourceIndex(0) +7 >Emitted(56, 29) Source(41, 70) + SourceIndex(0) +8 >Emitted(56, 39) Source(41, 70) + SourceIndex(0) +9 >Emitted(56, 48) Source(41, 70) + SourceIndex(0) +10>Emitted(56, 62) Source(41, 84) + SourceIndex(0) +11>Emitted(56, 64) Source(41, 86) + SourceIndex(0) +12>Emitted(56, 65) Source(41, 86) + SourceIndex(0) +13>Emitted(56, 67) Source(41, 86) + SourceIndex(0) +14>Emitted(56, 69) Source(41, 6) + SourceIndex(0) +15>Emitted(56, 87) Source(41, 66) + SourceIndex(0) --- ->>> var _j = _h[_g].skills, primaryA = _j.primary, secondaryA = _j.secondary; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _c = iterator_2.result.value.skills, primaryA = _c.primary, secondaryA = _c.secondary; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > skills: { primary: primaryA, secondary: secondaryA } -4 > -5 > primary: primaryA -6 > , -7 > secondary: secondaryA -1->Emitted(27, 5) Source(41, 12) + SourceIndex(0) -2 >Emitted(27, 9) Source(41, 12) + SourceIndex(0) -3 >Emitted(27, 27) Source(41, 64) + SourceIndex(0) -4 >Emitted(27, 29) Source(41, 22) + SourceIndex(0) -5 >Emitted(27, 50) Source(41, 39) + SourceIndex(0) -6 >Emitted(27, 52) Source(41, 41) + SourceIndex(0) -7 >Emitted(27, 77) Source(41, 62) + SourceIndex(0) +2 > +3 > skills: { primary: primaryA, secondary: secondaryA } +4 > +5 > primary: primaryA +6 > , +7 > secondary: secondaryA +1->Emitted(57, 9) Source(41, 12) + SourceIndex(0) +2 >Emitted(57, 13) Source(41, 12) + SourceIndex(0) +3 >Emitted(57, 48) Source(41, 64) + SourceIndex(0) +4 >Emitted(57, 50) Source(41, 22) + SourceIndex(0) +5 >Emitted(57, 71) Source(41, 39) + SourceIndex(0) +6 >Emitted(57, 73) Source(41, 41) + SourceIndex(0) +7 >Emitted(57, 98) Source(41, 62) + SourceIndex(0) --- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(28, 5) Source(42, 5) + SourceIndex(0) -2 >Emitted(28, 12) Source(42, 12) + SourceIndex(0) -3 >Emitted(28, 13) Source(42, 13) + SourceIndex(0) -4 >Emitted(28, 16) Source(42, 16) + SourceIndex(0) -5 >Emitted(28, 17) Source(42, 17) + SourceIndex(0) -6 >Emitted(28, 25) Source(42, 25) + SourceIndex(0) -7 >Emitted(28, 26) Source(42, 26) + SourceIndex(0) -8 >Emitted(28, 27) Source(42, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(58, 9) Source(42, 5) + SourceIndex(0) +2 >Emitted(58, 16) Source(42, 12) + SourceIndex(0) +3 >Emitted(58, 17) Source(42, 13) + SourceIndex(0) +4 >Emitted(58, 20) Source(42, 16) + SourceIndex(0) +5 >Emitted(58, 21) Source(42, 17) + SourceIndex(0) +6 >Emitted(58, 29) Source(42, 25) + SourceIndex(0) +7 >Emitted(58, 30) Source(42, 26) + SourceIndex(0) +8 >Emitted(58, 31) Source(42, 27) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(29, 2) Source(43, 2) + SourceIndex(0) +1 >Emitted(59, 6) Source(43, 2) + SourceIndex(0) --- ->>>for (var _k = 0, _l = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _d = 0, _e = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -838,7 +899,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -864,32 +925,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 22> "none" 23> } 24> } -1->Emitted(30, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(30, 4) Source(44, 4) + SourceIndex(0) -3 >Emitted(30, 5) Source(44, 5) + SourceIndex(0) -4 >Emitted(30, 6) Source(44, 70) + SourceIndex(0) -5 >Emitted(30, 16) Source(45, 79) + SourceIndex(0) -6 >Emitted(30, 18) Source(44, 70) + SourceIndex(0) -7 >Emitted(30, 24) Source(44, 71) + SourceIndex(0) -8 >Emitted(30, 26) Source(44, 73) + SourceIndex(0) -9 >Emitted(30, 30) Source(44, 77) + SourceIndex(0) -10>Emitted(30, 32) Source(44, 79) + SourceIndex(0) -11>Emitted(30, 39) Source(44, 86) + SourceIndex(0) -12>Emitted(30, 41) Source(44, 88) + SourceIndex(0) -13>Emitted(30, 47) Source(44, 94) + SourceIndex(0) -14>Emitted(30, 49) Source(44, 96) + SourceIndex(0) -15>Emitted(30, 51) Source(44, 98) + SourceIndex(0) -16>Emitted(30, 58) Source(44, 105) + SourceIndex(0) -17>Emitted(30, 60) Source(44, 107) + SourceIndex(0) -18>Emitted(30, 68) Source(44, 115) + SourceIndex(0) -19>Emitted(30, 70) Source(44, 117) + SourceIndex(0) -20>Emitted(30, 79) Source(44, 126) + SourceIndex(0) -21>Emitted(30, 81) Source(44, 128) + SourceIndex(0) -22>Emitted(30, 87) Source(44, 134) + SourceIndex(0) -23>Emitted(30, 89) Source(44, 136) + SourceIndex(0) -24>Emitted(30, 91) Source(44, 138) + SourceIndex(0) +1 >Emitted(65, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(65, 4) Source(44, 4) + SourceIndex(0) +3 >Emitted(65, 5) Source(44, 5) + SourceIndex(0) +4 >Emitted(65, 6) Source(44, 70) + SourceIndex(0) +5 >Emitted(65, 16) Source(45, 79) + SourceIndex(0) +6 >Emitted(65, 18) Source(44, 70) + SourceIndex(0) +7 >Emitted(65, 24) Source(44, 71) + SourceIndex(0) +8 >Emitted(65, 26) Source(44, 73) + SourceIndex(0) +9 >Emitted(65, 30) Source(44, 77) + SourceIndex(0) +10>Emitted(65, 32) Source(44, 79) + SourceIndex(0) +11>Emitted(65, 39) Source(44, 86) + SourceIndex(0) +12>Emitted(65, 41) Source(44, 88) + SourceIndex(0) +13>Emitted(65, 47) Source(44, 94) + SourceIndex(0) +14>Emitted(65, 49) Source(44, 96) + SourceIndex(0) +15>Emitted(65, 51) Source(44, 98) + SourceIndex(0) +16>Emitted(65, 58) Source(44, 105) + SourceIndex(0) +17>Emitted(65, 60) Source(44, 107) + SourceIndex(0) +18>Emitted(65, 68) Source(44, 115) + SourceIndex(0) +19>Emitted(65, 70) Source(44, 117) + SourceIndex(0) +20>Emitted(65, 79) Source(44, 126) + SourceIndex(0) +21>Emitted(65, 81) Source(44, 128) + SourceIndex(0) +22>Emitted(65, 87) Source(44, 134) + SourceIndex(0) +23>Emitted(65, 89) Source(44, 136) + SourceIndex(0) +24>Emitted(65, 91) Source(44, 138) + SourceIndex(0) --- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _k < _l.length; _k++) { +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _d < _e.length; _d++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -939,31 +1000,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(31, 5) Source(45, 5) + SourceIndex(0) -2 >Emitted(31, 7) Source(45, 7) + SourceIndex(0) -3 >Emitted(31, 11) Source(45, 11) + SourceIndex(0) -4 >Emitted(31, 13) Source(45, 13) + SourceIndex(0) -5 >Emitted(31, 22) Source(45, 22) + SourceIndex(0) -6 >Emitted(31, 24) Source(45, 24) + SourceIndex(0) -7 >Emitted(31, 30) Source(45, 30) + SourceIndex(0) -8 >Emitted(31, 32) Source(45, 32) + SourceIndex(0) -9 >Emitted(31, 34) Source(45, 34) + SourceIndex(0) -10>Emitted(31, 41) Source(45, 41) + SourceIndex(0) -11>Emitted(31, 43) Source(45, 43) + SourceIndex(0) -12>Emitted(31, 53) Source(45, 53) + SourceIndex(0) -13>Emitted(31, 55) Source(45, 55) + SourceIndex(0) -14>Emitted(31, 64) Source(45, 64) + SourceIndex(0) -15>Emitted(31, 66) Source(45, 66) + SourceIndex(0) -16>Emitted(31, 74) Source(45, 74) + SourceIndex(0) -17>Emitted(31, 76) Source(45, 76) + SourceIndex(0) -18>Emitted(31, 78) Source(45, 78) + SourceIndex(0) -19>Emitted(31, 79) Source(45, 79) + SourceIndex(0) -20>Emitted(31, 81) Source(44, 70) + SourceIndex(0) -21>Emitted(31, 95) Source(45, 79) + SourceIndex(0) -22>Emitted(31, 97) Source(44, 70) + SourceIndex(0) -23>Emitted(31, 101) Source(45, 79) + SourceIndex(0) +1->Emitted(66, 5) Source(45, 5) + SourceIndex(0) +2 >Emitted(66, 7) Source(45, 7) + SourceIndex(0) +3 >Emitted(66, 11) Source(45, 11) + SourceIndex(0) +4 >Emitted(66, 13) Source(45, 13) + SourceIndex(0) +5 >Emitted(66, 22) Source(45, 22) + SourceIndex(0) +6 >Emitted(66, 24) Source(45, 24) + SourceIndex(0) +7 >Emitted(66, 30) Source(45, 30) + SourceIndex(0) +8 >Emitted(66, 32) Source(45, 32) + SourceIndex(0) +9 >Emitted(66, 34) Source(45, 34) + SourceIndex(0) +10>Emitted(66, 41) Source(45, 41) + SourceIndex(0) +11>Emitted(66, 43) Source(45, 43) + SourceIndex(0) +12>Emitted(66, 53) Source(45, 53) + SourceIndex(0) +13>Emitted(66, 55) Source(45, 55) + SourceIndex(0) +14>Emitted(66, 64) Source(45, 64) + SourceIndex(0) +15>Emitted(66, 66) Source(45, 66) + SourceIndex(0) +16>Emitted(66, 74) Source(45, 74) + SourceIndex(0) +17>Emitted(66, 76) Source(45, 76) + SourceIndex(0) +18>Emitted(66, 78) Source(45, 78) + SourceIndex(0) +19>Emitted(66, 79) Source(45, 79) + SourceIndex(0) +20>Emitted(66, 81) Source(44, 70) + SourceIndex(0) +21>Emitted(66, 95) Source(45, 79) + SourceIndex(0) +22>Emitted(66, 97) Source(44, 70) + SourceIndex(0) +23>Emitted(66, 101) Source(45, 79) + SourceIndex(0) --- ->>> var _m = _l[_k].skills, primaryA = _m.primary, secondaryA = _m.secondary; +>>> var _f = _e[_d].skills, primaryA = _f.primary, secondaryA = _f.secondary; 1 >^^^^ 2 > ^^^^ 3 > ^^^^^^^^^^^^^^^^^^ @@ -978,13 +1039,13 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 5 > primary: primaryA 6 > , 7 > secondary: secondaryA -1 >Emitted(32, 5) Source(44, 12) + SourceIndex(0) -2 >Emitted(32, 9) Source(44, 12) + SourceIndex(0) -3 >Emitted(32, 27) Source(44, 64) + SourceIndex(0) -4 >Emitted(32, 29) Source(44, 22) + SourceIndex(0) -5 >Emitted(32, 50) Source(44, 39) + SourceIndex(0) -6 >Emitted(32, 52) Source(44, 41) + SourceIndex(0) -7 >Emitted(32, 77) Source(44, 62) + SourceIndex(0) +1 >Emitted(67, 5) Source(44, 12) + SourceIndex(0) +2 >Emitted(67, 9) Source(44, 12) + SourceIndex(0) +3 >Emitted(67, 27) Source(44, 64) + SourceIndex(0) +4 >Emitted(67, 29) Source(44, 22) + SourceIndex(0) +5 >Emitted(67, 50) Source(44, 39) + SourceIndex(0) +6 >Emitted(67, 52) Source(44, 41) + SourceIndex(0) +7 >Emitted(67, 77) Source(44, 62) + SourceIndex(0) --- >>> console.log(primaryA); 1 >^^^^ @@ -1005,219 +1066,243 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 6 > primaryA 7 > ) 8 > ; -1 >Emitted(33, 5) Source(46, 5) + SourceIndex(0) -2 >Emitted(33, 12) Source(46, 12) + SourceIndex(0) -3 >Emitted(33, 13) Source(46, 13) + SourceIndex(0) -4 >Emitted(33, 16) Source(46, 16) + SourceIndex(0) -5 >Emitted(33, 17) Source(46, 17) + SourceIndex(0) -6 >Emitted(33, 25) Source(46, 25) + SourceIndex(0) -7 >Emitted(33, 26) Source(46, 26) + SourceIndex(0) -8 >Emitted(33, 27) Source(46, 27) + SourceIndex(0) +1 >Emitted(68, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(68, 12) Source(46, 12) + SourceIndex(0) +3 >Emitted(68, 13) Source(46, 13) + SourceIndex(0) +4 >Emitted(68, 16) Source(46, 16) + SourceIndex(0) +5 >Emitted(68, 17) Source(46, 17) + SourceIndex(0) +6 >Emitted(68, 25) Source(46, 25) + SourceIndex(0) +7 >Emitted(68, 26) Source(46, 26) + SourceIndex(0) +8 >Emitted(68, 27) Source(46, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(34, 2) Source(47, 2) + SourceIndex(0) +1 >Emitted(69, 2) Source(47, 2) + SourceIndex(0) --- ->>>for (var _o = 0, robots_2 = robots; _o < robots_2.length; _o++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^-> +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^-> 1-> > > -2 >for -3 > -4 > (let {name: nameA, skill: skillA } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(35, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(35, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(35, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(35, 6) Source(49, 43) + SourceIndex(0) -5 >Emitted(35, 16) Source(49, 49) + SourceIndex(0) -6 >Emitted(35, 18) Source(49, 43) + SourceIndex(0) -7 >Emitted(35, 35) Source(49, 49) + SourceIndex(0) -8 >Emitted(35, 37) Source(49, 43) + SourceIndex(0) -9 >Emitted(35, 57) Source(49, 49) + SourceIndex(0) -10>Emitted(35, 59) Source(49, 43) + SourceIndex(0) -11>Emitted(35, 63) Source(49, 49) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA, skill: skillA } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let {name: nameA, skill: skillA } +1->Emitted(71, 5) Source(49, 1) + SourceIndex(0) +2 >Emitted(71, 8) Source(49, 4) + SourceIndex(0) +3 >Emitted(71, 9) Source(49, 5) + SourceIndex(0) +4 >Emitted(71, 10) Source(49, 43) + SourceIndex(0) +5 >Emitted(71, 14) Source(49, 43) + SourceIndex(0) +6 >Emitted(71, 25) Source(49, 43) + SourceIndex(0) +7 >Emitted(71, 27) Source(49, 43) + SourceIndex(0) +8 >Emitted(71, 37) Source(49, 43) + SourceIndex(0) +9 >Emitted(71, 46) Source(49, 43) + SourceIndex(0) +10>Emitted(71, 52) Source(49, 49) + SourceIndex(0) +11>Emitted(71, 53) Source(49, 49) + SourceIndex(0) +12>Emitted(71, 55) Source(49, 49) + SourceIndex(0) +13>Emitted(71, 57) Source(49, 6) + SourceIndex(0) +14>Emitted(71, 73) Source(49, 39) + SourceIndex(0) --- ->>> var _p = robots_2[_o], nameA = _p.name, skillA = _p.skill; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ +>>> var _g = robots_2.result.value, nameA = _g.name, skillA = _g.skill; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > {name: nameA, skill: skillA } -4 > -5 > name: nameA -6 > , -7 > skill: skillA -1->Emitted(36, 5) Source(49, 10) + SourceIndex(0) -2 >Emitted(36, 9) Source(49, 10) + SourceIndex(0) -3 >Emitted(36, 26) Source(49, 39) + SourceIndex(0) -4 >Emitted(36, 28) Source(49, 11) + SourceIndex(0) -5 >Emitted(36, 43) Source(49, 22) + SourceIndex(0) -6 >Emitted(36, 45) Source(49, 24) + SourceIndex(0) -7 >Emitted(36, 62) Source(49, 37) + SourceIndex(0) +2 > +3 > {name: nameA, skill: skillA } +4 > +5 > name: nameA +6 > , +7 > skill: skillA +1->Emitted(72, 9) Source(49, 10) + SourceIndex(0) +2 >Emitted(72, 13) Source(49, 10) + SourceIndex(0) +3 >Emitted(72, 39) Source(49, 39) + SourceIndex(0) +4 >Emitted(72, 41) Source(49, 11) + SourceIndex(0) +5 >Emitted(72, 56) Source(49, 22) + SourceIndex(0) +6 >Emitted(72, 58) Source(49, 24) + SourceIndex(0) +7 >Emitted(72, 75) Source(49, 37) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(37, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(37, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(37, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(37, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(37, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(37, 22) Source(50, 22) + SourceIndex(0) -7 >Emitted(37, 23) Source(50, 23) + SourceIndex(0) -8 >Emitted(37, 24) Source(50, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(73, 9) Source(50, 5) + SourceIndex(0) +2 >Emitted(73, 16) Source(50, 12) + SourceIndex(0) +3 >Emitted(73, 17) Source(50, 13) + SourceIndex(0) +4 >Emitted(73, 20) Source(50, 16) + SourceIndex(0) +5 >Emitted(73, 21) Source(50, 17) + SourceIndex(0) +6 >Emitted(73, 26) Source(50, 22) + SourceIndex(0) +7 >Emitted(73, 27) Source(50, 23) + SourceIndex(0) +8 >Emitted(73, 28) Source(50, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(38, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(74, 6) Source(51, 2) + SourceIndex(0) --- ->>>for (var _q = 0, _r = getRobots(); _q < _r.length; _q++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^-> -1-> +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > (let {name: nameA, skill: skillA } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(39, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(39, 4) Source(52, 4) + SourceIndex(0) -3 >Emitted(39, 5) Source(52, 5) + SourceIndex(0) -4 >Emitted(39, 6) Source(52, 43) + SourceIndex(0) -5 >Emitted(39, 16) Source(52, 54) + SourceIndex(0) -6 >Emitted(39, 18) Source(52, 43) + SourceIndex(0) -7 >Emitted(39, 23) Source(52, 43) + SourceIndex(0) -8 >Emitted(39, 32) Source(52, 52) + SourceIndex(0) -9 >Emitted(39, 34) Source(52, 54) + SourceIndex(0) -10>Emitted(39, 36) Source(52, 43) + SourceIndex(0) -11>Emitted(39, 50) Source(52, 54) + SourceIndex(0) -12>Emitted(39, 52) Source(52, 43) + SourceIndex(0) -13>Emitted(39, 56) Source(52, 54) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA, skill: skillA } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let {name: nameA, skill: skillA } +1 >Emitted(81, 5) Source(52, 1) + SourceIndex(0) +2 >Emitted(81, 8) Source(52, 4) + SourceIndex(0) +3 >Emitted(81, 9) Source(52, 5) + SourceIndex(0) +4 >Emitted(81, 10) Source(52, 43) + SourceIndex(0) +5 >Emitted(81, 14) Source(52, 43) + SourceIndex(0) +6 >Emitted(81, 27) Source(52, 43) + SourceIndex(0) +7 >Emitted(81, 29) Source(52, 43) + SourceIndex(0) +8 >Emitted(81, 39) Source(52, 43) + SourceIndex(0) +9 >Emitted(81, 48) Source(52, 43) + SourceIndex(0) +10>Emitted(81, 57) Source(52, 52) + SourceIndex(0) +11>Emitted(81, 59) Source(52, 54) + SourceIndex(0) +12>Emitted(81, 60) Source(52, 54) + SourceIndex(0) +13>Emitted(81, 62) Source(52, 54) + SourceIndex(0) +14>Emitted(81, 64) Source(52, 6) + SourceIndex(0) +15>Emitted(81, 82) Source(52, 39) + SourceIndex(0) --- ->>> var _s = _r[_q], nameA = _s.name, skillA = _s.skill; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > {name: nameA, skill: skillA } -4 > -5 > name: nameA -6 > , -7 > skill: skillA -1->Emitted(40, 5) Source(52, 10) + SourceIndex(0) -2 >Emitted(40, 9) Source(52, 10) + SourceIndex(0) -3 >Emitted(40, 20) Source(52, 39) + SourceIndex(0) -4 >Emitted(40, 22) Source(52, 11) + SourceIndex(0) -5 >Emitted(40, 37) Source(52, 22) + SourceIndex(0) -6 >Emitted(40, 39) Source(52, 24) + SourceIndex(0) -7 >Emitted(40, 56) Source(52, 37) + SourceIndex(0) +>>> var _h = iterator_3.result.value, nameA = _h.name, skillA = _h.skill; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^ +1 > +2 > +3 > {name: nameA, skill: skillA } +4 > +5 > name: nameA +6 > , +7 > skill: skillA +1 >Emitted(82, 9) Source(52, 10) + SourceIndex(0) +2 >Emitted(82, 13) Source(52, 10) + SourceIndex(0) +3 >Emitted(82, 41) Source(52, 39) + SourceIndex(0) +4 >Emitted(82, 43) Source(52, 11) + SourceIndex(0) +5 >Emitted(82, 58) Source(52, 22) + SourceIndex(0) +6 >Emitted(82, 60) Source(52, 24) + SourceIndex(0) +7 >Emitted(82, 77) Source(52, 37) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(41, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(41, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(41, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(41, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(41, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(41, 22) Source(53, 22) + SourceIndex(0) -7 >Emitted(41, 23) Source(53, 23) + SourceIndex(0) -8 >Emitted(41, 24) Source(53, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(83, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(83, 16) Source(53, 12) + SourceIndex(0) +3 >Emitted(83, 17) Source(53, 13) + SourceIndex(0) +4 >Emitted(83, 20) Source(53, 16) + SourceIndex(0) +5 >Emitted(83, 21) Source(53, 17) + SourceIndex(0) +6 >Emitted(83, 26) Source(53, 22) + SourceIndex(0) +7 >Emitted(83, 27) Source(53, 23) + SourceIndex(0) +8 >Emitted(83, 28) Source(53, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(42, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(84, 6) Source(54, 2) + SourceIndex(0) --- ->>>for (var _t = 0, _u = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _t < _u.length; _t++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _j = 0, _k = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _j < _k.length; _j++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1248,7 +1333,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -1280,39 +1365,39 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(43, 1) Source(55, 1) + SourceIndex(0) -2 >Emitted(43, 4) Source(55, 4) + SourceIndex(0) -3 >Emitted(43, 5) Source(55, 5) + SourceIndex(0) -4 >Emitted(43, 6) Source(55, 43) + SourceIndex(0) -5 >Emitted(43, 16) Source(55, 119) + SourceIndex(0) -6 >Emitted(43, 18) Source(55, 43) + SourceIndex(0) -7 >Emitted(43, 24) Source(55, 44) + SourceIndex(0) -8 >Emitted(43, 26) Source(55, 46) + SourceIndex(0) -9 >Emitted(43, 30) Source(55, 50) + SourceIndex(0) -10>Emitted(43, 32) Source(55, 52) + SourceIndex(0) -11>Emitted(43, 39) Source(55, 59) + SourceIndex(0) -12>Emitted(43, 41) Source(55, 61) + SourceIndex(0) -13>Emitted(43, 46) Source(55, 66) + SourceIndex(0) -14>Emitted(43, 48) Source(55, 68) + SourceIndex(0) -15>Emitted(43, 56) Source(55, 76) + SourceIndex(0) -16>Emitted(43, 58) Source(55, 78) + SourceIndex(0) -17>Emitted(43, 60) Source(55, 80) + SourceIndex(0) -18>Emitted(43, 62) Source(55, 82) + SourceIndex(0) -19>Emitted(43, 66) Source(55, 86) + SourceIndex(0) -20>Emitted(43, 68) Source(55, 88) + SourceIndex(0) -21>Emitted(43, 77) Source(55, 97) + SourceIndex(0) -22>Emitted(43, 79) Source(55, 99) + SourceIndex(0) -23>Emitted(43, 84) Source(55, 104) + SourceIndex(0) -24>Emitted(43, 86) Source(55, 106) + SourceIndex(0) -25>Emitted(43, 96) Source(55, 116) + SourceIndex(0) -26>Emitted(43, 98) Source(55, 118) + SourceIndex(0) -27>Emitted(43, 99) Source(55, 119) + SourceIndex(0) -28>Emitted(43, 101) Source(55, 43) + SourceIndex(0) -29>Emitted(43, 115) Source(55, 119) + SourceIndex(0) -30>Emitted(43, 117) Source(55, 43) + SourceIndex(0) -31>Emitted(43, 121) Source(55, 119) + SourceIndex(0) +1 >Emitted(90, 1) Source(55, 1) + SourceIndex(0) +2 >Emitted(90, 4) Source(55, 4) + SourceIndex(0) +3 >Emitted(90, 5) Source(55, 5) + SourceIndex(0) +4 >Emitted(90, 6) Source(55, 43) + SourceIndex(0) +5 >Emitted(90, 16) Source(55, 119) + SourceIndex(0) +6 >Emitted(90, 18) Source(55, 43) + SourceIndex(0) +7 >Emitted(90, 24) Source(55, 44) + SourceIndex(0) +8 >Emitted(90, 26) Source(55, 46) + SourceIndex(0) +9 >Emitted(90, 30) Source(55, 50) + SourceIndex(0) +10>Emitted(90, 32) Source(55, 52) + SourceIndex(0) +11>Emitted(90, 39) Source(55, 59) + SourceIndex(0) +12>Emitted(90, 41) Source(55, 61) + SourceIndex(0) +13>Emitted(90, 46) Source(55, 66) + SourceIndex(0) +14>Emitted(90, 48) Source(55, 68) + SourceIndex(0) +15>Emitted(90, 56) Source(55, 76) + SourceIndex(0) +16>Emitted(90, 58) Source(55, 78) + SourceIndex(0) +17>Emitted(90, 60) Source(55, 80) + SourceIndex(0) +18>Emitted(90, 62) Source(55, 82) + SourceIndex(0) +19>Emitted(90, 66) Source(55, 86) + SourceIndex(0) +20>Emitted(90, 68) Source(55, 88) + SourceIndex(0) +21>Emitted(90, 77) Source(55, 97) + SourceIndex(0) +22>Emitted(90, 79) Source(55, 99) + SourceIndex(0) +23>Emitted(90, 84) Source(55, 104) + SourceIndex(0) +24>Emitted(90, 86) Source(55, 106) + SourceIndex(0) +25>Emitted(90, 96) Source(55, 116) + SourceIndex(0) +26>Emitted(90, 98) Source(55, 118) + SourceIndex(0) +27>Emitted(90, 99) Source(55, 119) + SourceIndex(0) +28>Emitted(90, 101) Source(55, 43) + SourceIndex(0) +29>Emitted(90, 115) Source(55, 119) + SourceIndex(0) +30>Emitted(90, 117) Source(55, 43) + SourceIndex(0) +31>Emitted(90, 121) Source(55, 119) + SourceIndex(0) --- ->>> var _v = _u[_t], nameA = _v.name, skillA = _v.skill; +>>> var _l = _k[_j], nameA = _l.name, skillA = _l.skill; 1 >^^^^ 2 > ^^^^ 3 > ^^^^^^^^^^^ @@ -1327,13 +1412,13 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 5 > name: nameA 6 > , 7 > skill: skillA -1 >Emitted(44, 5) Source(55, 10) + SourceIndex(0) -2 >Emitted(44, 9) Source(55, 10) + SourceIndex(0) -3 >Emitted(44, 20) Source(55, 39) + SourceIndex(0) -4 >Emitted(44, 22) Source(55, 11) + SourceIndex(0) -5 >Emitted(44, 37) Source(55, 22) + SourceIndex(0) -6 >Emitted(44, 39) Source(55, 24) + SourceIndex(0) -7 >Emitted(44, 56) Source(55, 37) + SourceIndex(0) +1 >Emitted(91, 5) Source(55, 10) + SourceIndex(0) +2 >Emitted(91, 9) Source(55, 10) + SourceIndex(0) +3 >Emitted(91, 20) Source(55, 39) + SourceIndex(0) +4 >Emitted(91, 22) Source(55, 11) + SourceIndex(0) +5 >Emitted(91, 37) Source(55, 22) + SourceIndex(0) +6 >Emitted(91, 39) Source(55, 24) + SourceIndex(0) +7 >Emitted(91, 56) Source(55, 37) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -1353,242 +1438,267 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(45, 5) Source(56, 5) + SourceIndex(0) -2 >Emitted(45, 12) Source(56, 12) + SourceIndex(0) -3 >Emitted(45, 13) Source(56, 13) + SourceIndex(0) -4 >Emitted(45, 16) Source(56, 16) + SourceIndex(0) -5 >Emitted(45, 17) Source(56, 17) + SourceIndex(0) -6 >Emitted(45, 22) Source(56, 22) + SourceIndex(0) -7 >Emitted(45, 23) Source(56, 23) + SourceIndex(0) -8 >Emitted(45, 24) Source(56, 24) + SourceIndex(0) +1 >Emitted(92, 5) Source(56, 5) + SourceIndex(0) +2 >Emitted(92, 12) Source(56, 12) + SourceIndex(0) +3 >Emitted(92, 13) Source(56, 13) + SourceIndex(0) +4 >Emitted(92, 16) Source(56, 16) + SourceIndex(0) +5 >Emitted(92, 17) Source(56, 17) + SourceIndex(0) +6 >Emitted(92, 22) Source(56, 22) + SourceIndex(0) +7 >Emitted(92, 23) Source(56, 23) + SourceIndex(0) +8 >Emitted(92, 24) Source(56, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(46, 2) Source(57, 2) + SourceIndex(0) +1 >Emitted(93, 2) Source(57, 2) + SourceIndex(0) --- ->>>for (var _w = 0, multiRobots_2 = multiRobots; _w < multiRobots_2.length; _w++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(47, 1) Source(58, 1) + SourceIndex(0) -2 >Emitted(47, 4) Source(58, 4) + SourceIndex(0) -3 >Emitted(47, 5) Source(58, 5) + SourceIndex(0) -4 >Emitted(47, 6) Source(58, 82) + SourceIndex(0) -5 >Emitted(47, 16) Source(58, 93) + SourceIndex(0) -6 >Emitted(47, 18) Source(58, 82) + SourceIndex(0) -7 >Emitted(47, 45) Source(58, 93) + SourceIndex(0) -8 >Emitted(47, 47) Source(58, 82) + SourceIndex(0) -9 >Emitted(47, 72) Source(58, 93) + SourceIndex(0) -10>Emitted(47, 74) Source(58, 82) + SourceIndex(0) -11>Emitted(47, 78) Source(58, 93) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +1->Emitted(95, 5) Source(58, 1) + SourceIndex(0) +2 >Emitted(95, 8) Source(58, 4) + SourceIndex(0) +3 >Emitted(95, 9) Source(58, 5) + SourceIndex(0) +4 >Emitted(95, 10) Source(58, 82) + SourceIndex(0) +5 >Emitted(95, 14) Source(58, 82) + SourceIndex(0) +6 >Emitted(95, 30) Source(58, 82) + SourceIndex(0) +7 >Emitted(95, 32) Source(58, 82) + SourceIndex(0) +8 >Emitted(95, 42) Source(58, 82) + SourceIndex(0) +9 >Emitted(95, 51) Source(58, 82) + SourceIndex(0) +10>Emitted(95, 62) Source(58, 93) + SourceIndex(0) +11>Emitted(95, 63) Source(58, 93) + SourceIndex(0) +12>Emitted(95, 65) Source(58, 93) + SourceIndex(0) +13>Emitted(95, 67) Source(58, 6) + SourceIndex(0) +14>Emitted(95, 88) Source(58, 78) + SourceIndex(0) --- ->>> var _x = multiRobots_2[_w], nameA = _x.name, _y = _x.skills, primaryA = _y.primary, secondaryA = _y.secondary; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _m = multiRobots_2.result.value, nameA = _m.name, _o = _m.skills, primaryA = _o.primary, secondaryA = _o.secondary; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } -4 > -5 > name: nameA -6 > , -7 > skills: { primary: primaryA, secondary: secondaryA } -8 > -9 > primary: primaryA -10> , -11> secondary: secondaryA -1->Emitted(48, 5) Source(58, 10) + SourceIndex(0) -2 >Emitted(48, 9) Source(58, 10) + SourceIndex(0) -3 >Emitted(48, 31) Source(58, 78) + SourceIndex(0) -4 >Emitted(48, 33) Source(58, 11) + SourceIndex(0) -5 >Emitted(48, 48) Source(58, 22) + SourceIndex(0) -6 >Emitted(48, 50) Source(58, 24) + SourceIndex(0) -7 >Emitted(48, 64) Source(58, 76) + SourceIndex(0) -8 >Emitted(48, 66) Source(58, 34) + SourceIndex(0) -9 >Emitted(48, 87) Source(58, 51) + SourceIndex(0) -10>Emitted(48, 89) Source(58, 53) + SourceIndex(0) -11>Emitted(48, 114) Source(58, 74) + SourceIndex(0) +2 > +3 > {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +4 > +5 > name: nameA +6 > , +7 > skills: { primary: primaryA, secondary: secondaryA } +8 > +9 > primary: primaryA +10> , +11> secondary: secondaryA +1->Emitted(96, 9) Source(58, 10) + SourceIndex(0) +2 >Emitted(96, 13) Source(58, 10) + SourceIndex(0) +3 >Emitted(96, 44) Source(58, 78) + SourceIndex(0) +4 >Emitted(96, 46) Source(58, 11) + SourceIndex(0) +5 >Emitted(96, 61) Source(58, 22) + SourceIndex(0) +6 >Emitted(96, 63) Source(58, 24) + SourceIndex(0) +7 >Emitted(96, 77) Source(58, 76) + SourceIndex(0) +8 >Emitted(96, 79) Source(58, 34) + SourceIndex(0) +9 >Emitted(96, 100) Source(58, 51) + SourceIndex(0) +10>Emitted(96, 102) Source(58, 53) + SourceIndex(0) +11>Emitted(96, 127) Source(58, 74) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(49, 5) Source(59, 5) + SourceIndex(0) -2 >Emitted(49, 12) Source(59, 12) + SourceIndex(0) -3 >Emitted(49, 13) Source(59, 13) + SourceIndex(0) -4 >Emitted(49, 16) Source(59, 16) + SourceIndex(0) -5 >Emitted(49, 17) Source(59, 17) + SourceIndex(0) -6 >Emitted(49, 22) Source(59, 22) + SourceIndex(0) -7 >Emitted(49, 23) Source(59, 23) + SourceIndex(0) -8 >Emitted(49, 24) Source(59, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(97, 9) Source(59, 5) + SourceIndex(0) +2 >Emitted(97, 16) Source(59, 12) + SourceIndex(0) +3 >Emitted(97, 17) Source(59, 13) + SourceIndex(0) +4 >Emitted(97, 20) Source(59, 16) + SourceIndex(0) +5 >Emitted(97, 21) Source(59, 17) + SourceIndex(0) +6 >Emitted(97, 26) Source(59, 22) + SourceIndex(0) +7 >Emitted(97, 27) Source(59, 23) + SourceIndex(0) +8 >Emitted(97, 28) Source(59, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(50, 2) Source(60, 2) + SourceIndex(0) +1 >Emitted(98, 6) Source(60, 2) + SourceIndex(0) --- ->>>for (var _z = 0, _0 = getMultiRobots(); _z < _0.length; _z++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(51, 1) Source(61, 1) + SourceIndex(0) -2 >Emitted(51, 4) Source(61, 4) + SourceIndex(0) -3 >Emitted(51, 5) Source(61, 5) + SourceIndex(0) -4 >Emitted(51, 6) Source(61, 82) + SourceIndex(0) -5 >Emitted(51, 16) Source(61, 98) + SourceIndex(0) -6 >Emitted(51, 18) Source(61, 82) + SourceIndex(0) -7 >Emitted(51, 23) Source(61, 82) + SourceIndex(0) -8 >Emitted(51, 37) Source(61, 96) + SourceIndex(0) -9 >Emitted(51, 39) Source(61, 98) + SourceIndex(0) -10>Emitted(51, 41) Source(61, 82) + SourceIndex(0) -11>Emitted(51, 55) Source(61, 98) + SourceIndex(0) -12>Emitted(51, 57) Source(61, 82) + SourceIndex(0) -13>Emitted(51, 61) Source(61, 98) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +1 >Emitted(105, 5) Source(61, 1) + SourceIndex(0) +2 >Emitted(105, 8) Source(61, 4) + SourceIndex(0) +3 >Emitted(105, 9) Source(61, 5) + SourceIndex(0) +4 >Emitted(105, 10) Source(61, 82) + SourceIndex(0) +5 >Emitted(105, 14) Source(61, 82) + SourceIndex(0) +6 >Emitted(105, 27) Source(61, 82) + SourceIndex(0) +7 >Emitted(105, 29) Source(61, 82) + SourceIndex(0) +8 >Emitted(105, 39) Source(61, 82) + SourceIndex(0) +9 >Emitted(105, 48) Source(61, 82) + SourceIndex(0) +10>Emitted(105, 62) Source(61, 96) + SourceIndex(0) +11>Emitted(105, 64) Source(61, 98) + SourceIndex(0) +12>Emitted(105, 65) Source(61, 98) + SourceIndex(0) +13>Emitted(105, 67) Source(61, 98) + SourceIndex(0) +14>Emitted(105, 69) Source(61, 6) + SourceIndex(0) +15>Emitted(105, 87) Source(61, 78) + SourceIndex(0) --- ->>> var _1 = _0[_z], nameA = _1.name, _2 = _1.skills, primaryA = _2.primary, secondaryA = _2.secondary; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _p = iterator_4.result.value, nameA = _p.name, _q = _p.skills, primaryA = _q.primary, secondaryA = _q.secondary; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } -4 > -5 > name: nameA -6 > , -7 > skills: { primary: primaryA, secondary: secondaryA } -8 > -9 > primary: primaryA -10> , -11> secondary: secondaryA -1->Emitted(52, 5) Source(61, 10) + SourceIndex(0) -2 >Emitted(52, 9) Source(61, 10) + SourceIndex(0) -3 >Emitted(52, 20) Source(61, 78) + SourceIndex(0) -4 >Emitted(52, 22) Source(61, 11) + SourceIndex(0) -5 >Emitted(52, 37) Source(61, 22) + SourceIndex(0) -6 >Emitted(52, 39) Source(61, 24) + SourceIndex(0) -7 >Emitted(52, 53) Source(61, 76) + SourceIndex(0) -8 >Emitted(52, 55) Source(61, 34) + SourceIndex(0) -9 >Emitted(52, 76) Source(61, 51) + SourceIndex(0) -10>Emitted(52, 78) Source(61, 53) + SourceIndex(0) -11>Emitted(52, 103) Source(61, 74) + SourceIndex(0) +2 > +3 > {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +4 > +5 > name: nameA +6 > , +7 > skills: { primary: primaryA, secondary: secondaryA } +8 > +9 > primary: primaryA +10> , +11> secondary: secondaryA +1->Emitted(106, 9) Source(61, 10) + SourceIndex(0) +2 >Emitted(106, 13) Source(61, 10) + SourceIndex(0) +3 >Emitted(106, 41) Source(61, 78) + SourceIndex(0) +4 >Emitted(106, 43) Source(61, 11) + SourceIndex(0) +5 >Emitted(106, 58) Source(61, 22) + SourceIndex(0) +6 >Emitted(106, 60) Source(61, 24) + SourceIndex(0) +7 >Emitted(106, 74) Source(61, 76) + SourceIndex(0) +8 >Emitted(106, 76) Source(61, 34) + SourceIndex(0) +9 >Emitted(106, 97) Source(61, 51) + SourceIndex(0) +10>Emitted(106, 99) Source(61, 53) + SourceIndex(0) +11>Emitted(106, 124) Source(61, 74) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(53, 5) Source(62, 5) + SourceIndex(0) -2 >Emitted(53, 12) Source(62, 12) + SourceIndex(0) -3 >Emitted(53, 13) Source(62, 13) + SourceIndex(0) -4 >Emitted(53, 16) Source(62, 16) + SourceIndex(0) -5 >Emitted(53, 17) Source(62, 17) + SourceIndex(0) -6 >Emitted(53, 22) Source(62, 22) + SourceIndex(0) -7 >Emitted(53, 23) Source(62, 23) + SourceIndex(0) -8 >Emitted(53, 24) Source(62, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(107, 9) Source(62, 5) + SourceIndex(0) +2 >Emitted(107, 16) Source(62, 12) + SourceIndex(0) +3 >Emitted(107, 17) Source(62, 13) + SourceIndex(0) +4 >Emitted(107, 20) Source(62, 16) + SourceIndex(0) +5 >Emitted(107, 21) Source(62, 17) + SourceIndex(0) +6 >Emitted(107, 26) Source(62, 22) + SourceIndex(0) +7 >Emitted(107, 27) Source(62, 23) + SourceIndex(0) +8 >Emitted(107, 28) Source(62, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(54, 2) Source(63, 2) + SourceIndex(0) +1 >Emitted(108, 6) Source(63, 2) + SourceIndex(0) --- ->>>for (var _3 = 0, _4 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _r = 0, _s = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1613,7 +1723,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -1639,32 +1749,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 22> "none" 23> } 24> } -1->Emitted(55, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(55, 4) Source(64, 4) + SourceIndex(0) -3 >Emitted(55, 5) Source(64, 5) + SourceIndex(0) -4 >Emitted(55, 6) Source(64, 82) + SourceIndex(0) -5 >Emitted(55, 16) Source(65, 79) + SourceIndex(0) -6 >Emitted(55, 18) Source(64, 82) + SourceIndex(0) -7 >Emitted(55, 24) Source(64, 83) + SourceIndex(0) -8 >Emitted(55, 26) Source(64, 85) + SourceIndex(0) -9 >Emitted(55, 30) Source(64, 89) + SourceIndex(0) -10>Emitted(55, 32) Source(64, 91) + SourceIndex(0) -11>Emitted(55, 39) Source(64, 98) + SourceIndex(0) -12>Emitted(55, 41) Source(64, 100) + SourceIndex(0) -13>Emitted(55, 47) Source(64, 106) + SourceIndex(0) -14>Emitted(55, 49) Source(64, 108) + SourceIndex(0) -15>Emitted(55, 51) Source(64, 110) + SourceIndex(0) -16>Emitted(55, 58) Source(64, 117) + SourceIndex(0) -17>Emitted(55, 60) Source(64, 119) + SourceIndex(0) -18>Emitted(55, 68) Source(64, 127) + SourceIndex(0) -19>Emitted(55, 70) Source(64, 129) + SourceIndex(0) -20>Emitted(55, 79) Source(64, 138) + SourceIndex(0) -21>Emitted(55, 81) Source(64, 140) + SourceIndex(0) -22>Emitted(55, 87) Source(64, 146) + SourceIndex(0) -23>Emitted(55, 89) Source(64, 148) + SourceIndex(0) -24>Emitted(55, 91) Source(64, 150) + SourceIndex(0) +1 >Emitted(114, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(114, 4) Source(64, 4) + SourceIndex(0) +3 >Emitted(114, 5) Source(64, 5) + SourceIndex(0) +4 >Emitted(114, 6) Source(64, 82) + SourceIndex(0) +5 >Emitted(114, 16) Source(65, 79) + SourceIndex(0) +6 >Emitted(114, 18) Source(64, 82) + SourceIndex(0) +7 >Emitted(114, 24) Source(64, 83) + SourceIndex(0) +8 >Emitted(114, 26) Source(64, 85) + SourceIndex(0) +9 >Emitted(114, 30) Source(64, 89) + SourceIndex(0) +10>Emitted(114, 32) Source(64, 91) + SourceIndex(0) +11>Emitted(114, 39) Source(64, 98) + SourceIndex(0) +12>Emitted(114, 41) Source(64, 100) + SourceIndex(0) +13>Emitted(114, 47) Source(64, 106) + SourceIndex(0) +14>Emitted(114, 49) Source(64, 108) + SourceIndex(0) +15>Emitted(114, 51) Source(64, 110) + SourceIndex(0) +16>Emitted(114, 58) Source(64, 117) + SourceIndex(0) +17>Emitted(114, 60) Source(64, 119) + SourceIndex(0) +18>Emitted(114, 68) Source(64, 127) + SourceIndex(0) +19>Emitted(114, 70) Source(64, 129) + SourceIndex(0) +20>Emitted(114, 79) Source(64, 138) + SourceIndex(0) +21>Emitted(114, 81) Source(64, 140) + SourceIndex(0) +22>Emitted(114, 87) Source(64, 146) + SourceIndex(0) +23>Emitted(114, 89) Source(64, 148) + SourceIndex(0) +24>Emitted(114, 91) Source(64, 150) + SourceIndex(0) --- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _3 < _4.length; _3++) { +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _r < _s.length; _r++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -1715,31 +1825,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(56, 5) Source(65, 5) + SourceIndex(0) -2 >Emitted(56, 7) Source(65, 7) + SourceIndex(0) -3 >Emitted(56, 11) Source(65, 11) + SourceIndex(0) -4 >Emitted(56, 13) Source(65, 13) + SourceIndex(0) -5 >Emitted(56, 22) Source(65, 22) + SourceIndex(0) -6 >Emitted(56, 24) Source(65, 24) + SourceIndex(0) -7 >Emitted(56, 30) Source(65, 30) + SourceIndex(0) -8 >Emitted(56, 32) Source(65, 32) + SourceIndex(0) -9 >Emitted(56, 34) Source(65, 34) + SourceIndex(0) -10>Emitted(56, 41) Source(65, 41) + SourceIndex(0) -11>Emitted(56, 43) Source(65, 43) + SourceIndex(0) -12>Emitted(56, 53) Source(65, 53) + SourceIndex(0) -13>Emitted(56, 55) Source(65, 55) + SourceIndex(0) -14>Emitted(56, 64) Source(65, 64) + SourceIndex(0) -15>Emitted(56, 66) Source(65, 66) + SourceIndex(0) -16>Emitted(56, 74) Source(65, 74) + SourceIndex(0) -17>Emitted(56, 76) Source(65, 76) + SourceIndex(0) -18>Emitted(56, 78) Source(65, 78) + SourceIndex(0) -19>Emitted(56, 79) Source(65, 79) + SourceIndex(0) -20>Emitted(56, 81) Source(64, 82) + SourceIndex(0) -21>Emitted(56, 95) Source(65, 79) + SourceIndex(0) -22>Emitted(56, 97) Source(64, 82) + SourceIndex(0) -23>Emitted(56, 101) Source(65, 79) + SourceIndex(0) +1->Emitted(115, 5) Source(65, 5) + SourceIndex(0) +2 >Emitted(115, 7) Source(65, 7) + SourceIndex(0) +3 >Emitted(115, 11) Source(65, 11) + SourceIndex(0) +4 >Emitted(115, 13) Source(65, 13) + SourceIndex(0) +5 >Emitted(115, 22) Source(65, 22) + SourceIndex(0) +6 >Emitted(115, 24) Source(65, 24) + SourceIndex(0) +7 >Emitted(115, 30) Source(65, 30) + SourceIndex(0) +8 >Emitted(115, 32) Source(65, 32) + SourceIndex(0) +9 >Emitted(115, 34) Source(65, 34) + SourceIndex(0) +10>Emitted(115, 41) Source(65, 41) + SourceIndex(0) +11>Emitted(115, 43) Source(65, 43) + SourceIndex(0) +12>Emitted(115, 53) Source(65, 53) + SourceIndex(0) +13>Emitted(115, 55) Source(65, 55) + SourceIndex(0) +14>Emitted(115, 64) Source(65, 64) + SourceIndex(0) +15>Emitted(115, 66) Source(65, 66) + SourceIndex(0) +16>Emitted(115, 74) Source(65, 74) + SourceIndex(0) +17>Emitted(115, 76) Source(65, 76) + SourceIndex(0) +18>Emitted(115, 78) Source(65, 78) + SourceIndex(0) +19>Emitted(115, 79) Source(65, 79) + SourceIndex(0) +20>Emitted(115, 81) Source(64, 82) + SourceIndex(0) +21>Emitted(115, 95) Source(65, 79) + SourceIndex(0) +22>Emitted(115, 97) Source(64, 82) + SourceIndex(0) +23>Emitted(115, 101) Source(65, 79) + SourceIndex(0) --- ->>> var _5 = _4[_3], nameA = _5.name, _6 = _5.skills, primaryA = _6.primary, secondaryA = _6.secondary; +>>> var _t = _s[_r], nameA = _t.name, _u = _t.skills, primaryA = _u.primary, secondaryA = _u.secondary; 1->^^^^ 2 > ^^^^ 3 > ^^^^^^^^^^^ @@ -1762,17 +1872,17 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 9 > primary: primaryA 10> , 11> secondary: secondaryA -1->Emitted(57, 5) Source(64, 10) + SourceIndex(0) -2 >Emitted(57, 9) Source(64, 10) + SourceIndex(0) -3 >Emitted(57, 20) Source(64, 78) + SourceIndex(0) -4 >Emitted(57, 22) Source(64, 11) + SourceIndex(0) -5 >Emitted(57, 37) Source(64, 22) + SourceIndex(0) -6 >Emitted(57, 39) Source(64, 24) + SourceIndex(0) -7 >Emitted(57, 53) Source(64, 76) + SourceIndex(0) -8 >Emitted(57, 55) Source(64, 34) + SourceIndex(0) -9 >Emitted(57, 76) Source(64, 51) + SourceIndex(0) -10>Emitted(57, 78) Source(64, 53) + SourceIndex(0) -11>Emitted(57, 103) Source(64, 74) + SourceIndex(0) +1->Emitted(116, 5) Source(64, 10) + SourceIndex(0) +2 >Emitted(116, 9) Source(64, 10) + SourceIndex(0) +3 >Emitted(116, 20) Source(64, 78) + SourceIndex(0) +4 >Emitted(116, 22) Source(64, 11) + SourceIndex(0) +5 >Emitted(116, 37) Source(64, 22) + SourceIndex(0) +6 >Emitted(116, 39) Source(64, 24) + SourceIndex(0) +7 >Emitted(116, 53) Source(64, 76) + SourceIndex(0) +8 >Emitted(116, 55) Source(64, 34) + SourceIndex(0) +9 >Emitted(116, 76) Source(64, 51) + SourceIndex(0) +10>Emitted(116, 78) Source(64, 53) + SourceIndex(0) +11>Emitted(116, 103) Source(64, 74) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -1793,20 +1903,21 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(58, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(58, 12) Source(66, 12) + SourceIndex(0) -3 >Emitted(58, 13) Source(66, 13) + SourceIndex(0) -4 >Emitted(58, 16) Source(66, 16) + SourceIndex(0) -5 >Emitted(58, 17) Source(66, 17) + SourceIndex(0) -6 >Emitted(58, 22) Source(66, 22) + SourceIndex(0) -7 >Emitted(58, 23) Source(66, 23) + SourceIndex(0) -8 >Emitted(58, 24) Source(66, 24) + SourceIndex(0) +1 >Emitted(117, 5) Source(66, 5) + SourceIndex(0) +2 >Emitted(117, 12) Source(66, 12) + SourceIndex(0) +3 >Emitted(117, 13) Source(66, 13) + SourceIndex(0) +4 >Emitted(117, 16) Source(66, 16) + SourceIndex(0) +5 >Emitted(117, 17) Source(66, 17) + SourceIndex(0) +6 >Emitted(117, 22) Source(66, 22) + SourceIndex(0) +7 >Emitted(117, 23) Source(66, 23) + SourceIndex(0) +8 >Emitted(117, 24) Source(66, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(59, 2) Source(67, 2) + SourceIndex(0) +1 >Emitted(118, 2) Source(67, 2) + SourceIndex(0) --- +>>>var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js index aebfd11b9db3c..cccfc5f0b8d04 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js @@ -110,6 +110,17 @@ for ({name, skills: { primary, secondary } } of [{ name: "mower", skills: { prim } //// [sourceMapValidationDestructuringForOfObjectBindingPattern2.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; @@ -121,105 +132,201 @@ function getMultiRobots() { } var nameA, primaryA, secondaryA, i, skillA; var name, primary, secondary, skill; -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - nameA = robots_1[_i].name; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + nameA = robots_1.result.value.name; + console.log(nameA); + } } -for (var _a = 0, _b = getRobots(); _a < _b.length; _a++) { - nameA = _b[_a].name; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + nameA = iterator_1.result.value.name; + console.log(nameA); + } } -for (var _c = 0, _d = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _c < _d.length; _c++) { - nameA = _d[_c].name; +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +} +for (var _i = 0, _a = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _a.length; _i++) { + nameA = _a[_i].name; console.log(nameA); } -for (var _e = 0, multiRobots_1 = multiRobots; _e < multiRobots_1.length; _e++) { - _f = multiRobots_1[_e].skills, primaryA = _f.primary, secondaryA = _f.secondary; - console.log(primaryA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + _b = multiRobots_1.result.value.skills, primaryA = _b.primary, secondaryA = _b.secondary; + console.log(primaryA); + } } -for (var _g = 0, _h = getMultiRobots(); _g < _h.length; _g++) { - _j = _h[_g].skills, primaryA = _j.primary, secondaryA = _j.secondary; - console.log(primaryA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +} +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + _c = iterator_2.result.value.skills, primaryA = _c.primary, secondaryA = _c.secondary; + console.log(primaryA); + } +} +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _k = 0, _l = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _k < _l.length; _k++) { - _m = _l[_k].skills, primaryA = _m.primary, secondaryA = _m.secondary; +for (var _d = 0, _e = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _d < _e.length; _d++) { + _f = _e[_d].skills, primaryA = _f.primary, secondaryA = _f.secondary; console.log(primaryA); } -for (var _o = 0, robots_2 = robots; _o < robots_2.length; _o++) { - name = robots_2[_o].name; - console.log(nameA); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + name = robots_2.result.value.name; + console.log(nameA); + } } -for (var _p = 0, _q = getRobots(); _p < _q.length; _p++) { - name = _q[_p].name; - console.log(nameA); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(robots_2); } finally { if (e_5) throw e_5.error; } } -for (var _r = 0, _s = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _r < _s.length; _r++) { - name = _s[_r].name; +try { + for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { + name = iterator_3.result.value.name; + console.log(nameA); + } +} +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +} +for (var _g = 0, _h = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _g < _h.length; _g++) { + name = _h[_g].name; console.log(nameA); } -for (var _t = 0, multiRobots_2 = multiRobots; _t < multiRobots_2.length; _t++) { - _u = multiRobots_2[_t].skills, primary = _u.primary, secondary = _u.secondary; - console.log(primaryA); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + _j = multiRobots_2.result.value.skills, primary = _j.primary, secondary = _j.secondary; + console.log(primaryA); + } } -for (var _v = 0, _w = getMultiRobots(); _v < _w.length; _v++) { - _x = _w[_v].skills, primary = _x.primary, secondary = _x.secondary; - console.log(primaryA); +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } } -for (var _y = 0, _z = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _y < _z.length; _y++) { - _0 = _z[_y].skills, primary = _0.primary, secondary = _0.secondary; +try { + for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { + _k = iterator_4.result.value.skills, primary = _k.primary, secondary = _k.secondary; + console.log(primaryA); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +} +for (var _l = 0, _m = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _l < _m.length; _l++) { + _o = _m[_l].skills, primary = _o.primary, secondary = _o.secondary; console.log(primaryA); } -for (var _1 = 0, robots_3 = robots; _1 < robots_3.length; _1++) { - _2 = robots_3[_1], nameA = _2.name, skillA = _2.skill; - console.log(nameA); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + _p = robots_3.result.value, nameA = _p.name, skillA = _p.skill; + console.log(nameA); + } } -for (var _3 = 0, _4 = getRobots(); _3 < _4.length; _3++) { - _5 = _4[_3], nameA = _5.name, skillA = _5.skill; - console.log(nameA); +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(robots_3); } finally { if (e_9) throw e_9.error; } } -for (var _6 = 0, _7 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _6 < _7.length; _6++) { - _8 = _7[_6], nameA = _8.name, skillA = _8.skill; - console.log(nameA); +try { + for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { + _q = iterator_5.result.value, nameA = _q.name, skillA = _q.skill; + console.log(nameA); + } } -for (var _9 = 0, multiRobots_3 = multiRobots; _9 < multiRobots_3.length; _9++) { - _10 = multiRobots_3[_9], nameA = _10.name, _11 = _10.skills, primaryA = _11.primary, secondaryA = _11.secondary; - console.log(nameA); +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } } -for (var _12 = 0, _13 = getMultiRobots(); _12 < _13.length; _12++) { - _14 = _13[_12], nameA = _14.name, _15 = _14.skills, primaryA = _15.primary, secondaryA = _15.secondary; +for (var _r = 0, _s = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _r < _s.length; _r++) { + _t = _s[_r], nameA = _t.name, skillA = _t.skill; console.log(nameA); } -for (var _16 = 0, _17 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _16 < _17.length; _16++) { - _18 = _17[_16], nameA = _18.name, _19 = _18.skills, primaryA = _19.primary, secondaryA = _19.secondary; - console.log(nameA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + _u = multiRobots_3.result.value, nameA = _u.name, _v = _u.skills, primaryA = _v.primary, secondaryA = _v.secondary; + console.log(nameA); + } } -for (var _20 = 0, robots_4 = robots; _20 < robots_4.length; _20++) { - _21 = robots_4[_20], name = _21.name, skill = _21.skill; - console.log(nameA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } } -for (var _22 = 0, _23 = getRobots(); _22 < _23.length; _22++) { - _24 = _23[_22], name = _24.name, skill = _24.skill; - console.log(nameA); +try { + for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { + _w = iterator_6.result.value, nameA = _w.name, _x = _w.skills, primaryA = _x.primary, secondaryA = _x.secondary; + console.log(nameA); + } } -for (var _25 = 0, _26 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _25 < _26.length; _25++) { - _27 = _26[_25], name = _27.name, skill = _27.skill; - console.log(nameA); +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } } -for (var _28 = 0, multiRobots_4 = multiRobots; _28 < multiRobots_4.length; _28++) { - _29 = multiRobots_4[_28], name = _29.name, _30 = _29.skills, primary = _30.primary, secondary = _30.secondary; +for (var _y = 0, _z = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _y < _z.length; _y++) { + _0 = _z[_y], nameA = _0.name, _1 = _0.skills, primaryA = _1.primary, secondaryA = _1.secondary; console.log(nameA); } -for (var _31 = 0, _32 = getMultiRobots(); _31 < _32.length; _31++) { - _33 = _32[_31], name = _33.name, _34 = _33.skills, primary = _34.primary, secondary = _34.secondary; +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + _2 = robots_4.result.value, name = _2.name, skill = _2.skill; + console.log(nameA); + } +} +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +} +try { + for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { + _3 = iterator_7.result.value, name = _3.name, skill = _3.skill; + console.log(nameA); + } +} +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +} +for (var _4 = 0, _5 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _4 < _5.length; _4++) { + _6 = _5[_4], name = _6.name, skill = _6.skill; console.log(nameA); } -for (var _35 = 0, _36 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _35 < _36.length; _35++) { - _37 = _36[_35], name = _37.name, _38 = _37.skills, primary = _38.primary, secondary = _38.secondary; +try { + for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { + _7 = multiRobots_4.result.value, name = _7.name, _8 = _7.skills, primary = _8.primary, secondary = _8.secondary; + console.log(nameA); + } +} +catch (e_15_1) { e_15 = { error: e_15_1 }; } +finally { + try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +} +try { + for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { + _9 = iterator_8.result.value, name = _9.name, _10 = _9.skills, primary = _10.primary, secondary = _10.secondary; + console.log(nameA); + } +} +catch (e_16_1) { e_16 = { error: e_16_1 }; } +finally { + try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } +} +for (var _11 = 0, _12 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _11 < _12.length; _11++) { + _13 = _12[_11], name = _13.name, _14 = _13.skills, primary = _14.primary, secondary = _14.secondary; console.log(nameA); } -var _f, _j, _m, _u, _x, _0, _2, _5, _8, _10, _11, _14, _15, _18, _19, _21, _24, _27, _29, _30, _33, _34, _37, _38; +var e_1, e_2, _b, e_3, _c, e_4, _f, e_5, e_6, _j, e_7, _k, e_8, _o, _p, e_9, _q, e_10, _t, _u, _v, e_11, _w, _x, e_12, _0, _1, _2, e_13, _3, e_14, _6, _7, _8, e_15, _9, _10, e_16, _13, _14; //# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map index 47fdde05e22c2..93290d38c5900 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPattern2.ts"],"names":[],"mappings":"AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,QAAgB,EAAE,UAAkB,EAAE,CAAS,EAAE,MAAc,CAAC;AACnF,IAAI,IAAY,EAAE,OAAe,EAAE,SAAiB,EAAE,KAAa,CAAC;AAEpE,GAAG,CAAC,CAAmB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAvB,yBAAW;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAmB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAA5B,mBAAW;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAmB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7F,mBAAW;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA6D,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAArE,6BAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACrD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAA6D,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAA1E,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IACrD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAA6D,UACa,EADb,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACjI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADb,cACa,EADb,IACa;IADvE,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAErD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAY,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAhB,wBAAI;IACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAY,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAArB,kBAAI;IACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAY,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAtF,kBAAI;IACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAuC,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAA/C,6BAA8B,EAApB,oBAAO,EAAE,wBAAS;IAC/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAuC,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAApD,kBAA8B,EAApB,oBAAO,EAAE,wBAAS;IAC/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAAuC,UACmC,EADnC,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAC3G,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADnC,cACmC,EADnC,IACmC;IADvE,kBAA8B,EAApB,oBAAO,EAAE,wBAAS;IAE/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AAGD,GAAG,CAAC,CAAkC,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;uBAAtC,eAAW,EAAE,iBAAa;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkC,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;iBAA3C,eAAW,EAAE,iBAAa;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;iBAA5G,eAAW,EAAE,iBAAa;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyE,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;6BAAlF,gBAAW,EAAE,gBAAoD,EAA1C,sBAAiB,EAAE,0BAAqB;IACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyE,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBAAvF,gBAAW,EAAE,gBAAoD,EAA1C,sBAAiB,EAAE,0BAAqB;IACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAyE,WACC,EADD,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAC7I,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADD,gBACC,EADD,KACC;oBADxE,gBAAW,EAAE,gBAAoD,EAA1C,sBAAiB,EAAE,0BAAqB;IAEjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAmB,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAAvB,eAAI,EAAE,iBAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAmB,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAA5B,eAAI,EAAE,iBAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAmB,WAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,gBAA4E,EAA5E,KAA4E;oBAA7F,eAAI,EAAE,iBAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA4C,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;8BAArD,eAAI,EAAE,gBAA8B,EAApB,qBAAO,EAAE,yBAAS;IACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA4C,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBAA1D,eAAI,EAAE,gBAA8B,EAApB,qBAAO,EAAE,yBAAS;IACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA4C,WAC8B,EAD9B,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChH,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EAD9B,gBAC8B,EAD9B,KAC8B;oBADxE,eAAI,EAAE,gBAA8B,EAApB,qBAAO,EAAE,yBAAS;IAEpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPattern2.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,QAAgB,EAAE,UAAkB,EAAE,CAAS,EAAE,MAAc,CAAC;AACnF,IAAI,IAAY,EAAE,OAAe,EAAE,SAAiB,EAAE,KAAa,CAAC;;IAEpE,GAAG,CAAC,CAAmB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAxB,gBAAc;QAAb,kCAAW;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAmB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA7B,kBAAc;QAAb,oCAAW;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAmB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAA7F,mBAAW;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAA6D,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAvE,qBAAwD;QAAtD,sCAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACrD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAA6D,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA5E,kBAAwD;QAAtD,mCAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACrD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAA6D,UACa,EADb,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACjI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADb,cACa,EADb,IACa;IADvE,kBAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAErD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IACD,GAAG,CAAC,CAAY,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAjB,gBAAO;QAAN,iCAAI;QACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAY,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAtB,kBAAO;QAAN,mCAAI;QACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAY,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAtF,kBAAI;IACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAAuC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAjD,qBAAkC;QAAhC,sCAA8B,EAApB,oBAAO,EAAE,wBAAS;QAC/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAAuC,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAtD,kBAAkC;QAAhC,mCAA8B,EAApB,oBAAO,EAAE,wBAAS;QAC/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAAuC,UACmC,EADnC,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAC3G,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADnC,cACmC,EADnC,IACmC;IADvE,kBAA8B,EAApB,oBAAO,EAAE,wBAAS;IAE/B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IAGD,GAAG,CAAC,CAAkC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAvC,gBAA6B;oCAA5B,eAAW,EAAE,iBAAa;QAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAkC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA5C,kBAA6B;sCAA5B,eAAW,EAAE,iBAAa;QAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAkC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;iBAA5G,eAAW,EAAE,iBAAa;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAAyE,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAnF,qBAAoE;yCAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAyE,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAAxF,kBAAoE;sCAAnE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;QACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAyE,UACC,EADD,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAC7I,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADD,cACC,EADD,IACC;iBADxE,eAAW,EAAE,cAAoD,EAA1C,qBAAiB,EAAE,yBAAqB;IAEjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAAmB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAxB,gBAAc;oCAAb,cAAI,EAAE,gBAAK;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAmB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA7B,kBAAc;sCAAb,cAAI,EAAE,gBAAK;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAmB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;iBAA7F,cAAI,EAAE,gBAAK;IACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAA4C,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAAtD,qBAAuC;yCAAtC,cAAI,EAAE,cAA8B,EAApB,oBAAO,EAAE,wBAAS;QACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA4C,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EAA3D,kBAAuC;sCAAtC,cAAI,EAAE,eAA8B,EAApB,qBAAO,EAAE,yBAAS;QACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA4C,WAC8B,EAD9B,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChH,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EAD9B,gBAC8B,EAD9B,KAC8B;oBADxE,eAAI,EAAE,gBAA8B,EAApB,qBAAO,EAAE,yBAAS;IAEpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.sourcemap.txt index b246504de7a99..b84a6ca5b9ede 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2.sourcemap.txt @@ -8,6 +8,17 @@ sources: sourceMapValidationDestructuringForOfObjectBindingPattern2.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPattern2.js sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts ------------------------------------------------------------------- +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; 1 > 2 >^^^^ @@ -77,32 +88,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 24> } 25> ] 26> ; -1 >Emitted(1, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(17, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(17, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(17, 23) + SourceIndex(0) -5 >Emitted(1, 15) Source(17, 24) + SourceIndex(0) -6 >Emitted(1, 17) Source(17, 26) + SourceIndex(0) -7 >Emitted(1, 21) Source(17, 30) + SourceIndex(0) -8 >Emitted(1, 23) Source(17, 32) + SourceIndex(0) -9 >Emitted(1, 30) Source(17, 39) + SourceIndex(0) -10>Emitted(1, 32) Source(17, 41) + SourceIndex(0) -11>Emitted(1, 37) Source(17, 46) + SourceIndex(0) -12>Emitted(1, 39) Source(17, 48) + SourceIndex(0) -13>Emitted(1, 47) Source(17, 56) + SourceIndex(0) -14>Emitted(1, 49) Source(17, 58) + SourceIndex(0) -15>Emitted(1, 51) Source(17, 60) + SourceIndex(0) -16>Emitted(1, 53) Source(17, 62) + SourceIndex(0) -17>Emitted(1, 57) Source(17, 66) + SourceIndex(0) -18>Emitted(1, 59) Source(17, 68) + SourceIndex(0) -19>Emitted(1, 68) Source(17, 77) + SourceIndex(0) -20>Emitted(1, 70) Source(17, 79) + SourceIndex(0) -21>Emitted(1, 75) Source(17, 84) + SourceIndex(0) -22>Emitted(1, 77) Source(17, 86) + SourceIndex(0) -23>Emitted(1, 87) Source(17, 96) + SourceIndex(0) -24>Emitted(1, 89) Source(17, 98) + SourceIndex(0) -25>Emitted(1, 90) Source(17, 99) + SourceIndex(0) -26>Emitted(1, 91) Source(17, 100) + SourceIndex(0) +1 >Emitted(12, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(17, 5) + SourceIndex(0) +3 >Emitted(12, 11) Source(17, 11) + SourceIndex(0) +4 >Emitted(12, 14) Source(17, 23) + SourceIndex(0) +5 >Emitted(12, 15) Source(17, 24) + SourceIndex(0) +6 >Emitted(12, 17) Source(17, 26) + SourceIndex(0) +7 >Emitted(12, 21) Source(17, 30) + SourceIndex(0) +8 >Emitted(12, 23) Source(17, 32) + SourceIndex(0) +9 >Emitted(12, 30) Source(17, 39) + SourceIndex(0) +10>Emitted(12, 32) Source(17, 41) + SourceIndex(0) +11>Emitted(12, 37) Source(17, 46) + SourceIndex(0) +12>Emitted(12, 39) Source(17, 48) + SourceIndex(0) +13>Emitted(12, 47) Source(17, 56) + SourceIndex(0) +14>Emitted(12, 49) Source(17, 58) + SourceIndex(0) +15>Emitted(12, 51) Source(17, 60) + SourceIndex(0) +16>Emitted(12, 53) Source(17, 62) + SourceIndex(0) +17>Emitted(12, 57) Source(17, 66) + SourceIndex(0) +18>Emitted(12, 59) Source(17, 68) + SourceIndex(0) +19>Emitted(12, 68) Source(17, 77) + SourceIndex(0) +20>Emitted(12, 70) Source(17, 79) + SourceIndex(0) +21>Emitted(12, 75) Source(17, 84) + SourceIndex(0) +22>Emitted(12, 77) Source(17, 86) + SourceIndex(0) +23>Emitted(12, 87) Source(17, 96) + SourceIndex(0) +24>Emitted(12, 89) Source(17, 98) + SourceIndex(0) +25>Emitted(12, 90) Source(17, 99) + SourceIndex(0) +26>Emitted(12, 91) Source(17, 100) + SourceIndex(0) --- >>>var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, 1 > @@ -150,28 +161,28 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 20> "none" 21> } 22> } -1 >Emitted(2, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(18, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(18, 33) + SourceIndex(0) -5 >Emitted(2, 20) Source(18, 34) + SourceIndex(0) -6 >Emitted(2, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(2, 26) Source(18, 40) + SourceIndex(0) -8 >Emitted(2, 28) Source(18, 42) + SourceIndex(0) -9 >Emitted(2, 35) Source(18, 49) + SourceIndex(0) -10>Emitted(2, 37) Source(18, 51) + SourceIndex(0) -11>Emitted(2, 43) Source(18, 57) + SourceIndex(0) -12>Emitted(2, 45) Source(18, 59) + SourceIndex(0) -13>Emitted(2, 47) Source(18, 61) + SourceIndex(0) -14>Emitted(2, 54) Source(18, 68) + SourceIndex(0) -15>Emitted(2, 56) Source(18, 70) + SourceIndex(0) -16>Emitted(2, 64) Source(18, 78) + SourceIndex(0) -17>Emitted(2, 66) Source(18, 80) + SourceIndex(0) -18>Emitted(2, 75) Source(18, 89) + SourceIndex(0) -19>Emitted(2, 77) Source(18, 91) + SourceIndex(0) -20>Emitted(2, 83) Source(18, 97) + SourceIndex(0) -21>Emitted(2, 85) Source(18, 99) + SourceIndex(0) -22>Emitted(2, 87) Source(18, 101) + SourceIndex(0) +1 >Emitted(13, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(18, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(18, 33) + SourceIndex(0) +5 >Emitted(13, 20) Source(18, 34) + SourceIndex(0) +6 >Emitted(13, 22) Source(18, 36) + SourceIndex(0) +7 >Emitted(13, 26) Source(18, 40) + SourceIndex(0) +8 >Emitted(13, 28) Source(18, 42) + SourceIndex(0) +9 >Emitted(13, 35) Source(18, 49) + SourceIndex(0) +10>Emitted(13, 37) Source(18, 51) + SourceIndex(0) +11>Emitted(13, 43) Source(18, 57) + SourceIndex(0) +12>Emitted(13, 45) Source(18, 59) + SourceIndex(0) +13>Emitted(13, 47) Source(18, 61) + SourceIndex(0) +14>Emitted(13, 54) Source(18, 68) + SourceIndex(0) +15>Emitted(13, 56) Source(18, 70) + SourceIndex(0) +16>Emitted(13, 64) Source(18, 78) + SourceIndex(0) +17>Emitted(13, 66) Source(18, 80) + SourceIndex(0) +18>Emitted(13, 75) Source(18, 89) + SourceIndex(0) +19>Emitted(13, 77) Source(18, 91) + SourceIndex(0) +20>Emitted(13, 83) Source(18, 97) + SourceIndex(0) +21>Emitted(13, 85) Source(18, 99) + SourceIndex(0) +22>Emitted(13, 87) Source(18, 101) + SourceIndex(0) --- >>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; 1 >^^^^ @@ -215,26 +226,26 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 18> } 19> ] 20> ; -1 >Emitted(3, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(3, 7) Source(19, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(19, 11) + SourceIndex(0) -4 >Emitted(3, 13) Source(19, 13) + SourceIndex(0) -5 >Emitted(3, 22) Source(19, 22) + SourceIndex(0) -6 >Emitted(3, 24) Source(19, 24) + SourceIndex(0) -7 >Emitted(3, 30) Source(19, 30) + SourceIndex(0) -8 >Emitted(3, 32) Source(19, 32) + SourceIndex(0) -9 >Emitted(3, 34) Source(19, 34) + SourceIndex(0) -10>Emitted(3, 41) Source(19, 41) + SourceIndex(0) -11>Emitted(3, 43) Source(19, 43) + SourceIndex(0) -12>Emitted(3, 53) Source(19, 53) + SourceIndex(0) -13>Emitted(3, 55) Source(19, 55) + SourceIndex(0) -14>Emitted(3, 64) Source(19, 64) + SourceIndex(0) -15>Emitted(3, 66) Source(19, 66) + SourceIndex(0) -16>Emitted(3, 74) Source(19, 74) + SourceIndex(0) -17>Emitted(3, 76) Source(19, 76) + SourceIndex(0) -18>Emitted(3, 78) Source(19, 78) + SourceIndex(0) -19>Emitted(3, 79) Source(19, 79) + SourceIndex(0) -20>Emitted(3, 80) Source(19, 80) + SourceIndex(0) +1 >Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 7) Source(19, 7) + SourceIndex(0) +3 >Emitted(14, 11) Source(19, 11) + SourceIndex(0) +4 >Emitted(14, 13) Source(19, 13) + SourceIndex(0) +5 >Emitted(14, 22) Source(19, 22) + SourceIndex(0) +6 >Emitted(14, 24) Source(19, 24) + SourceIndex(0) +7 >Emitted(14, 30) Source(19, 30) + SourceIndex(0) +8 >Emitted(14, 32) Source(19, 32) + SourceIndex(0) +9 >Emitted(14, 34) Source(19, 34) + SourceIndex(0) +10>Emitted(14, 41) Source(19, 41) + SourceIndex(0) +11>Emitted(14, 43) Source(19, 43) + SourceIndex(0) +12>Emitted(14, 53) Source(19, 53) + SourceIndex(0) +13>Emitted(14, 55) Source(19, 55) + SourceIndex(0) +14>Emitted(14, 64) Source(19, 64) + SourceIndex(0) +15>Emitted(14, 66) Source(19, 66) + SourceIndex(0) +16>Emitted(14, 74) Source(19, 74) + SourceIndex(0) +17>Emitted(14, 76) Source(19, 76) + SourceIndex(0) +18>Emitted(14, 78) Source(19, 78) + SourceIndex(0) +19>Emitted(14, 79) Source(19, 79) + SourceIndex(0) +20>Emitted(14, 80) Source(19, 80) + SourceIndex(0) --- >>>function getRobots() { 1 > @@ -242,7 +253,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 1 > > > -1 >Emitted(4, 1) Source(21, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(21, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -256,11 +267,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(22, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(22, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(22, 19) + SourceIndex(0) +1->Emitted(16, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(22, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(22, 12) + SourceIndex(0) +4 >Emitted(16, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(16, 19) Source(22, 19) + SourceIndex(0) --- >>>} 1 > @@ -269,8 +280,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 1 > > 2 >} -1 >Emitted(6, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(23, 2) + SourceIndex(0) --- >>>function getMultiRobots() { 1-> @@ -278,7 +289,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 1-> > > -1->Emitted(7, 1) Source(25, 1) + SourceIndex(0) +1->Emitted(18, 1) Source(25, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -292,11 +303,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 3 > 4 > multiRobots 5 > ; -1->Emitted(8, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(26, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(26, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(26, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(26, 24) + SourceIndex(0) +1->Emitted(19, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(19, 11) Source(26, 11) + SourceIndex(0) +3 >Emitted(19, 12) Source(26, 12) + SourceIndex(0) +4 >Emitted(19, 23) Source(26, 23) + SourceIndex(0) +5 >Emitted(19, 24) Source(26, 24) + SourceIndex(0) --- >>>} 1 > @@ -305,8 +316,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 1 > > 2 >} -1 >Emitted(9, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(27, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(27, 2) + SourceIndex(0) --- >>>var nameA, primaryA, secondaryA, i, skillA; 1-> @@ -335,18 +346,18 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 10> , 11> skillA: string 12> ; -1->Emitted(10, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(10, 10) Source(29, 18) + SourceIndex(0) -4 >Emitted(10, 12) Source(29, 20) + SourceIndex(0) -5 >Emitted(10, 20) Source(29, 36) + SourceIndex(0) -6 >Emitted(10, 22) Source(29, 38) + SourceIndex(0) -7 >Emitted(10, 32) Source(29, 56) + SourceIndex(0) -8 >Emitted(10, 34) Source(29, 58) + SourceIndex(0) -9 >Emitted(10, 35) Source(29, 67) + SourceIndex(0) -10>Emitted(10, 37) Source(29, 69) + SourceIndex(0) -11>Emitted(10, 43) Source(29, 83) + SourceIndex(0) -12>Emitted(10, 44) Source(29, 84) + SourceIndex(0) +1->Emitted(21, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(21, 10) Source(29, 18) + SourceIndex(0) +4 >Emitted(21, 12) Source(29, 20) + SourceIndex(0) +5 >Emitted(21, 20) Source(29, 36) + SourceIndex(0) +6 >Emitted(21, 22) Source(29, 38) + SourceIndex(0) +7 >Emitted(21, 32) Source(29, 56) + SourceIndex(0) +8 >Emitted(21, 34) Source(29, 58) + SourceIndex(0) +9 >Emitted(21, 35) Source(29, 67) + SourceIndex(0) +10>Emitted(21, 37) Source(29, 69) + SourceIndex(0) +11>Emitted(21, 43) Source(29, 83) + SourceIndex(0) +12>Emitted(21, 44) Source(29, 84) + SourceIndex(0) --- >>>var name, primary, secondary, skill; 1 > @@ -359,7 +370,6 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 8 > ^^ 9 > ^^^^^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let @@ -371,183 +381,207 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 8 > , 9 > skill: string 10> ; -1 >Emitted(11, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(30, 5) + SourceIndex(0) -3 >Emitted(11, 9) Source(30, 17) + SourceIndex(0) -4 >Emitted(11, 11) Source(30, 19) + SourceIndex(0) -5 >Emitted(11, 18) Source(30, 34) + SourceIndex(0) -6 >Emitted(11, 20) Source(30, 36) + SourceIndex(0) -7 >Emitted(11, 29) Source(30, 53) + SourceIndex(0) -8 >Emitted(11, 31) Source(30, 55) + SourceIndex(0) -9 >Emitted(11, 36) Source(30, 68) + SourceIndex(0) -10>Emitted(11, 37) Source(30, 69) + SourceIndex(0) ---- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -1-> +1 >Emitted(22, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(30, 5) + SourceIndex(0) +3 >Emitted(22, 9) Source(30, 17) + SourceIndex(0) +4 >Emitted(22, 11) Source(30, 19) + SourceIndex(0) +5 >Emitted(22, 18) Source(30, 34) + SourceIndex(0) +6 >Emitted(22, 20) Source(30, 36) + SourceIndex(0) +7 >Emitted(22, 29) Source(30, 53) + SourceIndex(0) +8 >Emitted(22, 31) Source(30, 55) + SourceIndex(0) +9 >Emitted(22, 36) Source(30, 68) + SourceIndex(0) +10>Emitted(22, 37) Source(30, 69) + SourceIndex(0) +--- +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +1 > > > -2 >for -3 > -4 > ({name: nameA } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(12, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(12, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(12, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(12, 6) Source(32, 24) + SourceIndex(0) -5 >Emitted(12, 16) Source(32, 30) + SourceIndex(0) -6 >Emitted(12, 18) Source(32, 24) + SourceIndex(0) -7 >Emitted(12, 35) Source(32, 30) + SourceIndex(0) -8 >Emitted(12, 37) Source(32, 24) + SourceIndex(0) -9 >Emitted(12, 57) Source(32, 30) + SourceIndex(0) -10>Emitted(12, 59) Source(32, 24) + SourceIndex(0) -11>Emitted(12, 63) Source(32, 30) + SourceIndex(0) ---- ->>> nameA = robots_1[_i].name; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name: nameA } +1 >Emitted(24, 5) Source(32, 1) + SourceIndex(0) +2 >Emitted(24, 8) Source(32, 4) + SourceIndex(0) +3 >Emitted(24, 9) Source(32, 5) + SourceIndex(0) +4 >Emitted(24, 10) Source(32, 24) + SourceIndex(0) +5 >Emitted(24, 14) Source(32, 24) + SourceIndex(0) +6 >Emitted(24, 25) Source(32, 24) + SourceIndex(0) +7 >Emitted(24, 27) Source(32, 24) + SourceIndex(0) +8 >Emitted(24, 37) Source(32, 24) + SourceIndex(0) +9 >Emitted(24, 46) Source(32, 24) + SourceIndex(0) +10>Emitted(24, 52) Source(32, 30) + SourceIndex(0) +11>Emitted(24, 53) Source(32, 30) + SourceIndex(0) +12>Emitted(24, 55) Source(32, 30) + SourceIndex(0) +13>Emitted(24, 57) Source(32, 6) + SourceIndex(0) +14>Emitted(24, 73) Source(32, 20) + SourceIndex(0) +--- +>>> nameA = robots_1.result.value.name; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > name: nameA -1 >Emitted(13, 5) Source(32, 7) + SourceIndex(0) -2 >Emitted(13, 30) Source(32, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA +1 >Emitted(25, 9) Source(32, 7) + SourceIndex(0) +2 >Emitted(25, 43) Source(32, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(14, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(14, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(14, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(14, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(14, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(14, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(14, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(14, 24) Source(33, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(26, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(26, 16) Source(33, 12) + SourceIndex(0) +3 >Emitted(26, 17) Source(33, 13) + SourceIndex(0) +4 >Emitted(26, 20) Source(33, 16) + SourceIndex(0) +5 >Emitted(26, 21) Source(33, 17) + SourceIndex(0) +6 >Emitted(26, 26) Source(33, 22) + SourceIndex(0) +7 >Emitted(26, 27) Source(33, 23) + SourceIndex(0) +8 >Emitted(26, 28) Source(33, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(15, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(27, 6) Source(34, 2) + SourceIndex(0) --- ->>>for (var _a = 0, _b = getRobots(); _a < _b.length; _a++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> - > -2 >for -3 > -4 > ({name: nameA } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(16, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(16, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(16, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(16, 6) Source(35, 24) + SourceIndex(0) -5 >Emitted(16, 16) Source(35, 35) + SourceIndex(0) -6 >Emitted(16, 18) Source(35, 24) + SourceIndex(0) -7 >Emitted(16, 23) Source(35, 24) + SourceIndex(0) -8 >Emitted(16, 32) Source(35, 33) + SourceIndex(0) -9 >Emitted(16, 34) Source(35, 35) + SourceIndex(0) -10>Emitted(16, 36) Source(35, 24) + SourceIndex(0) -11>Emitted(16, 50) Source(35, 35) + SourceIndex(0) -12>Emitted(16, 52) Source(35, 24) + SourceIndex(0) -13>Emitted(16, 56) Source(35, 35) + SourceIndex(0) ---- ->>> nameA = _b[_a].name; +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { 1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^-> +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > ({name: nameA } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name: nameA } +1 >Emitted(34, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(35, 4) + SourceIndex(0) +3 >Emitted(34, 9) Source(35, 5) + SourceIndex(0) +4 >Emitted(34, 10) Source(35, 24) + SourceIndex(0) +5 >Emitted(34, 14) Source(35, 24) + SourceIndex(0) +6 >Emitted(34, 27) Source(35, 24) + SourceIndex(0) +7 >Emitted(34, 29) Source(35, 24) + SourceIndex(0) +8 >Emitted(34, 39) Source(35, 24) + SourceIndex(0) +9 >Emitted(34, 48) Source(35, 24) + SourceIndex(0) +10>Emitted(34, 57) Source(35, 33) + SourceIndex(0) +11>Emitted(34, 59) Source(35, 35) + SourceIndex(0) +12>Emitted(34, 60) Source(35, 35) + SourceIndex(0) +13>Emitted(34, 62) Source(35, 35) + SourceIndex(0) +14>Emitted(34, 64) Source(35, 6) + SourceIndex(0) +15>Emitted(34, 82) Source(35, 20) + SourceIndex(0) +--- +>>> nameA = iterator_1.result.value.name; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > name: nameA -1 >Emitted(17, 5) Source(35, 7) + SourceIndex(0) -2 >Emitted(17, 24) Source(35, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1-> } of getRobots()) { +2 > name: nameA +1 >Emitted(35, 9) Source(35, 7) + SourceIndex(0) +2 >Emitted(35, 45) Source(35, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1->Emitted(18, 5) Source(36, 5) + SourceIndex(0) -2 >Emitted(18, 12) Source(36, 12) + SourceIndex(0) -3 >Emitted(18, 13) Source(36, 13) + SourceIndex(0) -4 >Emitted(18, 16) Source(36, 16) + SourceIndex(0) -5 >Emitted(18, 17) Source(36, 17) + SourceIndex(0) -6 >Emitted(18, 22) Source(36, 22) + SourceIndex(0) -7 >Emitted(18, 23) Source(36, 23) + SourceIndex(0) -8 >Emitted(18, 24) Source(36, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(36, 9) Source(36, 5) + SourceIndex(0) +2 >Emitted(36, 16) Source(36, 12) + SourceIndex(0) +3 >Emitted(36, 17) Source(36, 13) + SourceIndex(0) +4 >Emitted(36, 20) Source(36, 16) + SourceIndex(0) +5 >Emitted(36, 21) Source(36, 17) + SourceIndex(0) +6 >Emitted(36, 26) Source(36, 22) + SourceIndex(0) +7 >Emitted(36, 27) Source(36, 23) + SourceIndex(0) +8 >Emitted(36, 28) Source(36, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(19, 2) Source(37, 2) + SourceIndex(0) +1 >Emitted(37, 6) Source(37, 2) + SourceIndex(0) --- ->>>for (var _c = 0, _d = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _c < _d.length; _c++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _a = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _a.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -578,7 +612,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -610,46 +644,46 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(20, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(20, 4) Source(38, 4) + SourceIndex(0) -3 >Emitted(20, 5) Source(38, 5) + SourceIndex(0) -4 >Emitted(20, 6) Source(38, 24) + SourceIndex(0) -5 >Emitted(20, 16) Source(38, 100) + SourceIndex(0) -6 >Emitted(20, 18) Source(38, 24) + SourceIndex(0) -7 >Emitted(20, 24) Source(38, 25) + SourceIndex(0) -8 >Emitted(20, 26) Source(38, 27) + SourceIndex(0) -9 >Emitted(20, 30) Source(38, 31) + SourceIndex(0) -10>Emitted(20, 32) Source(38, 33) + SourceIndex(0) -11>Emitted(20, 39) Source(38, 40) + SourceIndex(0) -12>Emitted(20, 41) Source(38, 42) + SourceIndex(0) -13>Emitted(20, 46) Source(38, 47) + SourceIndex(0) -14>Emitted(20, 48) Source(38, 49) + SourceIndex(0) -15>Emitted(20, 56) Source(38, 57) + SourceIndex(0) -16>Emitted(20, 58) Source(38, 59) + SourceIndex(0) -17>Emitted(20, 60) Source(38, 61) + SourceIndex(0) -18>Emitted(20, 62) Source(38, 63) + SourceIndex(0) -19>Emitted(20, 66) Source(38, 67) + SourceIndex(0) -20>Emitted(20, 68) Source(38, 69) + SourceIndex(0) -21>Emitted(20, 77) Source(38, 78) + SourceIndex(0) -22>Emitted(20, 79) Source(38, 80) + SourceIndex(0) -23>Emitted(20, 84) Source(38, 85) + SourceIndex(0) -24>Emitted(20, 86) Source(38, 87) + SourceIndex(0) -25>Emitted(20, 96) Source(38, 97) + SourceIndex(0) -26>Emitted(20, 98) Source(38, 99) + SourceIndex(0) -27>Emitted(20, 99) Source(38, 100) + SourceIndex(0) -28>Emitted(20, 101) Source(38, 24) + SourceIndex(0) -29>Emitted(20, 115) Source(38, 100) + SourceIndex(0) -30>Emitted(20, 117) Source(38, 24) + SourceIndex(0) -31>Emitted(20, 121) Source(38, 100) + SourceIndex(0) ---- ->>> nameA = _d[_c].name; +1 >Emitted(43, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(43, 4) Source(38, 4) + SourceIndex(0) +3 >Emitted(43, 5) Source(38, 5) + SourceIndex(0) +4 >Emitted(43, 6) Source(38, 24) + SourceIndex(0) +5 >Emitted(43, 16) Source(38, 100) + SourceIndex(0) +6 >Emitted(43, 18) Source(38, 24) + SourceIndex(0) +7 >Emitted(43, 24) Source(38, 25) + SourceIndex(0) +8 >Emitted(43, 26) Source(38, 27) + SourceIndex(0) +9 >Emitted(43, 30) Source(38, 31) + SourceIndex(0) +10>Emitted(43, 32) Source(38, 33) + SourceIndex(0) +11>Emitted(43, 39) Source(38, 40) + SourceIndex(0) +12>Emitted(43, 41) Source(38, 42) + SourceIndex(0) +13>Emitted(43, 46) Source(38, 47) + SourceIndex(0) +14>Emitted(43, 48) Source(38, 49) + SourceIndex(0) +15>Emitted(43, 56) Source(38, 57) + SourceIndex(0) +16>Emitted(43, 58) Source(38, 59) + SourceIndex(0) +17>Emitted(43, 60) Source(38, 61) + SourceIndex(0) +18>Emitted(43, 62) Source(38, 63) + SourceIndex(0) +19>Emitted(43, 66) Source(38, 67) + SourceIndex(0) +20>Emitted(43, 68) Source(38, 69) + SourceIndex(0) +21>Emitted(43, 77) Source(38, 78) + SourceIndex(0) +22>Emitted(43, 79) Source(38, 80) + SourceIndex(0) +23>Emitted(43, 84) Source(38, 85) + SourceIndex(0) +24>Emitted(43, 86) Source(38, 87) + SourceIndex(0) +25>Emitted(43, 96) Source(38, 97) + SourceIndex(0) +26>Emitted(43, 98) Source(38, 99) + SourceIndex(0) +27>Emitted(43, 99) Source(38, 100) + SourceIndex(0) +28>Emitted(43, 101) Source(38, 24) + SourceIndex(0) +29>Emitted(43, 115) Source(38, 100) + SourceIndex(0) +30>Emitted(43, 117) Source(38, 24) + SourceIndex(0) +31>Emitted(43, 121) Source(38, 100) + SourceIndex(0) +--- +>>> nameA = _a[_i].name; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^ 3 > ^-> 1 > 2 > name: nameA -1 >Emitted(21, 5) Source(38, 7) + SourceIndex(0) -2 >Emitted(21, 24) Source(38, 18) + SourceIndex(0) +1 >Emitted(44, 5) Source(38, 7) + SourceIndex(0) +2 >Emitted(44, 24) Source(38, 18) + SourceIndex(0) --- >>> console.log(nameA); 1->^^^^ @@ -669,212 +703,237 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1->Emitted(22, 5) Source(39, 5) + SourceIndex(0) -2 >Emitted(22, 12) Source(39, 12) + SourceIndex(0) -3 >Emitted(22, 13) Source(39, 13) + SourceIndex(0) -4 >Emitted(22, 16) Source(39, 16) + SourceIndex(0) -5 >Emitted(22, 17) Source(39, 17) + SourceIndex(0) -6 >Emitted(22, 22) Source(39, 22) + SourceIndex(0) -7 >Emitted(22, 23) Source(39, 23) + SourceIndex(0) -8 >Emitted(22, 24) Source(39, 24) + SourceIndex(0) +1->Emitted(45, 5) Source(39, 5) + SourceIndex(0) +2 >Emitted(45, 12) Source(39, 12) + SourceIndex(0) +3 >Emitted(45, 13) Source(39, 13) + SourceIndex(0) +4 >Emitted(45, 16) Source(39, 16) + SourceIndex(0) +5 >Emitted(45, 17) Source(39, 17) + SourceIndex(0) +6 >Emitted(45, 22) Source(39, 22) + SourceIndex(0) +7 >Emitted(45, 23) Source(39, 23) + SourceIndex(0) +8 >Emitted(45, 24) Source(39, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(23, 2) Source(40, 2) + SourceIndex(0) +1 >Emitted(46, 2) Source(40, 2) + SourceIndex(0) --- ->>>for (var _e = 0, multiRobots_1 = multiRobots; _e < multiRobots_1.length; _e++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({ skills: { primary: primaryA, secondary: secondaryA } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(24, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(24, 4) Source(41, 4) + SourceIndex(0) -3 >Emitted(24, 5) Source(41, 5) + SourceIndex(0) -4 >Emitted(24, 6) Source(41, 66) + SourceIndex(0) -5 >Emitted(24, 16) Source(41, 77) + SourceIndex(0) -6 >Emitted(24, 18) Source(41, 66) + SourceIndex(0) -7 >Emitted(24, 45) Source(41, 77) + SourceIndex(0) -8 >Emitted(24, 47) Source(41, 66) + SourceIndex(0) -9 >Emitted(24, 72) Source(41, 77) + SourceIndex(0) -10>Emitted(24, 74) Source(41, 66) + SourceIndex(0) -11>Emitted(24, 78) Source(41, 77) + SourceIndex(0) ---- ->>> _f = multiRobots_1[_e].skills, primaryA = _f.primary, secondaryA = _f.secondary; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { skills: { primary: primaryA, secondary: secondaryA } } +1->Emitted(48, 5) Source(41, 1) + SourceIndex(0) +2 >Emitted(48, 8) Source(41, 4) + SourceIndex(0) +3 >Emitted(48, 9) Source(41, 5) + SourceIndex(0) +4 >Emitted(48, 10) Source(41, 66) + SourceIndex(0) +5 >Emitted(48, 14) Source(41, 66) + SourceIndex(0) +6 >Emitted(48, 30) Source(41, 66) + SourceIndex(0) +7 >Emitted(48, 32) Source(41, 66) + SourceIndex(0) +8 >Emitted(48, 42) Source(41, 66) + SourceIndex(0) +9 >Emitted(48, 51) Source(41, 66) + SourceIndex(0) +10>Emitted(48, 62) Source(41, 77) + SourceIndex(0) +11>Emitted(48, 63) Source(41, 77) + SourceIndex(0) +12>Emitted(48, 65) Source(41, 77) + SourceIndex(0) +13>Emitted(48, 67) Source(41, 6) + SourceIndex(0) +14>Emitted(48, 88) Source(41, 62) + SourceIndex(0) +--- +>>> _b = multiRobots_1.result.value.skills, primaryA = _b.primary, secondaryA = _b.secondary; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > skills: { primary: primaryA, secondary: secondaryA } -3 > -4 > primary: primaryA -5 > , -6 > secondary: secondaryA -1->Emitted(25, 5) Source(41, 8) + SourceIndex(0) -2 >Emitted(25, 34) Source(41, 60) + SourceIndex(0) -3 >Emitted(25, 36) Source(41, 18) + SourceIndex(0) -4 >Emitted(25, 57) Source(41, 35) + SourceIndex(0) -5 >Emitted(25, 59) Source(41, 37) + SourceIndex(0) -6 >Emitted(25, 84) Source(41, 58) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > skills: { primary: primaryA, secondary: secondaryA } +3 > +4 > primary: primaryA +5 > , +6 > secondary: secondaryA +1->Emitted(49, 9) Source(41, 8) + SourceIndex(0) +2 >Emitted(49, 47) Source(41, 60) + SourceIndex(0) +3 >Emitted(49, 49) Source(41, 18) + SourceIndex(0) +4 >Emitted(49, 70) Source(41, 35) + SourceIndex(0) +5 >Emitted(49, 72) Source(41, 37) + SourceIndex(0) +6 >Emitted(49, 97) Source(41, 58) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(26, 5) Source(42, 5) + SourceIndex(0) -2 >Emitted(26, 12) Source(42, 12) + SourceIndex(0) -3 >Emitted(26, 13) Source(42, 13) + SourceIndex(0) -4 >Emitted(26, 16) Source(42, 16) + SourceIndex(0) -5 >Emitted(26, 17) Source(42, 17) + SourceIndex(0) -6 >Emitted(26, 25) Source(42, 25) + SourceIndex(0) -7 >Emitted(26, 26) Source(42, 26) + SourceIndex(0) -8 >Emitted(26, 27) Source(42, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(50, 9) Source(42, 5) + SourceIndex(0) +2 >Emitted(50, 16) Source(42, 12) + SourceIndex(0) +3 >Emitted(50, 17) Source(42, 13) + SourceIndex(0) +4 >Emitted(50, 20) Source(42, 16) + SourceIndex(0) +5 >Emitted(50, 21) Source(42, 17) + SourceIndex(0) +6 >Emitted(50, 29) Source(42, 25) + SourceIndex(0) +7 >Emitted(50, 30) Source(42, 26) + SourceIndex(0) +8 >Emitted(50, 31) Source(42, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(27, 2) Source(43, 2) + SourceIndex(0) +1 >Emitted(51, 6) Source(43, 2) + SourceIndex(0) --- ->>>for (var _g = 0, _h = getMultiRobots(); _g < _h.length; _g++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ({ skills: { primary: primaryA, secondary: secondaryA } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(28, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(28, 4) Source(44, 4) + SourceIndex(0) -3 >Emitted(28, 5) Source(44, 5) + SourceIndex(0) -4 >Emitted(28, 6) Source(44, 66) + SourceIndex(0) -5 >Emitted(28, 16) Source(44, 82) + SourceIndex(0) -6 >Emitted(28, 18) Source(44, 66) + SourceIndex(0) -7 >Emitted(28, 23) Source(44, 66) + SourceIndex(0) -8 >Emitted(28, 37) Source(44, 80) + SourceIndex(0) -9 >Emitted(28, 39) Source(44, 82) + SourceIndex(0) -10>Emitted(28, 41) Source(44, 66) + SourceIndex(0) -11>Emitted(28, 55) Source(44, 82) + SourceIndex(0) -12>Emitted(28, 57) Source(44, 66) + SourceIndex(0) -13>Emitted(28, 61) Source(44, 82) + SourceIndex(0) ---- ->>> _j = _h[_g].skills, primaryA = _j.primary, secondaryA = _j.secondary; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { skills: { primary: primaryA, secondary: secondaryA } } +1 >Emitted(58, 5) Source(44, 1) + SourceIndex(0) +2 >Emitted(58, 8) Source(44, 4) + SourceIndex(0) +3 >Emitted(58, 9) Source(44, 5) + SourceIndex(0) +4 >Emitted(58, 10) Source(44, 66) + SourceIndex(0) +5 >Emitted(58, 14) Source(44, 66) + SourceIndex(0) +6 >Emitted(58, 27) Source(44, 66) + SourceIndex(0) +7 >Emitted(58, 29) Source(44, 66) + SourceIndex(0) +8 >Emitted(58, 39) Source(44, 66) + SourceIndex(0) +9 >Emitted(58, 48) Source(44, 66) + SourceIndex(0) +10>Emitted(58, 62) Source(44, 80) + SourceIndex(0) +11>Emitted(58, 64) Source(44, 82) + SourceIndex(0) +12>Emitted(58, 65) Source(44, 82) + SourceIndex(0) +13>Emitted(58, 67) Source(44, 82) + SourceIndex(0) +14>Emitted(58, 69) Source(44, 6) + SourceIndex(0) +15>Emitted(58, 87) Source(44, 62) + SourceIndex(0) +--- +>>> _c = iterator_2.result.value.skills, primaryA = _c.primary, secondaryA = _c.secondary; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > skills: { primary: primaryA, secondary: secondaryA } -3 > -4 > primary: primaryA -5 > , -6 > secondary: secondaryA -1->Emitted(29, 5) Source(44, 8) + SourceIndex(0) -2 >Emitted(29, 23) Source(44, 60) + SourceIndex(0) -3 >Emitted(29, 25) Source(44, 18) + SourceIndex(0) -4 >Emitted(29, 46) Source(44, 35) + SourceIndex(0) -5 >Emitted(29, 48) Source(44, 37) + SourceIndex(0) -6 >Emitted(29, 73) Source(44, 58) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > skills: { primary: primaryA, secondary: secondaryA } +3 > +4 > primary: primaryA +5 > , +6 > secondary: secondaryA +1->Emitted(59, 9) Source(44, 8) + SourceIndex(0) +2 >Emitted(59, 44) Source(44, 60) + SourceIndex(0) +3 >Emitted(59, 46) Source(44, 18) + SourceIndex(0) +4 >Emitted(59, 67) Source(44, 35) + SourceIndex(0) +5 >Emitted(59, 69) Source(44, 37) + SourceIndex(0) +6 >Emitted(59, 94) Source(44, 58) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(30, 5) Source(45, 5) + SourceIndex(0) -2 >Emitted(30, 12) Source(45, 12) + SourceIndex(0) -3 >Emitted(30, 13) Source(45, 13) + SourceIndex(0) -4 >Emitted(30, 16) Source(45, 16) + SourceIndex(0) -5 >Emitted(30, 17) Source(45, 17) + SourceIndex(0) -6 >Emitted(30, 25) Source(45, 25) + SourceIndex(0) -7 >Emitted(30, 26) Source(45, 26) + SourceIndex(0) -8 >Emitted(30, 27) Source(45, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(60, 9) Source(45, 5) + SourceIndex(0) +2 >Emitted(60, 16) Source(45, 12) + SourceIndex(0) +3 >Emitted(60, 17) Source(45, 13) + SourceIndex(0) +4 >Emitted(60, 20) Source(45, 16) + SourceIndex(0) +5 >Emitted(60, 21) Source(45, 17) + SourceIndex(0) +6 >Emitted(60, 29) Source(45, 25) + SourceIndex(0) +7 >Emitted(60, 30) Source(45, 26) + SourceIndex(0) +8 >Emitted(60, 31) Source(45, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(31, 2) Source(46, 2) + SourceIndex(0) +1 >Emitted(61, 6) Source(46, 2) + SourceIndex(0) --- ->>>for (var _k = 0, _l = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>for (var _d = 0, _e = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -899,7 +958,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -925,32 +984,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> "none" 23> } 24> } -1->Emitted(32, 1) Source(47, 1) + SourceIndex(0) -2 >Emitted(32, 4) Source(47, 4) + SourceIndex(0) -3 >Emitted(32, 5) Source(47, 5) + SourceIndex(0) -4 >Emitted(32, 6) Source(47, 66) + SourceIndex(0) -5 >Emitted(32, 16) Source(48, 79) + SourceIndex(0) -6 >Emitted(32, 18) Source(47, 66) + SourceIndex(0) -7 >Emitted(32, 24) Source(47, 67) + SourceIndex(0) -8 >Emitted(32, 26) Source(47, 69) + SourceIndex(0) -9 >Emitted(32, 30) Source(47, 73) + SourceIndex(0) -10>Emitted(32, 32) Source(47, 75) + SourceIndex(0) -11>Emitted(32, 39) Source(47, 82) + SourceIndex(0) -12>Emitted(32, 41) Source(47, 84) + SourceIndex(0) -13>Emitted(32, 47) Source(47, 90) + SourceIndex(0) -14>Emitted(32, 49) Source(47, 92) + SourceIndex(0) -15>Emitted(32, 51) Source(47, 94) + SourceIndex(0) -16>Emitted(32, 58) Source(47, 101) + SourceIndex(0) -17>Emitted(32, 60) Source(47, 103) + SourceIndex(0) -18>Emitted(32, 68) Source(47, 111) + SourceIndex(0) -19>Emitted(32, 70) Source(47, 113) + SourceIndex(0) -20>Emitted(32, 79) Source(47, 122) + SourceIndex(0) -21>Emitted(32, 81) Source(47, 124) + SourceIndex(0) -22>Emitted(32, 87) Source(47, 130) + SourceIndex(0) -23>Emitted(32, 89) Source(47, 132) + SourceIndex(0) -24>Emitted(32, 91) Source(47, 134) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _k < _l.length; _k++) { +1 >Emitted(67, 1) Source(47, 1) + SourceIndex(0) +2 >Emitted(67, 4) Source(47, 4) + SourceIndex(0) +3 >Emitted(67, 5) Source(47, 5) + SourceIndex(0) +4 >Emitted(67, 6) Source(47, 66) + SourceIndex(0) +5 >Emitted(67, 16) Source(48, 79) + SourceIndex(0) +6 >Emitted(67, 18) Source(47, 66) + SourceIndex(0) +7 >Emitted(67, 24) Source(47, 67) + SourceIndex(0) +8 >Emitted(67, 26) Source(47, 69) + SourceIndex(0) +9 >Emitted(67, 30) Source(47, 73) + SourceIndex(0) +10>Emitted(67, 32) Source(47, 75) + SourceIndex(0) +11>Emitted(67, 39) Source(47, 82) + SourceIndex(0) +12>Emitted(67, 41) Source(47, 84) + SourceIndex(0) +13>Emitted(67, 47) Source(47, 90) + SourceIndex(0) +14>Emitted(67, 49) Source(47, 92) + SourceIndex(0) +15>Emitted(67, 51) Source(47, 94) + SourceIndex(0) +16>Emitted(67, 58) Source(47, 101) + SourceIndex(0) +17>Emitted(67, 60) Source(47, 103) + SourceIndex(0) +18>Emitted(67, 68) Source(47, 111) + SourceIndex(0) +19>Emitted(67, 70) Source(47, 113) + SourceIndex(0) +20>Emitted(67, 79) Source(47, 122) + SourceIndex(0) +21>Emitted(67, 81) Source(47, 124) + SourceIndex(0) +22>Emitted(67, 87) Source(47, 130) + SourceIndex(0) +23>Emitted(67, 89) Source(47, 132) + SourceIndex(0) +24>Emitted(67, 91) Source(47, 134) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _d < _e.length; _d++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -1000,31 +1059,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(33, 5) Source(48, 5) + SourceIndex(0) -2 >Emitted(33, 7) Source(48, 7) + SourceIndex(0) -3 >Emitted(33, 11) Source(48, 11) + SourceIndex(0) -4 >Emitted(33, 13) Source(48, 13) + SourceIndex(0) -5 >Emitted(33, 22) Source(48, 22) + SourceIndex(0) -6 >Emitted(33, 24) Source(48, 24) + SourceIndex(0) -7 >Emitted(33, 30) Source(48, 30) + SourceIndex(0) -8 >Emitted(33, 32) Source(48, 32) + SourceIndex(0) -9 >Emitted(33, 34) Source(48, 34) + SourceIndex(0) -10>Emitted(33, 41) Source(48, 41) + SourceIndex(0) -11>Emitted(33, 43) Source(48, 43) + SourceIndex(0) -12>Emitted(33, 53) Source(48, 53) + SourceIndex(0) -13>Emitted(33, 55) Source(48, 55) + SourceIndex(0) -14>Emitted(33, 64) Source(48, 64) + SourceIndex(0) -15>Emitted(33, 66) Source(48, 66) + SourceIndex(0) -16>Emitted(33, 74) Source(48, 74) + SourceIndex(0) -17>Emitted(33, 76) Source(48, 76) + SourceIndex(0) -18>Emitted(33, 78) Source(48, 78) + SourceIndex(0) -19>Emitted(33, 79) Source(48, 79) + SourceIndex(0) -20>Emitted(33, 81) Source(47, 66) + SourceIndex(0) -21>Emitted(33, 95) Source(48, 79) + SourceIndex(0) -22>Emitted(33, 97) Source(47, 66) + SourceIndex(0) -23>Emitted(33, 101) Source(48, 79) + SourceIndex(0) ---- ->>> _m = _l[_k].skills, primaryA = _m.primary, secondaryA = _m.secondary; +1->Emitted(68, 5) Source(48, 5) + SourceIndex(0) +2 >Emitted(68, 7) Source(48, 7) + SourceIndex(0) +3 >Emitted(68, 11) Source(48, 11) + SourceIndex(0) +4 >Emitted(68, 13) Source(48, 13) + SourceIndex(0) +5 >Emitted(68, 22) Source(48, 22) + SourceIndex(0) +6 >Emitted(68, 24) Source(48, 24) + SourceIndex(0) +7 >Emitted(68, 30) Source(48, 30) + SourceIndex(0) +8 >Emitted(68, 32) Source(48, 32) + SourceIndex(0) +9 >Emitted(68, 34) Source(48, 34) + SourceIndex(0) +10>Emitted(68, 41) Source(48, 41) + SourceIndex(0) +11>Emitted(68, 43) Source(48, 43) + SourceIndex(0) +12>Emitted(68, 53) Source(48, 53) + SourceIndex(0) +13>Emitted(68, 55) Source(48, 55) + SourceIndex(0) +14>Emitted(68, 64) Source(48, 64) + SourceIndex(0) +15>Emitted(68, 66) Source(48, 66) + SourceIndex(0) +16>Emitted(68, 74) Source(48, 74) + SourceIndex(0) +17>Emitted(68, 76) Source(48, 76) + SourceIndex(0) +18>Emitted(68, 78) Source(48, 78) + SourceIndex(0) +19>Emitted(68, 79) Source(48, 79) + SourceIndex(0) +20>Emitted(68, 81) Source(47, 66) + SourceIndex(0) +21>Emitted(68, 95) Source(48, 79) + SourceIndex(0) +22>Emitted(68, 97) Source(47, 66) + SourceIndex(0) +23>Emitted(68, 101) Source(48, 79) + SourceIndex(0) +--- +>>> _f = _e[_d].skills, primaryA = _f.primary, secondaryA = _f.secondary; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -1037,12 +1096,12 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 4 > primary: primaryA 5 > , 6 > secondary: secondaryA -1 >Emitted(34, 5) Source(47, 8) + SourceIndex(0) -2 >Emitted(34, 23) Source(47, 60) + SourceIndex(0) -3 >Emitted(34, 25) Source(47, 18) + SourceIndex(0) -4 >Emitted(34, 46) Source(47, 35) + SourceIndex(0) -5 >Emitted(34, 48) Source(47, 37) + SourceIndex(0) -6 >Emitted(34, 73) Source(47, 58) + SourceIndex(0) +1 >Emitted(69, 5) Source(47, 8) + SourceIndex(0) +2 >Emitted(69, 23) Source(47, 60) + SourceIndex(0) +3 >Emitted(69, 25) Source(47, 18) + SourceIndex(0) +4 >Emitted(69, 46) Source(47, 35) + SourceIndex(0) +5 >Emitted(69, 48) Source(47, 37) + SourceIndex(0) +6 >Emitted(69, 73) Source(47, 58) + SourceIndex(0) --- >>> console.log(primaryA); 1 >^^^^ @@ -1063,187 +1122,211 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > primaryA 7 > ) 8 > ; -1 >Emitted(35, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(49, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(49, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(49, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(49, 17) + SourceIndex(0) -6 >Emitted(35, 25) Source(49, 25) + SourceIndex(0) -7 >Emitted(35, 26) Source(49, 26) + SourceIndex(0) -8 >Emitted(35, 27) Source(49, 27) + SourceIndex(0) +1 >Emitted(70, 5) Source(49, 5) + SourceIndex(0) +2 >Emitted(70, 12) Source(49, 12) + SourceIndex(0) +3 >Emitted(70, 13) Source(49, 13) + SourceIndex(0) +4 >Emitted(70, 16) Source(49, 16) + SourceIndex(0) +5 >Emitted(70, 17) Source(49, 17) + SourceIndex(0) +6 >Emitted(70, 25) Source(49, 25) + SourceIndex(0) +7 >Emitted(70, 26) Source(49, 26) + SourceIndex(0) +8 >Emitted(70, 27) Source(49, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(36, 2) Source(50, 2) + SourceIndex(0) +1 >Emitted(71, 2) Source(50, 2) + SourceIndex(0) --- ->>>for (var _o = 0, robots_2 = robots; _o < robots_2.length; _o++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > ({name } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(37, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(51, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(51, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(51, 17) + SourceIndex(0) -5 >Emitted(37, 16) Source(51, 23) + SourceIndex(0) -6 >Emitted(37, 18) Source(51, 17) + SourceIndex(0) -7 >Emitted(37, 35) Source(51, 23) + SourceIndex(0) -8 >Emitted(37, 37) Source(51, 17) + SourceIndex(0) -9 >Emitted(37, 57) Source(51, 23) + SourceIndex(0) -10>Emitted(37, 59) Source(51, 17) + SourceIndex(0) -11>Emitted(37, 63) Source(51, 23) + SourceIndex(0) ---- ->>> name = robots_2[_o].name; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name } +1->Emitted(73, 5) Source(51, 1) + SourceIndex(0) +2 >Emitted(73, 8) Source(51, 4) + SourceIndex(0) +3 >Emitted(73, 9) Source(51, 5) + SourceIndex(0) +4 >Emitted(73, 10) Source(51, 17) + SourceIndex(0) +5 >Emitted(73, 14) Source(51, 17) + SourceIndex(0) +6 >Emitted(73, 25) Source(51, 17) + SourceIndex(0) +7 >Emitted(73, 27) Source(51, 17) + SourceIndex(0) +8 >Emitted(73, 37) Source(51, 17) + SourceIndex(0) +9 >Emitted(73, 46) Source(51, 17) + SourceIndex(0) +10>Emitted(73, 52) Source(51, 23) + SourceIndex(0) +11>Emitted(73, 53) Source(51, 23) + SourceIndex(0) +12>Emitted(73, 55) Source(51, 23) + SourceIndex(0) +13>Emitted(73, 57) Source(51, 6) + SourceIndex(0) +14>Emitted(73, 73) Source(51, 13) + SourceIndex(0) +--- +>>> name = robots_2.result.value.name; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > name -1 >Emitted(38, 5) Source(51, 7) + SourceIndex(0) -2 >Emitted(38, 29) Source(51, 11) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name +1 >Emitted(74, 9) Source(51, 7) + SourceIndex(0) +2 >Emitted(74, 42) Source(51, 11) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(39, 5) Source(52, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(52, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(52, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(52, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(52, 17) + SourceIndex(0) -6 >Emitted(39, 22) Source(52, 22) + SourceIndex(0) -7 >Emitted(39, 23) Source(52, 23) + SourceIndex(0) -8 >Emitted(39, 24) Source(52, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(75, 9) Source(52, 5) + SourceIndex(0) +2 >Emitted(75, 16) Source(52, 12) + SourceIndex(0) +3 >Emitted(75, 17) Source(52, 13) + SourceIndex(0) +4 >Emitted(75, 20) Source(52, 16) + SourceIndex(0) +5 >Emitted(75, 21) Source(52, 17) + SourceIndex(0) +6 >Emitted(75, 26) Source(52, 22) + SourceIndex(0) +7 >Emitted(75, 27) Source(52, 23) + SourceIndex(0) +8 >Emitted(75, 28) Source(52, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(40, 2) Source(53, 2) + SourceIndex(0) +1 >Emitted(76, 6) Source(53, 2) + SourceIndex(0) --- ->>>for (var _p = 0, _q = getRobots(); _p < _q.length; _p++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> - > -2 >for -3 > -4 > ({name } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(41, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(54, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(54, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(54, 17) + SourceIndex(0) -5 >Emitted(41, 16) Source(54, 28) + SourceIndex(0) -6 >Emitted(41, 18) Source(54, 17) + SourceIndex(0) -7 >Emitted(41, 23) Source(54, 17) + SourceIndex(0) -8 >Emitted(41, 32) Source(54, 26) + SourceIndex(0) -9 >Emitted(41, 34) Source(54, 28) + SourceIndex(0) -10>Emitted(41, 36) Source(54, 17) + SourceIndex(0) -11>Emitted(41, 50) Source(54, 28) + SourceIndex(0) -12>Emitted(41, 52) Source(54, 17) + SourceIndex(0) -13>Emitted(41, 56) Source(54, 28) + SourceIndex(0) ---- ->>> name = _q[_p].name; +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values(getRobots()) }; __step(iterator_3);) { 1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^-> +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > ({name } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name } +1 >Emitted(83, 5) Source(54, 1) + SourceIndex(0) +2 >Emitted(83, 8) Source(54, 4) + SourceIndex(0) +3 >Emitted(83, 9) Source(54, 5) + SourceIndex(0) +4 >Emitted(83, 10) Source(54, 17) + SourceIndex(0) +5 >Emitted(83, 14) Source(54, 17) + SourceIndex(0) +6 >Emitted(83, 27) Source(54, 17) + SourceIndex(0) +7 >Emitted(83, 29) Source(54, 17) + SourceIndex(0) +8 >Emitted(83, 39) Source(54, 17) + SourceIndex(0) +9 >Emitted(83, 48) Source(54, 17) + SourceIndex(0) +10>Emitted(83, 57) Source(54, 26) + SourceIndex(0) +11>Emitted(83, 59) Source(54, 28) + SourceIndex(0) +12>Emitted(83, 60) Source(54, 28) + SourceIndex(0) +13>Emitted(83, 62) Source(54, 28) + SourceIndex(0) +14>Emitted(83, 64) Source(54, 6) + SourceIndex(0) +15>Emitted(83, 82) Source(54, 13) + SourceIndex(0) +--- +>>> name = iterator_3.result.value.name; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > name -1 >Emitted(42, 5) Source(54, 7) + SourceIndex(0) -2 >Emitted(42, 23) Source(54, 11) + SourceIndex(0) ---- ->>> console.log(nameA); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1-> } of getRobots()) { +2 > name +1 >Emitted(84, 9) Source(54, 7) + SourceIndex(0) +2 >Emitted(84, 44) Source(54, 11) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1->Emitted(43, 5) Source(55, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(55, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(55, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(55, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(55, 17) + SourceIndex(0) -6 >Emitted(43, 22) Source(55, 22) + SourceIndex(0) -7 >Emitted(43, 23) Source(55, 23) + SourceIndex(0) -8 >Emitted(43, 24) Source(55, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(85, 9) Source(55, 5) + SourceIndex(0) +2 >Emitted(85, 16) Source(55, 12) + SourceIndex(0) +3 >Emitted(85, 17) Source(55, 13) + SourceIndex(0) +4 >Emitted(85, 20) Source(55, 16) + SourceIndex(0) +5 >Emitted(85, 21) Source(55, 17) + SourceIndex(0) +6 >Emitted(85, 26) Source(55, 22) + SourceIndex(0) +7 >Emitted(85, 27) Source(55, 23) + SourceIndex(0) +8 >Emitted(85, 28) Source(55, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(44, 2) Source(56, 2) + SourceIndex(0) +1 >Emitted(86, 6) Source(56, 2) + SourceIndex(0) --- ->>>for (var _r = 0, _s = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _r < _s.length; _r++) { -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_6) throw e_6.error; } +>>>} +>>>for (var _g = 0, _h = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _g < _h.length; _g++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1274,7 +1357,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -1306,46 +1389,46 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(45, 1) Source(57, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(57, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(57, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(57, 17) + SourceIndex(0) -5 >Emitted(45, 16) Source(57, 93) + SourceIndex(0) -6 >Emitted(45, 18) Source(57, 17) + SourceIndex(0) -7 >Emitted(45, 24) Source(57, 18) + SourceIndex(0) -8 >Emitted(45, 26) Source(57, 20) + SourceIndex(0) -9 >Emitted(45, 30) Source(57, 24) + SourceIndex(0) -10>Emitted(45, 32) Source(57, 26) + SourceIndex(0) -11>Emitted(45, 39) Source(57, 33) + SourceIndex(0) -12>Emitted(45, 41) Source(57, 35) + SourceIndex(0) -13>Emitted(45, 46) Source(57, 40) + SourceIndex(0) -14>Emitted(45, 48) Source(57, 42) + SourceIndex(0) -15>Emitted(45, 56) Source(57, 50) + SourceIndex(0) -16>Emitted(45, 58) Source(57, 52) + SourceIndex(0) -17>Emitted(45, 60) Source(57, 54) + SourceIndex(0) -18>Emitted(45, 62) Source(57, 56) + SourceIndex(0) -19>Emitted(45, 66) Source(57, 60) + SourceIndex(0) -20>Emitted(45, 68) Source(57, 62) + SourceIndex(0) -21>Emitted(45, 77) Source(57, 71) + SourceIndex(0) -22>Emitted(45, 79) Source(57, 73) + SourceIndex(0) -23>Emitted(45, 84) Source(57, 78) + SourceIndex(0) -24>Emitted(45, 86) Source(57, 80) + SourceIndex(0) -25>Emitted(45, 96) Source(57, 90) + SourceIndex(0) -26>Emitted(45, 98) Source(57, 92) + SourceIndex(0) -27>Emitted(45, 99) Source(57, 93) + SourceIndex(0) -28>Emitted(45, 101) Source(57, 17) + SourceIndex(0) -29>Emitted(45, 115) Source(57, 93) + SourceIndex(0) -30>Emitted(45, 117) Source(57, 17) + SourceIndex(0) -31>Emitted(45, 121) Source(57, 93) + SourceIndex(0) ---- ->>> name = _s[_r].name; +1 >Emitted(92, 1) Source(57, 1) + SourceIndex(0) +2 >Emitted(92, 4) Source(57, 4) + SourceIndex(0) +3 >Emitted(92, 5) Source(57, 5) + SourceIndex(0) +4 >Emitted(92, 6) Source(57, 17) + SourceIndex(0) +5 >Emitted(92, 16) Source(57, 93) + SourceIndex(0) +6 >Emitted(92, 18) Source(57, 17) + SourceIndex(0) +7 >Emitted(92, 24) Source(57, 18) + SourceIndex(0) +8 >Emitted(92, 26) Source(57, 20) + SourceIndex(0) +9 >Emitted(92, 30) Source(57, 24) + SourceIndex(0) +10>Emitted(92, 32) Source(57, 26) + SourceIndex(0) +11>Emitted(92, 39) Source(57, 33) + SourceIndex(0) +12>Emitted(92, 41) Source(57, 35) + SourceIndex(0) +13>Emitted(92, 46) Source(57, 40) + SourceIndex(0) +14>Emitted(92, 48) Source(57, 42) + SourceIndex(0) +15>Emitted(92, 56) Source(57, 50) + SourceIndex(0) +16>Emitted(92, 58) Source(57, 52) + SourceIndex(0) +17>Emitted(92, 60) Source(57, 54) + SourceIndex(0) +18>Emitted(92, 62) Source(57, 56) + SourceIndex(0) +19>Emitted(92, 66) Source(57, 60) + SourceIndex(0) +20>Emitted(92, 68) Source(57, 62) + SourceIndex(0) +21>Emitted(92, 77) Source(57, 71) + SourceIndex(0) +22>Emitted(92, 79) Source(57, 73) + SourceIndex(0) +23>Emitted(92, 84) Source(57, 78) + SourceIndex(0) +24>Emitted(92, 86) Source(57, 80) + SourceIndex(0) +25>Emitted(92, 96) Source(57, 90) + SourceIndex(0) +26>Emitted(92, 98) Source(57, 92) + SourceIndex(0) +27>Emitted(92, 99) Source(57, 93) + SourceIndex(0) +28>Emitted(92, 101) Source(57, 17) + SourceIndex(0) +29>Emitted(92, 115) Source(57, 93) + SourceIndex(0) +30>Emitted(92, 117) Source(57, 17) + SourceIndex(0) +31>Emitted(92, 121) Source(57, 93) + SourceIndex(0) +--- +>>> name = _h[_g].name; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^ 3 > ^^-> 1 > 2 > name -1 >Emitted(46, 5) Source(57, 7) + SourceIndex(0) -2 >Emitted(46, 23) Source(57, 11) + SourceIndex(0) +1 >Emitted(93, 5) Source(57, 7) + SourceIndex(0) +2 >Emitted(93, 23) Source(57, 11) + SourceIndex(0) --- >>> console.log(nameA); 1->^^^^ @@ -1365,212 +1448,237 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1->Emitted(47, 5) Source(58, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(58, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(58, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(58, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(58, 17) + SourceIndex(0) -6 >Emitted(47, 22) Source(58, 22) + SourceIndex(0) -7 >Emitted(47, 23) Source(58, 23) + SourceIndex(0) -8 >Emitted(47, 24) Source(58, 24) + SourceIndex(0) +1->Emitted(94, 5) Source(58, 5) + SourceIndex(0) +2 >Emitted(94, 12) Source(58, 12) + SourceIndex(0) +3 >Emitted(94, 13) Source(58, 13) + SourceIndex(0) +4 >Emitted(94, 16) Source(58, 16) + SourceIndex(0) +5 >Emitted(94, 17) Source(58, 17) + SourceIndex(0) +6 >Emitted(94, 22) Source(58, 22) + SourceIndex(0) +7 >Emitted(94, 23) Source(58, 23) + SourceIndex(0) +8 >Emitted(94, 24) Source(58, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(48, 2) Source(59, 2) + SourceIndex(0) +1 >Emitted(95, 2) Source(59, 2) + SourceIndex(0) --- ->>>for (var _t = 0, multiRobots_2 = multiRobots; _t < multiRobots_2.length; _t++) { +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^-> +1-> + > +2 > for +3 > +4 > ({ skills: { primary, secondary } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { skills: { primary, secondary } } +1->Emitted(97, 5) Source(60, 1) + SourceIndex(0) +2 >Emitted(97, 8) Source(60, 4) + SourceIndex(0) +3 >Emitted(97, 9) Source(60, 5) + SourceIndex(0) +4 >Emitted(97, 10) Source(60, 44) + SourceIndex(0) +5 >Emitted(97, 14) Source(60, 44) + SourceIndex(0) +6 >Emitted(97, 30) Source(60, 44) + SourceIndex(0) +7 >Emitted(97, 32) Source(60, 44) + SourceIndex(0) +8 >Emitted(97, 42) Source(60, 44) + SourceIndex(0) +9 >Emitted(97, 51) Source(60, 44) + SourceIndex(0) +10>Emitted(97, 62) Source(60, 55) + SourceIndex(0) +11>Emitted(97, 63) Source(60, 55) + SourceIndex(0) +12>Emitted(97, 65) Source(60, 55) + SourceIndex(0) +13>Emitted(97, 67) Source(60, 6) + SourceIndex(0) +14>Emitted(97, 88) Source(60, 40) + SourceIndex(0) +--- +>>> _j = multiRobots_2.result.value.skills, primary = _j.primary, secondary = _j.secondary; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ skills: { primary, secondary } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(49, 1) Source(60, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(60, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(60, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(60, 44) + SourceIndex(0) -5 >Emitted(49, 16) Source(60, 55) + SourceIndex(0) -6 >Emitted(49, 18) Source(60, 44) + SourceIndex(0) -7 >Emitted(49, 45) Source(60, 55) + SourceIndex(0) -8 >Emitted(49, 47) Source(60, 44) + SourceIndex(0) -9 >Emitted(49, 72) Source(60, 55) + SourceIndex(0) -10>Emitted(49, 74) Source(60, 44) + SourceIndex(0) -11>Emitted(49, 78) Source(60, 55) + SourceIndex(0) ---- ->>> _u = multiRobots_2[_t].skills, primary = _u.primary, secondary = _u.secondary; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > skills: { primary, secondary } -3 > -4 > primary -5 > , -6 > secondary -1->Emitted(50, 5) Source(60, 8) + SourceIndex(0) -2 >Emitted(50, 34) Source(60, 38) + SourceIndex(0) -3 >Emitted(50, 36) Source(60, 18) + SourceIndex(0) -4 >Emitted(50, 56) Source(60, 25) + SourceIndex(0) -5 >Emitted(50, 58) Source(60, 27) + SourceIndex(0) -6 >Emitted(50, 82) Source(60, 36) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > skills: { primary, secondary } +3 > +4 > primary +5 > , +6 > secondary +1->Emitted(98, 9) Source(60, 8) + SourceIndex(0) +2 >Emitted(98, 47) Source(60, 38) + SourceIndex(0) +3 >Emitted(98, 49) Source(60, 18) + SourceIndex(0) +4 >Emitted(98, 69) Source(60, 25) + SourceIndex(0) +5 >Emitted(98, 71) Source(60, 27) + SourceIndex(0) +6 >Emitted(98, 95) Source(60, 36) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(51, 5) Source(61, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(61, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(61, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(61, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(61, 17) + SourceIndex(0) -6 >Emitted(51, 25) Source(61, 25) + SourceIndex(0) -7 >Emitted(51, 26) Source(61, 26) + SourceIndex(0) -8 >Emitted(51, 27) Source(61, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(99, 9) Source(61, 5) + SourceIndex(0) +2 >Emitted(99, 16) Source(61, 12) + SourceIndex(0) +3 >Emitted(99, 17) Source(61, 13) + SourceIndex(0) +4 >Emitted(99, 20) Source(61, 16) + SourceIndex(0) +5 >Emitted(99, 21) Source(61, 17) + SourceIndex(0) +6 >Emitted(99, 29) Source(61, 25) + SourceIndex(0) +7 >Emitted(99, 30) Source(61, 26) + SourceIndex(0) +8 >Emitted(99, 31) Source(61, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(52, 2) Source(62, 2) + SourceIndex(0) +1 >Emitted(100, 6) Source(62, 2) + SourceIndex(0) --- ->>>for (var _v = 0, _w = getMultiRobots(); _v < _w.length; _v++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_7) throw e_7.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getMultiRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^-> +1 > > -2 >for -3 > -4 > ({ skills: { primary, secondary } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(53, 1) Source(63, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(63, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(63, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(63, 44) + SourceIndex(0) -5 >Emitted(53, 16) Source(63, 60) + SourceIndex(0) -6 >Emitted(53, 18) Source(63, 44) + SourceIndex(0) -7 >Emitted(53, 23) Source(63, 44) + SourceIndex(0) -8 >Emitted(53, 37) Source(63, 58) + SourceIndex(0) -9 >Emitted(53, 39) Source(63, 60) + SourceIndex(0) -10>Emitted(53, 41) Source(63, 44) + SourceIndex(0) -11>Emitted(53, 55) Source(63, 60) + SourceIndex(0) -12>Emitted(53, 57) Source(63, 44) + SourceIndex(0) -13>Emitted(53, 61) Source(63, 60) + SourceIndex(0) ---- ->>> _x = _w[_v].skills, primary = _x.primary, secondary = _x.secondary; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ skills: { primary, secondary } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { skills: { primary, secondary } } +1 >Emitted(107, 5) Source(63, 1) + SourceIndex(0) +2 >Emitted(107, 8) Source(63, 4) + SourceIndex(0) +3 >Emitted(107, 9) Source(63, 5) + SourceIndex(0) +4 >Emitted(107, 10) Source(63, 44) + SourceIndex(0) +5 >Emitted(107, 14) Source(63, 44) + SourceIndex(0) +6 >Emitted(107, 27) Source(63, 44) + SourceIndex(0) +7 >Emitted(107, 29) Source(63, 44) + SourceIndex(0) +8 >Emitted(107, 39) Source(63, 44) + SourceIndex(0) +9 >Emitted(107, 48) Source(63, 44) + SourceIndex(0) +10>Emitted(107, 62) Source(63, 58) + SourceIndex(0) +11>Emitted(107, 64) Source(63, 60) + SourceIndex(0) +12>Emitted(107, 65) Source(63, 60) + SourceIndex(0) +13>Emitted(107, 67) Source(63, 60) + SourceIndex(0) +14>Emitted(107, 69) Source(63, 6) + SourceIndex(0) +15>Emitted(107, 87) Source(63, 40) + SourceIndex(0) +--- +>>> _k = iterator_4.result.value.skills, primary = _k.primary, secondary = _k.secondary; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > skills: { primary, secondary } -3 > -4 > primary -5 > , -6 > secondary -1->Emitted(54, 5) Source(63, 8) + SourceIndex(0) -2 >Emitted(54, 23) Source(63, 38) + SourceIndex(0) -3 >Emitted(54, 25) Source(63, 18) + SourceIndex(0) -4 >Emitted(54, 45) Source(63, 25) + SourceIndex(0) -5 >Emitted(54, 47) Source(63, 27) + SourceIndex(0) -6 >Emitted(54, 71) Source(63, 36) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +2 > skills: { primary, secondary } +3 > +4 > primary +5 > , +6 > secondary +1->Emitted(108, 9) Source(63, 8) + SourceIndex(0) +2 >Emitted(108, 44) Source(63, 38) + SourceIndex(0) +3 >Emitted(108, 46) Source(63, 18) + SourceIndex(0) +4 >Emitted(108, 66) Source(63, 25) + SourceIndex(0) +5 >Emitted(108, 68) Source(63, 27) + SourceIndex(0) +6 >Emitted(108, 92) Source(63, 36) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(55, 5) Source(64, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(64, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(64, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(64, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(64, 17) + SourceIndex(0) -6 >Emitted(55, 25) Source(64, 25) + SourceIndex(0) -7 >Emitted(55, 26) Source(64, 26) + SourceIndex(0) -8 >Emitted(55, 27) Source(64, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(109, 9) Source(64, 5) + SourceIndex(0) +2 >Emitted(109, 16) Source(64, 12) + SourceIndex(0) +3 >Emitted(109, 17) Source(64, 13) + SourceIndex(0) +4 >Emitted(109, 20) Source(64, 16) + SourceIndex(0) +5 >Emitted(109, 21) Source(64, 17) + SourceIndex(0) +6 >Emitted(109, 29) Source(64, 25) + SourceIndex(0) +7 >Emitted(109, 30) Source(64, 26) + SourceIndex(0) +8 >Emitted(109, 31) Source(64, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(56, 2) Source(65, 2) + SourceIndex(0) +1 >Emitted(110, 6) Source(65, 2) + SourceIndex(0) --- ->>>for (var _y = 0, _z = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_8) throw e_8.error; } +>>>} +>>>for (var _l = 0, _m = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1595,7 +1703,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -1621,32 +1729,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> "none" 23> } 24> } -1->Emitted(57, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(66, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(66, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(66, 44) + SourceIndex(0) -5 >Emitted(57, 16) Source(67, 79) + SourceIndex(0) -6 >Emitted(57, 18) Source(66, 44) + SourceIndex(0) -7 >Emitted(57, 24) Source(66, 45) + SourceIndex(0) -8 >Emitted(57, 26) Source(66, 47) + SourceIndex(0) -9 >Emitted(57, 30) Source(66, 51) + SourceIndex(0) -10>Emitted(57, 32) Source(66, 53) + SourceIndex(0) -11>Emitted(57, 39) Source(66, 60) + SourceIndex(0) -12>Emitted(57, 41) Source(66, 62) + SourceIndex(0) -13>Emitted(57, 47) Source(66, 68) + SourceIndex(0) -14>Emitted(57, 49) Source(66, 70) + SourceIndex(0) -15>Emitted(57, 51) Source(66, 72) + SourceIndex(0) -16>Emitted(57, 58) Source(66, 79) + SourceIndex(0) -17>Emitted(57, 60) Source(66, 81) + SourceIndex(0) -18>Emitted(57, 68) Source(66, 89) + SourceIndex(0) -19>Emitted(57, 70) Source(66, 91) + SourceIndex(0) -20>Emitted(57, 79) Source(66, 100) + SourceIndex(0) -21>Emitted(57, 81) Source(66, 102) + SourceIndex(0) -22>Emitted(57, 87) Source(66, 108) + SourceIndex(0) -23>Emitted(57, 89) Source(66, 110) + SourceIndex(0) -24>Emitted(57, 91) Source(66, 112) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _y < _z.length; _y++) { +1 >Emitted(116, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(116, 4) Source(66, 4) + SourceIndex(0) +3 >Emitted(116, 5) Source(66, 5) + SourceIndex(0) +4 >Emitted(116, 6) Source(66, 44) + SourceIndex(0) +5 >Emitted(116, 16) Source(67, 79) + SourceIndex(0) +6 >Emitted(116, 18) Source(66, 44) + SourceIndex(0) +7 >Emitted(116, 24) Source(66, 45) + SourceIndex(0) +8 >Emitted(116, 26) Source(66, 47) + SourceIndex(0) +9 >Emitted(116, 30) Source(66, 51) + SourceIndex(0) +10>Emitted(116, 32) Source(66, 53) + SourceIndex(0) +11>Emitted(116, 39) Source(66, 60) + SourceIndex(0) +12>Emitted(116, 41) Source(66, 62) + SourceIndex(0) +13>Emitted(116, 47) Source(66, 68) + SourceIndex(0) +14>Emitted(116, 49) Source(66, 70) + SourceIndex(0) +15>Emitted(116, 51) Source(66, 72) + SourceIndex(0) +16>Emitted(116, 58) Source(66, 79) + SourceIndex(0) +17>Emitted(116, 60) Source(66, 81) + SourceIndex(0) +18>Emitted(116, 68) Source(66, 89) + SourceIndex(0) +19>Emitted(116, 70) Source(66, 91) + SourceIndex(0) +20>Emitted(116, 79) Source(66, 100) + SourceIndex(0) +21>Emitted(116, 81) Source(66, 102) + SourceIndex(0) +22>Emitted(116, 87) Source(66, 108) + SourceIndex(0) +23>Emitted(116, 89) Source(66, 110) + SourceIndex(0) +24>Emitted(116, 91) Source(66, 112) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _l < _m.length; _l++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -1696,31 +1804,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(58, 5) Source(67, 5) + SourceIndex(0) -2 >Emitted(58, 7) Source(67, 7) + SourceIndex(0) -3 >Emitted(58, 11) Source(67, 11) + SourceIndex(0) -4 >Emitted(58, 13) Source(67, 13) + SourceIndex(0) -5 >Emitted(58, 22) Source(67, 22) + SourceIndex(0) -6 >Emitted(58, 24) Source(67, 24) + SourceIndex(0) -7 >Emitted(58, 30) Source(67, 30) + SourceIndex(0) -8 >Emitted(58, 32) Source(67, 32) + SourceIndex(0) -9 >Emitted(58, 34) Source(67, 34) + SourceIndex(0) -10>Emitted(58, 41) Source(67, 41) + SourceIndex(0) -11>Emitted(58, 43) Source(67, 43) + SourceIndex(0) -12>Emitted(58, 53) Source(67, 53) + SourceIndex(0) -13>Emitted(58, 55) Source(67, 55) + SourceIndex(0) -14>Emitted(58, 64) Source(67, 64) + SourceIndex(0) -15>Emitted(58, 66) Source(67, 66) + SourceIndex(0) -16>Emitted(58, 74) Source(67, 74) + SourceIndex(0) -17>Emitted(58, 76) Source(67, 76) + SourceIndex(0) -18>Emitted(58, 78) Source(67, 78) + SourceIndex(0) -19>Emitted(58, 79) Source(67, 79) + SourceIndex(0) -20>Emitted(58, 81) Source(66, 44) + SourceIndex(0) -21>Emitted(58, 95) Source(67, 79) + SourceIndex(0) -22>Emitted(58, 97) Source(66, 44) + SourceIndex(0) -23>Emitted(58, 101) Source(67, 79) + SourceIndex(0) ---- ->>> _0 = _z[_y].skills, primary = _0.primary, secondary = _0.secondary; +1->Emitted(117, 5) Source(67, 5) + SourceIndex(0) +2 >Emitted(117, 7) Source(67, 7) + SourceIndex(0) +3 >Emitted(117, 11) Source(67, 11) + SourceIndex(0) +4 >Emitted(117, 13) Source(67, 13) + SourceIndex(0) +5 >Emitted(117, 22) Source(67, 22) + SourceIndex(0) +6 >Emitted(117, 24) Source(67, 24) + SourceIndex(0) +7 >Emitted(117, 30) Source(67, 30) + SourceIndex(0) +8 >Emitted(117, 32) Source(67, 32) + SourceIndex(0) +9 >Emitted(117, 34) Source(67, 34) + SourceIndex(0) +10>Emitted(117, 41) Source(67, 41) + SourceIndex(0) +11>Emitted(117, 43) Source(67, 43) + SourceIndex(0) +12>Emitted(117, 53) Source(67, 53) + SourceIndex(0) +13>Emitted(117, 55) Source(67, 55) + SourceIndex(0) +14>Emitted(117, 64) Source(67, 64) + SourceIndex(0) +15>Emitted(117, 66) Source(67, 66) + SourceIndex(0) +16>Emitted(117, 74) Source(67, 74) + SourceIndex(0) +17>Emitted(117, 76) Source(67, 76) + SourceIndex(0) +18>Emitted(117, 78) Source(67, 78) + SourceIndex(0) +19>Emitted(117, 79) Source(67, 79) + SourceIndex(0) +20>Emitted(117, 81) Source(66, 44) + SourceIndex(0) +21>Emitted(117, 95) Source(67, 79) + SourceIndex(0) +22>Emitted(117, 97) Source(66, 44) + SourceIndex(0) +23>Emitted(117, 101) Source(67, 79) + SourceIndex(0) +--- +>>> _o = _m[_l].skills, primary = _o.primary, secondary = _o.secondary; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -1733,12 +1841,12 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 4 > primary 5 > , 6 > secondary -1 >Emitted(59, 5) Source(66, 8) + SourceIndex(0) -2 >Emitted(59, 23) Source(66, 38) + SourceIndex(0) -3 >Emitted(59, 25) Source(66, 18) + SourceIndex(0) -4 >Emitted(59, 45) Source(66, 25) + SourceIndex(0) -5 >Emitted(59, 47) Source(66, 27) + SourceIndex(0) -6 >Emitted(59, 71) Source(66, 36) + SourceIndex(0) +1 >Emitted(118, 5) Source(66, 8) + SourceIndex(0) +2 >Emitted(118, 23) Source(66, 38) + SourceIndex(0) +3 >Emitted(118, 25) Source(66, 18) + SourceIndex(0) +4 >Emitted(118, 45) Source(66, 25) + SourceIndex(0) +5 >Emitted(118, 47) Source(66, 27) + SourceIndex(0) +6 >Emitted(118, 71) Source(66, 36) + SourceIndex(0) --- >>> console.log(primaryA); 1 >^^^^ @@ -1759,200 +1867,225 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > primaryA 7 > ) 8 > ; -1 >Emitted(60, 5) Source(68, 5) + SourceIndex(0) -2 >Emitted(60, 12) Source(68, 12) + SourceIndex(0) -3 >Emitted(60, 13) Source(68, 13) + SourceIndex(0) -4 >Emitted(60, 16) Source(68, 16) + SourceIndex(0) -5 >Emitted(60, 17) Source(68, 17) + SourceIndex(0) -6 >Emitted(60, 25) Source(68, 25) + SourceIndex(0) -7 >Emitted(60, 26) Source(68, 26) + SourceIndex(0) -8 >Emitted(60, 27) Source(68, 27) + SourceIndex(0) +1 >Emitted(119, 5) Source(68, 5) + SourceIndex(0) +2 >Emitted(119, 12) Source(68, 12) + SourceIndex(0) +3 >Emitted(119, 13) Source(68, 13) + SourceIndex(0) +4 >Emitted(119, 16) Source(68, 16) + SourceIndex(0) +5 >Emitted(119, 17) Source(68, 17) + SourceIndex(0) +6 >Emitted(119, 25) Source(68, 25) + SourceIndex(0) +7 >Emitted(119, 26) Source(68, 26) + SourceIndex(0) +8 >Emitted(119, 27) Source(68, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(61, 2) Source(69, 2) + SourceIndex(0) +1 >Emitted(120, 2) Source(69, 2) + SourceIndex(0) --- ->>>for (var _1 = 0, robots_3 = robots; _1 < robots_3.length; _1++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > > > -2 >for -3 > -4 > ({name: nameA, skill: skillA } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(62, 1) Source(72, 1) + SourceIndex(0) -2 >Emitted(62, 4) Source(72, 4) + SourceIndex(0) -3 >Emitted(62, 5) Source(72, 5) + SourceIndex(0) -4 >Emitted(62, 6) Source(72, 39) + SourceIndex(0) -5 >Emitted(62, 16) Source(72, 45) + SourceIndex(0) -6 >Emitted(62, 18) Source(72, 39) + SourceIndex(0) -7 >Emitted(62, 35) Source(72, 45) + SourceIndex(0) -8 >Emitted(62, 37) Source(72, 39) + SourceIndex(0) -9 >Emitted(62, 57) Source(72, 45) + SourceIndex(0) -10>Emitted(62, 59) Source(72, 39) + SourceIndex(0) -11>Emitted(62, 63) Source(72, 45) + SourceIndex(0) ---- ->>> _2 = robots_3[_1], nameA = _2.name, skillA = _2.skill; -1 >^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA, skill: skillA } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name: nameA, skill: skillA } +1->Emitted(122, 5) Source(72, 1) + SourceIndex(0) +2 >Emitted(122, 8) Source(72, 4) + SourceIndex(0) +3 >Emitted(122, 9) Source(72, 5) + SourceIndex(0) +4 >Emitted(122, 10) Source(72, 39) + SourceIndex(0) +5 >Emitted(122, 14) Source(72, 39) + SourceIndex(0) +6 >Emitted(122, 25) Source(72, 39) + SourceIndex(0) +7 >Emitted(122, 27) Source(72, 39) + SourceIndex(0) +8 >Emitted(122, 37) Source(72, 39) + SourceIndex(0) +9 >Emitted(122, 46) Source(72, 39) + SourceIndex(0) +10>Emitted(122, 52) Source(72, 45) + SourceIndex(0) +11>Emitted(122, 53) Source(72, 45) + SourceIndex(0) +12>Emitted(122, 55) Source(72, 45) + SourceIndex(0) +13>Emitted(122, 57) Source(72, 6) + SourceIndex(0) +14>Emitted(122, 73) Source(72, 35) + SourceIndex(0) +--- +>>> _p = robots_3.result.value, nameA = _p.name, skillA = _p.skill; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ 1 > -2 > name: nameA -3 > , -4 > skill: skillA -1 >Emitted(63, 24) Source(72, 7) + SourceIndex(0) -2 >Emitted(63, 39) Source(72, 18) + SourceIndex(0) -3 >Emitted(63, 41) Source(72, 20) + SourceIndex(0) -4 >Emitted(63, 58) Source(72, 33) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA +3 > , +4 > skill: skillA +1 >Emitted(123, 37) Source(72, 7) + SourceIndex(0) +2 >Emitted(123, 52) Source(72, 18) + SourceIndex(0) +3 >Emitted(123, 54) Source(72, 20) + SourceIndex(0) +4 >Emitted(123, 71) Source(72, 33) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(64, 5) Source(73, 5) + SourceIndex(0) -2 >Emitted(64, 12) Source(73, 12) + SourceIndex(0) -3 >Emitted(64, 13) Source(73, 13) + SourceIndex(0) -4 >Emitted(64, 16) Source(73, 16) + SourceIndex(0) -5 >Emitted(64, 17) Source(73, 17) + SourceIndex(0) -6 >Emitted(64, 22) Source(73, 22) + SourceIndex(0) -7 >Emitted(64, 23) Source(73, 23) + SourceIndex(0) -8 >Emitted(64, 24) Source(73, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(124, 9) Source(73, 5) + SourceIndex(0) +2 >Emitted(124, 16) Source(73, 12) + SourceIndex(0) +3 >Emitted(124, 17) Source(73, 13) + SourceIndex(0) +4 >Emitted(124, 20) Source(73, 16) + SourceIndex(0) +5 >Emitted(124, 21) Source(73, 17) + SourceIndex(0) +6 >Emitted(124, 26) Source(73, 22) + SourceIndex(0) +7 >Emitted(124, 27) Source(73, 23) + SourceIndex(0) +8 >Emitted(124, 28) Source(73, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(65, 2) Source(74, 2) + SourceIndex(0) +1 >Emitted(125, 6) Source(74, 2) + SourceIndex(0) --- ->>>for (var _3 = 0, _4 = getRobots(); _3 < _4.length; _3++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -1-> +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > ({name: nameA, skill: skillA } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(66, 1) Source(75, 1) + SourceIndex(0) -2 >Emitted(66, 4) Source(75, 4) + SourceIndex(0) -3 >Emitted(66, 5) Source(75, 5) + SourceIndex(0) -4 >Emitted(66, 6) Source(75, 39) + SourceIndex(0) -5 >Emitted(66, 16) Source(75, 50) + SourceIndex(0) -6 >Emitted(66, 18) Source(75, 39) + SourceIndex(0) -7 >Emitted(66, 23) Source(75, 39) + SourceIndex(0) -8 >Emitted(66, 32) Source(75, 48) + SourceIndex(0) -9 >Emitted(66, 34) Source(75, 50) + SourceIndex(0) -10>Emitted(66, 36) Source(75, 39) + SourceIndex(0) -11>Emitted(66, 50) Source(75, 50) + SourceIndex(0) -12>Emitted(66, 52) Source(75, 39) + SourceIndex(0) -13>Emitted(66, 56) Source(75, 50) + SourceIndex(0) ---- ->>> _5 = _4[_3], nameA = _5.name, skillA = _5.skill; -1 >^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA, skill: skillA } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name: nameA, skill: skillA } +1 >Emitted(132, 5) Source(75, 1) + SourceIndex(0) +2 >Emitted(132, 8) Source(75, 4) + SourceIndex(0) +3 >Emitted(132, 9) Source(75, 5) + SourceIndex(0) +4 >Emitted(132, 10) Source(75, 39) + SourceIndex(0) +5 >Emitted(132, 14) Source(75, 39) + SourceIndex(0) +6 >Emitted(132, 27) Source(75, 39) + SourceIndex(0) +7 >Emitted(132, 29) Source(75, 39) + SourceIndex(0) +8 >Emitted(132, 39) Source(75, 39) + SourceIndex(0) +9 >Emitted(132, 48) Source(75, 39) + SourceIndex(0) +10>Emitted(132, 57) Source(75, 48) + SourceIndex(0) +11>Emitted(132, 59) Source(75, 50) + SourceIndex(0) +12>Emitted(132, 60) Source(75, 50) + SourceIndex(0) +13>Emitted(132, 62) Source(75, 50) + SourceIndex(0) +14>Emitted(132, 64) Source(75, 6) + SourceIndex(0) +15>Emitted(132, 82) Source(75, 35) + SourceIndex(0) +--- +>>> _q = iterator_5.result.value, nameA = _q.name, skillA = _q.skill; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ 1 > -2 > name: nameA -3 > , -4 > skill: skillA -1 >Emitted(67, 18) Source(75, 7) + SourceIndex(0) -2 >Emitted(67, 33) Source(75, 18) + SourceIndex(0) -3 >Emitted(67, 35) Source(75, 20) + SourceIndex(0) -4 >Emitted(67, 52) Source(75, 33) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA +3 > , +4 > skill: skillA +1 >Emitted(133, 39) Source(75, 7) + SourceIndex(0) +2 >Emitted(133, 54) Source(75, 18) + SourceIndex(0) +3 >Emitted(133, 56) Source(75, 20) + SourceIndex(0) +4 >Emitted(133, 73) Source(75, 33) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(68, 5) Source(76, 5) + SourceIndex(0) -2 >Emitted(68, 12) Source(76, 12) + SourceIndex(0) -3 >Emitted(68, 13) Source(76, 13) + SourceIndex(0) -4 >Emitted(68, 16) Source(76, 16) + SourceIndex(0) -5 >Emitted(68, 17) Source(76, 17) + SourceIndex(0) -6 >Emitted(68, 22) Source(76, 22) + SourceIndex(0) -7 >Emitted(68, 23) Source(76, 23) + SourceIndex(0) -8 >Emitted(68, 24) Source(76, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(134, 9) Source(76, 5) + SourceIndex(0) +2 >Emitted(134, 16) Source(76, 12) + SourceIndex(0) +3 >Emitted(134, 17) Source(76, 13) + SourceIndex(0) +4 >Emitted(134, 20) Source(76, 16) + SourceIndex(0) +5 >Emitted(134, 21) Source(76, 17) + SourceIndex(0) +6 >Emitted(134, 26) Source(76, 22) + SourceIndex(0) +7 >Emitted(134, 27) Source(76, 23) + SourceIndex(0) +8 >Emitted(134, 28) Source(76, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(69, 2) Source(77, 2) + SourceIndex(0) +1 >Emitted(135, 6) Source(77, 2) + SourceIndex(0) --- ->>>for (var _6 = 0, _7 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _6 < _7.length; _6++) { -1-> +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_10) throw e_10.error; } +>>>} +>>>for (var _r = 0, _s = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _r < _s.length; _r++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -1983,7 +2116,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -2015,39 +2148,39 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(70, 1) Source(78, 1) + SourceIndex(0) -2 >Emitted(70, 4) Source(78, 4) + SourceIndex(0) -3 >Emitted(70, 5) Source(78, 5) + SourceIndex(0) -4 >Emitted(70, 6) Source(78, 39) + SourceIndex(0) -5 >Emitted(70, 16) Source(78, 115) + SourceIndex(0) -6 >Emitted(70, 18) Source(78, 39) + SourceIndex(0) -7 >Emitted(70, 24) Source(78, 40) + SourceIndex(0) -8 >Emitted(70, 26) Source(78, 42) + SourceIndex(0) -9 >Emitted(70, 30) Source(78, 46) + SourceIndex(0) -10>Emitted(70, 32) Source(78, 48) + SourceIndex(0) -11>Emitted(70, 39) Source(78, 55) + SourceIndex(0) -12>Emitted(70, 41) Source(78, 57) + SourceIndex(0) -13>Emitted(70, 46) Source(78, 62) + SourceIndex(0) -14>Emitted(70, 48) Source(78, 64) + SourceIndex(0) -15>Emitted(70, 56) Source(78, 72) + SourceIndex(0) -16>Emitted(70, 58) Source(78, 74) + SourceIndex(0) -17>Emitted(70, 60) Source(78, 76) + SourceIndex(0) -18>Emitted(70, 62) Source(78, 78) + SourceIndex(0) -19>Emitted(70, 66) Source(78, 82) + SourceIndex(0) -20>Emitted(70, 68) Source(78, 84) + SourceIndex(0) -21>Emitted(70, 77) Source(78, 93) + SourceIndex(0) -22>Emitted(70, 79) Source(78, 95) + SourceIndex(0) -23>Emitted(70, 84) Source(78, 100) + SourceIndex(0) -24>Emitted(70, 86) Source(78, 102) + SourceIndex(0) -25>Emitted(70, 96) Source(78, 112) + SourceIndex(0) -26>Emitted(70, 98) Source(78, 114) + SourceIndex(0) -27>Emitted(70, 99) Source(78, 115) + SourceIndex(0) -28>Emitted(70, 101) Source(78, 39) + SourceIndex(0) -29>Emitted(70, 115) Source(78, 115) + SourceIndex(0) -30>Emitted(70, 117) Source(78, 39) + SourceIndex(0) -31>Emitted(70, 121) Source(78, 115) + SourceIndex(0) ---- ->>> _8 = _7[_6], nameA = _8.name, skillA = _8.skill; +1 >Emitted(141, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(141, 4) Source(78, 4) + SourceIndex(0) +3 >Emitted(141, 5) Source(78, 5) + SourceIndex(0) +4 >Emitted(141, 6) Source(78, 39) + SourceIndex(0) +5 >Emitted(141, 16) Source(78, 115) + SourceIndex(0) +6 >Emitted(141, 18) Source(78, 39) + SourceIndex(0) +7 >Emitted(141, 24) Source(78, 40) + SourceIndex(0) +8 >Emitted(141, 26) Source(78, 42) + SourceIndex(0) +9 >Emitted(141, 30) Source(78, 46) + SourceIndex(0) +10>Emitted(141, 32) Source(78, 48) + SourceIndex(0) +11>Emitted(141, 39) Source(78, 55) + SourceIndex(0) +12>Emitted(141, 41) Source(78, 57) + SourceIndex(0) +13>Emitted(141, 46) Source(78, 62) + SourceIndex(0) +14>Emitted(141, 48) Source(78, 64) + SourceIndex(0) +15>Emitted(141, 56) Source(78, 72) + SourceIndex(0) +16>Emitted(141, 58) Source(78, 74) + SourceIndex(0) +17>Emitted(141, 60) Source(78, 76) + SourceIndex(0) +18>Emitted(141, 62) Source(78, 78) + SourceIndex(0) +19>Emitted(141, 66) Source(78, 82) + SourceIndex(0) +20>Emitted(141, 68) Source(78, 84) + SourceIndex(0) +21>Emitted(141, 77) Source(78, 93) + SourceIndex(0) +22>Emitted(141, 79) Source(78, 95) + SourceIndex(0) +23>Emitted(141, 84) Source(78, 100) + SourceIndex(0) +24>Emitted(141, 86) Source(78, 102) + SourceIndex(0) +25>Emitted(141, 96) Source(78, 112) + SourceIndex(0) +26>Emitted(141, 98) Source(78, 114) + SourceIndex(0) +27>Emitted(141, 99) Source(78, 115) + SourceIndex(0) +28>Emitted(141, 101) Source(78, 39) + SourceIndex(0) +29>Emitted(141, 115) Source(78, 115) + SourceIndex(0) +30>Emitted(141, 117) Source(78, 39) + SourceIndex(0) +31>Emitted(141, 121) Source(78, 115) + SourceIndex(0) +--- +>>> _t = _s[_r], nameA = _t.name, skillA = _t.skill; 1 >^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^ 3 > ^^ @@ -2056,10 +2189,10 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 2 > name: nameA 3 > , 4 > skill: skillA -1 >Emitted(71, 18) Source(78, 7) + SourceIndex(0) -2 >Emitted(71, 33) Source(78, 18) + SourceIndex(0) -3 >Emitted(71, 35) Source(78, 20) + SourceIndex(0) -4 >Emitted(71, 52) Source(78, 33) + SourceIndex(0) +1 >Emitted(142, 18) Source(78, 7) + SourceIndex(0) +2 >Emitted(142, 33) Source(78, 18) + SourceIndex(0) +3 >Emitted(142, 35) Source(78, 20) + SourceIndex(0) +4 >Emitted(142, 52) Source(78, 33) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -2079,300 +2212,325 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(72, 5) Source(79, 5) + SourceIndex(0) -2 >Emitted(72, 12) Source(79, 12) + SourceIndex(0) -3 >Emitted(72, 13) Source(79, 13) + SourceIndex(0) -4 >Emitted(72, 16) Source(79, 16) + SourceIndex(0) -5 >Emitted(72, 17) Source(79, 17) + SourceIndex(0) -6 >Emitted(72, 22) Source(79, 22) + SourceIndex(0) -7 >Emitted(72, 23) Source(79, 23) + SourceIndex(0) -8 >Emitted(72, 24) Source(79, 24) + SourceIndex(0) +1 >Emitted(143, 5) Source(79, 5) + SourceIndex(0) +2 >Emitted(143, 12) Source(79, 12) + SourceIndex(0) +3 >Emitted(143, 13) Source(79, 13) + SourceIndex(0) +4 >Emitted(143, 16) Source(79, 16) + SourceIndex(0) +5 >Emitted(143, 17) Source(79, 17) + SourceIndex(0) +6 >Emitted(143, 22) Source(79, 22) + SourceIndex(0) +7 >Emitted(143, 23) Source(79, 23) + SourceIndex(0) +8 >Emitted(143, 24) Source(79, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(73, 2) Source(80, 2) + SourceIndex(0) +1 >Emitted(144, 2) Source(80, 2) + SourceIndex(0) --- ->>>for (var _9 = 0, multiRobots_3 = multiRobots; _9 < multiRobots_3.length; _9++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(74, 1) Source(81, 1) + SourceIndex(0) -2 >Emitted(74, 4) Source(81, 4) + SourceIndex(0) -3 >Emitted(74, 5) Source(81, 5) + SourceIndex(0) -4 >Emitted(74, 6) Source(81, 78) + SourceIndex(0) -5 >Emitted(74, 16) Source(81, 89) + SourceIndex(0) -6 >Emitted(74, 18) Source(81, 78) + SourceIndex(0) -7 >Emitted(74, 45) Source(81, 89) + SourceIndex(0) -8 >Emitted(74, 47) Source(81, 78) + SourceIndex(0) -9 >Emitted(74, 72) Source(81, 89) + SourceIndex(0) -10>Emitted(74, 74) Source(81, 78) + SourceIndex(0) -11>Emitted(74, 78) Source(81, 89) + SourceIndex(0) ---- ->>> _10 = multiRobots_3[_9], nameA = _10.name, _11 = _10.skills, primaryA = _11.primary, secondaryA = _11.secondary; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +1->Emitted(146, 5) Source(81, 1) + SourceIndex(0) +2 >Emitted(146, 8) Source(81, 4) + SourceIndex(0) +3 >Emitted(146, 9) Source(81, 5) + SourceIndex(0) +4 >Emitted(146, 10) Source(81, 78) + SourceIndex(0) +5 >Emitted(146, 14) Source(81, 78) + SourceIndex(0) +6 >Emitted(146, 30) Source(81, 78) + SourceIndex(0) +7 >Emitted(146, 32) Source(81, 78) + SourceIndex(0) +8 >Emitted(146, 42) Source(81, 78) + SourceIndex(0) +9 >Emitted(146, 51) Source(81, 78) + SourceIndex(0) +10>Emitted(146, 62) Source(81, 89) + SourceIndex(0) +11>Emitted(146, 63) Source(81, 89) + SourceIndex(0) +12>Emitted(146, 65) Source(81, 89) + SourceIndex(0) +13>Emitted(146, 67) Source(81, 6) + SourceIndex(0) +14>Emitted(146, 88) Source(81, 74) + SourceIndex(0) +--- +>>> _u = multiRobots_3.result.value, nameA = _u.name, _v = _u.skills, primaryA = _v.primary, secondaryA = _v.secondary; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name: nameA -3 > , -4 > skills: { primary: primaryA, secondary: secondaryA } -5 > -6 > primary: primaryA -7 > , -8 > secondary: secondaryA -1->Emitted(75, 30) Source(81, 7) + SourceIndex(0) -2 >Emitted(75, 46) Source(81, 18) + SourceIndex(0) -3 >Emitted(75, 48) Source(81, 20) + SourceIndex(0) -4 >Emitted(75, 64) Source(81, 72) + SourceIndex(0) -5 >Emitted(75, 66) Source(81, 30) + SourceIndex(0) -6 >Emitted(75, 88) Source(81, 47) + SourceIndex(0) -7 >Emitted(75, 90) Source(81, 49) + SourceIndex(0) -8 >Emitted(75, 116) Source(81, 70) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA +3 > , +4 > skills: { primary: primaryA, secondary: secondaryA } +5 > +6 > primary: primaryA +7 > , +8 > secondary: secondaryA +1->Emitted(147, 42) Source(81, 7) + SourceIndex(0) +2 >Emitted(147, 57) Source(81, 18) + SourceIndex(0) +3 >Emitted(147, 59) Source(81, 20) + SourceIndex(0) +4 >Emitted(147, 73) Source(81, 72) + SourceIndex(0) +5 >Emitted(147, 75) Source(81, 30) + SourceIndex(0) +6 >Emitted(147, 96) Source(81, 47) + SourceIndex(0) +7 >Emitted(147, 98) Source(81, 49) + SourceIndex(0) +8 >Emitted(147, 123) Source(81, 70) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(76, 5) Source(82, 5) + SourceIndex(0) -2 >Emitted(76, 12) Source(82, 12) + SourceIndex(0) -3 >Emitted(76, 13) Source(82, 13) + SourceIndex(0) -4 >Emitted(76, 16) Source(82, 16) + SourceIndex(0) -5 >Emitted(76, 17) Source(82, 17) + SourceIndex(0) -6 >Emitted(76, 22) Source(82, 22) + SourceIndex(0) -7 >Emitted(76, 23) Source(82, 23) + SourceIndex(0) -8 >Emitted(76, 24) Source(82, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(148, 9) Source(82, 5) + SourceIndex(0) +2 >Emitted(148, 16) Source(82, 12) + SourceIndex(0) +3 >Emitted(148, 17) Source(82, 13) + SourceIndex(0) +4 >Emitted(148, 20) Source(82, 16) + SourceIndex(0) +5 >Emitted(148, 21) Source(82, 17) + SourceIndex(0) +6 >Emitted(148, 26) Source(82, 22) + SourceIndex(0) +7 >Emitted(148, 27) Source(82, 23) + SourceIndex(0) +8 >Emitted(148, 28) Source(82, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(77, 2) Source(83, 2) + SourceIndex(0) +1 >Emitted(149, 6) Source(83, 2) + SourceIndex(0) --- ->>>for (var _12 = 0, _13 = getMultiRobots(); _12 < _13.length; _12++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_11) throw e_11.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getMultiRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ({name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(78, 1) Source(84, 1) + SourceIndex(0) -2 >Emitted(78, 4) Source(84, 4) + SourceIndex(0) -3 >Emitted(78, 5) Source(84, 5) + SourceIndex(0) -4 >Emitted(78, 6) Source(84, 78) + SourceIndex(0) -5 >Emitted(78, 17) Source(84, 94) + SourceIndex(0) -6 >Emitted(78, 19) Source(84, 78) + SourceIndex(0) -7 >Emitted(78, 25) Source(84, 78) + SourceIndex(0) -8 >Emitted(78, 39) Source(84, 92) + SourceIndex(0) -9 >Emitted(78, 41) Source(84, 94) + SourceIndex(0) -10>Emitted(78, 43) Source(84, 78) + SourceIndex(0) -11>Emitted(78, 59) Source(84, 94) + SourceIndex(0) -12>Emitted(78, 61) Source(84, 78) + SourceIndex(0) -13>Emitted(78, 66) Source(84, 94) + SourceIndex(0) ---- ->>> _14 = _13[_12], nameA = _14.name, _15 = _14.skills, primaryA = _15.primary, secondaryA = _15.secondary; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> {name: nameA, skills: { primary: primaryA, secondary: secondaryA } } +1 >Emitted(156, 5) Source(84, 1) + SourceIndex(0) +2 >Emitted(156, 8) Source(84, 4) + SourceIndex(0) +3 >Emitted(156, 9) Source(84, 5) + SourceIndex(0) +4 >Emitted(156, 10) Source(84, 78) + SourceIndex(0) +5 >Emitted(156, 14) Source(84, 78) + SourceIndex(0) +6 >Emitted(156, 27) Source(84, 78) + SourceIndex(0) +7 >Emitted(156, 29) Source(84, 78) + SourceIndex(0) +8 >Emitted(156, 39) Source(84, 78) + SourceIndex(0) +9 >Emitted(156, 48) Source(84, 78) + SourceIndex(0) +10>Emitted(156, 62) Source(84, 92) + SourceIndex(0) +11>Emitted(156, 64) Source(84, 94) + SourceIndex(0) +12>Emitted(156, 65) Source(84, 94) + SourceIndex(0) +13>Emitted(156, 67) Source(84, 94) + SourceIndex(0) +14>Emitted(156, 69) Source(84, 6) + SourceIndex(0) +15>Emitted(156, 87) Source(84, 74) + SourceIndex(0) +--- +>>> _w = iterator_6.result.value, nameA = _w.name, _x = _w.skills, primaryA = _x.primary, secondaryA = _x.secondary; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name: nameA -3 > , -4 > skills: { primary: primaryA, secondary: secondaryA } -5 > -6 > primary: primaryA -7 > , -8 > secondary: secondaryA -1->Emitted(79, 21) Source(84, 7) + SourceIndex(0) -2 >Emitted(79, 37) Source(84, 18) + SourceIndex(0) -3 >Emitted(79, 39) Source(84, 20) + SourceIndex(0) -4 >Emitted(79, 55) Source(84, 72) + SourceIndex(0) -5 >Emitted(79, 57) Source(84, 30) + SourceIndex(0) -6 >Emitted(79, 79) Source(84, 47) + SourceIndex(0) -7 >Emitted(79, 81) Source(84, 49) + SourceIndex(0) -8 >Emitted(79, 107) Source(84, 70) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA +3 > , +4 > skills: { primary: primaryA, secondary: secondaryA } +5 > +6 > primary: primaryA +7 > , +8 > secondary: secondaryA +1->Emitted(157, 39) Source(84, 7) + SourceIndex(0) +2 >Emitted(157, 54) Source(84, 18) + SourceIndex(0) +3 >Emitted(157, 56) Source(84, 20) + SourceIndex(0) +4 >Emitted(157, 70) Source(84, 72) + SourceIndex(0) +5 >Emitted(157, 72) Source(84, 30) + SourceIndex(0) +6 >Emitted(157, 93) Source(84, 47) + SourceIndex(0) +7 >Emitted(157, 95) Source(84, 49) + SourceIndex(0) +8 >Emitted(157, 120) Source(84, 70) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(80, 5) Source(85, 5) + SourceIndex(0) -2 >Emitted(80, 12) Source(85, 12) + SourceIndex(0) -3 >Emitted(80, 13) Source(85, 13) + SourceIndex(0) -4 >Emitted(80, 16) Source(85, 16) + SourceIndex(0) -5 >Emitted(80, 17) Source(85, 17) + SourceIndex(0) -6 >Emitted(80, 22) Source(85, 22) + SourceIndex(0) -7 >Emitted(80, 23) Source(85, 23) + SourceIndex(0) -8 >Emitted(80, 24) Source(85, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(158, 9) Source(85, 5) + SourceIndex(0) +2 >Emitted(158, 16) Source(85, 12) + SourceIndex(0) +3 >Emitted(158, 17) Source(85, 13) + SourceIndex(0) +4 >Emitted(158, 20) Source(85, 16) + SourceIndex(0) +5 >Emitted(158, 21) Source(85, 17) + SourceIndex(0) +6 >Emitted(158, 26) Source(85, 22) + SourceIndex(0) +7 >Emitted(158, 27) Source(85, 23) + SourceIndex(0) +8 >Emitted(158, 28) Source(85, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(81, 2) Source(86, 2) + SourceIndex(0) +1 >Emitted(159, 6) Source(86, 2) + SourceIndex(0) --- ->>>for (var _16 = 0, _17 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_12) throw e_12.error; } +>>>} +>>>for (var _y = 0, _z = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^^ -14> ^^ -15> ^^ -16> ^^^^^^^ -17> ^^ -18> ^^^^^^^^ -19> ^^ -20> ^^^^^^^^^ -21> ^^ -22> ^^^^^^ -23> ^^ -24> ^^ -25> ^^^^^^^^^^^^^^^-> -1-> +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^^ +14> ^^ +15> ^^ +16> ^^^^^^^ +17> ^^ +18> ^^^^^^^^ +19> ^^ +20> ^^^^^^^^^ +21> ^^ +22> ^^^^^^ +23> ^^ +24> ^^ +25> ^^^^^^^^^^^^^^-> +1 > > 2 >for 3 > 4 > ({name: nameA, skills: { primary: primaryA, secondary: secondaryA } } of 5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -6 > -7 > [ -8 > { -9 > name -10> : -11> "mower" -12> , -13> skills -14> : -15> { -16> primary -17> : -18> "mowing" -19> , -20> secondary -21> : -22> "none" -23> } -24> } -1->Emitted(82, 1) Source(87, 1) + SourceIndex(0) -2 >Emitted(82, 4) Source(87, 4) + SourceIndex(0) -3 >Emitted(82, 5) Source(87, 5) + SourceIndex(0) -4 >Emitted(82, 6) Source(87, 78) + SourceIndex(0) -5 >Emitted(82, 17) Source(88, 79) + SourceIndex(0) -6 >Emitted(82, 19) Source(87, 78) + SourceIndex(0) -7 >Emitted(82, 26) Source(87, 79) + SourceIndex(0) -8 >Emitted(82, 28) Source(87, 81) + SourceIndex(0) -9 >Emitted(82, 32) Source(87, 85) + SourceIndex(0) -10>Emitted(82, 34) Source(87, 87) + SourceIndex(0) -11>Emitted(82, 41) Source(87, 94) + SourceIndex(0) -12>Emitted(82, 43) Source(87, 96) + SourceIndex(0) -13>Emitted(82, 49) Source(87, 102) + SourceIndex(0) -14>Emitted(82, 51) Source(87, 104) + SourceIndex(0) -15>Emitted(82, 53) Source(87, 106) + SourceIndex(0) -16>Emitted(82, 60) Source(87, 113) + SourceIndex(0) -17>Emitted(82, 62) Source(87, 115) + SourceIndex(0) -18>Emitted(82, 70) Source(87, 123) + SourceIndex(0) -19>Emitted(82, 72) Source(87, 125) + SourceIndex(0) -20>Emitted(82, 81) Source(87, 134) + SourceIndex(0) -21>Emitted(82, 83) Source(87, 136) + SourceIndex(0) -22>Emitted(82, 89) Source(87, 142) + SourceIndex(0) -23>Emitted(82, 91) Source(87, 144) + SourceIndex(0) -24>Emitted(82, 93) Source(87, 146) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _16 < _17.length; _16++) { +6 > +7 > [ +8 > { +9 > name +10> : +11> "mower" +12> , +13> skills +14> : +15> { +16> primary +17> : +18> "mowing" +19> , +20> secondary +21> : +22> "none" +23> } +24> } +1 >Emitted(165, 1) Source(87, 1) + SourceIndex(0) +2 >Emitted(165, 4) Source(87, 4) + SourceIndex(0) +3 >Emitted(165, 5) Source(87, 5) + SourceIndex(0) +4 >Emitted(165, 6) Source(87, 78) + SourceIndex(0) +5 >Emitted(165, 16) Source(88, 79) + SourceIndex(0) +6 >Emitted(165, 18) Source(87, 78) + SourceIndex(0) +7 >Emitted(165, 24) Source(87, 79) + SourceIndex(0) +8 >Emitted(165, 26) Source(87, 81) + SourceIndex(0) +9 >Emitted(165, 30) Source(87, 85) + SourceIndex(0) +10>Emitted(165, 32) Source(87, 87) + SourceIndex(0) +11>Emitted(165, 39) Source(87, 94) + SourceIndex(0) +12>Emitted(165, 41) Source(87, 96) + SourceIndex(0) +13>Emitted(165, 47) Source(87, 102) + SourceIndex(0) +14>Emitted(165, 49) Source(87, 104) + SourceIndex(0) +15>Emitted(165, 51) Source(87, 106) + SourceIndex(0) +16>Emitted(165, 58) Source(87, 113) + SourceIndex(0) +17>Emitted(165, 60) Source(87, 115) + SourceIndex(0) +18>Emitted(165, 68) Source(87, 123) + SourceIndex(0) +19>Emitted(165, 70) Source(87, 125) + SourceIndex(0) +20>Emitted(165, 79) Source(87, 134) + SourceIndex(0) +21>Emitted(165, 81) Source(87, 136) + SourceIndex(0) +22>Emitted(165, 87) Source(87, 142) + SourceIndex(0) +23>Emitted(165, 89) Source(87, 144) + SourceIndex(0) +24>Emitted(165, 91) Source(87, 146) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _y < _z.length; _y++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -2393,10 +2551,9 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 18> ^^ 19> ^ 20> ^^ -21> ^^^^^^^^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^^^^-> +21> ^^^^^^^^^^^^^^ +22> ^^ +23> ^^^^ 1->, > 2 > { @@ -2420,58 +2577,58 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 20> 21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(83, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(83, 7) Source(88, 7) + SourceIndex(0) -3 >Emitted(83, 11) Source(88, 11) + SourceIndex(0) -4 >Emitted(83, 13) Source(88, 13) + SourceIndex(0) -5 >Emitted(83, 22) Source(88, 22) + SourceIndex(0) -6 >Emitted(83, 24) Source(88, 24) + SourceIndex(0) -7 >Emitted(83, 30) Source(88, 30) + SourceIndex(0) -8 >Emitted(83, 32) Source(88, 32) + SourceIndex(0) -9 >Emitted(83, 34) Source(88, 34) + SourceIndex(0) -10>Emitted(83, 41) Source(88, 41) + SourceIndex(0) -11>Emitted(83, 43) Source(88, 43) + SourceIndex(0) -12>Emitted(83, 53) Source(88, 53) + SourceIndex(0) -13>Emitted(83, 55) Source(88, 55) + SourceIndex(0) -14>Emitted(83, 64) Source(88, 64) + SourceIndex(0) -15>Emitted(83, 66) Source(88, 66) + SourceIndex(0) -16>Emitted(83, 74) Source(88, 74) + SourceIndex(0) -17>Emitted(83, 76) Source(88, 76) + SourceIndex(0) -18>Emitted(83, 78) Source(88, 78) + SourceIndex(0) -19>Emitted(83, 79) Source(88, 79) + SourceIndex(0) -20>Emitted(83, 81) Source(87, 78) + SourceIndex(0) -21>Emitted(83, 97) Source(88, 79) + SourceIndex(0) -22>Emitted(83, 99) Source(87, 78) + SourceIndex(0) -23>Emitted(83, 104) Source(88, 79) + SourceIndex(0) ---- ->>> _18 = _17[_16], nameA = _18.name, _19 = _18.skills, primaryA = _19.primary, secondaryA = _19.secondary; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA -3 > , -4 > skills: { primary: primaryA, secondary: secondaryA } -5 > -6 > primary: primaryA -7 > , -8 > secondary: secondaryA -1->Emitted(84, 21) Source(87, 7) + SourceIndex(0) -2 >Emitted(84, 37) Source(87, 18) + SourceIndex(0) -3 >Emitted(84, 39) Source(87, 20) + SourceIndex(0) -4 >Emitted(84, 55) Source(87, 72) + SourceIndex(0) -5 >Emitted(84, 57) Source(87, 30) + SourceIndex(0) -6 >Emitted(84, 79) Source(87, 47) + SourceIndex(0) -7 >Emitted(84, 81) Source(87, 49) + SourceIndex(0) -8 >Emitted(84, 107) Source(87, 70) + SourceIndex(0) +22> +23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] +1->Emitted(166, 5) Source(88, 5) + SourceIndex(0) +2 >Emitted(166, 7) Source(88, 7) + SourceIndex(0) +3 >Emitted(166, 11) Source(88, 11) + SourceIndex(0) +4 >Emitted(166, 13) Source(88, 13) + SourceIndex(0) +5 >Emitted(166, 22) Source(88, 22) + SourceIndex(0) +6 >Emitted(166, 24) Source(88, 24) + SourceIndex(0) +7 >Emitted(166, 30) Source(88, 30) + SourceIndex(0) +8 >Emitted(166, 32) Source(88, 32) + SourceIndex(0) +9 >Emitted(166, 34) Source(88, 34) + SourceIndex(0) +10>Emitted(166, 41) Source(88, 41) + SourceIndex(0) +11>Emitted(166, 43) Source(88, 43) + SourceIndex(0) +12>Emitted(166, 53) Source(88, 53) + SourceIndex(0) +13>Emitted(166, 55) Source(88, 55) + SourceIndex(0) +14>Emitted(166, 64) Source(88, 64) + SourceIndex(0) +15>Emitted(166, 66) Source(88, 66) + SourceIndex(0) +16>Emitted(166, 74) Source(88, 74) + SourceIndex(0) +17>Emitted(166, 76) Source(88, 76) + SourceIndex(0) +18>Emitted(166, 78) Source(88, 78) + SourceIndex(0) +19>Emitted(166, 79) Source(88, 79) + SourceIndex(0) +20>Emitted(166, 81) Source(87, 78) + SourceIndex(0) +21>Emitted(166, 95) Source(88, 79) + SourceIndex(0) +22>Emitted(166, 97) Source(87, 78) + SourceIndex(0) +23>Emitted(166, 101) Source(88, 79) + SourceIndex(0) +--- +>>> _0 = _z[_y], nameA = _0.name, _1 = _0.skills, primaryA = _1.primary, secondaryA = _1.secondary; +1 >^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > name: nameA +3 > , +4 > skills: { primary: primaryA, secondary: secondaryA } +5 > +6 > primary: primaryA +7 > , +8 > secondary: secondaryA +1 >Emitted(167, 18) Source(87, 7) + SourceIndex(0) +2 >Emitted(167, 33) Source(87, 18) + SourceIndex(0) +3 >Emitted(167, 35) Source(87, 20) + SourceIndex(0) +4 >Emitted(167, 49) Source(87, 72) + SourceIndex(0) +5 >Emitted(167, 51) Source(87, 30) + SourceIndex(0) +6 >Emitted(167, 72) Source(87, 47) + SourceIndex(0) +7 >Emitted(167, 74) Source(87, 49) + SourceIndex(0) +8 >Emitted(167, 99) Source(87, 70) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -2492,305 +2649,330 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(85, 5) Source(89, 5) + SourceIndex(0) -2 >Emitted(85, 12) Source(89, 12) + SourceIndex(0) -3 >Emitted(85, 13) Source(89, 13) + SourceIndex(0) -4 >Emitted(85, 16) Source(89, 16) + SourceIndex(0) -5 >Emitted(85, 17) Source(89, 17) + SourceIndex(0) -6 >Emitted(85, 22) Source(89, 22) + SourceIndex(0) -7 >Emitted(85, 23) Source(89, 23) + SourceIndex(0) -8 >Emitted(85, 24) Source(89, 24) + SourceIndex(0) +1 >Emitted(168, 5) Source(89, 5) + SourceIndex(0) +2 >Emitted(168, 12) Source(89, 12) + SourceIndex(0) +3 >Emitted(168, 13) Source(89, 13) + SourceIndex(0) +4 >Emitted(168, 16) Source(89, 16) + SourceIndex(0) +5 >Emitted(168, 17) Source(89, 17) + SourceIndex(0) +6 >Emitted(168, 22) Source(89, 22) + SourceIndex(0) +7 >Emitted(168, 23) Source(89, 23) + SourceIndex(0) +8 >Emitted(168, 24) Source(89, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(86, 2) Source(90, 2) + SourceIndex(0) +1 >Emitted(169, 2) Source(90, 2) + SourceIndex(0) --- ->>>for (var _20 = 0, robots_4 = robots; _20 < robots_4.length; _20++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ 1-> > -2 >for -3 > -4 > ({name, skill } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(87, 1) Source(91, 1) + SourceIndex(0) -2 >Emitted(87, 4) Source(91, 4) + SourceIndex(0) -3 >Emitted(87, 5) Source(91, 5) + SourceIndex(0) -4 >Emitted(87, 6) Source(91, 24) + SourceIndex(0) -5 >Emitted(87, 17) Source(91, 30) + SourceIndex(0) -6 >Emitted(87, 19) Source(91, 24) + SourceIndex(0) -7 >Emitted(87, 36) Source(91, 30) + SourceIndex(0) -8 >Emitted(87, 38) Source(91, 24) + SourceIndex(0) -9 >Emitted(87, 59) Source(91, 30) + SourceIndex(0) -10>Emitted(87, 61) Source(91, 24) + SourceIndex(0) -11>Emitted(87, 66) Source(91, 30) + SourceIndex(0) ---- ->>> _21 = robots_4[_20], name = _21.name, skill = _21.skill; -1 >^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name, skill } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name, skill } +1->Emitted(171, 5) Source(91, 1) + SourceIndex(0) +2 >Emitted(171, 8) Source(91, 4) + SourceIndex(0) +3 >Emitted(171, 9) Source(91, 5) + SourceIndex(0) +4 >Emitted(171, 10) Source(91, 24) + SourceIndex(0) +5 >Emitted(171, 14) Source(91, 24) + SourceIndex(0) +6 >Emitted(171, 25) Source(91, 24) + SourceIndex(0) +7 >Emitted(171, 27) Source(91, 24) + SourceIndex(0) +8 >Emitted(171, 37) Source(91, 24) + SourceIndex(0) +9 >Emitted(171, 46) Source(91, 24) + SourceIndex(0) +10>Emitted(171, 52) Source(91, 30) + SourceIndex(0) +11>Emitted(171, 53) Source(91, 30) + SourceIndex(0) +12>Emitted(171, 55) Source(91, 30) + SourceIndex(0) +13>Emitted(171, 57) Source(91, 6) + SourceIndex(0) +14>Emitted(171, 73) Source(91, 20) + SourceIndex(0) +--- +>>> _2 = robots_4.result.value, name = _2.name, skill = _2.skill; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^ 1 > -2 > name -3 > , -4 > skill -1 >Emitted(88, 26) Source(91, 7) + SourceIndex(0) -2 >Emitted(88, 41) Source(91, 11) + SourceIndex(0) -3 >Emitted(88, 43) Source(91, 13) + SourceIndex(0) -4 >Emitted(88, 60) Source(91, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name +3 > , +4 > skill +1 >Emitted(172, 37) Source(91, 7) + SourceIndex(0) +2 >Emitted(172, 51) Source(91, 11) + SourceIndex(0) +3 >Emitted(172, 53) Source(91, 13) + SourceIndex(0) +4 >Emitted(172, 69) Source(91, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(89, 5) Source(92, 5) + SourceIndex(0) -2 >Emitted(89, 12) Source(92, 12) + SourceIndex(0) -3 >Emitted(89, 13) Source(92, 13) + SourceIndex(0) -4 >Emitted(89, 16) Source(92, 16) + SourceIndex(0) -5 >Emitted(89, 17) Source(92, 17) + SourceIndex(0) -6 >Emitted(89, 22) Source(92, 22) + SourceIndex(0) -7 >Emitted(89, 23) Source(92, 23) + SourceIndex(0) -8 >Emitted(89, 24) Source(92, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(173, 9) Source(92, 5) + SourceIndex(0) +2 >Emitted(173, 16) Source(92, 12) + SourceIndex(0) +3 >Emitted(173, 17) Source(92, 13) + SourceIndex(0) +4 >Emitted(173, 20) Source(92, 16) + SourceIndex(0) +5 >Emitted(173, 21) Source(92, 17) + SourceIndex(0) +6 >Emitted(173, 26) Source(92, 22) + SourceIndex(0) +7 >Emitted(173, 27) Source(92, 23) + SourceIndex(0) +8 >Emitted(173, 28) Source(92, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(90, 2) Source(93, 2) + SourceIndex(0) +1 >Emitted(174, 6) Source(93, 2) + SourceIndex(0) --- ->>>for (var _22 = 0, _23 = getRobots(); _22 < _23.length; _22++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -1-> +>>>} +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getRobots()) }; __step(iterator_7);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > > -2 >for -3 > -4 > ({name, skill } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(91, 1) Source(94, 1) + SourceIndex(0) -2 >Emitted(91, 4) Source(94, 4) + SourceIndex(0) -3 >Emitted(91, 5) Source(94, 5) + SourceIndex(0) -4 >Emitted(91, 6) Source(94, 24) + SourceIndex(0) -5 >Emitted(91, 17) Source(94, 35) + SourceIndex(0) -6 >Emitted(91, 19) Source(94, 24) + SourceIndex(0) -7 >Emitted(91, 25) Source(94, 24) + SourceIndex(0) -8 >Emitted(91, 34) Source(94, 33) + SourceIndex(0) -9 >Emitted(91, 36) Source(94, 35) + SourceIndex(0) -10>Emitted(91, 38) Source(94, 24) + SourceIndex(0) -11>Emitted(91, 54) Source(94, 35) + SourceIndex(0) -12>Emitted(91, 56) Source(94, 24) + SourceIndex(0) -13>Emitted(91, 61) Source(94, 35) + SourceIndex(0) ---- ->>> _24 = _23[_22], name = _24.name, skill = _24.skill; -1 >^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name, skill } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name, skill } +1 >Emitted(181, 5) Source(94, 1) + SourceIndex(0) +2 >Emitted(181, 8) Source(94, 4) + SourceIndex(0) +3 >Emitted(181, 9) Source(94, 5) + SourceIndex(0) +4 >Emitted(181, 10) Source(94, 24) + SourceIndex(0) +5 >Emitted(181, 14) Source(94, 24) + SourceIndex(0) +6 >Emitted(181, 27) Source(94, 24) + SourceIndex(0) +7 >Emitted(181, 29) Source(94, 24) + SourceIndex(0) +8 >Emitted(181, 39) Source(94, 24) + SourceIndex(0) +9 >Emitted(181, 48) Source(94, 24) + SourceIndex(0) +10>Emitted(181, 57) Source(94, 33) + SourceIndex(0) +11>Emitted(181, 59) Source(94, 35) + SourceIndex(0) +12>Emitted(181, 60) Source(94, 35) + SourceIndex(0) +13>Emitted(181, 62) Source(94, 35) + SourceIndex(0) +14>Emitted(181, 64) Source(94, 6) + SourceIndex(0) +15>Emitted(181, 82) Source(94, 20) + SourceIndex(0) +--- +>>> _3 = iterator_7.result.value, name = _3.name, skill = _3.skill; +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^ 1 > -2 > name -3 > , -4 > skill -1 >Emitted(92, 21) Source(94, 7) + SourceIndex(0) -2 >Emitted(92, 36) Source(94, 11) + SourceIndex(0) -3 >Emitted(92, 38) Source(94, 13) + SourceIndex(0) -4 >Emitted(92, 55) Source(94, 18) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name +3 > , +4 > skill +1 >Emitted(182, 39) Source(94, 7) + SourceIndex(0) +2 >Emitted(182, 53) Source(94, 11) + SourceIndex(0) +3 >Emitted(182, 55) Source(94, 13) + SourceIndex(0) +4 >Emitted(182, 71) Source(94, 18) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(93, 5) Source(95, 5) + SourceIndex(0) -2 >Emitted(93, 12) Source(95, 12) + SourceIndex(0) -3 >Emitted(93, 13) Source(95, 13) + SourceIndex(0) -4 >Emitted(93, 16) Source(95, 16) + SourceIndex(0) -5 >Emitted(93, 17) Source(95, 17) + SourceIndex(0) -6 >Emitted(93, 22) Source(95, 22) + SourceIndex(0) -7 >Emitted(93, 23) Source(95, 23) + SourceIndex(0) -8 >Emitted(93, 24) Source(95, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(183, 9) Source(95, 5) + SourceIndex(0) +2 >Emitted(183, 16) Source(95, 12) + SourceIndex(0) +3 >Emitted(183, 17) Source(95, 13) + SourceIndex(0) +4 >Emitted(183, 20) Source(95, 16) + SourceIndex(0) +5 >Emitted(183, 21) Source(95, 17) + SourceIndex(0) +6 >Emitted(183, 26) Source(95, 22) + SourceIndex(0) +7 >Emitted(183, 27) Source(95, 23) + SourceIndex(0) +8 >Emitted(183, 28) Source(95, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(94, 2) Source(96, 2) + SourceIndex(0) +1 >Emitted(184, 6) Source(96, 2) + SourceIndex(0) --- ->>>for (var _25 = 0, _26 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _25 < _26.length; _25++) { -1-> +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_14) throw e_14.error; } +>>>} +>>>for (var _4 = 0, _5 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _4 < _5.length; _4++) { +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^ -15> ^^^^^^^^ -16> ^^ -17> ^^ -18> ^^ -19> ^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^ -25> ^^^^^^^^^^ -26> ^^ -27> ^ -28> ^^ -29> ^^^^^^^^^^^^^^^^ -30> ^^ -31> ^^^^^ -1-> +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^ +14> ^^ +15> ^^^^^^^^ +16> ^^ +17> ^^ +18> ^^ +19> ^^^^ +20> ^^ +21> ^^^^^^^^^ +22> ^^ +23> ^^^^^ +24> ^^ +25> ^^^^^^^^^^ +26> ^^ +27> ^ +28> ^^ +29> ^^^^^^^^^^^^^^ +30> ^^ +31> ^^^^ +1 > > 2 >for 3 > 4 > ({name, skill } of 5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -6 > -7 > [ -8 > { -9 > name -10> : -11> "mower" -12> , -13> skill -14> : -15> "mowing" -16> } -17> , -18> { -19> name -20> : -21> "trimmer" -22> , -23> skill -24> : -25> "trimming" -26> } -27> ] -28> -29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -30> -31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(95, 1) Source(97, 1) + SourceIndex(0) -2 >Emitted(95, 4) Source(97, 4) + SourceIndex(0) -3 >Emitted(95, 5) Source(97, 5) + SourceIndex(0) -4 >Emitted(95, 6) Source(97, 24) + SourceIndex(0) -5 >Emitted(95, 17) Source(97, 100) + SourceIndex(0) -6 >Emitted(95, 19) Source(97, 24) + SourceIndex(0) -7 >Emitted(95, 26) Source(97, 25) + SourceIndex(0) -8 >Emitted(95, 28) Source(97, 27) + SourceIndex(0) -9 >Emitted(95, 32) Source(97, 31) + SourceIndex(0) -10>Emitted(95, 34) Source(97, 33) + SourceIndex(0) -11>Emitted(95, 41) Source(97, 40) + SourceIndex(0) -12>Emitted(95, 43) Source(97, 42) + SourceIndex(0) -13>Emitted(95, 48) Source(97, 47) + SourceIndex(0) -14>Emitted(95, 50) Source(97, 49) + SourceIndex(0) -15>Emitted(95, 58) Source(97, 57) + SourceIndex(0) -16>Emitted(95, 60) Source(97, 59) + SourceIndex(0) -17>Emitted(95, 62) Source(97, 61) + SourceIndex(0) -18>Emitted(95, 64) Source(97, 63) + SourceIndex(0) -19>Emitted(95, 68) Source(97, 67) + SourceIndex(0) -20>Emitted(95, 70) Source(97, 69) + SourceIndex(0) -21>Emitted(95, 79) Source(97, 78) + SourceIndex(0) -22>Emitted(95, 81) Source(97, 80) + SourceIndex(0) -23>Emitted(95, 86) Source(97, 85) + SourceIndex(0) -24>Emitted(95, 88) Source(97, 87) + SourceIndex(0) -25>Emitted(95, 98) Source(97, 97) + SourceIndex(0) -26>Emitted(95, 100) Source(97, 99) + SourceIndex(0) -27>Emitted(95, 101) Source(97, 100) + SourceIndex(0) -28>Emitted(95, 103) Source(97, 24) + SourceIndex(0) -29>Emitted(95, 119) Source(97, 100) + SourceIndex(0) -30>Emitted(95, 121) Source(97, 24) + SourceIndex(0) -31>Emitted(95, 126) Source(97, 100) + SourceIndex(0) ---- ->>> _27 = _26[_25], name = _27.name, skill = _27.skill; -1 >^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ +6 > +7 > [ +8 > { +9 > name +10> : +11> "mower" +12> , +13> skill +14> : +15> "mowing" +16> } +17> , +18> { +19> name +20> : +21> "trimmer" +22> , +23> skill +24> : +25> "trimming" +26> } +27> ] +28> +29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +30> +31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +1 >Emitted(190, 1) Source(97, 1) + SourceIndex(0) +2 >Emitted(190, 4) Source(97, 4) + SourceIndex(0) +3 >Emitted(190, 5) Source(97, 5) + SourceIndex(0) +4 >Emitted(190, 6) Source(97, 24) + SourceIndex(0) +5 >Emitted(190, 16) Source(97, 100) + SourceIndex(0) +6 >Emitted(190, 18) Source(97, 24) + SourceIndex(0) +7 >Emitted(190, 24) Source(97, 25) + SourceIndex(0) +8 >Emitted(190, 26) Source(97, 27) + SourceIndex(0) +9 >Emitted(190, 30) Source(97, 31) + SourceIndex(0) +10>Emitted(190, 32) Source(97, 33) + SourceIndex(0) +11>Emitted(190, 39) Source(97, 40) + SourceIndex(0) +12>Emitted(190, 41) Source(97, 42) + SourceIndex(0) +13>Emitted(190, 46) Source(97, 47) + SourceIndex(0) +14>Emitted(190, 48) Source(97, 49) + SourceIndex(0) +15>Emitted(190, 56) Source(97, 57) + SourceIndex(0) +16>Emitted(190, 58) Source(97, 59) + SourceIndex(0) +17>Emitted(190, 60) Source(97, 61) + SourceIndex(0) +18>Emitted(190, 62) Source(97, 63) + SourceIndex(0) +19>Emitted(190, 66) Source(97, 67) + SourceIndex(0) +20>Emitted(190, 68) Source(97, 69) + SourceIndex(0) +21>Emitted(190, 77) Source(97, 78) + SourceIndex(0) +22>Emitted(190, 79) Source(97, 80) + SourceIndex(0) +23>Emitted(190, 84) Source(97, 85) + SourceIndex(0) +24>Emitted(190, 86) Source(97, 87) + SourceIndex(0) +25>Emitted(190, 96) Source(97, 97) + SourceIndex(0) +26>Emitted(190, 98) Source(97, 99) + SourceIndex(0) +27>Emitted(190, 99) Source(97, 100) + SourceIndex(0) +28>Emitted(190, 101) Source(97, 24) + SourceIndex(0) +29>Emitted(190, 115) Source(97, 100) + SourceIndex(0) +30>Emitted(190, 117) Source(97, 24) + SourceIndex(0) +31>Emitted(190, 121) Source(97, 100) + SourceIndex(0) +--- +>>> _6 = _5[_4], name = _6.name, skill = _6.skill; +1 >^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^ 1 > -2 > name -3 > , -4 > skill -1 >Emitted(96, 21) Source(97, 7) + SourceIndex(0) -2 >Emitted(96, 36) Source(97, 11) + SourceIndex(0) -3 >Emitted(96, 38) Source(97, 13) + SourceIndex(0) -4 >Emitted(96, 55) Source(97, 18) + SourceIndex(0) +2 > name +3 > , +4 > skill +1 >Emitted(191, 18) Source(97, 7) + SourceIndex(0) +2 >Emitted(191, 32) Source(97, 11) + SourceIndex(0) +3 >Emitted(191, 34) Source(97, 13) + SourceIndex(0) +4 >Emitted(191, 50) Source(97, 18) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -2810,224 +2992,249 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(97, 5) Source(98, 5) + SourceIndex(0) -2 >Emitted(97, 12) Source(98, 12) + SourceIndex(0) -3 >Emitted(97, 13) Source(98, 13) + SourceIndex(0) -4 >Emitted(97, 16) Source(98, 16) + SourceIndex(0) -5 >Emitted(97, 17) Source(98, 17) + SourceIndex(0) -6 >Emitted(97, 22) Source(98, 22) + SourceIndex(0) -7 >Emitted(97, 23) Source(98, 23) + SourceIndex(0) -8 >Emitted(97, 24) Source(98, 24) + SourceIndex(0) +1 >Emitted(192, 5) Source(98, 5) + SourceIndex(0) +2 >Emitted(192, 12) Source(98, 12) + SourceIndex(0) +3 >Emitted(192, 13) Source(98, 13) + SourceIndex(0) +4 >Emitted(192, 16) Source(98, 16) + SourceIndex(0) +5 >Emitted(192, 17) Source(98, 17) + SourceIndex(0) +6 >Emitted(192, 22) Source(98, 22) + SourceIndex(0) +7 >Emitted(192, 23) Source(98, 23) + SourceIndex(0) +8 >Emitted(192, 24) Source(98, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(98, 2) Source(99, 2) + SourceIndex(0) +1 >Emitted(193, 2) Source(99, 2) + SourceIndex(0) --- ->>>for (var _28 = 0, multiRobots_4 = multiRobots; _28 < multiRobots_4.length; _28++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({name, skills: { primary, secondary } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(99, 1) Source(100, 1) + SourceIndex(0) -2 >Emitted(99, 4) Source(100, 4) + SourceIndex(0) -3 >Emitted(99, 5) Source(100, 5) + SourceIndex(0) -4 >Emitted(99, 6) Source(100, 49) + SourceIndex(0) -5 >Emitted(99, 17) Source(100, 60) + SourceIndex(0) -6 >Emitted(99, 19) Source(100, 49) + SourceIndex(0) -7 >Emitted(99, 46) Source(100, 60) + SourceIndex(0) -8 >Emitted(99, 48) Source(100, 49) + SourceIndex(0) -9 >Emitted(99, 74) Source(100, 60) + SourceIndex(0) -10>Emitted(99, 76) Source(100, 49) + SourceIndex(0) -11>Emitted(99, 81) Source(100, 60) + SourceIndex(0) ---- ->>> _29 = multiRobots_4[_28], name = _29.name, _30 = _29.skills, primary = _30.primary, secondary = _30.secondary; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name, skills: { primary, secondary } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> {name, skills: { primary, secondary } } +1->Emitted(195, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(195, 8) Source(100, 4) + SourceIndex(0) +3 >Emitted(195, 9) Source(100, 5) + SourceIndex(0) +4 >Emitted(195, 10) Source(100, 49) + SourceIndex(0) +5 >Emitted(195, 14) Source(100, 49) + SourceIndex(0) +6 >Emitted(195, 30) Source(100, 49) + SourceIndex(0) +7 >Emitted(195, 32) Source(100, 49) + SourceIndex(0) +8 >Emitted(195, 42) Source(100, 49) + SourceIndex(0) +9 >Emitted(195, 51) Source(100, 49) + SourceIndex(0) +10>Emitted(195, 62) Source(100, 60) + SourceIndex(0) +11>Emitted(195, 63) Source(100, 60) + SourceIndex(0) +12>Emitted(195, 65) Source(100, 60) + SourceIndex(0) +13>Emitted(195, 67) Source(100, 6) + SourceIndex(0) +14>Emitted(195, 88) Source(100, 45) + SourceIndex(0) +--- +>>> _7 = multiRobots_4.result.value, name = _7.name, _8 = _7.skills, primary = _8.primary, secondary = _8.secondary; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name -3 > , -4 > skills: { primary, secondary } -5 > -6 > primary -7 > , -8 > secondary -1->Emitted(100, 31) Source(100, 7) + SourceIndex(0) -2 >Emitted(100, 46) Source(100, 11) + SourceIndex(0) -3 >Emitted(100, 48) Source(100, 13) + SourceIndex(0) -4 >Emitted(100, 64) Source(100, 43) + SourceIndex(0) -5 >Emitted(100, 66) Source(100, 23) + SourceIndex(0) -6 >Emitted(100, 87) Source(100, 30) + SourceIndex(0) -7 >Emitted(100, 89) Source(100, 32) + SourceIndex(0) -8 >Emitted(100, 114) Source(100, 41) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name +3 > , +4 > skills: { primary, secondary } +5 > +6 > primary +7 > , +8 > secondary +1->Emitted(196, 42) Source(100, 7) + SourceIndex(0) +2 >Emitted(196, 56) Source(100, 11) + SourceIndex(0) +3 >Emitted(196, 58) Source(100, 13) + SourceIndex(0) +4 >Emitted(196, 72) Source(100, 43) + SourceIndex(0) +5 >Emitted(196, 74) Source(100, 23) + SourceIndex(0) +6 >Emitted(196, 94) Source(100, 30) + SourceIndex(0) +7 >Emitted(196, 96) Source(100, 32) + SourceIndex(0) +8 >Emitted(196, 120) Source(100, 41) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(101, 5) Source(101, 5) + SourceIndex(0) -2 >Emitted(101, 12) Source(101, 12) + SourceIndex(0) -3 >Emitted(101, 13) Source(101, 13) + SourceIndex(0) -4 >Emitted(101, 16) Source(101, 16) + SourceIndex(0) -5 >Emitted(101, 17) Source(101, 17) + SourceIndex(0) -6 >Emitted(101, 22) Source(101, 22) + SourceIndex(0) -7 >Emitted(101, 23) Source(101, 23) + SourceIndex(0) -8 >Emitted(101, 24) Source(101, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(197, 9) Source(101, 5) + SourceIndex(0) +2 >Emitted(197, 16) Source(101, 12) + SourceIndex(0) +3 >Emitted(197, 17) Source(101, 13) + SourceIndex(0) +4 >Emitted(197, 20) Source(101, 16) + SourceIndex(0) +5 >Emitted(197, 21) Source(101, 17) + SourceIndex(0) +6 >Emitted(197, 26) Source(101, 22) + SourceIndex(0) +7 >Emitted(197, 27) Source(101, 23) + SourceIndex(0) +8 >Emitted(197, 28) Source(101, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(102, 2) Source(102, 2) + SourceIndex(0) +1 >Emitted(198, 6) Source(102, 2) + SourceIndex(0) --- ->>>for (var _31 = 0, _32 = getMultiRobots(); _31 < _32.length; _31++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_15_1) { e_15 = { error: e_15_1 }; } +>>>finally { +>>> try { __close(multiRobots_4); } finally { if (e_15) throw e_15.error; } +>>>} +>>>try { +>>> for (var iterator_8 = { iterator: __values(getMultiRobots()) }; __step(iterator_8);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ({name, skills: { primary, secondary } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(103, 1) Source(103, 1) + SourceIndex(0) -2 >Emitted(103, 4) Source(103, 4) + SourceIndex(0) -3 >Emitted(103, 5) Source(103, 5) + SourceIndex(0) -4 >Emitted(103, 6) Source(103, 49) + SourceIndex(0) -5 >Emitted(103, 17) Source(103, 65) + SourceIndex(0) -6 >Emitted(103, 19) Source(103, 49) + SourceIndex(0) -7 >Emitted(103, 25) Source(103, 49) + SourceIndex(0) -8 >Emitted(103, 39) Source(103, 63) + SourceIndex(0) -9 >Emitted(103, 41) Source(103, 65) + SourceIndex(0) -10>Emitted(103, 43) Source(103, 49) + SourceIndex(0) -11>Emitted(103, 59) Source(103, 65) + SourceIndex(0) -12>Emitted(103, 61) Source(103, 49) + SourceIndex(0) -13>Emitted(103, 66) Source(103, 65) + SourceIndex(0) ---- ->>> _33 = _32[_31], name = _33.name, _34 = _33.skills, primary = _34.primary, secondary = _34.secondary; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name, skills: { primary, secondary } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> {name, skills: { primary, secondary } } +1 >Emitted(205, 5) Source(103, 1) + SourceIndex(0) +2 >Emitted(205, 8) Source(103, 4) + SourceIndex(0) +3 >Emitted(205, 9) Source(103, 5) + SourceIndex(0) +4 >Emitted(205, 10) Source(103, 49) + SourceIndex(0) +5 >Emitted(205, 14) Source(103, 49) + SourceIndex(0) +6 >Emitted(205, 27) Source(103, 49) + SourceIndex(0) +7 >Emitted(205, 29) Source(103, 49) + SourceIndex(0) +8 >Emitted(205, 39) Source(103, 49) + SourceIndex(0) +9 >Emitted(205, 48) Source(103, 49) + SourceIndex(0) +10>Emitted(205, 62) Source(103, 63) + SourceIndex(0) +11>Emitted(205, 64) Source(103, 65) + SourceIndex(0) +12>Emitted(205, 65) Source(103, 65) + SourceIndex(0) +13>Emitted(205, 67) Source(103, 65) + SourceIndex(0) +14>Emitted(205, 69) Source(103, 6) + SourceIndex(0) +15>Emitted(205, 87) Source(103, 45) + SourceIndex(0) +--- +>>> _9 = iterator_8.result.value, name = _9.name, _10 = _9.skills, primary = _10.primary, secondary = _10.secondary; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name -3 > , -4 > skills: { primary, secondary } -5 > -6 > primary -7 > , -8 > secondary -1->Emitted(104, 21) Source(103, 7) + SourceIndex(0) -2 >Emitted(104, 36) Source(103, 11) + SourceIndex(0) -3 >Emitted(104, 38) Source(103, 13) + SourceIndex(0) -4 >Emitted(104, 54) Source(103, 43) + SourceIndex(0) -5 >Emitted(104, 56) Source(103, 23) + SourceIndex(0) -6 >Emitted(104, 77) Source(103, 30) + SourceIndex(0) -7 >Emitted(104, 79) Source(103, 32) + SourceIndex(0) -8 >Emitted(104, 104) Source(103, 41) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name +3 > , +4 > skills: { primary, secondary } +5 > +6 > primary +7 > , +8 > secondary +1->Emitted(206, 39) Source(103, 7) + SourceIndex(0) +2 >Emitted(206, 53) Source(103, 11) + SourceIndex(0) +3 >Emitted(206, 55) Source(103, 13) + SourceIndex(0) +4 >Emitted(206, 70) Source(103, 43) + SourceIndex(0) +5 >Emitted(206, 72) Source(103, 23) + SourceIndex(0) +6 >Emitted(206, 93) Source(103, 30) + SourceIndex(0) +7 >Emitted(206, 95) Source(103, 32) + SourceIndex(0) +8 >Emitted(206, 120) Source(103, 41) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(105, 5) Source(104, 5) + SourceIndex(0) -2 >Emitted(105, 12) Source(104, 12) + SourceIndex(0) -3 >Emitted(105, 13) Source(104, 13) + SourceIndex(0) -4 >Emitted(105, 16) Source(104, 16) + SourceIndex(0) -5 >Emitted(105, 17) Source(104, 17) + SourceIndex(0) -6 >Emitted(105, 22) Source(104, 22) + SourceIndex(0) -7 >Emitted(105, 23) Source(104, 23) + SourceIndex(0) -8 >Emitted(105, 24) Source(104, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(207, 9) Source(104, 5) + SourceIndex(0) +2 >Emitted(207, 16) Source(104, 12) + SourceIndex(0) +3 >Emitted(207, 17) Source(104, 13) + SourceIndex(0) +4 >Emitted(207, 20) Source(104, 16) + SourceIndex(0) +5 >Emitted(207, 21) Source(104, 17) + SourceIndex(0) +6 >Emitted(207, 26) Source(104, 22) + SourceIndex(0) +7 >Emitted(207, 27) Source(104, 23) + SourceIndex(0) +8 >Emitted(207, 28) Source(104, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(106, 2) Source(105, 2) + SourceIndex(0) +1 >Emitted(208, 6) Source(105, 2) + SourceIndex(0) --- ->>>for (var _35 = 0, _36 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_16_1) { e_16 = { error: e_16_1 }; } +>>>finally { +>>> try { __close(iterator_8); } finally { if (e_16) throw e_16.error; } +>>>} +>>>for (var _11 = 0, _12 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -3052,7 +3259,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -3078,32 +3285,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> "none" 23> } 24> } -1->Emitted(107, 1) Source(106, 1) + SourceIndex(0) -2 >Emitted(107, 4) Source(106, 4) + SourceIndex(0) -3 >Emitted(107, 5) Source(106, 5) + SourceIndex(0) -4 >Emitted(107, 6) Source(106, 49) + SourceIndex(0) -5 >Emitted(107, 17) Source(107, 79) + SourceIndex(0) -6 >Emitted(107, 19) Source(106, 49) + SourceIndex(0) -7 >Emitted(107, 26) Source(106, 50) + SourceIndex(0) -8 >Emitted(107, 28) Source(106, 52) + SourceIndex(0) -9 >Emitted(107, 32) Source(106, 56) + SourceIndex(0) -10>Emitted(107, 34) Source(106, 58) + SourceIndex(0) -11>Emitted(107, 41) Source(106, 65) + SourceIndex(0) -12>Emitted(107, 43) Source(106, 67) + SourceIndex(0) -13>Emitted(107, 49) Source(106, 73) + SourceIndex(0) -14>Emitted(107, 51) Source(106, 75) + SourceIndex(0) -15>Emitted(107, 53) Source(106, 77) + SourceIndex(0) -16>Emitted(107, 60) Source(106, 84) + SourceIndex(0) -17>Emitted(107, 62) Source(106, 86) + SourceIndex(0) -18>Emitted(107, 70) Source(106, 94) + SourceIndex(0) -19>Emitted(107, 72) Source(106, 96) + SourceIndex(0) -20>Emitted(107, 81) Source(106, 105) + SourceIndex(0) -21>Emitted(107, 83) Source(106, 107) + SourceIndex(0) -22>Emitted(107, 89) Source(106, 113) + SourceIndex(0) -23>Emitted(107, 91) Source(106, 115) + SourceIndex(0) -24>Emitted(107, 93) Source(106, 117) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _35 < _36.length; _35++) { +1 >Emitted(214, 1) Source(106, 1) + SourceIndex(0) +2 >Emitted(214, 4) Source(106, 4) + SourceIndex(0) +3 >Emitted(214, 5) Source(106, 5) + SourceIndex(0) +4 >Emitted(214, 6) Source(106, 49) + SourceIndex(0) +5 >Emitted(214, 17) Source(107, 79) + SourceIndex(0) +6 >Emitted(214, 19) Source(106, 49) + SourceIndex(0) +7 >Emitted(214, 26) Source(106, 50) + SourceIndex(0) +8 >Emitted(214, 28) Source(106, 52) + SourceIndex(0) +9 >Emitted(214, 32) Source(106, 56) + SourceIndex(0) +10>Emitted(214, 34) Source(106, 58) + SourceIndex(0) +11>Emitted(214, 41) Source(106, 65) + SourceIndex(0) +12>Emitted(214, 43) Source(106, 67) + SourceIndex(0) +13>Emitted(214, 49) Source(106, 73) + SourceIndex(0) +14>Emitted(214, 51) Source(106, 75) + SourceIndex(0) +15>Emitted(214, 53) Source(106, 77) + SourceIndex(0) +16>Emitted(214, 60) Source(106, 84) + SourceIndex(0) +17>Emitted(214, 62) Source(106, 86) + SourceIndex(0) +18>Emitted(214, 70) Source(106, 94) + SourceIndex(0) +19>Emitted(214, 72) Source(106, 96) + SourceIndex(0) +20>Emitted(214, 81) Source(106, 105) + SourceIndex(0) +21>Emitted(214, 83) Source(106, 107) + SourceIndex(0) +22>Emitted(214, 89) Source(106, 113) + SourceIndex(0) +23>Emitted(214, 91) Source(106, 115) + SourceIndex(0) +24>Emitted(214, 93) Source(106, 117) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _11 < _12.length; _11++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -3154,31 +3361,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(108, 5) Source(107, 5) + SourceIndex(0) -2 >Emitted(108, 7) Source(107, 7) + SourceIndex(0) -3 >Emitted(108, 11) Source(107, 11) + SourceIndex(0) -4 >Emitted(108, 13) Source(107, 13) + SourceIndex(0) -5 >Emitted(108, 22) Source(107, 22) + SourceIndex(0) -6 >Emitted(108, 24) Source(107, 24) + SourceIndex(0) -7 >Emitted(108, 30) Source(107, 30) + SourceIndex(0) -8 >Emitted(108, 32) Source(107, 32) + SourceIndex(0) -9 >Emitted(108, 34) Source(107, 34) + SourceIndex(0) -10>Emitted(108, 41) Source(107, 41) + SourceIndex(0) -11>Emitted(108, 43) Source(107, 43) + SourceIndex(0) -12>Emitted(108, 53) Source(107, 53) + SourceIndex(0) -13>Emitted(108, 55) Source(107, 55) + SourceIndex(0) -14>Emitted(108, 64) Source(107, 64) + SourceIndex(0) -15>Emitted(108, 66) Source(107, 66) + SourceIndex(0) -16>Emitted(108, 74) Source(107, 74) + SourceIndex(0) -17>Emitted(108, 76) Source(107, 76) + SourceIndex(0) -18>Emitted(108, 78) Source(107, 78) + SourceIndex(0) -19>Emitted(108, 79) Source(107, 79) + SourceIndex(0) -20>Emitted(108, 81) Source(106, 49) + SourceIndex(0) -21>Emitted(108, 97) Source(107, 79) + SourceIndex(0) -22>Emitted(108, 99) Source(106, 49) + SourceIndex(0) -23>Emitted(108, 104) Source(107, 79) + SourceIndex(0) ---- ->>> _37 = _36[_35], name = _37.name, _38 = _37.skills, primary = _38.primary, secondary = _38.secondary; +1->Emitted(215, 5) Source(107, 5) + SourceIndex(0) +2 >Emitted(215, 7) Source(107, 7) + SourceIndex(0) +3 >Emitted(215, 11) Source(107, 11) + SourceIndex(0) +4 >Emitted(215, 13) Source(107, 13) + SourceIndex(0) +5 >Emitted(215, 22) Source(107, 22) + SourceIndex(0) +6 >Emitted(215, 24) Source(107, 24) + SourceIndex(0) +7 >Emitted(215, 30) Source(107, 30) + SourceIndex(0) +8 >Emitted(215, 32) Source(107, 32) + SourceIndex(0) +9 >Emitted(215, 34) Source(107, 34) + SourceIndex(0) +10>Emitted(215, 41) Source(107, 41) + SourceIndex(0) +11>Emitted(215, 43) Source(107, 43) + SourceIndex(0) +12>Emitted(215, 53) Source(107, 53) + SourceIndex(0) +13>Emitted(215, 55) Source(107, 55) + SourceIndex(0) +14>Emitted(215, 64) Source(107, 64) + SourceIndex(0) +15>Emitted(215, 66) Source(107, 66) + SourceIndex(0) +16>Emitted(215, 74) Source(107, 74) + SourceIndex(0) +17>Emitted(215, 76) Source(107, 76) + SourceIndex(0) +18>Emitted(215, 78) Source(107, 78) + SourceIndex(0) +19>Emitted(215, 79) Source(107, 79) + SourceIndex(0) +20>Emitted(215, 81) Source(106, 49) + SourceIndex(0) +21>Emitted(215, 97) Source(107, 79) + SourceIndex(0) +22>Emitted(215, 99) Source(106, 49) + SourceIndex(0) +23>Emitted(215, 104) Source(107, 79) + SourceIndex(0) +--- +>>> _13 = _12[_11], name = _13.name, _14 = _13.skills, primary = _14.primary, secondary = _14.secondary; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^ 3 > ^^ @@ -3195,14 +3402,14 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > primary 7 > , 8 > secondary -1->Emitted(109, 21) Source(106, 7) + SourceIndex(0) -2 >Emitted(109, 36) Source(106, 11) + SourceIndex(0) -3 >Emitted(109, 38) Source(106, 13) + SourceIndex(0) -4 >Emitted(109, 54) Source(106, 43) + SourceIndex(0) -5 >Emitted(109, 56) Source(106, 23) + SourceIndex(0) -6 >Emitted(109, 77) Source(106, 30) + SourceIndex(0) -7 >Emitted(109, 79) Source(106, 32) + SourceIndex(0) -8 >Emitted(109, 104) Source(106, 41) + SourceIndex(0) +1->Emitted(216, 21) Source(106, 7) + SourceIndex(0) +2 >Emitted(216, 36) Source(106, 11) + SourceIndex(0) +3 >Emitted(216, 38) Source(106, 13) + SourceIndex(0) +4 >Emitted(216, 54) Source(106, 43) + SourceIndex(0) +5 >Emitted(216, 56) Source(106, 23) + SourceIndex(0) +6 >Emitted(216, 77) Source(106, 30) + SourceIndex(0) +7 >Emitted(216, 79) Source(106, 32) + SourceIndex(0) +8 >Emitted(216, 104) Source(106, 41) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -3223,21 +3430,21 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPattern2.ts 6 > nameA 7 > ) 8 > ; -1 >Emitted(110, 5) Source(108, 5) + SourceIndex(0) -2 >Emitted(110, 12) Source(108, 12) + SourceIndex(0) -3 >Emitted(110, 13) Source(108, 13) + SourceIndex(0) -4 >Emitted(110, 16) Source(108, 16) + SourceIndex(0) -5 >Emitted(110, 17) Source(108, 17) + SourceIndex(0) -6 >Emitted(110, 22) Source(108, 22) + SourceIndex(0) -7 >Emitted(110, 23) Source(108, 23) + SourceIndex(0) -8 >Emitted(110, 24) Source(108, 24) + SourceIndex(0) +1 >Emitted(217, 5) Source(108, 5) + SourceIndex(0) +2 >Emitted(217, 12) Source(108, 12) + SourceIndex(0) +3 >Emitted(217, 13) Source(108, 13) + SourceIndex(0) +4 >Emitted(217, 16) Source(108, 16) + SourceIndex(0) +5 >Emitted(217, 17) Source(108, 17) + SourceIndex(0) +6 >Emitted(217, 22) Source(108, 22) + SourceIndex(0) +7 >Emitted(217, 23) Source(108, 23) + SourceIndex(0) +8 >Emitted(217, 24) Source(108, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(111, 2) Source(109, 2) + SourceIndex(0) +1 >Emitted(218, 2) Source(109, 2) + SourceIndex(0) --- ->>>var _f, _j, _m, _u, _x, _0, _2, _5, _8, _10, _11, _14, _15, _18, _19, _21, _24, _27, _29, _30, _33, _34, _37, _38; +>>>var e_1, e_2, _b, e_3, _c, e_4, _f, e_5, e_6, _j, e_7, _k, e_8, _o, _p, e_9, _q, e_10, _t, _u, _v, e_11, _w, _x, e_12, _0, _1, _2, e_13, _3, e_14, _6, _7, _8, e_15, _9, _10, e_16, _13, _14; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js index 08cf3cf54663a..c440fc5cb7aa5 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js @@ -90,6 +90,17 @@ for (let { } //// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; @@ -99,54 +110,115 @@ function getRobots() { function getMultiRobots() { return multiRobots; } -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - var _a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + var _a = robots_1.result.value.name, nameA = _a === void 0 ? "noName" : _a; + console.log(nameA); + } } -for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { - var _d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + var _b = iterator_1.result.value.name, nameA = _b === void 0 ? "noName" : _b; + console.log(nameA); + } } -for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) { - var _g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g; +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +} +for (var _i = 0, _c = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _c.length; _i++) { + var _d = _c[_i].name, nameA = _d === void 0 ? "noName" : _d; console.log(nameA); } -for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { - var _j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; - console.log(primaryA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + var _e = multiRobots_1.result.value.skills, _f = _e === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _e, _g = _f.primary, primaryA = _g === void 0 ? "primary" : _g, _h = _f.secondary, secondaryA = _h === void 0 ? "secondary" : _h; + console.log(primaryA); + } } -for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) { - var _q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t; - console.log(primaryA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } } -for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) { - var _w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z; - console.log(primaryA); +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + var _j = iterator_2.result.value.skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; + console.log(primaryA); + } } -for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) { - var _1 = robots_2[_0], _2 = _1.name, nameA = _2 === void 0 ? "noName" : _2, _3 = _1.skill, skillA = _3 === void 0 ? "noSkill" : _3; - console.log(nameA); +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _4 = 0, _5 = getRobots(); _4 < _5.length; _4++) { - var _6 = _5[_4], _7 = _6.name, nameA = _7 === void 0 ? "noName" : _7, _8 = _6.skill, skillA = _8 === void 0 ? "noSkill" : _8; - console.log(nameA); +try { + for (var iterator_3 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_3);) { + var _o = iterator_3.result.value.skills, _p = _o === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _o, _q = _p.primary, primaryA = _q === void 0 ? "primary" : _q, _r = _p.secondary, secondaryA = _r === void 0 ? "secondary" : _r; + console.log(primaryA); + } } -for (var _9 = 0, _10 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _9 < _10.length; _9++) { - var _11 = _10[_9], _12 = _11.name, nameA = _12 === void 0 ? "noName" : _12, _13 = _11.skill, skillA = _13 === void 0 ? "noSkill" : _13; - console.log(nameA); +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_5) throw e_5.error; } } -for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { - var _15 = multiRobots_2[_14], _16 = _15.name, nameA = _16 === void 0 ? "noName" : _16, _17 = _15.skills, _18 = _17 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _17, _19 = _18.primary, primaryA = _19 === void 0 ? "primary" : _19, _20 = _18.secondary, secondaryA = _20 === void 0 ? "secondary" : _20; - console.log(nameA); +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + var _s = robots_2.result.value, _t = _s.name, nameA = _t === void 0 ? "noName" : _t, _u = _s.skill, skillA = _u === void 0 ? "noSkill" : _u; + console.log(nameA); + } } -for (var _21 = 0, _22 = getMultiRobots(); _21 < _22.length; _21++) { - var _23 = _22[_21], _24 = _23.name, nameA = _24 === void 0 ? "noName" : _24, _25 = _23.skills, _26 = _25 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _25, _27 = _26.primary, primaryA = _27 === void 0 ? "primary" : _27, _28 = _26.secondary, secondaryA = _28 === void 0 ? "secondary" : _28; - console.log(nameA); +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(robots_2); } finally { if (e_6) throw e_6.error; } } -for (var _29 = 0, _30 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _29 < _30.length; _29++) { - var _31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skills, _34 = _33 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _33, _35 = _34.primary, primaryA = _35 === void 0 ? "primary" : _35, _36 = _34.secondary, secondaryA = _36 === void 0 ? "secondary" : _36; +try { + for (var iterator_4 = { iterator: __values(getRobots()) }; __step(iterator_4);) { + var _v = iterator_4.result.value, _w = _v.name, nameA = _w === void 0 ? "noName" : _w, _x = _v.skill, skillA = _x === void 0 ? "noSkill" : _x; + console.log(nameA); + } +} +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_7) throw e_7.error; } +} +for (var _y = 0, _z = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _y < _z.length; _y++) { + var _0 = _z[_y], _1 = _0.name, nameA = _1 === void 0 ? "noName" : _1, _2 = _0.skill, skillA = _2 === void 0 ? "noSkill" : _2; console.log(nameA); } +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + var _3 = multiRobots_2.result.value, _4 = _3.name, nameA = _4 === void 0 ? "noName" : _4, _5 = _3.skills, _6 = _5 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _5, _7 = _6.primary, primaryA = _7 === void 0 ? "primary" : _7, _8 = _6.secondary, secondaryA = _8 === void 0 ? "secondary" : _8; + console.log(nameA); + } +} +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_8) throw e_8.error; } +} +try { + for (var iterator_5 = { iterator: __values(getMultiRobots()) }; __step(iterator_5);) { + var _9 = iterator_5.result.value, _10 = _9.name, nameA = _10 === void 0 ? "noName" : _10, _11 = _9.skills, _12 = _11 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _11, _13 = _12.primary, primaryA = _13 === void 0 ? "primary" : _13, _14 = _12.secondary, secondaryA = _14 === void 0 ? "secondary" : _14; + console.log(nameA); + } +} +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_9) throw e_9.error; } +} +try { + for (var iterator_6 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_6);) { + var _15 = iterator_6.result.value, _16 = _15.name, nameA = _16 === void 0 ? "noName" : _16, _17 = _15.skills, _18 = _17 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _17, _19 = _18.primary, primaryA = _19 === void 0 ? "primary" : _19, _20 = _18.secondary, secondaryA = _20 === void 0 ? "secondary" : _20; + console.log(nameA); + } +} +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_10) throw e_10.error; } +} +var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10; //# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map index 87f1e878b55e8..8faea27f1bc16 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts"],"names":[],"mappings":"AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,GAAG,CAAC,CAAkC,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAlC,IAAA,sBAAsB,EAAtB,qCAAsB;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkC,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAvC,IAAA,gBAAsB,EAAtB,qCAAsB;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAkC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAxG,IAAA,gBAAsB,EAAtB,qCAAsB;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CACkD,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IADtD,IAAA,6BACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAEnF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CACkD,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAD3D,IAAA,kBACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAEnF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAEA,UAC0E,EAD1E,KAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAClF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EAD1E,cAC0E,EAD1E,IAC0E;IAHnE,IAAA,kBACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAInF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED,GAAG,CAAC,CAA6D,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAA9D,IAAA,iBAAoD,EAAnD,YAAsB,EAAtB,qCAAsB,EAAE,aAAyB,EAAzB,uCAAyB;IACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA8D,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAApE,IAAA,WAAqD,EAApD,YAAsB,EAAtB,qCAAsB,EAAE,aAAyB,EAAzB,uCAAyB;IACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA8D,UAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,eAA4E,EAA5E,IAA4E;IAArI,IAAA,aAAqD,EAApD,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;IACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;IANP,IAAA,wBAMR,EALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IANZ,IAAA,cAMR,EALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WACyE,EADzE,MAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACnF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,gBACyE,EADzE,KACyE;IAPrE,IAAA,cAMR,EALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAIvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;;IAED,GAAG,CAAC,CAAkC,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAvC,gBAA6B;QAAxB,IAAA,+BAAsB,EAAtB,qCAAsB;QAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAkC,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAA5C,kBAA6B;QAAxB,IAAA,iCAAsB,EAAtB,qCAAsB;QAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAkC,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAxG,IAAA,gBAAsB,EAAtB,qCAAsB;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CACkD,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAD5D,qBAC6C;QADvC,IAAA,sCACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAEnF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CACkD,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EADjE,kBAC6C;QADvC,IAAA,mCACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAEnF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAEA,IAAA,aAAA,EAAA,UAAA,SAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YAClF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA,EAAA,EAHzE,kBAC6C;QADvC,IAAA,mCACqC,EADrC,sEACqC,EAD3B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAInF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IAED,GAAG,CAAC,CAA6D,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAlE,gBAAwD;QAApD,IAAA,0BAAoD,EAAnD,YAAsB,EAAtB,qCAAsB,EAAE,aAAyB,EAAzB,uCAAyB;QACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA8D,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxE,kBAAyD;QAArD,IAAA,4BAAqD,EAApD,YAAsB,EAAtB,qCAAsB,EAAE,aAAyB,EAAzB,uCAAyB;QACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA8D,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAArI,IAAA,WAAqD,EAApD,YAAsB,EAAtB,qCAAsB,EAAE,aAAyB,EAAzB,uCAAyB;IACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAMC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EANX,qBAMJ;QANQ,IAAA,+BAMR,EALG,YAAsB,EAAtB,qCAAsB,EACtB,cAGgD,EAHhD,sEAGgD,EAF5C,eAA6B,EAA7B,yCAA6B,EAC7B,iBAAmC,EAAnC,6CAAmC;QAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAMC,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EANhB,kBAMJ;QANQ,IAAA,4BAMR,EALG,aAAsB,EAAtB,uCAAsB,EACtB,eAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;QAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAMC,IAAA,aAAA,EAAA,UAAA,SAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YACnF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA,EAAA,EAPzE,kBAMJ;QANQ,IAAA,6BAMR,EALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;QAIvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.sourcemap.txt index 2b43f2fc360de..7569e13a41868 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.sourcemap.txt @@ -8,6 +8,17 @@ sources: sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues. emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts ------------------------------------------------------------------- +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; 1 > 2 >^^^^ @@ -77,32 +88,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 24> } 25> ] 26> ; -1 >Emitted(1, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(17, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(17, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(17, 23) + SourceIndex(0) -5 >Emitted(1, 15) Source(17, 24) + SourceIndex(0) -6 >Emitted(1, 17) Source(17, 26) + SourceIndex(0) -7 >Emitted(1, 21) Source(17, 30) + SourceIndex(0) -8 >Emitted(1, 23) Source(17, 32) + SourceIndex(0) -9 >Emitted(1, 30) Source(17, 39) + SourceIndex(0) -10>Emitted(1, 32) Source(17, 41) + SourceIndex(0) -11>Emitted(1, 37) Source(17, 46) + SourceIndex(0) -12>Emitted(1, 39) Source(17, 48) + SourceIndex(0) -13>Emitted(1, 47) Source(17, 56) + SourceIndex(0) -14>Emitted(1, 49) Source(17, 58) + SourceIndex(0) -15>Emitted(1, 51) Source(17, 60) + SourceIndex(0) -16>Emitted(1, 53) Source(17, 62) + SourceIndex(0) -17>Emitted(1, 57) Source(17, 66) + SourceIndex(0) -18>Emitted(1, 59) Source(17, 68) + SourceIndex(0) -19>Emitted(1, 68) Source(17, 77) + SourceIndex(0) -20>Emitted(1, 70) Source(17, 79) + SourceIndex(0) -21>Emitted(1, 75) Source(17, 84) + SourceIndex(0) -22>Emitted(1, 77) Source(17, 86) + SourceIndex(0) -23>Emitted(1, 87) Source(17, 96) + SourceIndex(0) -24>Emitted(1, 89) Source(17, 98) + SourceIndex(0) -25>Emitted(1, 90) Source(17, 99) + SourceIndex(0) -26>Emitted(1, 91) Source(17, 100) + SourceIndex(0) +1 >Emitted(12, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(17, 5) + SourceIndex(0) +3 >Emitted(12, 11) Source(17, 11) + SourceIndex(0) +4 >Emitted(12, 14) Source(17, 23) + SourceIndex(0) +5 >Emitted(12, 15) Source(17, 24) + SourceIndex(0) +6 >Emitted(12, 17) Source(17, 26) + SourceIndex(0) +7 >Emitted(12, 21) Source(17, 30) + SourceIndex(0) +8 >Emitted(12, 23) Source(17, 32) + SourceIndex(0) +9 >Emitted(12, 30) Source(17, 39) + SourceIndex(0) +10>Emitted(12, 32) Source(17, 41) + SourceIndex(0) +11>Emitted(12, 37) Source(17, 46) + SourceIndex(0) +12>Emitted(12, 39) Source(17, 48) + SourceIndex(0) +13>Emitted(12, 47) Source(17, 56) + SourceIndex(0) +14>Emitted(12, 49) Source(17, 58) + SourceIndex(0) +15>Emitted(12, 51) Source(17, 60) + SourceIndex(0) +16>Emitted(12, 53) Source(17, 62) + SourceIndex(0) +17>Emitted(12, 57) Source(17, 66) + SourceIndex(0) +18>Emitted(12, 59) Source(17, 68) + SourceIndex(0) +19>Emitted(12, 68) Source(17, 77) + SourceIndex(0) +20>Emitted(12, 70) Source(17, 79) + SourceIndex(0) +21>Emitted(12, 75) Source(17, 84) + SourceIndex(0) +22>Emitted(12, 77) Source(17, 86) + SourceIndex(0) +23>Emitted(12, 87) Source(17, 96) + SourceIndex(0) +24>Emitted(12, 89) Source(17, 98) + SourceIndex(0) +25>Emitted(12, 90) Source(17, 99) + SourceIndex(0) +26>Emitted(12, 91) Source(17, 100) + SourceIndex(0) --- >>>var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, 1 > @@ -150,28 +161,28 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 20> "none" 21> } 22> } -1 >Emitted(2, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(18, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(18, 33) + SourceIndex(0) -5 >Emitted(2, 20) Source(18, 34) + SourceIndex(0) -6 >Emitted(2, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(2, 26) Source(18, 40) + SourceIndex(0) -8 >Emitted(2, 28) Source(18, 42) + SourceIndex(0) -9 >Emitted(2, 35) Source(18, 49) + SourceIndex(0) -10>Emitted(2, 37) Source(18, 51) + SourceIndex(0) -11>Emitted(2, 43) Source(18, 57) + SourceIndex(0) -12>Emitted(2, 45) Source(18, 59) + SourceIndex(0) -13>Emitted(2, 47) Source(18, 61) + SourceIndex(0) -14>Emitted(2, 54) Source(18, 68) + SourceIndex(0) -15>Emitted(2, 56) Source(18, 70) + SourceIndex(0) -16>Emitted(2, 64) Source(18, 78) + SourceIndex(0) -17>Emitted(2, 66) Source(18, 80) + SourceIndex(0) -18>Emitted(2, 75) Source(18, 89) + SourceIndex(0) -19>Emitted(2, 77) Source(18, 91) + SourceIndex(0) -20>Emitted(2, 83) Source(18, 97) + SourceIndex(0) -21>Emitted(2, 85) Source(18, 99) + SourceIndex(0) -22>Emitted(2, 87) Source(18, 101) + SourceIndex(0) +1 >Emitted(13, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(18, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(18, 33) + SourceIndex(0) +5 >Emitted(13, 20) Source(18, 34) + SourceIndex(0) +6 >Emitted(13, 22) Source(18, 36) + SourceIndex(0) +7 >Emitted(13, 26) Source(18, 40) + SourceIndex(0) +8 >Emitted(13, 28) Source(18, 42) + SourceIndex(0) +9 >Emitted(13, 35) Source(18, 49) + SourceIndex(0) +10>Emitted(13, 37) Source(18, 51) + SourceIndex(0) +11>Emitted(13, 43) Source(18, 57) + SourceIndex(0) +12>Emitted(13, 45) Source(18, 59) + SourceIndex(0) +13>Emitted(13, 47) Source(18, 61) + SourceIndex(0) +14>Emitted(13, 54) Source(18, 68) + SourceIndex(0) +15>Emitted(13, 56) Source(18, 70) + SourceIndex(0) +16>Emitted(13, 64) Source(18, 78) + SourceIndex(0) +17>Emitted(13, 66) Source(18, 80) + SourceIndex(0) +18>Emitted(13, 75) Source(18, 89) + SourceIndex(0) +19>Emitted(13, 77) Source(18, 91) + SourceIndex(0) +20>Emitted(13, 83) Source(18, 97) + SourceIndex(0) +21>Emitted(13, 85) Source(18, 99) + SourceIndex(0) +22>Emitted(13, 87) Source(18, 101) + SourceIndex(0) --- >>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; 1 >^^^^ @@ -215,26 +226,26 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 18> } 19> ] 20> ; -1 >Emitted(3, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(3, 7) Source(19, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(19, 11) + SourceIndex(0) -4 >Emitted(3, 13) Source(19, 13) + SourceIndex(0) -5 >Emitted(3, 22) Source(19, 22) + SourceIndex(0) -6 >Emitted(3, 24) Source(19, 24) + SourceIndex(0) -7 >Emitted(3, 30) Source(19, 30) + SourceIndex(0) -8 >Emitted(3, 32) Source(19, 32) + SourceIndex(0) -9 >Emitted(3, 34) Source(19, 34) + SourceIndex(0) -10>Emitted(3, 41) Source(19, 41) + SourceIndex(0) -11>Emitted(3, 43) Source(19, 43) + SourceIndex(0) -12>Emitted(3, 53) Source(19, 53) + SourceIndex(0) -13>Emitted(3, 55) Source(19, 55) + SourceIndex(0) -14>Emitted(3, 64) Source(19, 64) + SourceIndex(0) -15>Emitted(3, 66) Source(19, 66) + SourceIndex(0) -16>Emitted(3, 74) Source(19, 74) + SourceIndex(0) -17>Emitted(3, 76) Source(19, 76) + SourceIndex(0) -18>Emitted(3, 78) Source(19, 78) + SourceIndex(0) -19>Emitted(3, 79) Source(19, 79) + SourceIndex(0) -20>Emitted(3, 80) Source(19, 80) + SourceIndex(0) +1 >Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 7) Source(19, 7) + SourceIndex(0) +3 >Emitted(14, 11) Source(19, 11) + SourceIndex(0) +4 >Emitted(14, 13) Source(19, 13) + SourceIndex(0) +5 >Emitted(14, 22) Source(19, 22) + SourceIndex(0) +6 >Emitted(14, 24) Source(19, 24) + SourceIndex(0) +7 >Emitted(14, 30) Source(19, 30) + SourceIndex(0) +8 >Emitted(14, 32) Source(19, 32) + SourceIndex(0) +9 >Emitted(14, 34) Source(19, 34) + SourceIndex(0) +10>Emitted(14, 41) Source(19, 41) + SourceIndex(0) +11>Emitted(14, 43) Source(19, 43) + SourceIndex(0) +12>Emitted(14, 53) Source(19, 53) + SourceIndex(0) +13>Emitted(14, 55) Source(19, 55) + SourceIndex(0) +14>Emitted(14, 64) Source(19, 64) + SourceIndex(0) +15>Emitted(14, 66) Source(19, 66) + SourceIndex(0) +16>Emitted(14, 74) Source(19, 74) + SourceIndex(0) +17>Emitted(14, 76) Source(19, 76) + SourceIndex(0) +18>Emitted(14, 78) Source(19, 78) + SourceIndex(0) +19>Emitted(14, 79) Source(19, 79) + SourceIndex(0) +20>Emitted(14, 80) Source(19, 80) + SourceIndex(0) --- >>>function getRobots() { 1 > @@ -242,7 +253,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1 > > > -1 >Emitted(4, 1) Source(21, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(21, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -256,11 +267,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(22, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(22, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(22, 19) + SourceIndex(0) +1->Emitted(16, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(22, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(22, 12) + SourceIndex(0) +4 >Emitted(16, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(16, 19) Source(22, 19) + SourceIndex(0) --- >>>} 1 > @@ -269,8 +280,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1 > > 2 >} -1 >Emitted(6, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(23, 2) + SourceIndex(0) --- >>>function getMultiRobots() { 1-> @@ -278,7 +289,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1-> > > -1->Emitted(7, 1) Source(25, 1) + SourceIndex(0) +1->Emitted(18, 1) Source(25, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -292,207 +303,232 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 3 > 4 > multiRobots 5 > ; -1->Emitted(8, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(26, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(26, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(26, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(26, 24) + SourceIndex(0) +1->Emitted(19, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(19, 11) Source(26, 11) + SourceIndex(0) +3 >Emitted(19, 12) Source(26, 12) + SourceIndex(0) +4 >Emitted(19, 23) Source(26, 23) + SourceIndex(0) +5 >Emitted(19, 24) Source(26, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^-> 1 > > 2 >} -1 >Emitted(9, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(27, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(27, 2) + SourceIndex(0) --- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^-> +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^-> 1-> > > -2 >for -3 > -4 > (let {name: nameA = "noName" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(10, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(10, 4) Source(29, 4) + SourceIndex(0) -3 >Emitted(10, 5) Source(29, 5) + SourceIndex(0) -4 >Emitted(10, 6) Source(29, 39) + SourceIndex(0) -5 >Emitted(10, 16) Source(29, 45) + SourceIndex(0) -6 >Emitted(10, 18) Source(29, 39) + SourceIndex(0) -7 >Emitted(10, 35) Source(29, 45) + SourceIndex(0) -8 >Emitted(10, 37) Source(29, 39) + SourceIndex(0) -9 >Emitted(10, 57) Source(29, 45) + SourceIndex(0) -10>Emitted(10, 59) Source(29, 39) + SourceIndex(0) -11>Emitted(10, 63) Source(29, 45) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let {name: nameA = "noName" } +1->Emitted(22, 5) Source(29, 1) + SourceIndex(0) +2 >Emitted(22, 8) Source(29, 4) + SourceIndex(0) +3 >Emitted(22, 9) Source(29, 5) + SourceIndex(0) +4 >Emitted(22, 10) Source(29, 39) + SourceIndex(0) +5 >Emitted(22, 14) Source(29, 39) + SourceIndex(0) +6 >Emitted(22, 25) Source(29, 39) + SourceIndex(0) +7 >Emitted(22, 27) Source(29, 39) + SourceIndex(0) +8 >Emitted(22, 37) Source(29, 39) + SourceIndex(0) +9 >Emitted(22, 46) Source(29, 39) + SourceIndex(0) +10>Emitted(22, 52) Source(29, 45) + SourceIndex(0) +11>Emitted(22, 53) Source(29, 45) + SourceIndex(0) +12>Emitted(22, 55) Source(29, 45) + SourceIndex(0) +13>Emitted(22, 57) Source(29, 6) + SourceIndex(0) +14>Emitted(22, 73) Source(29, 35) + SourceIndex(0) --- ->>> var _a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _a = robots_1.result.value.name, nameA = _a === void 0 ? "noName" : _a; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > name: nameA = "noName" -4 > -5 > name: nameA = "noName" -1->Emitted(11, 5) Source(29, 11) + SourceIndex(0) -2 >Emitted(11, 9) Source(29, 11) + SourceIndex(0) -3 >Emitted(11, 31) Source(29, 33) + SourceIndex(0) -4 >Emitted(11, 33) Source(29, 11) + SourceIndex(0) -5 >Emitted(11, 70) Source(29, 33) + SourceIndex(0) +2 > +3 > name: nameA = "noName" +4 > +5 > name: nameA = "noName" +1->Emitted(23, 9) Source(29, 11) + SourceIndex(0) +2 >Emitted(23, 13) Source(29, 11) + SourceIndex(0) +3 >Emitted(23, 44) Source(29, 33) + SourceIndex(0) +4 >Emitted(23, 46) Source(29, 11) + SourceIndex(0) +5 >Emitted(23, 83) Source(29, 33) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(12, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(30, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(30, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(30, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(30, 17) + SourceIndex(0) -6 >Emitted(12, 22) Source(30, 22) + SourceIndex(0) -7 >Emitted(12, 23) Source(30, 23) + SourceIndex(0) -8 >Emitted(12, 24) Source(30, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(24, 9) Source(30, 5) + SourceIndex(0) +2 >Emitted(24, 16) Source(30, 12) + SourceIndex(0) +3 >Emitted(24, 17) Source(30, 13) + SourceIndex(0) +4 >Emitted(24, 20) Source(30, 16) + SourceIndex(0) +5 >Emitted(24, 21) Source(30, 17) + SourceIndex(0) +6 >Emitted(24, 26) Source(30, 22) + SourceIndex(0) +7 >Emitted(24, 27) Source(30, 23) + SourceIndex(0) +8 >Emitted(24, 28) Source(30, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(13, 2) Source(31, 2) + SourceIndex(0) +1 >Emitted(25, 6) Source(31, 2) + SourceIndex(0) --- ->>>for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^-> +1 > > -2 >for -3 > -4 > (let {name: nameA = "noName" } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(14, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(14, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(14, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(14, 6) Source(32, 39) + SourceIndex(0) -5 >Emitted(14, 16) Source(32, 50) + SourceIndex(0) -6 >Emitted(14, 18) Source(32, 39) + SourceIndex(0) -7 >Emitted(14, 23) Source(32, 39) + SourceIndex(0) -8 >Emitted(14, 32) Source(32, 48) + SourceIndex(0) -9 >Emitted(14, 34) Source(32, 50) + SourceIndex(0) -10>Emitted(14, 36) Source(32, 39) + SourceIndex(0) -11>Emitted(14, 50) Source(32, 50) + SourceIndex(0) -12>Emitted(14, 52) Source(32, 39) + SourceIndex(0) -13>Emitted(14, 56) Source(32, 50) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let {name: nameA = "noName" } +1 >Emitted(32, 5) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 8) Source(32, 4) + SourceIndex(0) +3 >Emitted(32, 9) Source(32, 5) + SourceIndex(0) +4 >Emitted(32, 10) Source(32, 39) + SourceIndex(0) +5 >Emitted(32, 14) Source(32, 39) + SourceIndex(0) +6 >Emitted(32, 27) Source(32, 39) + SourceIndex(0) +7 >Emitted(32, 29) Source(32, 39) + SourceIndex(0) +8 >Emitted(32, 39) Source(32, 39) + SourceIndex(0) +9 >Emitted(32, 48) Source(32, 39) + SourceIndex(0) +10>Emitted(32, 57) Source(32, 48) + SourceIndex(0) +11>Emitted(32, 59) Source(32, 50) + SourceIndex(0) +12>Emitted(32, 60) Source(32, 50) + SourceIndex(0) +13>Emitted(32, 62) Source(32, 50) + SourceIndex(0) +14>Emitted(32, 64) Source(32, 6) + SourceIndex(0) +15>Emitted(32, 82) Source(32, 35) + SourceIndex(0) --- ->>> var _d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _b = iterator_1.result.value.name, nameA = _b === void 0 ? "noName" : _b; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > name: nameA = "noName" -4 > -5 > name: nameA = "noName" -1->Emitted(15, 5) Source(32, 11) + SourceIndex(0) -2 >Emitted(15, 9) Source(32, 11) + SourceIndex(0) -3 >Emitted(15, 25) Source(32, 33) + SourceIndex(0) -4 >Emitted(15, 27) Source(32, 11) + SourceIndex(0) -5 >Emitted(15, 64) Source(32, 33) + SourceIndex(0) +2 > +3 > name: nameA = "noName" +4 > +5 > name: nameA = "noName" +1->Emitted(33, 9) Source(32, 11) + SourceIndex(0) +2 >Emitted(33, 13) Source(32, 11) + SourceIndex(0) +3 >Emitted(33, 46) Source(32, 33) + SourceIndex(0) +4 >Emitted(33, 48) Source(32, 11) + SourceIndex(0) +5 >Emitted(33, 85) Source(32, 33) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(16, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(16, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(16, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(16, 24) Source(33, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(34, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(34, 16) Source(33, 12) + SourceIndex(0) +3 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) +4 >Emitted(34, 20) Source(33, 16) + SourceIndex(0) +5 >Emitted(34, 21) Source(33, 17) + SourceIndex(0) +6 >Emitted(34, 26) Source(33, 22) + SourceIndex(0) +7 >Emitted(34, 27) Source(33, 23) + SourceIndex(0) +8 >Emitted(34, 28) Source(33, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(17, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(35, 6) Source(34, 2) + SourceIndex(0) --- ->>>for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _c = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _c.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -523,7 +559,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > @@ -555,39 +591,39 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(18, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(18, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(18, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(18, 6) Source(35, 39) + SourceIndex(0) -5 >Emitted(18, 16) Source(35, 115) + SourceIndex(0) -6 >Emitted(18, 18) Source(35, 39) + SourceIndex(0) -7 >Emitted(18, 24) Source(35, 40) + SourceIndex(0) -8 >Emitted(18, 26) Source(35, 42) + SourceIndex(0) -9 >Emitted(18, 30) Source(35, 46) + SourceIndex(0) -10>Emitted(18, 32) Source(35, 48) + SourceIndex(0) -11>Emitted(18, 39) Source(35, 55) + SourceIndex(0) -12>Emitted(18, 41) Source(35, 57) + SourceIndex(0) -13>Emitted(18, 46) Source(35, 62) + SourceIndex(0) -14>Emitted(18, 48) Source(35, 64) + SourceIndex(0) -15>Emitted(18, 56) Source(35, 72) + SourceIndex(0) -16>Emitted(18, 58) Source(35, 74) + SourceIndex(0) -17>Emitted(18, 60) Source(35, 76) + SourceIndex(0) -18>Emitted(18, 62) Source(35, 78) + SourceIndex(0) -19>Emitted(18, 66) Source(35, 82) + SourceIndex(0) -20>Emitted(18, 68) Source(35, 84) + SourceIndex(0) -21>Emitted(18, 77) Source(35, 93) + SourceIndex(0) -22>Emitted(18, 79) Source(35, 95) + SourceIndex(0) -23>Emitted(18, 84) Source(35, 100) + SourceIndex(0) -24>Emitted(18, 86) Source(35, 102) + SourceIndex(0) -25>Emitted(18, 96) Source(35, 112) + SourceIndex(0) -26>Emitted(18, 98) Source(35, 114) + SourceIndex(0) -27>Emitted(18, 99) Source(35, 115) + SourceIndex(0) -28>Emitted(18, 101) Source(35, 39) + SourceIndex(0) -29>Emitted(18, 115) Source(35, 115) + SourceIndex(0) -30>Emitted(18, 117) Source(35, 39) + SourceIndex(0) -31>Emitted(18, 121) Source(35, 115) + SourceIndex(0) +1 >Emitted(41, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(41, 4) Source(35, 4) + SourceIndex(0) +3 >Emitted(41, 5) Source(35, 5) + SourceIndex(0) +4 >Emitted(41, 6) Source(35, 39) + SourceIndex(0) +5 >Emitted(41, 16) Source(35, 115) + SourceIndex(0) +6 >Emitted(41, 18) Source(35, 39) + SourceIndex(0) +7 >Emitted(41, 24) Source(35, 40) + SourceIndex(0) +8 >Emitted(41, 26) Source(35, 42) + SourceIndex(0) +9 >Emitted(41, 30) Source(35, 46) + SourceIndex(0) +10>Emitted(41, 32) Source(35, 48) + SourceIndex(0) +11>Emitted(41, 39) Source(35, 55) + SourceIndex(0) +12>Emitted(41, 41) Source(35, 57) + SourceIndex(0) +13>Emitted(41, 46) Source(35, 62) + SourceIndex(0) +14>Emitted(41, 48) Source(35, 64) + SourceIndex(0) +15>Emitted(41, 56) Source(35, 72) + SourceIndex(0) +16>Emitted(41, 58) Source(35, 74) + SourceIndex(0) +17>Emitted(41, 60) Source(35, 76) + SourceIndex(0) +18>Emitted(41, 62) Source(35, 78) + SourceIndex(0) +19>Emitted(41, 66) Source(35, 82) + SourceIndex(0) +20>Emitted(41, 68) Source(35, 84) + SourceIndex(0) +21>Emitted(41, 77) Source(35, 93) + SourceIndex(0) +22>Emitted(41, 79) Source(35, 95) + SourceIndex(0) +23>Emitted(41, 84) Source(35, 100) + SourceIndex(0) +24>Emitted(41, 86) Source(35, 102) + SourceIndex(0) +25>Emitted(41, 96) Source(35, 112) + SourceIndex(0) +26>Emitted(41, 98) Source(35, 114) + SourceIndex(0) +27>Emitted(41, 99) Source(35, 115) + SourceIndex(0) +28>Emitted(41, 101) Source(35, 39) + SourceIndex(0) +29>Emitted(41, 115) Source(35, 115) + SourceIndex(0) +30>Emitted(41, 117) Source(35, 39) + SourceIndex(0) +31>Emitted(41, 121) Source(35, 115) + SourceIndex(0) --- ->>> var _g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g; +>>> var _d = _c[_i].name, nameA = _d === void 0 ? "noName" : _d; 1 >^^^^ 2 > ^^^^ 3 > ^^^^^^^^^^^^^^^^ @@ -598,11 +634,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 3 > name: nameA = "noName" 4 > 5 > name: nameA = "noName" -1 >Emitted(19, 5) Source(35, 11) + SourceIndex(0) -2 >Emitted(19, 9) Source(35, 11) + SourceIndex(0) -3 >Emitted(19, 25) Source(35, 33) + SourceIndex(0) -4 >Emitted(19, 27) Source(35, 11) + SourceIndex(0) -5 >Emitted(19, 64) Source(35, 33) + SourceIndex(0) +1 >Emitted(42, 5) Source(35, 11) + SourceIndex(0) +2 >Emitted(42, 9) Source(35, 11) + SourceIndex(0) +3 >Emitted(42, 25) Source(35, 33) + SourceIndex(0) +4 >Emitted(42, 27) Source(35, 11) + SourceIndex(0) +5 >Emitted(42, 64) Source(35, 33) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -622,750 +658,810 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(20, 5) Source(36, 5) + SourceIndex(0) -2 >Emitted(20, 12) Source(36, 12) + SourceIndex(0) -3 >Emitted(20, 13) Source(36, 13) + SourceIndex(0) -4 >Emitted(20, 16) Source(36, 16) + SourceIndex(0) -5 >Emitted(20, 17) Source(36, 17) + SourceIndex(0) -6 >Emitted(20, 22) Source(36, 22) + SourceIndex(0) -7 >Emitted(20, 23) Source(36, 23) + SourceIndex(0) -8 >Emitted(20, 24) Source(36, 24) + SourceIndex(0) +1 >Emitted(43, 5) Source(36, 5) + SourceIndex(0) +2 >Emitted(43, 12) Source(36, 12) + SourceIndex(0) +3 >Emitted(43, 13) Source(36, 13) + SourceIndex(0) +4 >Emitted(43, 16) Source(36, 16) + SourceIndex(0) +5 >Emitted(43, 17) Source(36, 17) + SourceIndex(0) +6 >Emitted(43, 22) Source(36, 22) + SourceIndex(0) +7 >Emitted(43, 23) Source(36, 23) + SourceIndex(0) +8 >Emitted(43, 24) Source(36, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(21, 2) Source(37, 2) + SourceIndex(0) +1 >Emitted(44, 2) Source(37, 2) + SourceIndex(0) --- ->>>for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(22, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(22, 4) Source(38, 4) + SourceIndex(0) -3 >Emitted(22, 5) Source(38, 5) + SourceIndex(0) -4 >Emitted(22, 6) Source(39, 55) + SourceIndex(0) -5 >Emitted(22, 16) Source(39, 66) + SourceIndex(0) -6 >Emitted(22, 18) Source(39, 55) + SourceIndex(0) -7 >Emitted(22, 45) Source(39, 66) + SourceIndex(0) -8 >Emitted(22, 47) Source(39, 55) + SourceIndex(0) -9 >Emitted(22, 72) Source(39, 66) + SourceIndex(0) -10>Emitted(22, 74) Source(39, 55) + SourceIndex(0) -11>Emitted(22, 78) Source(39, 66) + SourceIndex(0) +2 > for +3 > +4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1->Emitted(46, 5) Source(38, 1) + SourceIndex(0) +2 >Emitted(46, 8) Source(38, 4) + SourceIndex(0) +3 >Emitted(46, 9) Source(38, 5) + SourceIndex(0) +4 >Emitted(46, 10) Source(39, 55) + SourceIndex(0) +5 >Emitted(46, 14) Source(39, 55) + SourceIndex(0) +6 >Emitted(46, 30) Source(39, 55) + SourceIndex(0) +7 >Emitted(46, 32) Source(39, 55) + SourceIndex(0) +8 >Emitted(46, 42) Source(39, 55) + SourceIndex(0) +9 >Emitted(46, 51) Source(39, 55) + SourceIndex(0) +10>Emitted(46, 62) Source(39, 66) + SourceIndex(0) +11>Emitted(46, 63) Source(39, 66) + SourceIndex(0) +12>Emitted(46, 65) Source(39, 66) + SourceIndex(0) +13>Emitted(46, 67) Source(38, 6) + SourceIndex(0) +14>Emitted(46, 88) Source(39, 51) + SourceIndex(0) --- ->>> var _j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _e = multiRobots_1.result.value.skills, _f = _e === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _e, _g = _f.primary, primaryA = _g === void 0 ? "primary" : _g, _h = _f.secondary, secondaryA = _h === void 0 ? "secondary" : _h; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -4 > -5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -6 > -7 > primary: primaryA = "primary" -8 > -9 > primary: primaryA = "primary" -10> , -11> secondary: secondaryA = "secondary" -12> -13> secondary: secondaryA = "secondary" -1->Emitted(23, 5) Source(38, 12) + SourceIndex(0) -2 >Emitted(23, 9) Source(38, 12) + SourceIndex(0) -3 >Emitted(23, 38) Source(39, 49) + SourceIndex(0) -4 >Emitted(23, 40) Source(38, 12) + SourceIndex(0) -5 >Emitted(23, 110) Source(39, 49) + SourceIndex(0) -6 >Emitted(23, 112) Source(38, 22) + SourceIndex(0) -7 >Emitted(23, 127) Source(38, 51) + SourceIndex(0) -8 >Emitted(23, 129) Source(38, 22) + SourceIndex(0) -9 >Emitted(23, 170) Source(38, 51) + SourceIndex(0) -10>Emitted(23, 172) Source(38, 53) + SourceIndex(0) -11>Emitted(23, 189) Source(38, 88) + SourceIndex(0) -12>Emitted(23, 191) Source(38, 53) + SourceIndex(0) -13>Emitted(23, 236) Source(38, 88) + SourceIndex(0) +2 > +3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +4 > +5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +6 > +7 > primary: primaryA = "primary" +8 > +9 > primary: primaryA = "primary" +10> , +11> secondary: secondaryA = "secondary" +12> +13> secondary: secondaryA = "secondary" +1->Emitted(47, 9) Source(38, 12) + SourceIndex(0) +2 >Emitted(47, 13) Source(38, 12) + SourceIndex(0) +3 >Emitted(47, 51) Source(39, 49) + SourceIndex(0) +4 >Emitted(47, 53) Source(38, 12) + SourceIndex(0) +5 >Emitted(47, 123) Source(39, 49) + SourceIndex(0) +6 >Emitted(47, 125) Source(38, 22) + SourceIndex(0) +7 >Emitted(47, 140) Source(38, 51) + SourceIndex(0) +8 >Emitted(47, 142) Source(38, 22) + SourceIndex(0) +9 >Emitted(47, 183) Source(38, 51) + SourceIndex(0) +10>Emitted(47, 185) Source(38, 53) + SourceIndex(0) +11>Emitted(47, 202) Source(38, 88) + SourceIndex(0) +12>Emitted(47, 204) Source(38, 53) + SourceIndex(0) +13>Emitted(47, 249) Source(38, 88) + SourceIndex(0) --- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } = > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(24, 5) Source(40, 5) + SourceIndex(0) -2 >Emitted(24, 12) Source(40, 12) + SourceIndex(0) -3 >Emitted(24, 13) Source(40, 13) + SourceIndex(0) -4 >Emitted(24, 16) Source(40, 16) + SourceIndex(0) -5 >Emitted(24, 17) Source(40, 17) + SourceIndex(0) -6 >Emitted(24, 25) Source(40, 25) + SourceIndex(0) -7 >Emitted(24, 26) Source(40, 26) + SourceIndex(0) -8 >Emitted(24, 27) Source(40, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(48, 9) Source(40, 5) + SourceIndex(0) +2 >Emitted(48, 16) Source(40, 12) + SourceIndex(0) +3 >Emitted(48, 17) Source(40, 13) + SourceIndex(0) +4 >Emitted(48, 20) Source(40, 16) + SourceIndex(0) +5 >Emitted(48, 21) Source(40, 17) + SourceIndex(0) +6 >Emitted(48, 29) Source(40, 25) + SourceIndex(0) +7 >Emitted(48, 30) Source(40, 26) + SourceIndex(0) +8 >Emitted(48, 31) Source(40, 27) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(25, 2) Source(41, 2) + SourceIndex(0) +1 >Emitted(49, 6) Source(41, 2) + SourceIndex(0) --- ->>>for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(26, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(26, 4) Source(42, 4) + SourceIndex(0) -3 >Emitted(26, 5) Source(42, 5) + SourceIndex(0) -4 >Emitted(26, 6) Source(43, 55) + SourceIndex(0) -5 >Emitted(26, 16) Source(43, 71) + SourceIndex(0) -6 >Emitted(26, 18) Source(43, 55) + SourceIndex(0) -7 >Emitted(26, 23) Source(43, 55) + SourceIndex(0) -8 >Emitted(26, 37) Source(43, 69) + SourceIndex(0) -9 >Emitted(26, 39) Source(43, 71) + SourceIndex(0) -10>Emitted(26, 41) Source(43, 55) + SourceIndex(0) -11>Emitted(26, 55) Source(43, 71) + SourceIndex(0) -12>Emitted(26, 57) Source(43, 55) + SourceIndex(0) -13>Emitted(26, 61) Source(43, 71) + SourceIndex(0) +2 > for +3 > +4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1 >Emitted(56, 5) Source(42, 1) + SourceIndex(0) +2 >Emitted(56, 8) Source(42, 4) + SourceIndex(0) +3 >Emitted(56, 9) Source(42, 5) + SourceIndex(0) +4 >Emitted(56, 10) Source(43, 55) + SourceIndex(0) +5 >Emitted(56, 14) Source(43, 55) + SourceIndex(0) +6 >Emitted(56, 27) Source(43, 55) + SourceIndex(0) +7 >Emitted(56, 29) Source(43, 55) + SourceIndex(0) +8 >Emitted(56, 39) Source(43, 55) + SourceIndex(0) +9 >Emitted(56, 48) Source(43, 55) + SourceIndex(0) +10>Emitted(56, 62) Source(43, 69) + SourceIndex(0) +11>Emitted(56, 64) Source(43, 71) + SourceIndex(0) +12>Emitted(56, 65) Source(43, 71) + SourceIndex(0) +13>Emitted(56, 67) Source(43, 71) + SourceIndex(0) +14>Emitted(56, 69) Source(42, 6) + SourceIndex(0) +15>Emitted(56, 87) Source(43, 51) + SourceIndex(0) --- ->>> var _q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _j = iterator_2.result.value.skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -4 > -5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -6 > -7 > primary: primaryA = "primary" -8 > -9 > primary: primaryA = "primary" -10> , -11> secondary: secondaryA = "secondary" -12> -13> secondary: secondaryA = "secondary" -1->Emitted(27, 5) Source(42, 12) + SourceIndex(0) -2 >Emitted(27, 9) Source(42, 12) + SourceIndex(0) -3 >Emitted(27, 27) Source(43, 49) + SourceIndex(0) -4 >Emitted(27, 29) Source(42, 12) + SourceIndex(0) -5 >Emitted(27, 99) Source(43, 49) + SourceIndex(0) -6 >Emitted(27, 101) Source(42, 22) + SourceIndex(0) -7 >Emitted(27, 116) Source(42, 51) + SourceIndex(0) -8 >Emitted(27, 118) Source(42, 22) + SourceIndex(0) -9 >Emitted(27, 159) Source(42, 51) + SourceIndex(0) -10>Emitted(27, 161) Source(42, 53) + SourceIndex(0) -11>Emitted(27, 178) Source(42, 88) + SourceIndex(0) -12>Emitted(27, 180) Source(42, 53) + SourceIndex(0) -13>Emitted(27, 225) Source(42, 88) + SourceIndex(0) +2 > +3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +4 > +5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +6 > +7 > primary: primaryA = "primary" +8 > +9 > primary: primaryA = "primary" +10> , +11> secondary: secondaryA = "secondary" +12> +13> secondary: secondaryA = "secondary" +1->Emitted(57, 9) Source(42, 12) + SourceIndex(0) +2 >Emitted(57, 13) Source(42, 12) + SourceIndex(0) +3 >Emitted(57, 48) Source(43, 49) + SourceIndex(0) +4 >Emitted(57, 50) Source(42, 12) + SourceIndex(0) +5 >Emitted(57, 120) Source(43, 49) + SourceIndex(0) +6 >Emitted(57, 122) Source(42, 22) + SourceIndex(0) +7 >Emitted(57, 137) Source(42, 51) + SourceIndex(0) +8 >Emitted(57, 139) Source(42, 22) + SourceIndex(0) +9 >Emitted(57, 180) Source(42, 51) + SourceIndex(0) +10>Emitted(57, 182) Source(42, 53) + SourceIndex(0) +11>Emitted(57, 199) Source(42, 88) + SourceIndex(0) +12>Emitted(57, 201) Source(42, 53) + SourceIndex(0) +13>Emitted(57, 246) Source(42, 88) + SourceIndex(0) --- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } = > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(28, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(28, 12) Source(44, 12) + SourceIndex(0) -3 >Emitted(28, 13) Source(44, 13) + SourceIndex(0) -4 >Emitted(28, 16) Source(44, 16) + SourceIndex(0) -5 >Emitted(28, 17) Source(44, 17) + SourceIndex(0) -6 >Emitted(28, 25) Source(44, 25) + SourceIndex(0) -7 >Emitted(28, 26) Source(44, 26) + SourceIndex(0) -8 >Emitted(28, 27) Source(44, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(58, 9) Source(44, 5) + SourceIndex(0) +2 >Emitted(58, 16) Source(44, 12) + SourceIndex(0) +3 >Emitted(58, 17) Source(44, 13) + SourceIndex(0) +4 >Emitted(58, 20) Source(44, 16) + SourceIndex(0) +5 >Emitted(58, 21) Source(44, 17) + SourceIndex(0) +6 >Emitted(58, 29) Source(44, 25) + SourceIndex(0) +7 >Emitted(58, 30) Source(44, 26) + SourceIndex(0) +8 >Emitted(58, 31) Source(44, 27) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(29, 2) Source(45, 2) + SourceIndex(0) +1 >Emitted(59, 6) Source(45, 2) + SourceIndex(0) --- ->>>for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^ -9 > ^^ -10> ^^^^ -11> ^^ -12> ^^^^^^^ -13> ^^ -14> ^^^^^^ -15> ^^ -16> ^^ -17> ^^^^^^^ -18> ^^ -19> ^^^^^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^^ -24> ^^ -25> ^^ -26> ^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^ +11> ^^ +12> ^^^^ +13> ^^ +14> ^^^^^^^ +15> ^^ +16> ^^^^^^ +17> ^^ +18> ^^ +19> ^^^^^^^ +20> ^^ +21> ^^^^^^^^ +22> ^^ +23> ^^^^^^^^^ +24> ^^ +25> ^^^^^^ +26> ^^ +27> ^^ +1 > > -2 >for -3 > -4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > -5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -6 > -7 > -8 > [ -9 > { -10> name -11> : -12> "mower" -13> , -14> skills -15> : -16> { -17> primary -18> : -19> "mowing" -20> , -21> secondary -22> : -23> "none" -24> } -25> } -1->Emitted(30, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(30, 4) Source(46, 4) + SourceIndex(0) -3 >Emitted(30, 5) Source(46, 5) + SourceIndex(0) -4 >Emitted(30, 6) Source(48, 5) + SourceIndex(0) -5 >Emitted(30, 16) Source(49, 79) + SourceIndex(0) -6 >Emitted(30, 18) Source(48, 5) + SourceIndex(0) -7 >Emitted(30, 23) Source(48, 19) + SourceIndex(0) -8 >Emitted(30, 24) Source(48, 20) + SourceIndex(0) -9 >Emitted(30, 26) Source(48, 22) + SourceIndex(0) -10>Emitted(30, 30) Source(48, 26) + SourceIndex(0) -11>Emitted(30, 32) Source(48, 28) + SourceIndex(0) -12>Emitted(30, 39) Source(48, 35) + SourceIndex(0) -13>Emitted(30, 41) Source(48, 37) + SourceIndex(0) -14>Emitted(30, 47) Source(48, 43) + SourceIndex(0) -15>Emitted(30, 49) Source(48, 45) + SourceIndex(0) -16>Emitted(30, 51) Source(48, 47) + SourceIndex(0) -17>Emitted(30, 58) Source(48, 54) + SourceIndex(0) -18>Emitted(30, 60) Source(48, 56) + SourceIndex(0) -19>Emitted(30, 68) Source(48, 64) + SourceIndex(0) -20>Emitted(30, 70) Source(48, 66) + SourceIndex(0) -21>Emitted(30, 79) Source(48, 75) + SourceIndex(0) -22>Emitted(30, 81) Source(48, 77) + SourceIndex(0) -23>Emitted(30, 87) Source(48, 83) + SourceIndex(0) -24>Emitted(30, 89) Source(48, 85) + SourceIndex(0) -25>Emitted(30, 91) Source(48, 87) + SourceIndex(0) +2 > for +3 > +4 > (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of + > +5 > +6 > +7 > +8 > +9 > +10> [ +11> { +12> name +13> : +14> "mower" +15> , +16> skills +17> : +18> { +19> primary +20> : +21> "mowing" +22> , +23> secondary +24> : +25> "none" +26> } +27> } +1 >Emitted(66, 5) Source(46, 1) + SourceIndex(0) +2 >Emitted(66, 8) Source(46, 4) + SourceIndex(0) +3 >Emitted(66, 9) Source(46, 5) + SourceIndex(0) +4 >Emitted(66, 10) Source(48, 5) + SourceIndex(0) +5 >Emitted(66, 14) Source(48, 5) + SourceIndex(0) +6 >Emitted(66, 27) Source(48, 5) + SourceIndex(0) +7 >Emitted(66, 29) Source(48, 5) + SourceIndex(0) +8 >Emitted(66, 39) Source(48, 5) + SourceIndex(0) +9 >Emitted(66, 48) Source(48, 19) + SourceIndex(0) +10>Emitted(66, 49) Source(48, 20) + SourceIndex(0) +11>Emitted(66, 51) Source(48, 22) + SourceIndex(0) +12>Emitted(66, 55) Source(48, 26) + SourceIndex(0) +13>Emitted(66, 57) Source(48, 28) + SourceIndex(0) +14>Emitted(66, 64) Source(48, 35) + SourceIndex(0) +15>Emitted(66, 66) Source(48, 37) + SourceIndex(0) +16>Emitted(66, 72) Source(48, 43) + SourceIndex(0) +17>Emitted(66, 74) Source(48, 45) + SourceIndex(0) +18>Emitted(66, 76) Source(48, 47) + SourceIndex(0) +19>Emitted(66, 83) Source(48, 54) + SourceIndex(0) +20>Emitted(66, 85) Source(48, 56) + SourceIndex(0) +21>Emitted(66, 93) Source(48, 64) + SourceIndex(0) +22>Emitted(66, 95) Source(48, 66) + SourceIndex(0) +23>Emitted(66, 104) Source(48, 75) + SourceIndex(0) +24>Emitted(66, 106) Source(48, 77) + SourceIndex(0) +25>Emitted(66, 112) Source(48, 83) + SourceIndex(0) +26>Emitted(66, 114) Source(48, 85) + SourceIndex(0) +27>Emitted(66, 116) Source(48, 87) + SourceIndex(0) --- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) { -1->^^^^ -2 > ^^ -3 > ^^^^ -4 > ^^ -5 > ^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^ -10> ^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^ -15> ^^ -16> ^^^^^^^^ -17> ^^ -18> ^^ -19> ^ -20> ^^ -21> ^^^^^^^^^^^^^^ -22> ^^ -23> ^^^^ -24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_3);) { +1 >^^^^^^^^^^^^ +2 > ^^ +3 > ^^^^ +4 > ^^ +5 > ^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^ +10> ^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^ +15> ^^ +16> ^^^^^^^^ +17> ^^ +18> ^^ +19> ^ +20> ^ +21> ^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >, > -2 > { -3 > name -4 > : -5 > "trimmer" -6 > , -7 > skills -8 > : -9 > { -10> primary -11> : -12> "trimming" -13> , -14> secondary -15> : -16> "edging" -17> } -18> } -19> ] -20> -21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(31, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(31, 7) Source(49, 7) + SourceIndex(0) -3 >Emitted(31, 11) Source(49, 11) + SourceIndex(0) -4 >Emitted(31, 13) Source(49, 13) + SourceIndex(0) -5 >Emitted(31, 22) Source(49, 22) + SourceIndex(0) -6 >Emitted(31, 24) Source(49, 24) + SourceIndex(0) -7 >Emitted(31, 30) Source(49, 30) + SourceIndex(0) -8 >Emitted(31, 32) Source(49, 32) + SourceIndex(0) -9 >Emitted(31, 34) Source(49, 34) + SourceIndex(0) -10>Emitted(31, 41) Source(49, 41) + SourceIndex(0) -11>Emitted(31, 43) Source(49, 43) + SourceIndex(0) -12>Emitted(31, 53) Source(49, 53) + SourceIndex(0) -13>Emitted(31, 55) Source(49, 55) + SourceIndex(0) -14>Emitted(31, 64) Source(49, 64) + SourceIndex(0) -15>Emitted(31, 66) Source(49, 66) + SourceIndex(0) -16>Emitted(31, 74) Source(49, 74) + SourceIndex(0) -17>Emitted(31, 76) Source(49, 76) + SourceIndex(0) -18>Emitted(31, 78) Source(49, 78) + SourceIndex(0) -19>Emitted(31, 79) Source(49, 79) + SourceIndex(0) -20>Emitted(31, 81) Source(48, 5) + SourceIndex(0) -21>Emitted(31, 95) Source(49, 79) + SourceIndex(0) -22>Emitted(31, 97) Source(48, 5) + SourceIndex(0) -23>Emitted(31, 101) Source(49, 79) + SourceIndex(0) +2 > { +3 > name +4 > : +5 > "trimmer" +6 > , +7 > skills +8 > : +9 > { +10> primary +11> : +12> "trimming" +13> , +14> secondary +15> : +16> "edging" +17> } +18> } +19> ] +20> +21> +22> +23> let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1 >Emitted(67, 13) Source(49, 5) + SourceIndex(0) +2 >Emitted(67, 15) Source(49, 7) + SourceIndex(0) +3 >Emitted(67, 19) Source(49, 11) + SourceIndex(0) +4 >Emitted(67, 21) Source(49, 13) + SourceIndex(0) +5 >Emitted(67, 30) Source(49, 22) + SourceIndex(0) +6 >Emitted(67, 32) Source(49, 24) + SourceIndex(0) +7 >Emitted(67, 38) Source(49, 30) + SourceIndex(0) +8 >Emitted(67, 40) Source(49, 32) + SourceIndex(0) +9 >Emitted(67, 42) Source(49, 34) + SourceIndex(0) +10>Emitted(67, 49) Source(49, 41) + SourceIndex(0) +11>Emitted(67, 51) Source(49, 43) + SourceIndex(0) +12>Emitted(67, 61) Source(49, 53) + SourceIndex(0) +13>Emitted(67, 63) Source(49, 55) + SourceIndex(0) +14>Emitted(67, 72) Source(49, 64) + SourceIndex(0) +15>Emitted(67, 74) Source(49, 66) + SourceIndex(0) +16>Emitted(67, 82) Source(49, 74) + SourceIndex(0) +17>Emitted(67, 84) Source(49, 76) + SourceIndex(0) +18>Emitted(67, 86) Source(49, 78) + SourceIndex(0) +19>Emitted(67, 87) Source(49, 79) + SourceIndex(0) +20>Emitted(67, 88) Source(49, 79) + SourceIndex(0) +21>Emitted(67, 90) Source(49, 79) + SourceIndex(0) +22>Emitted(67, 92) Source(46, 6) + SourceIndex(0) +23>Emitted(67, 110) Source(47, 51) + SourceIndex(0) --- ->>> var _w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _o = iterator_3.result.value.skills, _p = _o === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _o, _q = _p.primary, primaryA = _q === void 0 ? "primary" : _q, _r = _p.secondary, secondaryA = _r === void 0 ? "secondary" : _r; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -4 > -5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -6 > -7 > primary: primaryA = "primary" -8 > -9 > primary: primaryA = "primary" -10> , -11> secondary: secondaryA = "secondary" -12> -13> secondary: secondaryA = "secondary" -1->Emitted(32, 5) Source(46, 12) + SourceIndex(0) -2 >Emitted(32, 9) Source(46, 12) + SourceIndex(0) -3 >Emitted(32, 27) Source(47, 49) + SourceIndex(0) -4 >Emitted(32, 29) Source(46, 12) + SourceIndex(0) -5 >Emitted(32, 99) Source(47, 49) + SourceIndex(0) -6 >Emitted(32, 101) Source(46, 22) + SourceIndex(0) -7 >Emitted(32, 116) Source(46, 51) + SourceIndex(0) -8 >Emitted(32, 118) Source(46, 22) + SourceIndex(0) -9 >Emitted(32, 159) Source(46, 51) + SourceIndex(0) -10>Emitted(32, 161) Source(46, 53) + SourceIndex(0) -11>Emitted(32, 178) Source(46, 88) + SourceIndex(0) -12>Emitted(32, 180) Source(46, 53) + SourceIndex(0) -13>Emitted(32, 225) Source(46, 88) + SourceIndex(0) +2 > +3 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +4 > +5 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +6 > +7 > primary: primaryA = "primary" +8 > +9 > primary: primaryA = "primary" +10> , +11> secondary: secondaryA = "secondary" +12> +13> secondary: secondaryA = "secondary" +1->Emitted(68, 9) Source(46, 12) + SourceIndex(0) +2 >Emitted(68, 13) Source(46, 12) + SourceIndex(0) +3 >Emitted(68, 48) Source(47, 49) + SourceIndex(0) +4 >Emitted(68, 50) Source(46, 12) + SourceIndex(0) +5 >Emitted(68, 120) Source(47, 49) + SourceIndex(0) +6 >Emitted(68, 122) Source(46, 22) + SourceIndex(0) +7 >Emitted(68, 137) Source(46, 51) + SourceIndex(0) +8 >Emitted(68, 139) Source(46, 22) + SourceIndex(0) +9 >Emitted(68, 180) Source(46, 51) + SourceIndex(0) +10>Emitted(68, 182) Source(46, 53) + SourceIndex(0) +11>Emitted(68, 199) Source(46, 88) + SourceIndex(0) +12>Emitted(68, 201) Source(46, 53) + SourceIndex(0) +13>Emitted(68, 246) Source(46, 88) + SourceIndex(0) --- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ 1 > } = > { primary: "nosKill", secondary: "noSkill" } } of > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(33, 5) Source(50, 5) + SourceIndex(0) -2 >Emitted(33, 12) Source(50, 12) + SourceIndex(0) -3 >Emitted(33, 13) Source(50, 13) + SourceIndex(0) -4 >Emitted(33, 16) Source(50, 16) + SourceIndex(0) -5 >Emitted(33, 17) Source(50, 17) + SourceIndex(0) -6 >Emitted(33, 25) Source(50, 25) + SourceIndex(0) -7 >Emitted(33, 26) Source(50, 26) + SourceIndex(0) -8 >Emitted(33, 27) Source(50, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(69, 9) Source(50, 5) + SourceIndex(0) +2 >Emitted(69, 16) Source(50, 12) + SourceIndex(0) +3 >Emitted(69, 17) Source(50, 13) + SourceIndex(0) +4 >Emitted(69, 20) Source(50, 16) + SourceIndex(0) +5 >Emitted(69, 21) Source(50, 17) + SourceIndex(0) +6 >Emitted(69, 29) Source(50, 25) + SourceIndex(0) +7 >Emitted(69, 30) Source(50, 26) + SourceIndex(0) +8 >Emitted(69, 31) Source(50, 27) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(34, 2) Source(51, 2) + SourceIndex(0) +1 >Emitted(70, 6) Source(51, 2) + SourceIndex(0) --- ->>>for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > > -2 >for -3 > -4 > (let {name: nameA = "noName", skill: skillA = "noSkill" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(35, 1) Source(53, 1) + SourceIndex(0) -2 >Emitted(35, 4) Source(53, 4) + SourceIndex(0) -3 >Emitted(35, 5) Source(53, 5) + SourceIndex(0) -4 >Emitted(35, 6) Source(53, 66) + SourceIndex(0) -5 >Emitted(35, 16) Source(53, 72) + SourceIndex(0) -6 >Emitted(35, 18) Source(53, 66) + SourceIndex(0) -7 >Emitted(35, 35) Source(53, 72) + SourceIndex(0) -8 >Emitted(35, 37) Source(53, 66) + SourceIndex(0) -9 >Emitted(35, 57) Source(53, 72) + SourceIndex(0) -10>Emitted(35, 59) Source(53, 66) + SourceIndex(0) -11>Emitted(35, 63) Source(53, 72) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA = "noName", skill: skillA = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> let {name: nameA = "noName", skill: skillA = "noSkill" } +1 >Emitted(77, 5) Source(53, 1) + SourceIndex(0) +2 >Emitted(77, 8) Source(53, 4) + SourceIndex(0) +3 >Emitted(77, 9) Source(53, 5) + SourceIndex(0) +4 >Emitted(77, 10) Source(53, 66) + SourceIndex(0) +5 >Emitted(77, 14) Source(53, 66) + SourceIndex(0) +6 >Emitted(77, 25) Source(53, 66) + SourceIndex(0) +7 >Emitted(77, 27) Source(53, 66) + SourceIndex(0) +8 >Emitted(77, 37) Source(53, 66) + SourceIndex(0) +9 >Emitted(77, 46) Source(53, 66) + SourceIndex(0) +10>Emitted(77, 52) Source(53, 72) + SourceIndex(0) +11>Emitted(77, 53) Source(53, 72) + SourceIndex(0) +12>Emitted(77, 55) Source(53, 72) + SourceIndex(0) +13>Emitted(77, 57) Source(53, 6) + SourceIndex(0) +14>Emitted(77, 73) Source(53, 62) + SourceIndex(0) --- ->>> var _1 = robots_2[_0], _2 = _1.name, nameA = _2 === void 0 ? "noName" : _2, _3 = _1.skill, skillA = _3 === void 0 ? "noSkill" : _3; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _s = robots_2.result.value, _t = _s.name, nameA = _t === void 0 ? "noName" : _t, _u = _s.skill, skillA = _u === void 0 ? "noSkill" : _u; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > {name: nameA = "noName", skill: skillA = "noSkill" } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , -9 > skill: skillA = "noSkill" -10> -11> skill: skillA = "noSkill" -1->Emitted(36, 5) Source(53, 10) + SourceIndex(0) -2 >Emitted(36, 9) Source(53, 10) + SourceIndex(0) -3 >Emitted(36, 26) Source(53, 62) + SourceIndex(0) -4 >Emitted(36, 28) Source(53, 11) + SourceIndex(0) -5 >Emitted(36, 40) Source(53, 33) + SourceIndex(0) -6 >Emitted(36, 42) Source(53, 11) + SourceIndex(0) -7 >Emitted(36, 79) Source(53, 33) + SourceIndex(0) -8 >Emitted(36, 81) Source(53, 35) + SourceIndex(0) -9 >Emitted(36, 94) Source(53, 60) + SourceIndex(0) -10>Emitted(36, 96) Source(53, 35) + SourceIndex(0) -11>Emitted(36, 135) Source(53, 60) + SourceIndex(0) +2 > +3 > {name: nameA = "noName", skill: skillA = "noSkill" } +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , +9 > skill: skillA = "noSkill" +10> +11> skill: skillA = "noSkill" +1->Emitted(78, 9) Source(53, 10) + SourceIndex(0) +2 >Emitted(78, 13) Source(53, 10) + SourceIndex(0) +3 >Emitted(78, 39) Source(53, 62) + SourceIndex(0) +4 >Emitted(78, 41) Source(53, 11) + SourceIndex(0) +5 >Emitted(78, 53) Source(53, 33) + SourceIndex(0) +6 >Emitted(78, 55) Source(53, 11) + SourceIndex(0) +7 >Emitted(78, 92) Source(53, 33) + SourceIndex(0) +8 >Emitted(78, 94) Source(53, 35) + SourceIndex(0) +9 >Emitted(78, 107) Source(53, 60) + SourceIndex(0) +10>Emitted(78, 109) Source(53, 35) + SourceIndex(0) +11>Emitted(78, 148) Source(53, 60) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(37, 5) Source(54, 5) + SourceIndex(0) -2 >Emitted(37, 12) Source(54, 12) + SourceIndex(0) -3 >Emitted(37, 13) Source(54, 13) + SourceIndex(0) -4 >Emitted(37, 16) Source(54, 16) + SourceIndex(0) -5 >Emitted(37, 17) Source(54, 17) + SourceIndex(0) -6 >Emitted(37, 22) Source(54, 22) + SourceIndex(0) -7 >Emitted(37, 23) Source(54, 23) + SourceIndex(0) -8 >Emitted(37, 24) Source(54, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(79, 9) Source(54, 5) + SourceIndex(0) +2 >Emitted(79, 16) Source(54, 12) + SourceIndex(0) +3 >Emitted(79, 17) Source(54, 13) + SourceIndex(0) +4 >Emitted(79, 20) Source(54, 16) + SourceIndex(0) +5 >Emitted(79, 21) Source(54, 17) + SourceIndex(0) +6 >Emitted(79, 26) Source(54, 22) + SourceIndex(0) +7 >Emitted(79, 27) Source(54, 23) + SourceIndex(0) +8 >Emitted(79, 28) Source(54, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(38, 2) Source(55, 2) + SourceIndex(0) +1 >Emitted(80, 6) Source(55, 2) + SourceIndex(0) --- ->>>for (var _4 = 0, _5 = getRobots(); _4 < _5.length; _4++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_6) throw e_6.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let {name: nameA = "noName", skill: skillA = "noSkill" } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(39, 1) Source(56, 1) + SourceIndex(0) -2 >Emitted(39, 4) Source(56, 4) + SourceIndex(0) -3 >Emitted(39, 5) Source(56, 5) + SourceIndex(0) -4 >Emitted(39, 6) Source(56, 67) + SourceIndex(0) -5 >Emitted(39, 16) Source(56, 78) + SourceIndex(0) -6 >Emitted(39, 18) Source(56, 67) + SourceIndex(0) -7 >Emitted(39, 23) Source(56, 67) + SourceIndex(0) -8 >Emitted(39, 32) Source(56, 76) + SourceIndex(0) -9 >Emitted(39, 34) Source(56, 78) + SourceIndex(0) -10>Emitted(39, 36) Source(56, 67) + SourceIndex(0) -11>Emitted(39, 50) Source(56, 78) + SourceIndex(0) -12>Emitted(39, 52) Source(56, 67) + SourceIndex(0) -13>Emitted(39, 56) Source(56, 78) + SourceIndex(0) +2 > for +3 > +4 > (let {name: nameA = "noName", skill: skillA = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> let {name: nameA = "noName", skill: skillA = "noSkill" } +1 >Emitted(87, 5) Source(56, 1) + SourceIndex(0) +2 >Emitted(87, 8) Source(56, 4) + SourceIndex(0) +3 >Emitted(87, 9) Source(56, 5) + SourceIndex(0) +4 >Emitted(87, 10) Source(56, 67) + SourceIndex(0) +5 >Emitted(87, 14) Source(56, 67) + SourceIndex(0) +6 >Emitted(87, 27) Source(56, 67) + SourceIndex(0) +7 >Emitted(87, 29) Source(56, 67) + SourceIndex(0) +8 >Emitted(87, 39) Source(56, 67) + SourceIndex(0) +9 >Emitted(87, 48) Source(56, 67) + SourceIndex(0) +10>Emitted(87, 57) Source(56, 76) + SourceIndex(0) +11>Emitted(87, 59) Source(56, 78) + SourceIndex(0) +12>Emitted(87, 60) Source(56, 78) + SourceIndex(0) +13>Emitted(87, 62) Source(56, 78) + SourceIndex(0) +14>Emitted(87, 64) Source(56, 6) + SourceIndex(0) +15>Emitted(87, 82) Source(56, 63) + SourceIndex(0) --- ->>> var _6 = _5[_4], _7 = _6.name, nameA = _7 === void 0 ? "noName" : _7, _8 = _6.skill, skillA = _8 === void 0 ? "noSkill" : _8; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>>> var _v = iterator_4.result.value, _w = _v.name, nameA = _w === void 0 ? "noName" : _w, _x = _v.skill, skillA = _x === void 0 ? "noSkill" : _x; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > -3 > {name: nameA = "noName", skill: skillA = "noSkill" } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , -9 > skill: skillA = "noSkill" -10> -11> skill: skillA = "noSkill" -1->Emitted(40, 5) Source(56, 10) + SourceIndex(0) -2 >Emitted(40, 9) Source(56, 10) + SourceIndex(0) -3 >Emitted(40, 20) Source(56, 63) + SourceIndex(0) -4 >Emitted(40, 22) Source(56, 11) + SourceIndex(0) -5 >Emitted(40, 34) Source(56, 33) + SourceIndex(0) -6 >Emitted(40, 36) Source(56, 11) + SourceIndex(0) -7 >Emitted(40, 73) Source(56, 33) + SourceIndex(0) -8 >Emitted(40, 75) Source(56, 35) + SourceIndex(0) -9 >Emitted(40, 88) Source(56, 60) + SourceIndex(0) -10>Emitted(40, 90) Source(56, 35) + SourceIndex(0) -11>Emitted(40, 129) Source(56, 60) + SourceIndex(0) +2 > +3 > {name: nameA = "noName", skill: skillA = "noSkill" } +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , +9 > skill: skillA = "noSkill" +10> +11> skill: skillA = "noSkill" +1->Emitted(88, 9) Source(56, 10) + SourceIndex(0) +2 >Emitted(88, 13) Source(56, 10) + SourceIndex(0) +3 >Emitted(88, 41) Source(56, 63) + SourceIndex(0) +4 >Emitted(88, 43) Source(56, 11) + SourceIndex(0) +5 >Emitted(88, 55) Source(56, 33) + SourceIndex(0) +6 >Emitted(88, 57) Source(56, 11) + SourceIndex(0) +7 >Emitted(88, 94) Source(56, 33) + SourceIndex(0) +8 >Emitted(88, 96) Source(56, 35) + SourceIndex(0) +9 >Emitted(88, 109) Source(56, 60) + SourceIndex(0) +10>Emitted(88, 111) Source(56, 35) + SourceIndex(0) +11>Emitted(88, 150) Source(56, 60) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(41, 5) Source(57, 5) + SourceIndex(0) -2 >Emitted(41, 12) Source(57, 12) + SourceIndex(0) -3 >Emitted(41, 13) Source(57, 13) + SourceIndex(0) -4 >Emitted(41, 16) Source(57, 16) + SourceIndex(0) -5 >Emitted(41, 17) Source(57, 17) + SourceIndex(0) -6 >Emitted(41, 22) Source(57, 22) + SourceIndex(0) -7 >Emitted(41, 23) Source(57, 23) + SourceIndex(0) -8 >Emitted(41, 24) Source(57, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(89, 9) Source(57, 5) + SourceIndex(0) +2 >Emitted(89, 16) Source(57, 12) + SourceIndex(0) +3 >Emitted(89, 17) Source(57, 13) + SourceIndex(0) +4 >Emitted(89, 20) Source(57, 16) + SourceIndex(0) +5 >Emitted(89, 21) Source(57, 17) + SourceIndex(0) +6 >Emitted(89, 26) Source(57, 22) + SourceIndex(0) +7 >Emitted(89, 27) Source(57, 23) + SourceIndex(0) +8 >Emitted(89, 28) Source(57, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(42, 2) Source(58, 2) + SourceIndex(0) +1 >Emitted(90, 6) Source(58, 2) + SourceIndex(0) --- ->>>for (var _9 = 0, _10 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _9 < _10.length; _9++) { -1-> +>>>} +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_7) throw e_7.error; } +>>>} +>>>for (var _y = 0, _z = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _y < _z.length; _y++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^ -15> ^^^^^^^^ -16> ^^ -17> ^^ -18> ^^ -19> ^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^ -25> ^^^^^^^^^^ -26> ^^ -27> ^ -28> ^^ -29> ^^^^^^^^^^^^^^^ -30> ^^ -31> ^^^^ -32> ^^^^^^^^^^^^^^^^^^-> -1-> +7 > ^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^ +14> ^^ +15> ^^^^^^^^ +16> ^^ +17> ^^ +18> ^^ +19> ^^^^ +20> ^^ +21> ^^^^^^^^^ +22> ^^ +23> ^^^^^ +24> ^^ +25> ^^^^^^^^^^ +26> ^^ +27> ^ +28> ^^ +29> ^^^^^^^^^^^^^^ +30> ^^ +31> ^^^^ +32> ^^^^^^^^^^-> +1 > > 2 >for 3 > @@ -1373,96 +1469,96 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 6 > 7 > [ -8 > { -9 > name -10> : -11> "mower" -12> , -13> skill -14> : -15> "mowing" -16> } -17> , -18> { -19> name -20> : -21> "trimmer" -22> , -23> skill -24> : -25> "trimming" -26> } -27> ] -28> -29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -30> -31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(43, 1) Source(59, 1) + SourceIndex(0) -2 >Emitted(43, 4) Source(59, 4) + SourceIndex(0) -3 >Emitted(43, 5) Source(59, 5) + SourceIndex(0) -4 >Emitted(43, 6) Source(59, 67) + SourceIndex(0) -5 >Emitted(43, 16) Source(59, 143) + SourceIndex(0) -6 >Emitted(43, 18) Source(59, 67) + SourceIndex(0) -7 >Emitted(43, 25) Source(59, 68) + SourceIndex(0) -8 >Emitted(43, 27) Source(59, 70) + SourceIndex(0) -9 >Emitted(43, 31) Source(59, 74) + SourceIndex(0) -10>Emitted(43, 33) Source(59, 76) + SourceIndex(0) -11>Emitted(43, 40) Source(59, 83) + SourceIndex(0) -12>Emitted(43, 42) Source(59, 85) + SourceIndex(0) -13>Emitted(43, 47) Source(59, 90) + SourceIndex(0) -14>Emitted(43, 49) Source(59, 92) + SourceIndex(0) -15>Emitted(43, 57) Source(59, 100) + SourceIndex(0) -16>Emitted(43, 59) Source(59, 102) + SourceIndex(0) -17>Emitted(43, 61) Source(59, 104) + SourceIndex(0) -18>Emitted(43, 63) Source(59, 106) + SourceIndex(0) -19>Emitted(43, 67) Source(59, 110) + SourceIndex(0) -20>Emitted(43, 69) Source(59, 112) + SourceIndex(0) -21>Emitted(43, 78) Source(59, 121) + SourceIndex(0) -22>Emitted(43, 80) Source(59, 123) + SourceIndex(0) -23>Emitted(43, 85) Source(59, 128) + SourceIndex(0) -24>Emitted(43, 87) Source(59, 130) + SourceIndex(0) -25>Emitted(43, 97) Source(59, 140) + SourceIndex(0) -26>Emitted(43, 99) Source(59, 142) + SourceIndex(0) -27>Emitted(43, 100) Source(59, 143) + SourceIndex(0) -28>Emitted(43, 102) Source(59, 67) + SourceIndex(0) -29>Emitted(43, 117) Source(59, 143) + SourceIndex(0) -30>Emitted(43, 119) Source(59, 67) + SourceIndex(0) -31>Emitted(43, 123) Source(59, 143) + SourceIndex(0) +8 > { +9 > name +10> : +11> "mower" +12> , +13> skill +14> : +15> "mowing" +16> } +17> , +18> { +19> name +20> : +21> "trimmer" +22> , +23> skill +24> : +25> "trimming" +26> } +27> ] +28> +29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +30> +31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +1 >Emitted(96, 1) Source(59, 1) + SourceIndex(0) +2 >Emitted(96, 4) Source(59, 4) + SourceIndex(0) +3 >Emitted(96, 5) Source(59, 5) + SourceIndex(0) +4 >Emitted(96, 6) Source(59, 67) + SourceIndex(0) +5 >Emitted(96, 16) Source(59, 143) + SourceIndex(0) +6 >Emitted(96, 18) Source(59, 67) + SourceIndex(0) +7 >Emitted(96, 24) Source(59, 68) + SourceIndex(0) +8 >Emitted(96, 26) Source(59, 70) + SourceIndex(0) +9 >Emitted(96, 30) Source(59, 74) + SourceIndex(0) +10>Emitted(96, 32) Source(59, 76) + SourceIndex(0) +11>Emitted(96, 39) Source(59, 83) + SourceIndex(0) +12>Emitted(96, 41) Source(59, 85) + SourceIndex(0) +13>Emitted(96, 46) Source(59, 90) + SourceIndex(0) +14>Emitted(96, 48) Source(59, 92) + SourceIndex(0) +15>Emitted(96, 56) Source(59, 100) + SourceIndex(0) +16>Emitted(96, 58) Source(59, 102) + SourceIndex(0) +17>Emitted(96, 60) Source(59, 104) + SourceIndex(0) +18>Emitted(96, 62) Source(59, 106) + SourceIndex(0) +19>Emitted(96, 66) Source(59, 110) + SourceIndex(0) +20>Emitted(96, 68) Source(59, 112) + SourceIndex(0) +21>Emitted(96, 77) Source(59, 121) + SourceIndex(0) +22>Emitted(96, 79) Source(59, 123) + SourceIndex(0) +23>Emitted(96, 84) Source(59, 128) + SourceIndex(0) +24>Emitted(96, 86) Source(59, 130) + SourceIndex(0) +25>Emitted(96, 96) Source(59, 140) + SourceIndex(0) +26>Emitted(96, 98) Source(59, 142) + SourceIndex(0) +27>Emitted(96, 99) Source(59, 143) + SourceIndex(0) +28>Emitted(96, 101) Source(59, 67) + SourceIndex(0) +29>Emitted(96, 115) Source(59, 143) + SourceIndex(0) +30>Emitted(96, 117) Source(59, 67) + SourceIndex(0) +31>Emitted(96, 121) Source(59, 143) + SourceIndex(0) --- ->>> var _11 = _10[_9], _12 = _11.name, nameA = _12 === void 0 ? "noName" : _12, _13 = _11.skill, skillA = _13 === void 0 ? "noSkill" : _13; +>>> var _0 = _z[_y], _1 = _0.name, nameA = _1 === void 0 ? "noName" : _1, _2 = _0.skill, skillA = _2 === void 0 ? "noSkill" : _2; 1->^^^^ 2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > 3 > {name: nameA = "noName", skill: skillA = "noSkill" } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , -9 > skill: skillA = "noSkill" -10> -11> skill: skillA = "noSkill" -1->Emitted(44, 5) Source(59, 10) + SourceIndex(0) -2 >Emitted(44, 9) Source(59, 10) + SourceIndex(0) -3 >Emitted(44, 22) Source(59, 63) + SourceIndex(0) -4 >Emitted(44, 24) Source(59, 11) + SourceIndex(0) -5 >Emitted(44, 38) Source(59, 33) + SourceIndex(0) -6 >Emitted(44, 40) Source(59, 11) + SourceIndex(0) -7 >Emitted(44, 79) Source(59, 33) + SourceIndex(0) -8 >Emitted(44, 81) Source(59, 35) + SourceIndex(0) -9 >Emitted(44, 96) Source(59, 60) + SourceIndex(0) -10>Emitted(44, 98) Source(59, 35) + SourceIndex(0) -11>Emitted(44, 139) Source(59, 60) + SourceIndex(0) +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , +9 > skill: skillA = "noSkill" +10> +11> skill: skillA = "noSkill" +1->Emitted(97, 5) Source(59, 10) + SourceIndex(0) +2 >Emitted(97, 9) Source(59, 10) + SourceIndex(0) +3 >Emitted(97, 20) Source(59, 63) + SourceIndex(0) +4 >Emitted(97, 22) Source(59, 11) + SourceIndex(0) +5 >Emitted(97, 34) Source(59, 33) + SourceIndex(0) +6 >Emitted(97, 36) Source(59, 11) + SourceIndex(0) +7 >Emitted(97, 73) Source(59, 33) + SourceIndex(0) +8 >Emitted(97, 75) Source(59, 35) + SourceIndex(0) +9 >Emitted(97, 88) Source(59, 60) + SourceIndex(0) +10>Emitted(97, 90) Source(59, 35) + SourceIndex(0) +11>Emitted(97, 129) Source(59, 60) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -1482,601 +1578,652 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(45, 5) Source(60, 5) + SourceIndex(0) -2 >Emitted(45, 12) Source(60, 12) + SourceIndex(0) -3 >Emitted(45, 13) Source(60, 13) + SourceIndex(0) -4 >Emitted(45, 16) Source(60, 16) + SourceIndex(0) -5 >Emitted(45, 17) Source(60, 17) + SourceIndex(0) -6 >Emitted(45, 22) Source(60, 22) + SourceIndex(0) -7 >Emitted(45, 23) Source(60, 23) + SourceIndex(0) -8 >Emitted(45, 24) Source(60, 24) + SourceIndex(0) +1 >Emitted(98, 5) Source(60, 5) + SourceIndex(0) +2 >Emitted(98, 12) Source(60, 12) + SourceIndex(0) +3 >Emitted(98, 13) Source(60, 13) + SourceIndex(0) +4 >Emitted(98, 16) Source(60, 16) + SourceIndex(0) +5 >Emitted(98, 17) Source(60, 17) + SourceIndex(0) +6 >Emitted(98, 22) Source(60, 22) + SourceIndex(0) +7 >Emitted(98, 23) Source(60, 23) + SourceIndex(0) +8 >Emitted(98, 24) Source(60, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(46, 2) Source(61, 2) + SourceIndex(0) +1 >Emitted(99, 2) Source(61, 2) + SourceIndex(0) --- ->>>for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(47, 1) Source(62, 1) + SourceIndex(0) -2 >Emitted(47, 4) Source(62, 4) + SourceIndex(0) -3 >Emitted(47, 5) Source(62, 5) + SourceIndex(0) -4 >Emitted(47, 6) Source(68, 6) + SourceIndex(0) -5 >Emitted(47, 17) Source(68, 17) + SourceIndex(0) -6 >Emitted(47, 19) Source(68, 6) + SourceIndex(0) -7 >Emitted(47, 46) Source(68, 17) + SourceIndex(0) -8 >Emitted(47, 48) Source(68, 6) + SourceIndex(0) -9 >Emitted(47, 74) Source(68, 17) + SourceIndex(0) -10>Emitted(47, 76) Source(68, 6) + SourceIndex(0) -11>Emitted(47, 81) Source(68, 17) + SourceIndex(0) ---- ->>> var _15 = multiRobots_2[_14], _16 = _15.name, nameA = _16 === void 0 ? "noName" : _16, _17 = _15.skills, _18 = _17 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _17, _19 = _18.primary, primaryA = _19 === void 0 ? "primary" : _19, _20 = _18.secondary, secondaryA = _20 === void 0 ? "secondary" : _20; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > { +2 > for +3 > +4 > (let { > name: nameA = "noName", > skills: { > primary: primaryA = "primary", > secondary: secondaryA = "secondary" > } = { primary: "noSkill", secondary: "noSkill" } - > } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , - > -9 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -10> -11> skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -12> -13> primary: primaryA = "primary" + > } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> let { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1->Emitted(101, 5) Source(62, 1) + SourceIndex(0) +2 >Emitted(101, 8) Source(62, 4) + SourceIndex(0) +3 >Emitted(101, 9) Source(62, 5) + SourceIndex(0) +4 >Emitted(101, 10) Source(68, 6) + SourceIndex(0) +5 >Emitted(101, 14) Source(68, 6) + SourceIndex(0) +6 >Emitted(101, 30) Source(68, 6) + SourceIndex(0) +7 >Emitted(101, 32) Source(68, 6) + SourceIndex(0) +8 >Emitted(101, 42) Source(68, 6) + SourceIndex(0) +9 >Emitted(101, 51) Source(68, 6) + SourceIndex(0) +10>Emitted(101, 62) Source(68, 17) + SourceIndex(0) +11>Emitted(101, 63) Source(68, 17) + SourceIndex(0) +12>Emitted(101, 65) Source(68, 17) + SourceIndex(0) +13>Emitted(101, 67) Source(62, 6) + SourceIndex(0) +14>Emitted(101, 88) Source(68, 2) + SourceIndex(0) +--- +>>> var _3 = multiRobots_2.result.value, _4 = _3.name, nameA = _4 === void 0 ? "noName" : _4, _5 = _3.skills, _6 = _5 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _5, _7 = _6.primary, primaryA = _7 === void 0 ? "primary" : _7, _8 = _6.secondary, secondaryA = _8 === void 0 ? "secondary" : _8; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , + > +9 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +10> +11> skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +12> +13> primary: primaryA = "primary" 14> 15> primary: primaryA = "primary" -16> , - > -17> secondary: secondaryA = "secondary" -18> -19> secondary: secondaryA = "secondary" -1->Emitted(48, 5) Source(62, 10) + SourceIndex(0) -2 >Emitted(48, 9) Source(62, 10) + SourceIndex(0) -3 >Emitted(48, 33) Source(68, 2) + SourceIndex(0) -4 >Emitted(48, 35) Source(63, 5) + SourceIndex(0) -5 >Emitted(48, 49) Source(63, 27) + SourceIndex(0) -6 >Emitted(48, 51) Source(63, 5) + SourceIndex(0) -7 >Emitted(48, 90) Source(63, 27) + SourceIndex(0) -8 >Emitted(48, 92) Source(64, 5) + SourceIndex(0) -9 >Emitted(48, 108) Source(67, 53) + SourceIndex(0) -10>Emitted(48, 110) Source(64, 5) + SourceIndex(0) -11>Emitted(48, 183) Source(67, 53) + SourceIndex(0) -12>Emitted(48, 185) Source(65, 9) + SourceIndex(0) -13>Emitted(48, 202) Source(65, 38) + SourceIndex(0) -14>Emitted(48, 204) Source(65, 9) + SourceIndex(0) -15>Emitted(48, 247) Source(65, 38) + SourceIndex(0) -16>Emitted(48, 249) Source(66, 9) + SourceIndex(0) -17>Emitted(48, 268) Source(66, 44) + SourceIndex(0) -18>Emitted(48, 270) Source(66, 9) + SourceIndex(0) -19>Emitted(48, 317) Source(66, 44) + SourceIndex(0) +16> , + > +17> secondary: secondaryA = "secondary" +18> +19> secondary: secondaryA = "secondary" +1->Emitted(102, 9) Source(62, 10) + SourceIndex(0) +2 >Emitted(102, 13) Source(62, 10) + SourceIndex(0) +3 >Emitted(102, 44) Source(68, 2) + SourceIndex(0) +4 >Emitted(102, 46) Source(63, 5) + SourceIndex(0) +5 >Emitted(102, 58) Source(63, 27) + SourceIndex(0) +6 >Emitted(102, 60) Source(63, 5) + SourceIndex(0) +7 >Emitted(102, 97) Source(63, 27) + SourceIndex(0) +8 >Emitted(102, 99) Source(64, 5) + SourceIndex(0) +9 >Emitted(102, 113) Source(67, 53) + SourceIndex(0) +10>Emitted(102, 115) Source(64, 5) + SourceIndex(0) +11>Emitted(102, 185) Source(67, 53) + SourceIndex(0) +12>Emitted(102, 187) Source(65, 9) + SourceIndex(0) +13>Emitted(102, 202) Source(65, 38) + SourceIndex(0) +14>Emitted(102, 204) Source(65, 9) + SourceIndex(0) +15>Emitted(102, 245) Source(65, 38) + SourceIndex(0) +16>Emitted(102, 247) Source(66, 9) + SourceIndex(0) +17>Emitted(102, 264) Source(66, 44) + SourceIndex(0) +18>Emitted(102, 266) Source(66, 9) + SourceIndex(0) +19>Emitted(102, 311) Source(66, 44) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > > } = { primary: "noSkill", secondary: "noSkill" } >} of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(49, 5) Source(69, 5) + SourceIndex(0) -2 >Emitted(49, 12) Source(69, 12) + SourceIndex(0) -3 >Emitted(49, 13) Source(69, 13) + SourceIndex(0) -4 >Emitted(49, 16) Source(69, 16) + SourceIndex(0) -5 >Emitted(49, 17) Source(69, 17) + SourceIndex(0) -6 >Emitted(49, 22) Source(69, 22) + SourceIndex(0) -7 >Emitted(49, 23) Source(69, 23) + SourceIndex(0) -8 >Emitted(49, 24) Source(69, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(103, 9) Source(69, 5) + SourceIndex(0) +2 >Emitted(103, 16) Source(69, 12) + SourceIndex(0) +3 >Emitted(103, 17) Source(69, 13) + SourceIndex(0) +4 >Emitted(103, 20) Source(69, 16) + SourceIndex(0) +5 >Emitted(103, 21) Source(69, 17) + SourceIndex(0) +6 >Emitted(103, 26) Source(69, 22) + SourceIndex(0) +7 >Emitted(103, 27) Source(69, 23) + SourceIndex(0) +8 >Emitted(103, 28) Source(69, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(50, 2) Source(70, 2) + SourceIndex(0) +1 >Emitted(104, 6) Source(70, 2) + SourceIndex(0) --- ->>>for (var _21 = 0, _22 = getMultiRobots(); _21 < _22.length; _21++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_8) throw e_8.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getMultiRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(51, 1) Source(71, 1) + SourceIndex(0) -2 >Emitted(51, 4) Source(71, 4) + SourceIndex(0) -3 >Emitted(51, 5) Source(71, 5) + SourceIndex(0) -4 >Emitted(51, 6) Source(77, 6) + SourceIndex(0) -5 >Emitted(51, 17) Source(77, 22) + SourceIndex(0) -6 >Emitted(51, 19) Source(77, 6) + SourceIndex(0) -7 >Emitted(51, 25) Source(77, 6) + SourceIndex(0) -8 >Emitted(51, 39) Source(77, 20) + SourceIndex(0) -9 >Emitted(51, 41) Source(77, 22) + SourceIndex(0) -10>Emitted(51, 43) Source(77, 6) + SourceIndex(0) -11>Emitted(51, 59) Source(77, 22) + SourceIndex(0) -12>Emitted(51, 61) Source(77, 6) + SourceIndex(0) -13>Emitted(51, 66) Source(77, 22) + SourceIndex(0) ---- ->>> var _23 = _22[_21], _24 = _23.name, nameA = _24 === void 0 ? "noName" : _24, _25 = _23.skills, _26 = _25 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _25, _27 = _26.primary, primaryA = _27 === void 0 ? "primary" : _27, _28 = _26.secondary, secondaryA = _28 === void 0 ? "secondary" : _28; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > { +2 > for +3 > +4 > (let { > name: nameA = "noName", > skills: { > primary: primaryA = "primary", > secondary: secondaryA = "secondary" > } = { primary: "noSkill", secondary: "noSkill" } - > } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , - > -9 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -10> -11> skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -12> -13> primary: primaryA = "primary" -14> -15> primary: primaryA = "primary" -16> , - > -17> secondary: secondaryA = "secondary" -18> -19> secondary: secondaryA = "secondary" -1->Emitted(52, 5) Source(71, 10) + SourceIndex(0) -2 >Emitted(52, 9) Source(71, 10) + SourceIndex(0) -3 >Emitted(52, 23) Source(77, 2) + SourceIndex(0) -4 >Emitted(52, 25) Source(72, 5) + SourceIndex(0) -5 >Emitted(52, 39) Source(72, 27) + SourceIndex(0) -6 >Emitted(52, 41) Source(72, 5) + SourceIndex(0) -7 >Emitted(52, 80) Source(72, 27) + SourceIndex(0) -8 >Emitted(52, 82) Source(73, 5) + SourceIndex(0) -9 >Emitted(52, 98) Source(76, 53) + SourceIndex(0) -10>Emitted(52, 100) Source(73, 5) + SourceIndex(0) -11>Emitted(52, 173) Source(76, 53) + SourceIndex(0) -12>Emitted(52, 175) Source(74, 9) + SourceIndex(0) -13>Emitted(52, 192) Source(74, 38) + SourceIndex(0) -14>Emitted(52, 194) Source(74, 9) + SourceIndex(0) -15>Emitted(52, 237) Source(74, 38) + SourceIndex(0) -16>Emitted(52, 239) Source(75, 9) + SourceIndex(0) -17>Emitted(52, 258) Source(75, 44) + SourceIndex(0) -18>Emitted(52, 260) Source(75, 9) + SourceIndex(0) -19>Emitted(52, 307) Source(75, 44) + SourceIndex(0) + > } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> let { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(111, 5) Source(71, 1) + SourceIndex(0) +2 >Emitted(111, 8) Source(71, 4) + SourceIndex(0) +3 >Emitted(111, 9) Source(71, 5) + SourceIndex(0) +4 >Emitted(111, 10) Source(77, 6) + SourceIndex(0) +5 >Emitted(111, 14) Source(77, 6) + SourceIndex(0) +6 >Emitted(111, 27) Source(77, 6) + SourceIndex(0) +7 >Emitted(111, 29) Source(77, 6) + SourceIndex(0) +8 >Emitted(111, 39) Source(77, 6) + SourceIndex(0) +9 >Emitted(111, 48) Source(77, 6) + SourceIndex(0) +10>Emitted(111, 62) Source(77, 20) + SourceIndex(0) +11>Emitted(111, 64) Source(77, 22) + SourceIndex(0) +12>Emitted(111, 65) Source(77, 22) + SourceIndex(0) +13>Emitted(111, 67) Source(77, 22) + SourceIndex(0) +14>Emitted(111, 69) Source(71, 6) + SourceIndex(0) +15>Emitted(111, 87) Source(77, 2) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> var _9 = iterator_5.result.value, _10 = _9.name, nameA = _10 === void 0 ? "noName" : _10, _11 = _9.skills, _12 = _11 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _11, _13 = _12.primary, primaryA = _13 === void 0 ? "primary" : _13, _14 = _12.secondary, secondaryA = _14 === void 0 ? "secondary" : _14; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , + > +9 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +10> +11> skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +12> +13> primary: primaryA = "primary" +14> +15> primary: primaryA = "primary" +16> , + > +17> secondary: secondaryA = "secondary" +18> +19> secondary: secondaryA = "secondary" +1->Emitted(112, 9) Source(71, 10) + SourceIndex(0) +2 >Emitted(112, 13) Source(71, 10) + SourceIndex(0) +3 >Emitted(112, 41) Source(77, 2) + SourceIndex(0) +4 >Emitted(112, 43) Source(72, 5) + SourceIndex(0) +5 >Emitted(112, 56) Source(72, 27) + SourceIndex(0) +6 >Emitted(112, 58) Source(72, 5) + SourceIndex(0) +7 >Emitted(112, 97) Source(72, 27) + SourceIndex(0) +8 >Emitted(112, 99) Source(73, 5) + SourceIndex(0) +9 >Emitted(112, 114) Source(76, 53) + SourceIndex(0) +10>Emitted(112, 116) Source(73, 5) + SourceIndex(0) +11>Emitted(112, 189) Source(76, 53) + SourceIndex(0) +12>Emitted(112, 191) Source(74, 9) + SourceIndex(0) +13>Emitted(112, 208) Source(74, 38) + SourceIndex(0) +14>Emitted(112, 210) Source(74, 9) + SourceIndex(0) +15>Emitted(112, 253) Source(74, 38) + SourceIndex(0) +16>Emitted(112, 255) Source(75, 9) + SourceIndex(0) +17>Emitted(112, 274) Source(75, 44) + SourceIndex(0) +18>Emitted(112, 276) Source(75, 9) + SourceIndex(0) +19>Emitted(112, 323) Source(75, 44) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > > } = { primary: "noSkill", secondary: "noSkill" } >} of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(53, 5) Source(78, 5) + SourceIndex(0) -2 >Emitted(53, 12) Source(78, 12) + SourceIndex(0) -3 >Emitted(53, 13) Source(78, 13) + SourceIndex(0) -4 >Emitted(53, 16) Source(78, 16) + SourceIndex(0) -5 >Emitted(53, 17) Source(78, 17) + SourceIndex(0) -6 >Emitted(53, 22) Source(78, 22) + SourceIndex(0) -7 >Emitted(53, 23) Source(78, 23) + SourceIndex(0) -8 >Emitted(53, 24) Source(78, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(113, 9) Source(78, 5) + SourceIndex(0) +2 >Emitted(113, 16) Source(78, 12) + SourceIndex(0) +3 >Emitted(113, 17) Source(78, 13) + SourceIndex(0) +4 >Emitted(113, 20) Source(78, 16) + SourceIndex(0) +5 >Emitted(113, 21) Source(78, 17) + SourceIndex(0) +6 >Emitted(113, 26) Source(78, 22) + SourceIndex(0) +7 >Emitted(113, 27) Source(78, 23) + SourceIndex(0) +8 >Emitted(113, 28) Source(78, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(54, 2) Source(79, 2) + SourceIndex(0) +1 >Emitted(114, 6) Source(79, 2) + SourceIndex(0) --- ->>>for (var _29 = 0, _30 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^ -9 > ^^ -10> ^^^^ -11> ^^ -12> ^^^^^^^ -13> ^^ -14> ^^^^^^ -15> ^^ -16> ^^ -17> ^^^^^^^ -18> ^^ -19> ^^^^^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^^ -24> ^^ -25> ^^ -26> ^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > (let { - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -6 > -7 > -8 > [ -9 > { -10> name -11> : -12> "mower" -13> , -14> skills -15> : -16> { -17> primary -18> : -19> "mowing" -20> , -21> secondary -22> : -23> "none" -24> } -25> } -1->Emitted(55, 1) Source(80, 1) + SourceIndex(0) -2 >Emitted(55, 4) Source(80, 4) + SourceIndex(0) -3 >Emitted(55, 5) Source(80, 5) + SourceIndex(0) -4 >Emitted(55, 6) Source(86, 6) + SourceIndex(0) -5 >Emitted(55, 17) Source(87, 79) + SourceIndex(0) -6 >Emitted(55, 19) Source(86, 6) + SourceIndex(0) -7 >Emitted(55, 25) Source(86, 20) + SourceIndex(0) -8 >Emitted(55, 26) Source(86, 21) + SourceIndex(0) -9 >Emitted(55, 28) Source(86, 23) + SourceIndex(0) -10>Emitted(55, 32) Source(86, 27) + SourceIndex(0) -11>Emitted(55, 34) Source(86, 29) + SourceIndex(0) -12>Emitted(55, 41) Source(86, 36) + SourceIndex(0) -13>Emitted(55, 43) Source(86, 38) + SourceIndex(0) -14>Emitted(55, 49) Source(86, 44) + SourceIndex(0) -15>Emitted(55, 51) Source(86, 46) + SourceIndex(0) -16>Emitted(55, 53) Source(86, 48) + SourceIndex(0) -17>Emitted(55, 60) Source(86, 55) + SourceIndex(0) -18>Emitted(55, 62) Source(86, 57) + SourceIndex(0) -19>Emitted(55, 70) Source(86, 65) + SourceIndex(0) -20>Emitted(55, 72) Source(86, 67) + SourceIndex(0) -21>Emitted(55, 81) Source(86, 76) + SourceIndex(0) -22>Emitted(55, 83) Source(86, 78) + SourceIndex(0) -23>Emitted(55, 89) Source(86, 84) + SourceIndex(0) -24>Emitted(55, 91) Source(86, 86) + SourceIndex(0) -25>Emitted(55, 93) Source(86, 88) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _29 < _30.length; _29++) { -1->^^^^ -2 > ^^ -3 > ^^^^ -4 > ^^ -5 > ^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^ -10> ^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^ +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_9) throw e_9.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^ +11> ^^ +12> ^^^^ +13> ^^ +14> ^^^^^^^ 15> ^^ -16> ^^^^^^^^ -17> ^^ -18> ^^ -19> ^ -20> ^^ -21> ^^^^^^^^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, - > -2 > { -3 > name -4 > : -5 > "trimmer" -6 > , -7 > skills -8 > : -9 > { -10> primary -11> : -12> "trimming" -13> , -14> secondary -15> : -16> "edging" -17> } -18> } -19> ] -20> -21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(56, 5) Source(87, 5) + SourceIndex(0) -2 >Emitted(56, 7) Source(87, 7) + SourceIndex(0) -3 >Emitted(56, 11) Source(87, 11) + SourceIndex(0) -4 >Emitted(56, 13) Source(87, 13) + SourceIndex(0) -5 >Emitted(56, 22) Source(87, 22) + SourceIndex(0) -6 >Emitted(56, 24) Source(87, 24) + SourceIndex(0) -7 >Emitted(56, 30) Source(87, 30) + SourceIndex(0) -8 >Emitted(56, 32) Source(87, 32) + SourceIndex(0) -9 >Emitted(56, 34) Source(87, 34) + SourceIndex(0) -10>Emitted(56, 41) Source(87, 41) + SourceIndex(0) -11>Emitted(56, 43) Source(87, 43) + SourceIndex(0) -12>Emitted(56, 53) Source(87, 53) + SourceIndex(0) -13>Emitted(56, 55) Source(87, 55) + SourceIndex(0) -14>Emitted(56, 64) Source(87, 64) + SourceIndex(0) -15>Emitted(56, 66) Source(87, 66) + SourceIndex(0) -16>Emitted(56, 74) Source(87, 74) + SourceIndex(0) -17>Emitted(56, 76) Source(87, 76) + SourceIndex(0) -18>Emitted(56, 78) Source(87, 78) + SourceIndex(0) -19>Emitted(56, 79) Source(87, 79) + SourceIndex(0) -20>Emitted(56, 81) Source(86, 6) + SourceIndex(0) -21>Emitted(56, 97) Source(87, 79) + SourceIndex(0) -22>Emitted(56, 99) Source(86, 6) + SourceIndex(0) -23>Emitted(56, 104) Source(87, 79) + SourceIndex(0) ---- ->>> var _31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skills, _34 = _33 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _33, _35 = _34.primary, primaryA = _35 === void 0 ? "primary" : _35, _36 = _34.secondary, secondaryA = _36 === void 0 ? "secondary" : _36; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > -3 > { +16> ^^^^^^ +17> ^^ +18> ^^ +19> ^^^^^^^ +20> ^^ +21> ^^^^^^^^ +22> ^^ +23> ^^^^^^^^^ +24> ^^ +25> ^^^^^^ +26> ^^ +27> ^^ +1 > + > +2 > for +3 > +4 > (let { > name: nameA = "noName", > skills: { > primary: primaryA = "primary", > secondary: secondaryA = "secondary" > } = { primary: "noSkill", secondary: "noSkill" } - > } -4 > -5 > name: nameA = "noName" -6 > -7 > name: nameA = "noName" -8 > , - > -9 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -10> -11> skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -12> -13> primary: primaryA = "primary" -14> -15> primary: primaryA = "primary" -16> , - > -17> secondary: secondaryA = "secondary" -18> -19> secondary: secondaryA = "secondary" -1->Emitted(57, 5) Source(80, 10) + SourceIndex(0) -2 >Emitted(57, 9) Source(80, 10) + SourceIndex(0) -3 >Emitted(57, 23) Source(86, 2) + SourceIndex(0) -4 >Emitted(57, 25) Source(81, 5) + SourceIndex(0) -5 >Emitted(57, 39) Source(81, 27) + SourceIndex(0) -6 >Emitted(57, 41) Source(81, 5) + SourceIndex(0) -7 >Emitted(57, 80) Source(81, 27) + SourceIndex(0) -8 >Emitted(57, 82) Source(82, 5) + SourceIndex(0) -9 >Emitted(57, 98) Source(85, 53) + SourceIndex(0) -10>Emitted(57, 100) Source(82, 5) + SourceIndex(0) -11>Emitted(57, 173) Source(85, 53) + SourceIndex(0) -12>Emitted(57, 175) Source(83, 9) + SourceIndex(0) -13>Emitted(57, 192) Source(83, 38) + SourceIndex(0) -14>Emitted(57, 194) Source(83, 9) + SourceIndex(0) -15>Emitted(57, 237) Source(83, 38) + SourceIndex(0) -16>Emitted(57, 239) Source(84, 9) + SourceIndex(0) -17>Emitted(57, 258) Source(84, 44) + SourceIndex(0) -18>Emitted(57, 260) Source(84, 9) + SourceIndex(0) -19>Emitted(57, 307) Source(84, 44) + SourceIndex(0) + > } of +5 > +6 > +7 > +8 > +9 > +10> [ +11> { +12> name +13> : +14> "mower" +15> , +16> skills +17> : +18> { +19> primary +20> : +21> "mowing" +22> , +23> secondary +24> : +25> "none" +26> } +27> } +1 >Emitted(121, 5) Source(80, 1) + SourceIndex(0) +2 >Emitted(121, 8) Source(80, 4) + SourceIndex(0) +3 >Emitted(121, 9) Source(80, 5) + SourceIndex(0) +4 >Emitted(121, 10) Source(86, 6) + SourceIndex(0) +5 >Emitted(121, 14) Source(86, 6) + SourceIndex(0) +6 >Emitted(121, 27) Source(86, 6) + SourceIndex(0) +7 >Emitted(121, 29) Source(86, 6) + SourceIndex(0) +8 >Emitted(121, 39) Source(86, 6) + SourceIndex(0) +9 >Emitted(121, 48) Source(86, 20) + SourceIndex(0) +10>Emitted(121, 49) Source(86, 21) + SourceIndex(0) +11>Emitted(121, 51) Source(86, 23) + SourceIndex(0) +12>Emitted(121, 55) Source(86, 27) + SourceIndex(0) +13>Emitted(121, 57) Source(86, 29) + SourceIndex(0) +14>Emitted(121, 64) Source(86, 36) + SourceIndex(0) +15>Emitted(121, 66) Source(86, 38) + SourceIndex(0) +16>Emitted(121, 72) Source(86, 44) + SourceIndex(0) +17>Emitted(121, 74) Source(86, 46) + SourceIndex(0) +18>Emitted(121, 76) Source(86, 48) + SourceIndex(0) +19>Emitted(121, 83) Source(86, 55) + SourceIndex(0) +20>Emitted(121, 85) Source(86, 57) + SourceIndex(0) +21>Emitted(121, 93) Source(86, 65) + SourceIndex(0) +22>Emitted(121, 95) Source(86, 67) + SourceIndex(0) +23>Emitted(121, 104) Source(86, 76) + SourceIndex(0) +24>Emitted(121, 106) Source(86, 78) + SourceIndex(0) +25>Emitted(121, 112) Source(86, 84) + SourceIndex(0) +26>Emitted(121, 114) Source(86, 86) + SourceIndex(0) +27>Emitted(121, 116) Source(86, 88) + SourceIndex(0) --- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_6);) { +1 >^^^^^^^^^^^^ +2 > ^^ +3 > ^^^^ +4 > ^^ +5 > ^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^ +10> ^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^ +15> ^^ +16> ^^^^^^^^ +17> ^^ +18> ^^ +19> ^ +20> ^ +21> ^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >, + > +2 > { +3 > name +4 > : +5 > "trimmer" +6 > , +7 > skills +8 > : +9 > { +10> primary +11> : +12> "trimming" +13> , +14> secondary +15> : +16> "edging" +17> } +18> } +19> ] +20> +21> +22> +23> let { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(122, 13) Source(87, 5) + SourceIndex(0) +2 >Emitted(122, 15) Source(87, 7) + SourceIndex(0) +3 >Emitted(122, 19) Source(87, 11) + SourceIndex(0) +4 >Emitted(122, 21) Source(87, 13) + SourceIndex(0) +5 >Emitted(122, 30) Source(87, 22) + SourceIndex(0) +6 >Emitted(122, 32) Source(87, 24) + SourceIndex(0) +7 >Emitted(122, 38) Source(87, 30) + SourceIndex(0) +8 >Emitted(122, 40) Source(87, 32) + SourceIndex(0) +9 >Emitted(122, 42) Source(87, 34) + SourceIndex(0) +10>Emitted(122, 49) Source(87, 41) + SourceIndex(0) +11>Emitted(122, 51) Source(87, 43) + SourceIndex(0) +12>Emitted(122, 61) Source(87, 53) + SourceIndex(0) +13>Emitted(122, 63) Source(87, 55) + SourceIndex(0) +14>Emitted(122, 72) Source(87, 64) + SourceIndex(0) +15>Emitted(122, 74) Source(87, 66) + SourceIndex(0) +16>Emitted(122, 82) Source(87, 74) + SourceIndex(0) +17>Emitted(122, 84) Source(87, 76) + SourceIndex(0) +18>Emitted(122, 86) Source(87, 78) + SourceIndex(0) +19>Emitted(122, 87) Source(87, 79) + SourceIndex(0) +20>Emitted(122, 88) Source(87, 79) + SourceIndex(0) +21>Emitted(122, 90) Source(87, 79) + SourceIndex(0) +22>Emitted(122, 92) Source(80, 6) + SourceIndex(0) +23>Emitted(122, 110) Source(86, 2) + SourceIndex(0) +--- +>>> var _15 = iterator_6.result.value, _16 = _15.name, nameA = _16 === void 0 ? "noName" : _16, _17 = _15.skills, _18 = _17 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _17, _19 = _18.primary, primaryA = _19 === void 0 ? "primary" : _19, _20 = _18.secondary, secondaryA = _20 === void 0 ? "secondary" : _20; +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > +3 > { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +4 > +5 > name: nameA = "noName" +6 > +7 > name: nameA = "noName" +8 > , + > +9 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +10> +11> skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +12> +13> primary: primaryA = "primary" +14> +15> primary: primaryA = "primary" +16> , + > +17> secondary: secondaryA = "secondary" +18> +19> secondary: secondaryA = "secondary" +1->Emitted(123, 9) Source(80, 10) + SourceIndex(0) +2 >Emitted(123, 13) Source(80, 10) + SourceIndex(0) +3 >Emitted(123, 42) Source(86, 2) + SourceIndex(0) +4 >Emitted(123, 44) Source(81, 5) + SourceIndex(0) +5 >Emitted(123, 58) Source(81, 27) + SourceIndex(0) +6 >Emitted(123, 60) Source(81, 5) + SourceIndex(0) +7 >Emitted(123, 99) Source(81, 27) + SourceIndex(0) +8 >Emitted(123, 101) Source(82, 5) + SourceIndex(0) +9 >Emitted(123, 117) Source(85, 53) + SourceIndex(0) +10>Emitted(123, 119) Source(82, 5) + SourceIndex(0) +11>Emitted(123, 192) Source(85, 53) + SourceIndex(0) +12>Emitted(123, 194) Source(83, 9) + SourceIndex(0) +13>Emitted(123, 211) Source(83, 38) + SourceIndex(0) +14>Emitted(123, 213) Source(83, 9) + SourceIndex(0) +15>Emitted(123, 256) Source(83, 38) + SourceIndex(0) +16>Emitted(123, 258) Source(84, 9) + SourceIndex(0) +17>Emitted(123, 277) Source(84, 44) + SourceIndex(0) +18>Emitted(123, 279) Source(84, 9) + SourceIndex(0) +19>Emitted(123, 326) Source(84, 44) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > > } = { primary: "noSkill", secondary: "noSkill" } >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(58, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(58, 12) Source(88, 12) + SourceIndex(0) -3 >Emitted(58, 13) Source(88, 13) + SourceIndex(0) -4 >Emitted(58, 16) Source(88, 16) + SourceIndex(0) -5 >Emitted(58, 17) Source(88, 17) + SourceIndex(0) -6 >Emitted(58, 22) Source(88, 22) + SourceIndex(0) -7 >Emitted(58, 23) Source(88, 23) + SourceIndex(0) -8 >Emitted(58, 24) Source(88, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(124, 9) Source(88, 5) + SourceIndex(0) +2 >Emitted(124, 16) Source(88, 12) + SourceIndex(0) +3 >Emitted(124, 17) Source(88, 13) + SourceIndex(0) +4 >Emitted(124, 20) Source(88, 16) + SourceIndex(0) +5 >Emitted(124, 21) Source(88, 17) + SourceIndex(0) +6 >Emitted(124, 26) Source(88, 22) + SourceIndex(0) +7 >Emitted(124, 27) Source(88, 23) + SourceIndex(0) +8 >Emitted(124, 28) Source(88, 24) + SourceIndex(0) --- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(59, 2) Source(89, 2) + SourceIndex(0) +1 >Emitted(125, 6) Source(89, 2) + SourceIndex(0) --- +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_10) throw e_10.error; } +>>>} +>>>var e_1, e_2, e_3, e_4, e_5, e_6, e_7, e_8, e_9, e_10; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js index 1e18159d3d413..a4499af06be23 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js @@ -167,6 +167,17 @@ for ({ } //// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; @@ -178,105 +189,213 @@ function getMultiRobots() { } var nameA, primaryA, secondaryA, i, skillA; var name, primary, secondary, skill; -for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { - _a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a; - console.log(nameA); +try { + for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { + _a = robots_1.result.value.name, nameA = _a === void 0 ? "noName" : _a; + console.log(nameA); + } } -for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { - _d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d; - console.log(nameA); +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +} +try { + for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { + _b = iterator_1.result.value.name, nameA = _b === void 0 ? "noName" : _b; + console.log(nameA); + } } -for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) { - _g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g; +catch (e_2_1) { e_2 = { error: e_2_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +} +for (var _i = 0, _c = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _c.length; _i++) { + _d = _c[_i].name, nameA = _d === void 0 ? "noName" : _d; console.log(nameA); } -for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { - _j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; - console.log(primaryA); +try { + for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { + _e = multiRobots_1.result.value.skills, _f = _e === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _e, _g = _f.primary, primaryA = _g === void 0 ? "primary" : _g, _h = _f.secondary, secondaryA = _h === void 0 ? "secondary" : _h; + console.log(primaryA); + } } -for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) { - _q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t; - console.log(primaryA); +catch (e_3_1) { e_3 = { error: e_3_1 }; } +finally { + try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } } -for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) { - _w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z; - console.log(primaryA); +try { + for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { + _j = iterator_2.result.value.skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; + console.log(primaryA); + } } -for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) { - _1 = robots_2[_0].name, name = _1 === void 0 ? "noName" : _1; - console.log(nameA); +catch (e_4_1) { e_4 = { error: e_4_1 }; } +finally { + try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } } -for (var _2 = 0, _3 = getRobots(); _2 < _3.length; _2++) { - _4 = _3[_2].name, name = _4 === void 0 ? "noName" : _4; - console.log(nameA); +try { + for (var iterator_3 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_3);) { + _o = iterator_3.result.value.skills, _p = _o === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _o, _q = _p.primary, primaryA = _q === void 0 ? "primary" : _q, _r = _p.secondary, secondaryA = _r === void 0 ? "secondary" : _r; + console.log(primaryA); + } } -for (var _5 = 0, _6 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _5 < _6.length; _5++) { - _7 = _6[_5].name, name = _7 === void 0 ? "noName" : _7; +catch (e_5_1) { e_5 = { error: e_5_1 }; } +finally { + try { __close(iterator_3); } finally { if (e_5) throw e_5.error; } +} +try { + for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { + _s = robots_2.result.value.name, name = _s === void 0 ? "noName" : _s; + console.log(nameA); + } +} +catch (e_6_1) { e_6 = { error: e_6_1 }; } +finally { + try { __close(robots_2); } finally { if (e_6) throw e_6.error; } +} +try { + for (var iterator_4 = { iterator: __values(getRobots()) }; __step(iterator_4);) { + _t = iterator_4.result.value.name, name = _t === void 0 ? "noName" : _t; + console.log(nameA); + } +} +catch (e_7_1) { e_7 = { error: e_7_1 }; } +finally { + try { __close(iterator_4); } finally { if (e_7) throw e_7.error; } +} +for (var _u = 0, _v = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _u < _v.length; _u++) { + _w = _v[_u].name, name = _w === void 0 ? "noName" : _w; console.log(nameA); } -for (var _8 = 0, multiRobots_2 = multiRobots; _8 < multiRobots_2.length; _8++) { - _9 = multiRobots_2[_8].skills, _10 = _9 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _9, _11 = _10.primary, primary = _11 === void 0 ? "primary" : _11, _12 = _10.secondary, secondary = _12 === void 0 ? "secondary" : _12; - console.log(primaryA); +try { + for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { + _x = multiRobots_2.result.value.skills, _y = _x === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _x, _z = _y.primary, primary = _z === void 0 ? "primary" : _z, _0 = _y.secondary, secondary = _0 === void 0 ? "secondary" : _0; + console.log(primaryA); + } } -for (var _13 = 0, _14 = getMultiRobots(); _13 < _14.length; _13++) { - _15 = _14[_13].skills, _16 = _15 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _15, _17 = _16.primary, primary = _17 === void 0 ? "primary" : _17, _18 = _16.secondary, secondary = _18 === void 0 ? "secondary" : _18; - console.log(primaryA); +catch (e_8_1) { e_8 = { error: e_8_1 }; } +finally { + try { __close(multiRobots_2); } finally { if (e_8) throw e_8.error; } +} +try { + for (var iterator_5 = { iterator: __values(getMultiRobots()) }; __step(iterator_5);) { + _1 = iterator_5.result.value.skills, _2 = _1 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _1, _3 = _2.primary, primary = _3 === void 0 ? "primary" : _3, _4 = _2.secondary, secondary = _4 === void 0 ? "secondary" : _4; + console.log(primaryA); + } +} +catch (e_9_1) { e_9 = { error: e_9_1 }; } +finally { + try { __close(iterator_5); } finally { if (e_9) throw e_9.error; } } -for (var _19 = 0, _20 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _19 < _20.length; _19++) { - _21 = _20[_19].skills, _22 = _21 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _21, _23 = _22.primary, primary = _23 === void 0 ? "primary" : _23, _24 = _22.secondary, secondary = _24 === void 0 ? "secondary" : _24; +for (var _5 = 0, _6 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _5 < _6.length; _5++) { + _7 = _6[_5].skills, _8 = _7 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _7, _9 = _8.primary, primary = _9 === void 0 ? "primary" : _9, _10 = _8.secondary, secondary = _10 === void 0 ? "secondary" : _10; console.log(primaryA); } -for (var _25 = 0, robots_3 = robots; _25 < robots_3.length; _25++) { - _26 = robots_3[_25], _27 = _26.name, nameA = _27 === void 0 ? "noName" : _27, _28 = _26.skill, skillA = _28 === void 0 ? "noSkill" : _28; - console.log(nameA); +try { + for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { + _11 = robots_3.result.value, _12 = _11.name, nameA = _12 === void 0 ? "noName" : _12, _13 = _11.skill, skillA = _13 === void 0 ? "noSkill" : _13; + console.log(nameA); + } } -for (var _29 = 0, _30 = getRobots(); _29 < _30.length; _29++) { - _31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skill, skillA = _33 === void 0 ? "noSkill" : _33; - console.log(nameA); +catch (e_10_1) { e_10 = { error: e_10_1 }; } +finally { + try { __close(robots_3); } finally { if (e_10) throw e_10.error; } } -for (var _34 = 0, _35 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _34 < _35.length; _34++) { - _36 = _35[_34], _37 = _36.name, nameA = _37 === void 0 ? "noName" : _37, _38 = _36.skill, skillA = _38 === void 0 ? "noSkill" : _38; - console.log(nameA); +try { + for (var iterator_6 = { iterator: __values(getRobots()) }; __step(iterator_6);) { + _14 = iterator_6.result.value, _15 = _14.name, nameA = _15 === void 0 ? "noName" : _15, _16 = _14.skill, skillA = _16 === void 0 ? "noSkill" : _16; + console.log(nameA); + } } -for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { - _40 = multiRobots_3[_39], _41 = _40.name, nameA = _41 === void 0 ? "noName" : _41, _42 = _40.skills, _43 = _42 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _42, _44 = _43.primary, primaryA = _44 === void 0 ? "primary" : _44, _45 = _43.secondary, secondaryA = _45 === void 0 ? "secondary" : _45; - console.log(nameA); +catch (e_11_1) { e_11 = { error: e_11_1 }; } +finally { + try { __close(iterator_6); } finally { if (e_11) throw e_11.error; } } -for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { - _48 = _47[_46], _49 = _48.name, nameA = _49 === void 0 ? "noName" : _49, _50 = _48.skills, _51 = _50 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _50, _52 = _51.primary, primaryA = _52 === void 0 ? "primary" : _52, _53 = _51.secondary, secondaryA = _53 === void 0 ? "secondary" : _53; +for (var _17 = 0, _18 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _17 < _18.length; _17++) { + _19 = _18[_17], _20 = _19.name, nameA = _20 === void 0 ? "noName" : _20, _21 = _19.skill, skillA = _21 === void 0 ? "noSkill" : _21; console.log(nameA); } -for (var _54 = 0, _55 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _54 < _55.length; _54++) { - _56 = _55[_54], _57 = _56.name, nameA = _57 === void 0 ? "noName" : _57, _58 = _56.skills, _59 = _58 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _58, _60 = _59.primary, primaryA = _60 === void 0 ? "primary" : _60, _61 = _59.secondary, secondaryA = _61 === void 0 ? "secondary" : _61; - console.log(nameA); +try { + for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { + _22 = multiRobots_3.result.value, _23 = _22.name, nameA = _23 === void 0 ? "noName" : _23, _24 = _22.skills, _25 = _24 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _24, _26 = _25.primary, primaryA = _26 === void 0 ? "primary" : _26, _27 = _25.secondary, secondaryA = _27 === void 0 ? "secondary" : _27; + console.log(nameA); + } } -for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { - _63 = robots_4[_62], _64 = _63.name, name = _64 === void 0 ? "noName" : _64, _65 = _63.skill, skill = _65 === void 0 ? "noSkill" : _65; - console.log(nameA); +catch (e_12_1) { e_12 = { error: e_12_1 }; } +finally { + try { __close(multiRobots_3); } finally { if (e_12) throw e_12.error; } } -for (var _66 = 0, _67 = getRobots(); _66 < _67.length; _66++) { - _68 = _67[_66], _69 = _68.name, name = _69 === void 0 ? "noName" : _69, _70 = _68.skill, skill = _70 === void 0 ? "noSkill" : _70; - console.log(nameA); +try { + for (var iterator_7 = { iterator: __values(getMultiRobots()) }; __step(iterator_7);) { + _28 = iterator_7.result.value, _29 = _28.name, nameA = _29 === void 0 ? "noName" : _29, _30 = _28.skills, _31 = _30 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _30, _32 = _31.primary, primaryA = _32 === void 0 ? "primary" : _32, _33 = _31.secondary, secondaryA = _33 === void 0 ? "secondary" : _33; + console.log(nameA); + } } -for (var _71 = 0, _72 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _71 < _72.length; _71++) { - _73 = _72[_71], _74 = _73.name, name = _74 === void 0 ? "noName" : _74, _75 = _73.skill, skill = _75 === void 0 ? "noSkill" : _75; - console.log(nameA); +catch (e_13_1) { e_13 = { error: e_13_1 }; } +finally { + try { __close(iterator_7); } finally { if (e_13) throw e_13.error; } } -for (var _76 = 0, multiRobots_4 = multiRobots; _76 < multiRobots_4.length; _76++) { - _77 = multiRobots_4[_76], _78 = _77.name, name = _78 === void 0 ? "noName" : _78, _79 = _77.skills, _80 = _79 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _79, _81 = _80.primary, primary = _81 === void 0 ? "primary" : _81, _82 = _80.secondary, secondary = _82 === void 0 ? "secondary" : _82; - console.log(nameA); +try { + for (var iterator_8 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_8);) { + _34 = iterator_8.result.value, _35 = _34.name, nameA = _35 === void 0 ? "noName" : _35, _36 = _34.skills, _37 = _36 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _36, _38 = _37.primary, primaryA = _38 === void 0 ? "primary" : _38, _39 = _37.secondary, secondaryA = _39 === void 0 ? "secondary" : _39; + console.log(nameA); + } } -for (var _83 = 0, _84 = getMultiRobots(); _83 < _84.length; _83++) { - _85 = _84[_83], _86 = _85.name, name = _86 === void 0 ? "noName" : _86, _87 = _85.skills, _88 = _87 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _87, _89 = _88.primary, primary = _89 === void 0 ? "primary" : _89, _90 = _88.secondary, secondary = _90 === void 0 ? "secondary" : _90; +catch (e_14_1) { e_14 = { error: e_14_1 }; } +finally { + try { __close(iterator_8); } finally { if (e_14) throw e_14.error; } +} +try { + for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { + _40 = robots_4.result.value, _41 = _40.name, name = _41 === void 0 ? "noName" : _41, _42 = _40.skill, skill = _42 === void 0 ? "noSkill" : _42; + console.log(nameA); + } +} +catch (e_15_1) { e_15 = { error: e_15_1 }; } +finally { + try { __close(robots_4); } finally { if (e_15) throw e_15.error; } +} +try { + for (var iterator_9 = { iterator: __values(getRobots()) }; __step(iterator_9);) { + _43 = iterator_9.result.value, _44 = _43.name, name = _44 === void 0 ? "noName" : _44, _45 = _43.skill, skill = _45 === void 0 ? "noSkill" : _45; + console.log(nameA); + } +} +catch (e_16_1) { e_16 = { error: e_16_1 }; } +finally { + try { __close(iterator_9); } finally { if (e_16) throw e_16.error; } +} +for (var _46 = 0, _47 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _46 < _47.length; _46++) { + _48 = _47[_46], _49 = _48.name, name = _49 === void 0 ? "noName" : _49, _50 = _48.skill, skill = _50 === void 0 ? "noSkill" : _50; console.log(nameA); } -for (var _91 = 0, _92 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _91 < _92.length; _91++) { - _93 = _92[_91], _94 = _93.name, name = _94 === void 0 ? "noName" : _94, _95 = _93.skills, _96 = _95 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _95, _97 = _96.primary, primary = _97 === void 0 ? "primary" : _97, _98 = _96.secondary, secondary = _98 === void 0 ? "secondary" : _98; +try { + for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { + _51 = multiRobots_4.result.value, _52 = _51.name, name = _52 === void 0 ? "noName" : _52, _53 = _51.skills, _54 = _53 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _53, _55 = _54.primary, primary = _55 === void 0 ? "primary" : _55, _56 = _54.secondary, secondary = _56 === void 0 ? "secondary" : _56; + console.log(nameA); + } +} +catch (e_17_1) { e_17 = { error: e_17_1 }; } +finally { + try { __close(multiRobots_4); } finally { if (e_17) throw e_17.error; } +} +try { + for (var iterator_10 = { iterator: __values(getMultiRobots()) }; __step(iterator_10);) { + _57 = iterator_10.result.value, _58 = _57.name, name = _58 === void 0 ? "noName" : _58, _59 = _57.skills, _60 = _59 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _59, _61 = _60.primary, primary = _61 === void 0 ? "primary" : _61, _62 = _60.secondary, secondary = _62 === void 0 ? "secondary" : _62; + console.log(nameA); + } +} +catch (e_18_1) { e_18 = { error: e_18_1 }; } +finally { + try { __close(iterator_10); } finally { if (e_18) throw e_18.error; } +} +for (var _63 = 0, _64 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _63 < _64.length; _63++) { + _65 = _64[_63], _66 = _65.name, name = _66 === void 0 ? "noName" : _66, _67 = _65.skills, _68 = _67 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _67, _69 = _68.primary, primary = _69 === void 0 ? "primary" : _69, _70 = _68.secondary, secondary = _70 === void 0 ? "secondary" : _70; console.log(nameA); } -var _a, _d, _g, _j, _k, _l, _m, _q, _r, _s, _t, _w, _x, _y, _z, _1, _4, _7, _9, _10, _11, _12, _15, _16, _17, _18, _21, _22, _23, _24, _26, _27, _28, _31, _32, _33, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _65, _68, _69, _70, _73, _74, _75, _77, _78, _79, _80, _81, _82, _85, _86, _87, _88, _89, _90, _93, _94, _95, _96, _97, _98; +var _a, e_1, _b, e_2, _d, _e, _f, _g, _h, e_3, _j, _k, _l, _m, e_4, _o, _p, _q, _r, e_5, _s, e_6, _t, e_7, _w, _x, _y, _z, _0, e_8, _1, _2, _3, _4, e_9, _7, _8, _9, _10, _11, _12, _13, e_10, _14, _15, _16, e_11, _19, _20, _21, _22, _23, _24, _25, _26, _27, e_12, _28, _29, _30, _31, _32, _33, e_13, _34, _35, _36, _37, _38, _39, e_14, _40, _41, _42, e_15, _43, _44, _45, e_16, _48, _49, _50, _51, _52, _53, _54, _55, _56, e_17, _57, _58, _59, _60, _61, _62, e_18, _65, _66, _67, _68, _69, _70; //# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map index 645808f0709cd..6393a095e235b 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts"],"names":[],"mappings":"AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,QAAgB,EAAE,UAAkB,EAAE,CAAS,EAAE,MAAc,CAAC;AACnF,IAAI,IAAY,EAAE,OAAe,EAAE,SAAiB,EAAE,KAAa,CAAC;AAEpE,GAAG,CAAC,CAA8B,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAAlC,sBAAsB,EAAtB,qCAAsB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA8B,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAvC,gBAAsB,EAAtB,qCAAsB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA8B,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAxG,gBAAsB,EAAtB,qCAAsB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CACkD,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAD1D,6BACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAE/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CACkD,UAAgB,EAAhB,KAAA,cAAc,EAAE,EAAhB,cAAgB,EAAhB,IAAgB;IAD/D,kBACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAE/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAEA,UAC8E,EAD9E,KAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAC9E,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EAD9E,cAC8E,EAD9E,IAC8E;IAH3E,kBACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;IAI/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED,GAAG,CAAC,CAAwB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;IAA3B,sBAAe,EAAf,oCAAe;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAwB,UAAW,EAAX,KAAA,SAAS,EAAE,EAAX,cAAW,EAAX,IAAW;IAAhC,gBAAe,EAAf,oCAAe;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAAwB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAjG,gBAAe,EAAf,oCAAe;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAKC,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW;IAJZ,6BAGgD,EAHhD,uEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAG3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAKC,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;IAJjB,qBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAG3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AACD,GAAG,CAAC,CAKC,WACyE,EADzE,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,gBACyE,EADzE,KACyE;IAL1E,qBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAI3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;AAGD,GAAG,CAAC,CAAyD,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAA7D,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;IACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA0D,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAAnE,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;IACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA0D,WAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,gBAA4E,EAA5E,KAA4E;oBAApI,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;IACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;8BALZ,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBALjB,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WACyE,EADzE,MAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACnF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,gBACyE,EADzE,KACyE;oBAN1E,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;IAIvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AAED,GAAG,CAAC,CAA4C,WAAM,EAAN,iBAAM,EAAN,qBAAM,EAAN,KAAM;yBAA/C,cAAe,EAAf,sCAAe,EAAE,eAAkB,EAAlB,wCAAkB;IACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA4C,WAAW,EAAX,MAAA,SAAS,EAAE,EAAX,gBAAW,EAAX,KAAW;oBAApD,cAAe,EAAf,sCAAe,EAAE,eAAiB,EAAjB,wCAAiB;IACrC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAA4C,WAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,gBAA4E,EAA5E,KAA4E;oBAArH,cAAe,EAAf,sCAAe,EAAE,eAAkB,EAAlB,wCAAkB;IACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAW,EAAX,2BAAW,EAAX,0BAAW,EAAX,KAAW;8BALZ,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAG3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WAAgB,EAAhB,MAAA,cAAc,EAAE,EAAhB,gBAAgB,EAAhB,KAAgB;oBALjB,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAG3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;AACD,GAAG,CAAC,CAMC,WACyE,EADzE,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,gBACyE,EADzE,KACyE;oBAN1E,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAI3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,IAAI,MAAM,GAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACnG,IAAI,WAAW,GAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IAChG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAE/E;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC;AAED,IAAI,KAAa,EAAE,QAAgB,EAAE,UAAkB,EAAE,CAAS,EAAE,MAAc,CAAC;AACnF,IAAI,IAAY,EAAE,OAAe,EAAE,SAAiB,EAAE,KAAa,CAAC;;IAEpE,GAAG,CAAC,CAA8B,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAnC,gBAAyB;QAAxB,+BAAsB,EAAtB,qCAAsB;QACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA8B,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAxC,kBAAyB;QAAxB,iCAAsB,EAAtB,qCAAsB;QACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA8B,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAxG,gBAAsB,EAAtB,qCAAsB;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CACkD,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EAD5D,qBAC6C;QAD3C,sCACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAE/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CACkD,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EADjE,kBAC6C;QAD3C,mCACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAE/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAEA,IAAA,aAAA,EAAA,UAAA,SAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YAC9E,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA,EAAA,EAH7E,kBAC6C;QAD3C,mCACyC,EADzC,sEACyC,EAD/B,eAA6B,EAA7B,yCAA6B,EAAE,iBAAmC,EAAnC,6CAAmC;QAI/E,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IAED,GAAG,CAAC,CAAwB,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA7B,gBAAmB;QAAjB,+BAAe,EAAf,oCAAe;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAAwB,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAlC,kBAAmB;QAAjB,iCAAe,EAAf,oCAAe;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAAwB,UAA4E,EAA5E,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,cAA4E,EAA5E,IAA4E;IAAjG,gBAAe,EAAf,oCAAe;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAKC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EALX,qBAKJ;QAJG,sCAGgD,EAHhD,sEAGgD,EAF5C,eAAmB,EAAnB,wCAAmB,EACnB,iBAAuB,EAAvB,4CAAuB;QAG3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;;IACD,GAAG,CAAC,CAKC,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EALhB,kBAKJ;QAJG,mCAGgD,EAHhD,sEAGgD,EAF5C,eAAmB,EAAnB,wCAAmB,EACnB,iBAAuB,EAAvB,4CAAuB;QAG3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KACzB;;;;;;AACD,GAAG,CAAC,CAKC,UACyE,EADzE,MAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,cACyE,EADzE,IACyE;IAL1E,kBAGgD,EAHhD,sEAGgD,EAF5C,eAAmB,EAAnB,wCAAmB,EACnB,kBAAuB,EAAvB,8CAAuB;IAI3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzB;;IAGD,GAAG,CAAC,CAAyD,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAA9D,gBAAoD;qCAAnD,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;QACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA0D,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAApE,kBAAqD;uCAApD,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;QACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA0D,WAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,gBAA4E,EAA5E,KAA4E;oBAApI,cAAsB,EAAtB,uCAAsB,EAAE,eAAyB,EAAzB,yCAAyB;IACnD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAMC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EANX,qBAMJ;0CALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;QAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAMC,IAAA,aAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EANhB,kBAMJ;uCALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;QAGvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAMC,IAAA,aAAA,EAAA,UAAA,SAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YACnF,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA,EAAA,EAPzE,kBAMJ;uCALG,cAAsB,EAAtB,uCAAsB,EACtB,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAA6B,EAA7B,2CAA6B,EAC7B,mBAAmC,EAAnC,+CAAmC;QAIvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IAED,GAAG,CAAC,CAA4C,IAAA,WAAA,EAAA,UAAA,SAAA,MAAM,CAAA,EAAA,EAAjD,gBAAuC;qCAArC,cAAe,EAAf,sCAAe,EAAE,eAAkB,EAAlB,wCAAkB;QACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAA4C,IAAA,aAAA,EAAA,UAAA,SAAA,SAAS,EAAE,CAAA,EAAA,EAAtD,kBAAuC;uCAArC,cAAe,EAAf,sCAAe,EAAE,eAAiB,EAAjB,wCAAiB;QACrC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAA4C,WAA4E,EAA5E,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAA5E,gBAA4E,EAA5E,KAA4E;oBAArH,cAAe,EAAf,sCAAe,EAAE,eAAkB,EAAlB,wCAAkB;IACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB;;IACD,GAAG,CAAC,CAMC,IAAA,gBAAA,EAAA,UAAA,SAAA,WAAW,CAAA,EAAA,EANX,qBAMJ;0CALG,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;QAG3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;;IACD,GAAG,CAAC,CAMC,IAAA,cAAA,EAAA,UAAA,SAAA,cAAc,EAAE,CAAA,EAAA,EANhB,mBAMJ;wCALG,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;QAG3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACtB;;;;;;AACD,GAAG,CAAC,CAMC,WACyE,EADzE,OAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;IACrE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,EADzE,gBACyE,EADzE,KACyE;oBAN1E,cAAe,EAAf,sCAAe,EACf,gBAGgD,EAHhD,yEAGgD,EAF5C,iBAAmB,EAAnB,0CAAmB,EACnB,mBAAuB,EAAvB,8CAAuB;IAI3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.sourcemap.txt index 82d95b72094e9..ae24dfc81a5ad 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.sourcemap.txt @@ -8,6 +8,17 @@ sources: sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2 emittedFile:tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts ------------------------------------------------------------------- +>>>var __values = (this && this.__values) || function (o) { +>>> var i = o.__iterator__ || 0, d; +>>> return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +>>>}; +>>>var __step = (this && this.__step) || function (r) { +>>> return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +>>>}; +>>>var __close = (this && this.__close) || function (r) { +>>> var m = !(r && r.done) && r.iterator["return"]; +>>> if (m) return m.call(r.iterator); +>>>}; >>>var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; 1 > 2 >^^^^ @@ -77,32 +88,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 24> } 25> ] 26> ; -1 >Emitted(1, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(17, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(17, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(17, 23) + SourceIndex(0) -5 >Emitted(1, 15) Source(17, 24) + SourceIndex(0) -6 >Emitted(1, 17) Source(17, 26) + SourceIndex(0) -7 >Emitted(1, 21) Source(17, 30) + SourceIndex(0) -8 >Emitted(1, 23) Source(17, 32) + SourceIndex(0) -9 >Emitted(1, 30) Source(17, 39) + SourceIndex(0) -10>Emitted(1, 32) Source(17, 41) + SourceIndex(0) -11>Emitted(1, 37) Source(17, 46) + SourceIndex(0) -12>Emitted(1, 39) Source(17, 48) + SourceIndex(0) -13>Emitted(1, 47) Source(17, 56) + SourceIndex(0) -14>Emitted(1, 49) Source(17, 58) + SourceIndex(0) -15>Emitted(1, 51) Source(17, 60) + SourceIndex(0) -16>Emitted(1, 53) Source(17, 62) + SourceIndex(0) -17>Emitted(1, 57) Source(17, 66) + SourceIndex(0) -18>Emitted(1, 59) Source(17, 68) + SourceIndex(0) -19>Emitted(1, 68) Source(17, 77) + SourceIndex(0) -20>Emitted(1, 70) Source(17, 79) + SourceIndex(0) -21>Emitted(1, 75) Source(17, 84) + SourceIndex(0) -22>Emitted(1, 77) Source(17, 86) + SourceIndex(0) -23>Emitted(1, 87) Source(17, 96) + SourceIndex(0) -24>Emitted(1, 89) Source(17, 98) + SourceIndex(0) -25>Emitted(1, 90) Source(17, 99) + SourceIndex(0) -26>Emitted(1, 91) Source(17, 100) + SourceIndex(0) +1 >Emitted(12, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(17, 5) + SourceIndex(0) +3 >Emitted(12, 11) Source(17, 11) + SourceIndex(0) +4 >Emitted(12, 14) Source(17, 23) + SourceIndex(0) +5 >Emitted(12, 15) Source(17, 24) + SourceIndex(0) +6 >Emitted(12, 17) Source(17, 26) + SourceIndex(0) +7 >Emitted(12, 21) Source(17, 30) + SourceIndex(0) +8 >Emitted(12, 23) Source(17, 32) + SourceIndex(0) +9 >Emitted(12, 30) Source(17, 39) + SourceIndex(0) +10>Emitted(12, 32) Source(17, 41) + SourceIndex(0) +11>Emitted(12, 37) Source(17, 46) + SourceIndex(0) +12>Emitted(12, 39) Source(17, 48) + SourceIndex(0) +13>Emitted(12, 47) Source(17, 56) + SourceIndex(0) +14>Emitted(12, 49) Source(17, 58) + SourceIndex(0) +15>Emitted(12, 51) Source(17, 60) + SourceIndex(0) +16>Emitted(12, 53) Source(17, 62) + SourceIndex(0) +17>Emitted(12, 57) Source(17, 66) + SourceIndex(0) +18>Emitted(12, 59) Source(17, 68) + SourceIndex(0) +19>Emitted(12, 68) Source(17, 77) + SourceIndex(0) +20>Emitted(12, 70) Source(17, 79) + SourceIndex(0) +21>Emitted(12, 75) Source(17, 84) + SourceIndex(0) +22>Emitted(12, 77) Source(17, 86) + SourceIndex(0) +23>Emitted(12, 87) Source(17, 96) + SourceIndex(0) +24>Emitted(12, 89) Source(17, 98) + SourceIndex(0) +25>Emitted(12, 90) Source(17, 99) + SourceIndex(0) +26>Emitted(12, 91) Source(17, 100) + SourceIndex(0) --- >>>var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, 1 > @@ -150,28 +161,28 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 20> "none" 21> } 22> } -1 >Emitted(2, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(18, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(18, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(18, 33) + SourceIndex(0) -5 >Emitted(2, 20) Source(18, 34) + SourceIndex(0) -6 >Emitted(2, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(2, 26) Source(18, 40) + SourceIndex(0) -8 >Emitted(2, 28) Source(18, 42) + SourceIndex(0) -9 >Emitted(2, 35) Source(18, 49) + SourceIndex(0) -10>Emitted(2, 37) Source(18, 51) + SourceIndex(0) -11>Emitted(2, 43) Source(18, 57) + SourceIndex(0) -12>Emitted(2, 45) Source(18, 59) + SourceIndex(0) -13>Emitted(2, 47) Source(18, 61) + SourceIndex(0) -14>Emitted(2, 54) Source(18, 68) + SourceIndex(0) -15>Emitted(2, 56) Source(18, 70) + SourceIndex(0) -16>Emitted(2, 64) Source(18, 78) + SourceIndex(0) -17>Emitted(2, 66) Source(18, 80) + SourceIndex(0) -18>Emitted(2, 75) Source(18, 89) + SourceIndex(0) -19>Emitted(2, 77) Source(18, 91) + SourceIndex(0) -20>Emitted(2, 83) Source(18, 97) + SourceIndex(0) -21>Emitted(2, 85) Source(18, 99) + SourceIndex(0) -22>Emitted(2, 87) Source(18, 101) + SourceIndex(0) +1 >Emitted(13, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(18, 5) + SourceIndex(0) +3 >Emitted(13, 16) Source(18, 16) + SourceIndex(0) +4 >Emitted(13, 19) Source(18, 33) + SourceIndex(0) +5 >Emitted(13, 20) Source(18, 34) + SourceIndex(0) +6 >Emitted(13, 22) Source(18, 36) + SourceIndex(0) +7 >Emitted(13, 26) Source(18, 40) + SourceIndex(0) +8 >Emitted(13, 28) Source(18, 42) + SourceIndex(0) +9 >Emitted(13, 35) Source(18, 49) + SourceIndex(0) +10>Emitted(13, 37) Source(18, 51) + SourceIndex(0) +11>Emitted(13, 43) Source(18, 57) + SourceIndex(0) +12>Emitted(13, 45) Source(18, 59) + SourceIndex(0) +13>Emitted(13, 47) Source(18, 61) + SourceIndex(0) +14>Emitted(13, 54) Source(18, 68) + SourceIndex(0) +15>Emitted(13, 56) Source(18, 70) + SourceIndex(0) +16>Emitted(13, 64) Source(18, 78) + SourceIndex(0) +17>Emitted(13, 66) Source(18, 80) + SourceIndex(0) +18>Emitted(13, 75) Source(18, 89) + SourceIndex(0) +19>Emitted(13, 77) Source(18, 91) + SourceIndex(0) +20>Emitted(13, 83) Source(18, 97) + SourceIndex(0) +21>Emitted(13, 85) Source(18, 99) + SourceIndex(0) +22>Emitted(13, 87) Source(18, 101) + SourceIndex(0) --- >>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; 1 >^^^^ @@ -215,26 +226,26 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 18> } 19> ] 20> ; -1 >Emitted(3, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(3, 7) Source(19, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(19, 11) + SourceIndex(0) -4 >Emitted(3, 13) Source(19, 13) + SourceIndex(0) -5 >Emitted(3, 22) Source(19, 22) + SourceIndex(0) -6 >Emitted(3, 24) Source(19, 24) + SourceIndex(0) -7 >Emitted(3, 30) Source(19, 30) + SourceIndex(0) -8 >Emitted(3, 32) Source(19, 32) + SourceIndex(0) -9 >Emitted(3, 34) Source(19, 34) + SourceIndex(0) -10>Emitted(3, 41) Source(19, 41) + SourceIndex(0) -11>Emitted(3, 43) Source(19, 43) + SourceIndex(0) -12>Emitted(3, 53) Source(19, 53) + SourceIndex(0) -13>Emitted(3, 55) Source(19, 55) + SourceIndex(0) -14>Emitted(3, 64) Source(19, 64) + SourceIndex(0) -15>Emitted(3, 66) Source(19, 66) + SourceIndex(0) -16>Emitted(3, 74) Source(19, 74) + SourceIndex(0) -17>Emitted(3, 76) Source(19, 76) + SourceIndex(0) -18>Emitted(3, 78) Source(19, 78) + SourceIndex(0) -19>Emitted(3, 79) Source(19, 79) + SourceIndex(0) -20>Emitted(3, 80) Source(19, 80) + SourceIndex(0) +1 >Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 7) Source(19, 7) + SourceIndex(0) +3 >Emitted(14, 11) Source(19, 11) + SourceIndex(0) +4 >Emitted(14, 13) Source(19, 13) + SourceIndex(0) +5 >Emitted(14, 22) Source(19, 22) + SourceIndex(0) +6 >Emitted(14, 24) Source(19, 24) + SourceIndex(0) +7 >Emitted(14, 30) Source(19, 30) + SourceIndex(0) +8 >Emitted(14, 32) Source(19, 32) + SourceIndex(0) +9 >Emitted(14, 34) Source(19, 34) + SourceIndex(0) +10>Emitted(14, 41) Source(19, 41) + SourceIndex(0) +11>Emitted(14, 43) Source(19, 43) + SourceIndex(0) +12>Emitted(14, 53) Source(19, 53) + SourceIndex(0) +13>Emitted(14, 55) Source(19, 55) + SourceIndex(0) +14>Emitted(14, 64) Source(19, 64) + SourceIndex(0) +15>Emitted(14, 66) Source(19, 66) + SourceIndex(0) +16>Emitted(14, 74) Source(19, 74) + SourceIndex(0) +17>Emitted(14, 76) Source(19, 76) + SourceIndex(0) +18>Emitted(14, 78) Source(19, 78) + SourceIndex(0) +19>Emitted(14, 79) Source(19, 79) + SourceIndex(0) +20>Emitted(14, 80) Source(19, 80) + SourceIndex(0) --- >>>function getRobots() { 1 > @@ -242,7 +253,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1 > > > -1 >Emitted(4, 1) Source(21, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(21, 1) + SourceIndex(0) --- >>> return robots; 1->^^^^ @@ -256,11 +267,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 3 > 4 > robots 5 > ; -1->Emitted(5, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(5, 11) Source(22, 11) + SourceIndex(0) -3 >Emitted(5, 12) Source(22, 12) + SourceIndex(0) -4 >Emitted(5, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(22, 19) + SourceIndex(0) +1->Emitted(16, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(16, 11) Source(22, 11) + SourceIndex(0) +3 >Emitted(16, 12) Source(22, 12) + SourceIndex(0) +4 >Emitted(16, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(16, 19) Source(22, 19) + SourceIndex(0) --- >>>} 1 > @@ -269,8 +280,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1 > > 2 >} -1 >Emitted(6, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(23, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(23, 2) + SourceIndex(0) --- >>>function getMultiRobots() { 1-> @@ -278,7 +289,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1-> > > -1->Emitted(7, 1) Source(25, 1) + SourceIndex(0) +1->Emitted(18, 1) Source(25, 1) + SourceIndex(0) --- >>> return multiRobots; 1->^^^^ @@ -292,11 +303,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 3 > 4 > multiRobots 5 > ; -1->Emitted(8, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(8, 11) Source(26, 11) + SourceIndex(0) -3 >Emitted(8, 12) Source(26, 12) + SourceIndex(0) -4 >Emitted(8, 23) Source(26, 23) + SourceIndex(0) -5 >Emitted(8, 24) Source(26, 24) + SourceIndex(0) +1->Emitted(19, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(19, 11) Source(26, 11) + SourceIndex(0) +3 >Emitted(19, 12) Source(26, 12) + SourceIndex(0) +4 >Emitted(19, 23) Source(26, 23) + SourceIndex(0) +5 >Emitted(19, 24) Source(26, 24) + SourceIndex(0) --- >>>} 1 > @@ -305,8 +316,8 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 1 > > 2 >} -1 >Emitted(9, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(27, 2) + SourceIndex(0) +1 >Emitted(20, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(27, 2) + SourceIndex(0) --- >>>var nameA, primaryA, secondaryA, i, skillA; 1-> @@ -335,18 +346,18 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 10> , 11> skillA: string 12> ; -1->Emitted(10, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(10, 10) Source(29, 18) + SourceIndex(0) -4 >Emitted(10, 12) Source(29, 20) + SourceIndex(0) -5 >Emitted(10, 20) Source(29, 36) + SourceIndex(0) -6 >Emitted(10, 22) Source(29, 38) + SourceIndex(0) -7 >Emitted(10, 32) Source(29, 56) + SourceIndex(0) -8 >Emitted(10, 34) Source(29, 58) + SourceIndex(0) -9 >Emitted(10, 35) Source(29, 67) + SourceIndex(0) -10>Emitted(10, 37) Source(29, 69) + SourceIndex(0) -11>Emitted(10, 43) Source(29, 83) + SourceIndex(0) -12>Emitted(10, 44) Source(29, 84) + SourceIndex(0) +1->Emitted(21, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(21, 10) Source(29, 18) + SourceIndex(0) +4 >Emitted(21, 12) Source(29, 20) + SourceIndex(0) +5 >Emitted(21, 20) Source(29, 36) + SourceIndex(0) +6 >Emitted(21, 22) Source(29, 38) + SourceIndex(0) +7 >Emitted(21, 32) Source(29, 56) + SourceIndex(0) +8 >Emitted(21, 34) Source(29, 58) + SourceIndex(0) +9 >Emitted(21, 35) Source(29, 67) + SourceIndex(0) +10>Emitted(21, 37) Source(29, 69) + SourceIndex(0) +11>Emitted(21, 43) Source(29, 83) + SourceIndex(0) +12>Emitted(21, 44) Source(29, 84) + SourceIndex(0) --- >>>var name, primary, secondary, skill; 1 > @@ -359,7 +370,6 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 8 > ^^ 9 > ^^^^^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let @@ -371,159 +381,328 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 8 > , 9 > skill: string 10> ; -1 >Emitted(11, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(30, 5) + SourceIndex(0) -3 >Emitted(11, 9) Source(30, 17) + SourceIndex(0) -4 >Emitted(11, 11) Source(30, 19) + SourceIndex(0) -5 >Emitted(11, 18) Source(30, 34) + SourceIndex(0) -6 >Emitted(11, 20) Source(30, 36) + SourceIndex(0) -7 >Emitted(11, 29) Source(30, 53) + SourceIndex(0) -8 >Emitted(11, 31) Source(30, 55) + SourceIndex(0) -9 >Emitted(11, 36) Source(30, 68) + SourceIndex(0) -10>Emitted(11, 37) Source(30, 69) + SourceIndex(0) ---- ->>>for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^-> -1-> +1 >Emitted(22, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(30, 5) + SourceIndex(0) +3 >Emitted(22, 9) Source(30, 17) + SourceIndex(0) +4 >Emitted(22, 11) Source(30, 19) + SourceIndex(0) +5 >Emitted(22, 18) Source(30, 34) + SourceIndex(0) +6 >Emitted(22, 20) Source(30, 36) + SourceIndex(0) +7 >Emitted(22, 29) Source(30, 53) + SourceIndex(0) +8 >Emitted(22, 31) Source(30, 55) + SourceIndex(0) +9 >Emitted(22, 36) Source(30, 68) + SourceIndex(0) +10>Emitted(22, 37) Source(30, 69) + SourceIndex(0) +--- +>>>try { +>>> for (var robots_1 = { iterator: __values(robots) }; __step(robots_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^-> +1 > > > -2 >for -3 > -4 > ({name: nameA = "noName" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(12, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(12, 4) Source(32, 4) + SourceIndex(0) -3 >Emitted(12, 5) Source(32, 5) + SourceIndex(0) -4 >Emitted(12, 6) Source(32, 35) + SourceIndex(0) -5 >Emitted(12, 16) Source(32, 41) + SourceIndex(0) -6 >Emitted(12, 18) Source(32, 35) + SourceIndex(0) -7 >Emitted(12, 35) Source(32, 41) + SourceIndex(0) -8 >Emitted(12, 37) Source(32, 35) + SourceIndex(0) -9 >Emitted(12, 57) Source(32, 41) + SourceIndex(0) -10>Emitted(12, 59) Source(32, 35) + SourceIndex(0) -11>Emitted(12, 63) Source(32, 41) + SourceIndex(0) ---- ->>> _a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name: nameA = "noName" } +1 >Emitted(24, 5) Source(32, 1) + SourceIndex(0) +2 >Emitted(24, 8) Source(32, 4) + SourceIndex(0) +3 >Emitted(24, 9) Source(32, 5) + SourceIndex(0) +4 >Emitted(24, 10) Source(32, 35) + SourceIndex(0) +5 >Emitted(24, 14) Source(32, 35) + SourceIndex(0) +6 >Emitted(24, 25) Source(32, 35) + SourceIndex(0) +7 >Emitted(24, 27) Source(32, 35) + SourceIndex(0) +8 >Emitted(24, 37) Source(32, 35) + SourceIndex(0) +9 >Emitted(24, 46) Source(32, 35) + SourceIndex(0) +10>Emitted(24, 52) Source(32, 41) + SourceIndex(0) +11>Emitted(24, 53) Source(32, 41) + SourceIndex(0) +12>Emitted(24, 55) Source(32, 41) + SourceIndex(0) +13>Emitted(24, 57) Source(32, 6) + SourceIndex(0) +14>Emitted(24, 73) Source(32, 31) + SourceIndex(0) +--- +>>> _a = robots_1.result.value.name, nameA = _a === void 0 ? "noName" : _a; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -1->Emitted(13, 5) Source(32, 7) + SourceIndex(0) -2 >Emitted(13, 27) Source(32, 29) + SourceIndex(0) -3 >Emitted(13, 29) Source(32, 7) + SourceIndex(0) -4 >Emitted(13, 66) Source(32, 29) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +1->Emitted(25, 9) Source(32, 7) + SourceIndex(0) +2 >Emitted(25, 40) Source(32, 29) + SourceIndex(0) +3 >Emitted(25, 42) Source(32, 7) + SourceIndex(0) +4 >Emitted(25, 79) Source(32, 29) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(14, 5) Source(33, 5) + SourceIndex(0) -2 >Emitted(14, 12) Source(33, 12) + SourceIndex(0) -3 >Emitted(14, 13) Source(33, 13) + SourceIndex(0) -4 >Emitted(14, 16) Source(33, 16) + SourceIndex(0) -5 >Emitted(14, 17) Source(33, 17) + SourceIndex(0) -6 >Emitted(14, 22) Source(33, 22) + SourceIndex(0) -7 >Emitted(14, 23) Source(33, 23) + SourceIndex(0) -8 >Emitted(14, 24) Source(33, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(26, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(26, 16) Source(33, 12) + SourceIndex(0) +3 >Emitted(26, 17) Source(33, 13) + SourceIndex(0) +4 >Emitted(26, 20) Source(33, 16) + SourceIndex(0) +5 >Emitted(26, 21) Source(33, 17) + SourceIndex(0) +6 >Emitted(26, 26) Source(33, 22) + SourceIndex(0) +7 >Emitted(26, 27) Source(33, 23) + SourceIndex(0) +8 >Emitted(26, 28) Source(33, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(27, 6) Source(34, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_1_1) { e_1 = { error: e_1_1 }; } +>>>finally { +>>> try { __close(robots_1); } finally { if (e_1) throw e_1.error; } +>>>} +>>>try { +>>> for (var iterator_1 = { iterator: __values(getRobots()) }; __step(iterator_1);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^-> +1 > + > +2 > for +3 > +4 > ({name: nameA = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name: nameA = "noName" } +1 >Emitted(34, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(35, 4) + SourceIndex(0) +3 >Emitted(34, 9) Source(35, 5) + SourceIndex(0) +4 >Emitted(34, 10) Source(35, 35) + SourceIndex(0) +5 >Emitted(34, 14) Source(35, 35) + SourceIndex(0) +6 >Emitted(34, 27) Source(35, 35) + SourceIndex(0) +7 >Emitted(34, 29) Source(35, 35) + SourceIndex(0) +8 >Emitted(34, 39) Source(35, 35) + SourceIndex(0) +9 >Emitted(34, 48) Source(35, 35) + SourceIndex(0) +10>Emitted(34, 57) Source(35, 44) + SourceIndex(0) +11>Emitted(34, 59) Source(35, 46) + SourceIndex(0) +12>Emitted(34, 60) Source(35, 46) + SourceIndex(0) +13>Emitted(34, 62) Source(35, 46) + SourceIndex(0) +14>Emitted(34, 64) Source(35, 6) + SourceIndex(0) +15>Emitted(34, 82) Source(35, 31) + SourceIndex(0) +--- +>>> _b = iterator_1.result.value.name, nameA = _b === void 0 ? "noName" : _b; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +1->Emitted(35, 9) Source(35, 7) + SourceIndex(0) +2 >Emitted(35, 42) Source(35, 29) + SourceIndex(0) +3 >Emitted(35, 44) Source(35, 7) + SourceIndex(0) +4 >Emitted(35, 81) Source(35, 29) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(36, 9) Source(36, 5) + SourceIndex(0) +2 >Emitted(36, 16) Source(36, 12) + SourceIndex(0) +3 >Emitted(36, 17) Source(36, 13) + SourceIndex(0) +4 >Emitted(36, 20) Source(36, 16) + SourceIndex(0) +5 >Emitted(36, 21) Source(36, 17) + SourceIndex(0) +6 >Emitted(36, 26) Source(36, 22) + SourceIndex(0) +7 >Emitted(36, 27) Source(36, 23) + SourceIndex(0) +8 >Emitted(36, 28) Source(36, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(15, 2) Source(34, 2) + SourceIndex(0) +1 >Emitted(37, 6) Source(37, 2) + SourceIndex(0) --- ->>>for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) { -1-> +>>>} +>>>catch (e_2_1) { e_2 = { error: e_2_1 }; } +>>>finally { +>>> try { __close(iterator_1); } finally { if (e_2) throw e_2.error; } +>>>} +>>>for (var _i = 0, _c = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _i < _c.length; _i++) { +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^-> -1-> +7 > ^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^ +14> ^^ +15> ^^^^^^^^ +16> ^^ +17> ^^ +18> ^^ +19> ^^^^ +20> ^^ +21> ^^^^^^^^^ +22> ^^ +23> ^^^^^ +24> ^^ +25> ^^^^^^^^^^ +26> ^^ +27> ^ +28> ^^ +29> ^^^^^^^^^^^^^^ +30> ^^ +31> ^^^^ +1 > > 2 >for 3 > 4 > ({name: nameA = "noName" } of -5 > getRobots() +5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(16, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(16, 4) Source(35, 4) + SourceIndex(0) -3 >Emitted(16, 5) Source(35, 5) + SourceIndex(0) -4 >Emitted(16, 6) Source(35, 35) + SourceIndex(0) -5 >Emitted(16, 16) Source(35, 46) + SourceIndex(0) -6 >Emitted(16, 18) Source(35, 35) + SourceIndex(0) -7 >Emitted(16, 23) Source(35, 35) + SourceIndex(0) -8 >Emitted(16, 32) Source(35, 44) + SourceIndex(0) -9 >Emitted(16, 34) Source(35, 46) + SourceIndex(0) -10>Emitted(16, 36) Source(35, 35) + SourceIndex(0) -11>Emitted(16, 50) Source(35, 46) + SourceIndex(0) -12>Emitted(16, 52) Source(35, 35) + SourceIndex(0) -13>Emitted(16, 56) Source(35, 46) + SourceIndex(0) ---- ->>> _d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d; -1->^^^^ +7 > [ +8 > { +9 > name +10> : +11> "mower" +12> , +13> skill +14> : +15> "mowing" +16> } +17> , +18> { +19> name +20> : +21> "trimmer" +22> , +23> skill +24> : +25> "trimming" +26> } +27> ] +28> +29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +30> +31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +1 >Emitted(43, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(43, 4) Source(38, 4) + SourceIndex(0) +3 >Emitted(43, 5) Source(38, 5) + SourceIndex(0) +4 >Emitted(43, 6) Source(38, 35) + SourceIndex(0) +5 >Emitted(43, 16) Source(38, 111) + SourceIndex(0) +6 >Emitted(43, 18) Source(38, 35) + SourceIndex(0) +7 >Emitted(43, 24) Source(38, 36) + SourceIndex(0) +8 >Emitted(43, 26) Source(38, 38) + SourceIndex(0) +9 >Emitted(43, 30) Source(38, 42) + SourceIndex(0) +10>Emitted(43, 32) Source(38, 44) + SourceIndex(0) +11>Emitted(43, 39) Source(38, 51) + SourceIndex(0) +12>Emitted(43, 41) Source(38, 53) + SourceIndex(0) +13>Emitted(43, 46) Source(38, 58) + SourceIndex(0) +14>Emitted(43, 48) Source(38, 60) + SourceIndex(0) +15>Emitted(43, 56) Source(38, 68) + SourceIndex(0) +16>Emitted(43, 58) Source(38, 70) + SourceIndex(0) +17>Emitted(43, 60) Source(38, 72) + SourceIndex(0) +18>Emitted(43, 62) Source(38, 74) + SourceIndex(0) +19>Emitted(43, 66) Source(38, 78) + SourceIndex(0) +20>Emitted(43, 68) Source(38, 80) + SourceIndex(0) +21>Emitted(43, 77) Source(38, 89) + SourceIndex(0) +22>Emitted(43, 79) Source(38, 91) + SourceIndex(0) +23>Emitted(43, 84) Source(38, 96) + SourceIndex(0) +24>Emitted(43, 86) Source(38, 98) + SourceIndex(0) +25>Emitted(43, 96) Source(38, 108) + SourceIndex(0) +26>Emitted(43, 98) Source(38, 110) + SourceIndex(0) +27>Emitted(43, 99) Source(38, 111) + SourceIndex(0) +28>Emitted(43, 101) Source(38, 35) + SourceIndex(0) +29>Emitted(43, 115) Source(38, 111) + SourceIndex(0) +30>Emitted(43, 117) Source(38, 35) + SourceIndex(0) +31>Emitted(43, 121) Source(38, 111) + SourceIndex(0) +--- +>>> _d = _c[_i].name, nameA = _d === void 0 ? "noName" : _d; +1 >^^^^ 2 > ^^^^^^^^^^^^^^^^ 3 > ^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1 > 2 > name: nameA = "noName" 3 > 4 > name: nameA = "noName" -1->Emitted(17, 5) Source(35, 7) + SourceIndex(0) -2 >Emitted(17, 21) Source(35, 29) + SourceIndex(0) -3 >Emitted(17, 23) Source(35, 7) + SourceIndex(0) -4 >Emitted(17, 60) Source(35, 29) + SourceIndex(0) +1 >Emitted(44, 5) Source(38, 7) + SourceIndex(0) +2 >Emitted(44, 21) Source(38, 29) + SourceIndex(0) +3 >Emitted(44, 23) Source(38, 7) + SourceIndex(0) +4 >Emitted(44, 60) Source(38, 29) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -534,7 +713,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > ^^^^^ 7 > ^ 8 > ^ -1 > } of getRobots()) { +1 > } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { > 2 > console 3 > . @@ -543,24 +722,726 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(18, 5) Source(36, 5) + SourceIndex(0) -2 >Emitted(18, 12) Source(36, 12) + SourceIndex(0) -3 >Emitted(18, 13) Source(36, 13) + SourceIndex(0) -4 >Emitted(18, 16) Source(36, 16) + SourceIndex(0) -5 >Emitted(18, 17) Source(36, 17) + SourceIndex(0) -6 >Emitted(18, 22) Source(36, 22) + SourceIndex(0) -7 >Emitted(18, 23) Source(36, 23) + SourceIndex(0) -8 >Emitted(18, 24) Source(36, 24) + SourceIndex(0) +1 >Emitted(45, 5) Source(39, 5) + SourceIndex(0) +2 >Emitted(45, 12) Source(39, 12) + SourceIndex(0) +3 >Emitted(45, 13) Source(39, 13) + SourceIndex(0) +4 >Emitted(45, 16) Source(39, 16) + SourceIndex(0) +5 >Emitted(45, 17) Source(39, 17) + SourceIndex(0) +6 >Emitted(45, 22) Source(39, 22) + SourceIndex(0) +7 >Emitted(45, 23) Source(39, 23) + SourceIndex(0) +8 >Emitted(45, 24) Source(39, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> +1 > + >} +1 >Emitted(46, 2) Source(40, 2) + SourceIndex(0) +--- +>>>try { +>>> for (var multiRobots_1 = { iterator: __values(multiRobots) }; __step(multiRobots_1);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > for +3 > +4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1->Emitted(48, 5) Source(41, 1) + SourceIndex(0) +2 >Emitted(48, 8) Source(41, 4) + SourceIndex(0) +3 >Emitted(48, 9) Source(41, 5) + SourceIndex(0) +4 >Emitted(48, 10) Source(42, 55) + SourceIndex(0) +5 >Emitted(48, 14) Source(42, 55) + SourceIndex(0) +6 >Emitted(48, 30) Source(42, 55) + SourceIndex(0) +7 >Emitted(48, 32) Source(42, 55) + SourceIndex(0) +8 >Emitted(48, 42) Source(42, 55) + SourceIndex(0) +9 >Emitted(48, 51) Source(42, 55) + SourceIndex(0) +10>Emitted(48, 62) Source(42, 66) + SourceIndex(0) +11>Emitted(48, 63) Source(42, 66) + SourceIndex(0) +12>Emitted(48, 65) Source(42, 66) + SourceIndex(0) +13>Emitted(48, 67) Source(41, 6) + SourceIndex(0) +14>Emitted(48, 88) Source(42, 51) + SourceIndex(0) +--- +>>> _e = multiRobots_1.result.value.skills, _f = _e === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _e, _g = _f.primary, primaryA = _g === void 0 ? "primary" : _g, _h = _f.secondary, secondaryA = _h === void 0 ? "secondary" : _h; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +3 > +4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +5 > +6 > primary: primaryA = "primary" +7 > +8 > primary: primaryA = "primary" +9 > , +10> secondary: secondaryA = "secondary" +11> +12> secondary: secondaryA = "secondary" +1->Emitted(49, 9) Source(41, 8) + SourceIndex(0) +2 >Emitted(49, 47) Source(42, 49) + SourceIndex(0) +3 >Emitted(49, 49) Source(41, 8) + SourceIndex(0) +4 >Emitted(49, 119) Source(42, 49) + SourceIndex(0) +5 >Emitted(49, 121) Source(41, 18) + SourceIndex(0) +6 >Emitted(49, 136) Source(41, 47) + SourceIndex(0) +7 >Emitted(49, 138) Source(41, 18) + SourceIndex(0) +8 >Emitted(49, 179) Source(41, 47) + SourceIndex(0) +9 >Emitted(49, 181) Source(41, 49) + SourceIndex(0) +10>Emitted(49, 198) Source(41, 84) + SourceIndex(0) +11>Emitted(49, 200) Source(41, 49) + SourceIndex(0) +12>Emitted(49, 245) Source(41, 84) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ +1 > } = + > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(50, 9) Source(43, 5) + SourceIndex(0) +2 >Emitted(50, 16) Source(43, 12) + SourceIndex(0) +3 >Emitted(50, 17) Source(43, 13) + SourceIndex(0) +4 >Emitted(50, 20) Source(43, 16) + SourceIndex(0) +5 >Emitted(50, 21) Source(43, 17) + SourceIndex(0) +6 >Emitted(50, 29) Source(43, 25) + SourceIndex(0) +7 >Emitted(50, 30) Source(43, 26) + SourceIndex(0) +8 >Emitted(50, 31) Source(43, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(51, 6) Source(44, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_3_1) { e_3 = { error: e_3_1 }; } +>>>finally { +>>> try { __close(multiRobots_1); } finally { if (e_3) throw e_3.error; } +>>>} +>>>try { +>>> for (var iterator_2 = { iterator: __values(getMultiRobots()) }; __step(iterator_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1 >Emitted(58, 5) Source(45, 1) + SourceIndex(0) +2 >Emitted(58, 8) Source(45, 4) + SourceIndex(0) +3 >Emitted(58, 9) Source(45, 5) + SourceIndex(0) +4 >Emitted(58, 10) Source(46, 55) + SourceIndex(0) +5 >Emitted(58, 14) Source(46, 55) + SourceIndex(0) +6 >Emitted(58, 27) Source(46, 55) + SourceIndex(0) +7 >Emitted(58, 29) Source(46, 55) + SourceIndex(0) +8 >Emitted(58, 39) Source(46, 55) + SourceIndex(0) +9 >Emitted(58, 48) Source(46, 55) + SourceIndex(0) +10>Emitted(58, 62) Source(46, 69) + SourceIndex(0) +11>Emitted(58, 64) Source(46, 71) + SourceIndex(0) +12>Emitted(58, 65) Source(46, 71) + SourceIndex(0) +13>Emitted(58, 67) Source(46, 71) + SourceIndex(0) +14>Emitted(58, 69) Source(45, 6) + SourceIndex(0) +15>Emitted(58, 87) Source(46, 51) + SourceIndex(0) +--- +>>> _j = iterator_2.result.value.skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +3 > +4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +5 > +6 > primary: primaryA = "primary" +7 > +8 > primary: primaryA = "primary" +9 > , +10> secondary: secondaryA = "secondary" +11> +12> secondary: secondaryA = "secondary" +1->Emitted(59, 9) Source(45, 8) + SourceIndex(0) +2 >Emitted(59, 44) Source(46, 49) + SourceIndex(0) +3 >Emitted(59, 46) Source(45, 8) + SourceIndex(0) +4 >Emitted(59, 116) Source(46, 49) + SourceIndex(0) +5 >Emitted(59, 118) Source(45, 18) + SourceIndex(0) +6 >Emitted(59, 133) Source(45, 47) + SourceIndex(0) +7 >Emitted(59, 135) Source(45, 18) + SourceIndex(0) +8 >Emitted(59, 176) Source(45, 47) + SourceIndex(0) +9 >Emitted(59, 178) Source(45, 49) + SourceIndex(0) +10>Emitted(59, 195) Source(45, 84) + SourceIndex(0) +11>Emitted(59, 197) Source(45, 49) + SourceIndex(0) +12>Emitted(59, 242) Source(45, 84) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ +1 > } = + > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(60, 9) Source(47, 5) + SourceIndex(0) +2 >Emitted(60, 16) Source(47, 12) + SourceIndex(0) +3 >Emitted(60, 17) Source(47, 13) + SourceIndex(0) +4 >Emitted(60, 20) Source(47, 16) + SourceIndex(0) +5 >Emitted(60, 21) Source(47, 17) + SourceIndex(0) +6 >Emitted(60, 29) Source(47, 25) + SourceIndex(0) +7 >Emitted(60, 30) Source(47, 26) + SourceIndex(0) +8 >Emitted(60, 31) Source(47, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(61, 6) Source(48, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_4_1) { e_4 = { error: e_4_1 }; } +>>>finally { +>>> try { __close(iterator_2); } finally { if (e_4) throw e_4.error; } +>>>} +>>>try { +>>> for (var iterator_3 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^ +11> ^^ +12> ^^^^ +13> ^^ +14> ^^^^^^^ +15> ^^ +16> ^^^^^^ +17> ^^ +18> ^^ +19> ^^^^^^^ +20> ^^ +21> ^^^^^^^^ +22> ^^ +23> ^^^^^^^^^ +24> ^^ +25> ^^^^^^ +26> ^^ +27> ^^ +1 > + > +2 > for +3 > +4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } of + > +5 > +6 > +7 > +8 > +9 > +10> [ +11> { +12> name +13> : +14> "mower" +15> , +16> skills +17> : +18> { +19> primary +20> : +21> "mowing" +22> , +23> secondary +24> : +25> "none" +26> } +27> } +1 >Emitted(68, 5) Source(49, 1) + SourceIndex(0) +2 >Emitted(68, 8) Source(49, 4) + SourceIndex(0) +3 >Emitted(68, 9) Source(49, 5) + SourceIndex(0) +4 >Emitted(68, 10) Source(51, 5) + SourceIndex(0) +5 >Emitted(68, 14) Source(51, 5) + SourceIndex(0) +6 >Emitted(68, 27) Source(51, 5) + SourceIndex(0) +7 >Emitted(68, 29) Source(51, 5) + SourceIndex(0) +8 >Emitted(68, 39) Source(51, 5) + SourceIndex(0) +9 >Emitted(68, 48) Source(51, 19) + SourceIndex(0) +10>Emitted(68, 49) Source(51, 20) + SourceIndex(0) +11>Emitted(68, 51) Source(51, 22) + SourceIndex(0) +12>Emitted(68, 55) Source(51, 26) + SourceIndex(0) +13>Emitted(68, 57) Source(51, 28) + SourceIndex(0) +14>Emitted(68, 64) Source(51, 35) + SourceIndex(0) +15>Emitted(68, 66) Source(51, 37) + SourceIndex(0) +16>Emitted(68, 72) Source(51, 43) + SourceIndex(0) +17>Emitted(68, 74) Source(51, 45) + SourceIndex(0) +18>Emitted(68, 76) Source(51, 47) + SourceIndex(0) +19>Emitted(68, 83) Source(51, 54) + SourceIndex(0) +20>Emitted(68, 85) Source(51, 56) + SourceIndex(0) +21>Emitted(68, 93) Source(51, 64) + SourceIndex(0) +22>Emitted(68, 95) Source(51, 66) + SourceIndex(0) +23>Emitted(68, 104) Source(51, 75) + SourceIndex(0) +24>Emitted(68, 106) Source(51, 77) + SourceIndex(0) +25>Emitted(68, 112) Source(51, 83) + SourceIndex(0) +26>Emitted(68, 114) Source(51, 85) + SourceIndex(0) +27>Emitted(68, 116) Source(51, 87) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_3);) { +1 >^^^^^^^^^^^^ +2 > ^^ +3 > ^^^^ +4 > ^^ +5 > ^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^ +10> ^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^ +15> ^^ +16> ^^^^^^^^ +17> ^^ +18> ^^ +19> ^ +20> ^ +21> ^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >, + > +2 > { +3 > name +4 > : +5 > "trimmer" +6 > , +7 > skills +8 > : +9 > { +10> primary +11> : +12> "trimming" +13> , +14> secondary +15> : +16> "edging" +17> } +18> } +19> ] +20> +21> +22> +23> { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } } +1 >Emitted(69, 13) Source(52, 9) + SourceIndex(0) +2 >Emitted(69, 15) Source(52, 11) + SourceIndex(0) +3 >Emitted(69, 19) Source(52, 15) + SourceIndex(0) +4 >Emitted(69, 21) Source(52, 17) + SourceIndex(0) +5 >Emitted(69, 30) Source(52, 26) + SourceIndex(0) +6 >Emitted(69, 32) Source(52, 28) + SourceIndex(0) +7 >Emitted(69, 38) Source(52, 34) + SourceIndex(0) +8 >Emitted(69, 40) Source(52, 36) + SourceIndex(0) +9 >Emitted(69, 42) Source(52, 38) + SourceIndex(0) +10>Emitted(69, 49) Source(52, 45) + SourceIndex(0) +11>Emitted(69, 51) Source(52, 47) + SourceIndex(0) +12>Emitted(69, 61) Source(52, 57) + SourceIndex(0) +13>Emitted(69, 63) Source(52, 59) + SourceIndex(0) +14>Emitted(69, 72) Source(52, 68) + SourceIndex(0) +15>Emitted(69, 74) Source(52, 70) + SourceIndex(0) +16>Emitted(69, 82) Source(52, 78) + SourceIndex(0) +17>Emitted(69, 84) Source(52, 80) + SourceIndex(0) +18>Emitted(69, 86) Source(52, 82) + SourceIndex(0) +19>Emitted(69, 87) Source(52, 83) + SourceIndex(0) +20>Emitted(69, 88) Source(52, 83) + SourceIndex(0) +21>Emitted(69, 90) Source(52, 83) + SourceIndex(0) +22>Emitted(69, 92) Source(49, 6) + SourceIndex(0) +23>Emitted(69, 110) Source(50, 51) + SourceIndex(0) +--- +>>> _o = iterator_3.result.value.skills, _p = _o === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _o, _q = _p.primary, primaryA = _q === void 0 ? "primary" : _q, _r = _p.secondary, secondaryA = _r === void 0 ? "secondary" : _r; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +3 > +4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = + > { primary: "nosKill", secondary: "noSkill" } +5 > +6 > primary: primaryA = "primary" +7 > +8 > primary: primaryA = "primary" +9 > , +10> secondary: secondaryA = "secondary" +11> +12> secondary: secondaryA = "secondary" +1->Emitted(70, 9) Source(49, 8) + SourceIndex(0) +2 >Emitted(70, 44) Source(50, 49) + SourceIndex(0) +3 >Emitted(70, 46) Source(49, 8) + SourceIndex(0) +4 >Emitted(70, 116) Source(50, 49) + SourceIndex(0) +5 >Emitted(70, 118) Source(49, 18) + SourceIndex(0) +6 >Emitted(70, 133) Source(49, 47) + SourceIndex(0) +7 >Emitted(70, 135) Source(49, 18) + SourceIndex(0) +8 >Emitted(70, 176) Source(49, 47) + SourceIndex(0) +9 >Emitted(70, 178) Source(49, 49) + SourceIndex(0) +10>Emitted(70, 195) Source(49, 84) + SourceIndex(0) +11>Emitted(70, 197) Source(49, 49) + SourceIndex(0) +12>Emitted(70, 242) Source(49, 84) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ +1 > } = + > { primary: "nosKill", secondary: "noSkill" } } of + > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { + > +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(71, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(71, 16) Source(53, 12) + SourceIndex(0) +3 >Emitted(71, 17) Source(53, 13) + SourceIndex(0) +4 >Emitted(71, 20) Source(53, 16) + SourceIndex(0) +5 >Emitted(71, 21) Source(53, 17) + SourceIndex(0) +6 >Emitted(71, 29) Source(53, 25) + SourceIndex(0) +7 >Emitted(71, 30) Source(53, 26) + SourceIndex(0) +8 >Emitted(71, 31) Source(53, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(19, 2) Source(37, 2) + SourceIndex(0) +1 >Emitted(72, 6) Source(54, 2) + SourceIndex(0) --- ->>>for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) { +>>>} +>>>catch (e_5_1) { e_5 = { error: e_5_1 }; } +>>>finally { +>>> try { __close(iterator_3); } finally { if (e_5) throw e_5.error; } +>>>} +>>>try { +>>> for (var robots_2 = { iterator: __values(robots) }; __step(robots_2);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^-> +1 > + > + > +2 > for +3 > +4 > ({ name = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> { name = "noName" } +1 >Emitted(79, 5) Source(56, 1) + SourceIndex(0) +2 >Emitted(79, 8) Source(56, 4) + SourceIndex(0) +3 >Emitted(79, 9) Source(56, 5) + SourceIndex(0) +4 >Emitted(79, 10) Source(56, 29) + SourceIndex(0) +5 >Emitted(79, 14) Source(56, 29) + SourceIndex(0) +6 >Emitted(79, 25) Source(56, 29) + SourceIndex(0) +7 >Emitted(79, 27) Source(56, 29) + SourceIndex(0) +8 >Emitted(79, 37) Source(56, 29) + SourceIndex(0) +9 >Emitted(79, 46) Source(56, 29) + SourceIndex(0) +10>Emitted(79, 52) Source(56, 35) + SourceIndex(0) +11>Emitted(79, 53) Source(56, 35) + SourceIndex(0) +12>Emitted(79, 55) Source(56, 35) + SourceIndex(0) +13>Emitted(79, 57) Source(56, 6) + SourceIndex(0) +14>Emitted(79, 73) Source(56, 25) + SourceIndex(0) +--- +>>> _s = robots_2.result.value.name, name = _s === void 0 ? "noName" : _s; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> +2 > name = "noName" +3 > +4 > name = "noName" +1->Emitted(80, 9) Source(56, 8) + SourceIndex(0) +2 >Emitted(80, 40) Source(56, 23) + SourceIndex(0) +3 >Emitted(80, 42) Source(56, 8) + SourceIndex(0) +4 >Emitted(80, 78) Source(56, 23) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of robots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(81, 9) Source(57, 5) + SourceIndex(0) +2 >Emitted(81, 16) Source(57, 12) + SourceIndex(0) +3 >Emitted(81, 17) Source(57, 13) + SourceIndex(0) +4 >Emitted(81, 20) Source(57, 16) + SourceIndex(0) +5 >Emitted(81, 21) Source(57, 17) + SourceIndex(0) +6 >Emitted(81, 26) Source(57, 22) + SourceIndex(0) +7 >Emitted(81, 27) Source(57, 23) + SourceIndex(0) +8 >Emitted(81, 28) Source(57, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(82, 6) Source(58, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_6_1) { e_6 = { error: e_6_1 }; } +>>>finally { +>>> try { __close(robots_2); } finally { if (e_6) throw e_6.error; } +>>>} +>>>try { +>>> for (var iterator_4 = { iterator: __values(getRobots()) }; __step(iterator_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +1 > + > +2 > for +3 > +4 > ({ name = "noName" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> { name = "noName" } +1 >Emitted(89, 5) Source(59, 1) + SourceIndex(0) +2 >Emitted(89, 8) Source(59, 4) + SourceIndex(0) +3 >Emitted(89, 9) Source(59, 5) + SourceIndex(0) +4 >Emitted(89, 10) Source(59, 29) + SourceIndex(0) +5 >Emitted(89, 14) Source(59, 29) + SourceIndex(0) +6 >Emitted(89, 27) Source(59, 29) + SourceIndex(0) +7 >Emitted(89, 29) Source(59, 29) + SourceIndex(0) +8 >Emitted(89, 39) Source(59, 29) + SourceIndex(0) +9 >Emitted(89, 48) Source(59, 29) + SourceIndex(0) +10>Emitted(89, 57) Source(59, 38) + SourceIndex(0) +11>Emitted(89, 59) Source(59, 40) + SourceIndex(0) +12>Emitted(89, 60) Source(59, 40) + SourceIndex(0) +13>Emitted(89, 62) Source(59, 40) + SourceIndex(0) +14>Emitted(89, 64) Source(59, 6) + SourceIndex(0) +15>Emitted(89, 82) Source(59, 25) + SourceIndex(0) +--- +>>> _t = iterator_4.result.value.name, name = _t === void 0 ? "noName" : _t; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > name = "noName" +3 > +4 > name = "noName" +1 >Emitted(90, 9) Source(59, 8) + SourceIndex(0) +2 >Emitted(90, 42) Source(59, 23) + SourceIndex(0) +3 >Emitted(90, 44) Source(59, 8) + SourceIndex(0) +4 >Emitted(90, 80) Source(59, 23) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(91, 9) Source(60, 5) + SourceIndex(0) +2 >Emitted(91, 16) Source(60, 12) + SourceIndex(0) +3 >Emitted(91, 17) Source(60, 13) + SourceIndex(0) +4 >Emitted(91, 20) Source(60, 16) + SourceIndex(0) +5 >Emitted(91, 21) Source(60, 17) + SourceIndex(0) +6 >Emitted(91, 26) Source(60, 22) + SourceIndex(0) +7 >Emitted(91, 27) Source(60, 23) + SourceIndex(0) +8 >Emitted(91, 28) Source(60, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(92, 6) Source(61, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_7_1) { e_7 = { error: e_7_1 }; } +>>>finally { +>>> try { __close(iterator_4); } finally { if (e_7) throw e_7.error; } +>>>} +>>>for (var _u = 0, _v = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _u < _v.length; _u++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -591,11 +1472,11 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 29> ^^^^^^^^^^^^^^ 30> ^^ 31> ^^^^ -1-> +1 > > 2 >for 3 > -4 > ({name: nameA = "noName" } of +4 > ({ name = "noName" } of 5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 6 > 7 > [ @@ -623,51 +1504,51 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(20, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(20, 4) Source(38, 4) + SourceIndex(0) -3 >Emitted(20, 5) Source(38, 5) + SourceIndex(0) -4 >Emitted(20, 6) Source(38, 35) + SourceIndex(0) -5 >Emitted(20, 16) Source(38, 111) + SourceIndex(0) -6 >Emitted(20, 18) Source(38, 35) + SourceIndex(0) -7 >Emitted(20, 24) Source(38, 36) + SourceIndex(0) -8 >Emitted(20, 26) Source(38, 38) + SourceIndex(0) -9 >Emitted(20, 30) Source(38, 42) + SourceIndex(0) -10>Emitted(20, 32) Source(38, 44) + SourceIndex(0) -11>Emitted(20, 39) Source(38, 51) + SourceIndex(0) -12>Emitted(20, 41) Source(38, 53) + SourceIndex(0) -13>Emitted(20, 46) Source(38, 58) + SourceIndex(0) -14>Emitted(20, 48) Source(38, 60) + SourceIndex(0) -15>Emitted(20, 56) Source(38, 68) + SourceIndex(0) -16>Emitted(20, 58) Source(38, 70) + SourceIndex(0) -17>Emitted(20, 60) Source(38, 72) + SourceIndex(0) -18>Emitted(20, 62) Source(38, 74) + SourceIndex(0) -19>Emitted(20, 66) Source(38, 78) + SourceIndex(0) -20>Emitted(20, 68) Source(38, 80) + SourceIndex(0) -21>Emitted(20, 77) Source(38, 89) + SourceIndex(0) -22>Emitted(20, 79) Source(38, 91) + SourceIndex(0) -23>Emitted(20, 84) Source(38, 96) + SourceIndex(0) -24>Emitted(20, 86) Source(38, 98) + SourceIndex(0) -25>Emitted(20, 96) Source(38, 108) + SourceIndex(0) -26>Emitted(20, 98) Source(38, 110) + SourceIndex(0) -27>Emitted(20, 99) Source(38, 111) + SourceIndex(0) -28>Emitted(20, 101) Source(38, 35) + SourceIndex(0) -29>Emitted(20, 115) Source(38, 111) + SourceIndex(0) -30>Emitted(20, 117) Source(38, 35) + SourceIndex(0) -31>Emitted(20, 121) Source(38, 111) + SourceIndex(0) ---- ->>> _g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g; +1 >Emitted(98, 1) Source(62, 1) + SourceIndex(0) +2 >Emitted(98, 4) Source(62, 4) + SourceIndex(0) +3 >Emitted(98, 5) Source(62, 5) + SourceIndex(0) +4 >Emitted(98, 6) Source(62, 29) + SourceIndex(0) +5 >Emitted(98, 16) Source(62, 105) + SourceIndex(0) +6 >Emitted(98, 18) Source(62, 29) + SourceIndex(0) +7 >Emitted(98, 24) Source(62, 30) + SourceIndex(0) +8 >Emitted(98, 26) Source(62, 32) + SourceIndex(0) +9 >Emitted(98, 30) Source(62, 36) + SourceIndex(0) +10>Emitted(98, 32) Source(62, 38) + SourceIndex(0) +11>Emitted(98, 39) Source(62, 45) + SourceIndex(0) +12>Emitted(98, 41) Source(62, 47) + SourceIndex(0) +13>Emitted(98, 46) Source(62, 52) + SourceIndex(0) +14>Emitted(98, 48) Source(62, 54) + SourceIndex(0) +15>Emitted(98, 56) Source(62, 62) + SourceIndex(0) +16>Emitted(98, 58) Source(62, 64) + SourceIndex(0) +17>Emitted(98, 60) Source(62, 66) + SourceIndex(0) +18>Emitted(98, 62) Source(62, 68) + SourceIndex(0) +19>Emitted(98, 66) Source(62, 72) + SourceIndex(0) +20>Emitted(98, 68) Source(62, 74) + SourceIndex(0) +21>Emitted(98, 77) Source(62, 83) + SourceIndex(0) +22>Emitted(98, 79) Source(62, 85) + SourceIndex(0) +23>Emitted(98, 84) Source(62, 90) + SourceIndex(0) +24>Emitted(98, 86) Source(62, 92) + SourceIndex(0) +25>Emitted(98, 96) Source(62, 102) + SourceIndex(0) +26>Emitted(98, 98) Source(62, 104) + SourceIndex(0) +27>Emitted(98, 99) Source(62, 105) + SourceIndex(0) +28>Emitted(98, 101) Source(62, 29) + SourceIndex(0) +29>Emitted(98, 115) Source(62, 105) + SourceIndex(0) +30>Emitted(98, 117) Source(62, 29) + SourceIndex(0) +31>Emitted(98, 121) Source(62, 105) + SourceIndex(0) +--- +>>> _w = _v[_u].name, name = _w === void 0 ? "noName" : _w; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > name: nameA = "noName" +2 > name = "noName" 3 > -4 > name: nameA = "noName" -1 >Emitted(21, 5) Source(38, 7) + SourceIndex(0) -2 >Emitted(21, 21) Source(38, 29) + SourceIndex(0) -3 >Emitted(21, 23) Source(38, 7) + SourceIndex(0) -4 >Emitted(21, 60) Source(38, 29) + SourceIndex(0) +4 > name = "noName" +1 >Emitted(99, 5) Source(62, 8) + SourceIndex(0) +2 >Emitted(99, 21) Source(62, 23) + SourceIndex(0) +3 >Emitted(99, 23) Source(62, 8) + SourceIndex(0) +4 >Emitted(99, 59) Source(62, 23) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -687,337 +1568,392 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(22, 5) Source(39, 5) + SourceIndex(0) -2 >Emitted(22, 12) Source(39, 12) + SourceIndex(0) -3 >Emitted(22, 13) Source(39, 13) + SourceIndex(0) -4 >Emitted(22, 16) Source(39, 16) + SourceIndex(0) -5 >Emitted(22, 17) Source(39, 17) + SourceIndex(0) -6 >Emitted(22, 22) Source(39, 22) + SourceIndex(0) -7 >Emitted(22, 23) Source(39, 23) + SourceIndex(0) -8 >Emitted(22, 24) Source(39, 24) + SourceIndex(0) +1 >Emitted(100, 5) Source(63, 5) + SourceIndex(0) +2 >Emitted(100, 12) Source(63, 12) + SourceIndex(0) +3 >Emitted(100, 13) Source(63, 13) + SourceIndex(0) +4 >Emitted(100, 16) Source(63, 16) + SourceIndex(0) +5 >Emitted(100, 17) Source(63, 17) + SourceIndex(0) +6 >Emitted(100, 22) Source(63, 22) + SourceIndex(0) +7 >Emitted(100, 23) Source(63, 23) + SourceIndex(0) +8 >Emitted(100, 24) Source(63, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(23, 2) Source(40, 2) + SourceIndex(0) +1 >Emitted(101, 2) Source(64, 2) + SourceIndex(0) --- ->>>for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_2 = { iterator: __values(multiRobots) }; __step(multiRobots_2);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(24, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(24, 4) Source(41, 4) + SourceIndex(0) -3 >Emitted(24, 5) Source(41, 5) + SourceIndex(0) -4 >Emitted(24, 6) Source(42, 55) + SourceIndex(0) -5 >Emitted(24, 16) Source(42, 66) + SourceIndex(0) -6 >Emitted(24, 18) Source(42, 55) + SourceIndex(0) -7 >Emitted(24, 45) Source(42, 66) + SourceIndex(0) -8 >Emitted(24, 47) Source(42, 55) + SourceIndex(0) -9 >Emitted(24, 72) Source(42, 66) + SourceIndex(0) -10>Emitted(24, 74) Source(42, 55) + SourceIndex(0) -11>Emitted(24, 78) Source(42, 66) + SourceIndex(0) ---- ->>> _j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1->Emitted(103, 5) Source(65, 1) + SourceIndex(0) +2 >Emitted(103, 8) Source(65, 4) + SourceIndex(0) +3 >Emitted(103, 9) Source(65, 5) + SourceIndex(0) +4 >Emitted(103, 10) Source(70, 6) + SourceIndex(0) +5 >Emitted(103, 14) Source(70, 6) + SourceIndex(0) +6 >Emitted(103, 30) Source(70, 6) + SourceIndex(0) +7 >Emitted(103, 32) Source(70, 6) + SourceIndex(0) +8 >Emitted(103, 42) Source(70, 6) + SourceIndex(0) +9 >Emitted(103, 51) Source(70, 6) + SourceIndex(0) +10>Emitted(103, 62) Source(70, 17) + SourceIndex(0) +11>Emitted(103, 63) Source(70, 17) + SourceIndex(0) +12>Emitted(103, 65) Source(70, 17) + SourceIndex(0) +13>Emitted(103, 67) Source(65, 6) + SourceIndex(0) +14>Emitted(103, 88) Source(70, 2) + SourceIndex(0) +--- +>>> _x = multiRobots_2.result.value.skills, _y = _x === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _x, _z = _y.primary, primary = _z === void 0 ? "primary" : _z, _0 = _y.secondary, secondary = _0 === void 0 ? "secondary" : _0; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -3 > -4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -5 > -6 > primary: primaryA = "primary" -7 > -8 > primary: primaryA = "primary" -9 > , -10> secondary: secondaryA = "secondary" -11> -12> secondary: secondaryA = "secondary" -1->Emitted(25, 5) Source(41, 8) + SourceIndex(0) -2 >Emitted(25, 34) Source(42, 49) + SourceIndex(0) -3 >Emitted(25, 36) Source(41, 8) + SourceIndex(0) -4 >Emitted(25, 106) Source(42, 49) + SourceIndex(0) -5 >Emitted(25, 108) Source(41, 18) + SourceIndex(0) -6 >Emitted(25, 123) Source(41, 47) + SourceIndex(0) -7 >Emitted(25, 125) Source(41, 18) + SourceIndex(0) -8 >Emitted(25, 166) Source(41, 47) + SourceIndex(0) -9 >Emitted(25, 168) Source(41, 49) + SourceIndex(0) -10>Emitted(25, 185) Source(41, 84) + SourceIndex(0) -11>Emitted(25, 187) Source(41, 49) + SourceIndex(0) -12>Emitted(25, 232) Source(41, 84) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ -1 > } = - > { primary: "nosKill", secondary: "noSkill" } } of multiRobots) { +2 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +3 > +4 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +5 > +6 > primary = "primary" +7 > +8 > primary = "primary" +9 > , + > +10> secondary = "secondary" +11> +12> secondary = "secondary" +1->Emitted(104, 9) Source(66, 5) + SourceIndex(0) +2 >Emitted(104, 47) Source(69, 53) + SourceIndex(0) +3 >Emitted(104, 49) Source(66, 5) + SourceIndex(0) +4 >Emitted(104, 119) Source(69, 53) + SourceIndex(0) +5 >Emitted(104, 121) Source(67, 9) + SourceIndex(0) +6 >Emitted(104, 136) Source(67, 28) + SourceIndex(0) +7 >Emitted(104, 138) Source(67, 9) + SourceIndex(0) +8 >Emitted(104, 178) Source(67, 28) + SourceIndex(0) +9 >Emitted(104, 180) Source(68, 9) + SourceIndex(0) +10>Emitted(104, 197) Source(68, 32) + SourceIndex(0) +11>Emitted(104, 199) Source(68, 9) + SourceIndex(0) +12>Emitted(104, 243) Source(68, 32) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(26, 5) Source(43, 5) + SourceIndex(0) -2 >Emitted(26, 12) Source(43, 12) + SourceIndex(0) -3 >Emitted(26, 13) Source(43, 13) + SourceIndex(0) -4 >Emitted(26, 16) Source(43, 16) + SourceIndex(0) -5 >Emitted(26, 17) Source(43, 17) + SourceIndex(0) -6 >Emitted(26, 25) Source(43, 25) + SourceIndex(0) -7 >Emitted(26, 26) Source(43, 26) + SourceIndex(0) -8 >Emitted(26, 27) Source(43, 27) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(105, 9) Source(71, 5) + SourceIndex(0) +2 >Emitted(105, 16) Source(71, 12) + SourceIndex(0) +3 >Emitted(105, 17) Source(71, 13) + SourceIndex(0) +4 >Emitted(105, 20) Source(71, 16) + SourceIndex(0) +5 >Emitted(105, 21) Source(71, 17) + SourceIndex(0) +6 >Emitted(105, 29) Source(71, 25) + SourceIndex(0) +7 >Emitted(105, 30) Source(71, 26) + SourceIndex(0) +8 >Emitted(105, 31) Source(71, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(106, 6) Source(72, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_8_1) { e_8 = { error: e_8_1 }; } +>>>finally { +>>> try { __close(multiRobots_2); } finally { if (e_8) throw e_8.error; } +>>>} +>>>try { +>>> for (var iterator_5 = { iterator: __values(getMultiRobots()) }; __step(iterator_5);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > ({ + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(113, 5) Source(73, 1) + SourceIndex(0) +2 >Emitted(113, 8) Source(73, 4) + SourceIndex(0) +3 >Emitted(113, 9) Source(73, 5) + SourceIndex(0) +4 >Emitted(113, 10) Source(78, 6) + SourceIndex(0) +5 >Emitted(113, 14) Source(78, 6) + SourceIndex(0) +6 >Emitted(113, 27) Source(78, 6) + SourceIndex(0) +7 >Emitted(113, 29) Source(78, 6) + SourceIndex(0) +8 >Emitted(113, 39) Source(78, 6) + SourceIndex(0) +9 >Emitted(113, 48) Source(78, 6) + SourceIndex(0) +10>Emitted(113, 62) Source(78, 20) + SourceIndex(0) +11>Emitted(113, 64) Source(78, 22) + SourceIndex(0) +12>Emitted(113, 65) Source(78, 22) + SourceIndex(0) +13>Emitted(113, 67) Source(78, 22) + SourceIndex(0) +14>Emitted(113, 69) Source(73, 6) + SourceIndex(0) +15>Emitted(113, 87) Source(78, 2) + SourceIndex(0) +--- +>>> _1 = iterator_5.result.value.skills, _2 = _1 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _1, _3 = _2.primary, primary = _3 === void 0 ? "primary" : _3, _4 = _2.secondary, secondary = _4 === void 0 ? "secondary" : _4; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +3 > +4 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +5 > +6 > primary = "primary" +7 > +8 > primary = "primary" +9 > , + > +10> secondary = "secondary" +11> +12> secondary = "secondary" +1->Emitted(114, 9) Source(74, 5) + SourceIndex(0) +2 >Emitted(114, 44) Source(77, 53) + SourceIndex(0) +3 >Emitted(114, 46) Source(74, 5) + SourceIndex(0) +4 >Emitted(114, 116) Source(77, 53) + SourceIndex(0) +5 >Emitted(114, 118) Source(75, 9) + SourceIndex(0) +6 >Emitted(114, 133) Source(75, 28) + SourceIndex(0) +7 >Emitted(114, 135) Source(75, 9) + SourceIndex(0) +8 >Emitted(114, 175) Source(75, 28) + SourceIndex(0) +9 >Emitted(114, 177) Source(76, 9) + SourceIndex(0) +10>Emitted(114, 194) Source(76, 32) + SourceIndex(0) +11>Emitted(114, 196) Source(76, 9) + SourceIndex(0) +12>Emitted(114, 240) Source(76, 32) + SourceIndex(0) +--- +>>> console.log(primaryA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^ +7 > ^ +8 > ^ +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of getMultiRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > primaryA +7 > ) +8 > ; +1 >Emitted(115, 9) Source(79, 5) + SourceIndex(0) +2 >Emitted(115, 16) Source(79, 12) + SourceIndex(0) +3 >Emitted(115, 17) Source(79, 13) + SourceIndex(0) +4 >Emitted(115, 20) Source(79, 16) + SourceIndex(0) +5 >Emitted(115, 21) Source(79, 17) + SourceIndex(0) +6 >Emitted(115, 29) Source(79, 25) + SourceIndex(0) +7 >Emitted(115, 30) Source(79, 26) + SourceIndex(0) +8 >Emitted(115, 31) Source(79, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(27, 2) Source(44, 2) + SourceIndex(0) +1 >Emitted(116, 6) Source(80, 2) + SourceIndex(0) --- ->>>for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) { -1-> +>>>} +>>>catch (e_9_1) { e_9 = { error: e_9_1 }; } +>>>finally { +>>> try { __close(iterator_5); } finally { if (e_9) throw e_9.error; } +>>>} +>>>for (var _5 = 0, _6 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ 5 > ^^^^^^^^^^ 6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(28, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(28, 4) Source(45, 4) + SourceIndex(0) -3 >Emitted(28, 5) Source(45, 5) + SourceIndex(0) -4 >Emitted(28, 6) Source(46, 55) + SourceIndex(0) -5 >Emitted(28, 16) Source(46, 71) + SourceIndex(0) -6 >Emitted(28, 18) Source(46, 55) + SourceIndex(0) -7 >Emitted(28, 23) Source(46, 55) + SourceIndex(0) -8 >Emitted(28, 37) Source(46, 69) + SourceIndex(0) -9 >Emitted(28, 39) Source(46, 71) + SourceIndex(0) -10>Emitted(28, 41) Source(46, 55) + SourceIndex(0) -11>Emitted(28, 55) Source(46, 71) + SourceIndex(0) -12>Emitted(28, 57) Source(46, 55) + SourceIndex(0) -13>Emitted(28, 61) Source(46, 71) + SourceIndex(0) ---- ->>> _q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -3 > -4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } -5 > -6 > primary: primaryA = "primary" -7 > -8 > primary: primaryA = "primary" -9 > , -10> secondary: secondaryA = "secondary" -11> -12> secondary: secondaryA = "secondary" -1->Emitted(29, 5) Source(45, 8) + SourceIndex(0) -2 >Emitted(29, 23) Source(46, 49) + SourceIndex(0) -3 >Emitted(29, 25) Source(45, 8) + SourceIndex(0) -4 >Emitted(29, 95) Source(46, 49) + SourceIndex(0) -5 >Emitted(29, 97) Source(45, 18) + SourceIndex(0) -6 >Emitted(29, 112) Source(45, 47) + SourceIndex(0) -7 >Emitted(29, 114) Source(45, 18) + SourceIndex(0) -8 >Emitted(29, 155) Source(45, 47) + SourceIndex(0) -9 >Emitted(29, 157) Source(45, 49) + SourceIndex(0) -10>Emitted(29, 174) Source(45, 84) + SourceIndex(0) -11>Emitted(29, 176) Source(45, 49) + SourceIndex(0) -12>Emitted(29, 221) Source(45, 84) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ -1 > } = - > { primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(30, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(30, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(30, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(30, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(30, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(30, 25) Source(47, 25) + SourceIndex(0) -7 >Emitted(30, 26) Source(47, 26) + SourceIndex(0) -8 >Emitted(30, 27) Source(47, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +7 > ^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^^ +14> ^^ +15> ^^ +16> ^^^^^^^ +17> ^^ +18> ^^^^^^^^ +19> ^^ +20> ^^^^^^^^^ +21> ^^ +22> ^^^^^^ +23> ^^ +24> ^^ +25> ^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(31, 2) Source(48, 2) + SourceIndex(0) ---- ->>>for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^ -9 > ^^ -10> ^^^^ -11> ^^ -12> ^^^^^^^ -13> ^^ -14> ^^^^^^ -15> ^^ -16> ^^ -17> ^^^^^^^ -18> ^^ -19> ^^^^^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^^ -24> ^^ -25> ^^ -26> ^^^^^^^^^^^^^^-> -1-> > 2 >for 3 > -4 > ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } } of - > -5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] +4 > ({ + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] 6 > -7 > -8 > [ -9 > { -10> name -11> : -12> "mower" -13> , -14> skills -15> : -16> { -17> primary -18> : -19> "mowing" -20> , -21> secondary -22> : -23> "none" -24> } -25> } -1->Emitted(32, 1) Source(49, 1) + SourceIndex(0) -2 >Emitted(32, 4) Source(49, 4) + SourceIndex(0) -3 >Emitted(32, 5) Source(49, 5) + SourceIndex(0) -4 >Emitted(32, 6) Source(51, 5) + SourceIndex(0) -5 >Emitted(32, 16) Source(52, 83) + SourceIndex(0) -6 >Emitted(32, 18) Source(51, 5) + SourceIndex(0) -7 >Emitted(32, 23) Source(51, 19) + SourceIndex(0) -8 >Emitted(32, 24) Source(51, 20) + SourceIndex(0) -9 >Emitted(32, 26) Source(51, 22) + SourceIndex(0) -10>Emitted(32, 30) Source(51, 26) + SourceIndex(0) -11>Emitted(32, 32) Source(51, 28) + SourceIndex(0) -12>Emitted(32, 39) Source(51, 35) + SourceIndex(0) -13>Emitted(32, 41) Source(51, 37) + SourceIndex(0) -14>Emitted(32, 47) Source(51, 43) + SourceIndex(0) -15>Emitted(32, 49) Source(51, 45) + SourceIndex(0) -16>Emitted(32, 51) Source(51, 47) + SourceIndex(0) -17>Emitted(32, 58) Source(51, 54) + SourceIndex(0) -18>Emitted(32, 60) Source(51, 56) + SourceIndex(0) -19>Emitted(32, 68) Source(51, 64) + SourceIndex(0) -20>Emitted(32, 70) Source(51, 66) + SourceIndex(0) -21>Emitted(32, 79) Source(51, 75) + SourceIndex(0) -22>Emitted(32, 81) Source(51, 77) + SourceIndex(0) -23>Emitted(32, 87) Source(51, 83) + SourceIndex(0) -24>Emitted(32, 89) Source(51, 85) + SourceIndex(0) -25>Emitted(32, 91) Source(51, 87) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) { +7 > [ +8 > { +9 > name +10> : +11> "mower" +12> , +13> skills +14> : +15> { +16> primary +17> : +18> "mowing" +19> , +20> secondary +21> : +22> "none" +23> } +24> } +1 >Emitted(122, 1) Source(81, 1) + SourceIndex(0) +2 >Emitted(122, 4) Source(81, 4) + SourceIndex(0) +3 >Emitted(122, 5) Source(81, 5) + SourceIndex(0) +4 >Emitted(122, 6) Source(86, 6) + SourceIndex(0) +5 >Emitted(122, 16) Source(87, 79) + SourceIndex(0) +6 >Emitted(122, 18) Source(86, 6) + SourceIndex(0) +7 >Emitted(122, 24) Source(86, 7) + SourceIndex(0) +8 >Emitted(122, 26) Source(86, 9) + SourceIndex(0) +9 >Emitted(122, 30) Source(86, 13) + SourceIndex(0) +10>Emitted(122, 32) Source(86, 15) + SourceIndex(0) +11>Emitted(122, 39) Source(86, 22) + SourceIndex(0) +12>Emitted(122, 41) Source(86, 24) + SourceIndex(0) +13>Emitted(122, 47) Source(86, 30) + SourceIndex(0) +14>Emitted(122, 49) Source(86, 32) + SourceIndex(0) +15>Emitted(122, 51) Source(86, 34) + SourceIndex(0) +16>Emitted(122, 58) Source(86, 41) + SourceIndex(0) +17>Emitted(122, 60) Source(86, 43) + SourceIndex(0) +18>Emitted(122, 68) Source(86, 51) + SourceIndex(0) +19>Emitted(122, 70) Source(86, 53) + SourceIndex(0) +20>Emitted(122, 79) Source(86, 62) + SourceIndex(0) +21>Emitted(122, 81) Source(86, 64) + SourceIndex(0) +22>Emitted(122, 87) Source(86, 70) + SourceIndex(0) +23>Emitted(122, 89) Source(86, 72) + SourceIndex(0) +24>Emitted(122, 91) Source(86, 74) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _5 < _6.length; _5++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -1041,9 +1977,9 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 21> ^^^^^^^^^^^^^^ 22> ^^ 23> ^^^^ -24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->, - > + > 2 > { 3 > name 4 > : @@ -1063,36 +1999,36 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 18> } 19> ] 20> -21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] +21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] 22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(33, 5) Source(52, 9) + SourceIndex(0) -2 >Emitted(33, 7) Source(52, 11) + SourceIndex(0) -3 >Emitted(33, 11) Source(52, 15) + SourceIndex(0) -4 >Emitted(33, 13) Source(52, 17) + SourceIndex(0) -5 >Emitted(33, 22) Source(52, 26) + SourceIndex(0) -6 >Emitted(33, 24) Source(52, 28) + SourceIndex(0) -7 >Emitted(33, 30) Source(52, 34) + SourceIndex(0) -8 >Emitted(33, 32) Source(52, 36) + SourceIndex(0) -9 >Emitted(33, 34) Source(52, 38) + SourceIndex(0) -10>Emitted(33, 41) Source(52, 45) + SourceIndex(0) -11>Emitted(33, 43) Source(52, 47) + SourceIndex(0) -12>Emitted(33, 53) Source(52, 57) + SourceIndex(0) -13>Emitted(33, 55) Source(52, 59) + SourceIndex(0) -14>Emitted(33, 64) Source(52, 68) + SourceIndex(0) -15>Emitted(33, 66) Source(52, 70) + SourceIndex(0) -16>Emitted(33, 74) Source(52, 78) + SourceIndex(0) -17>Emitted(33, 76) Source(52, 80) + SourceIndex(0) -18>Emitted(33, 78) Source(52, 82) + SourceIndex(0) -19>Emitted(33, 79) Source(52, 83) + SourceIndex(0) -20>Emitted(33, 81) Source(51, 5) + SourceIndex(0) -21>Emitted(33, 95) Source(52, 83) + SourceIndex(0) -22>Emitted(33, 97) Source(51, 5) + SourceIndex(0) -23>Emitted(33, 101) Source(52, 83) + SourceIndex(0) ---- ->>> _w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z; +23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] +1->Emitted(123, 5) Source(87, 5) + SourceIndex(0) +2 >Emitted(123, 7) Source(87, 7) + SourceIndex(0) +3 >Emitted(123, 11) Source(87, 11) + SourceIndex(0) +4 >Emitted(123, 13) Source(87, 13) + SourceIndex(0) +5 >Emitted(123, 22) Source(87, 22) + SourceIndex(0) +6 >Emitted(123, 24) Source(87, 24) + SourceIndex(0) +7 >Emitted(123, 30) Source(87, 30) + SourceIndex(0) +8 >Emitted(123, 32) Source(87, 32) + SourceIndex(0) +9 >Emitted(123, 34) Source(87, 34) + SourceIndex(0) +10>Emitted(123, 41) Source(87, 41) + SourceIndex(0) +11>Emitted(123, 43) Source(87, 43) + SourceIndex(0) +12>Emitted(123, 53) Source(87, 53) + SourceIndex(0) +13>Emitted(123, 55) Source(87, 55) + SourceIndex(0) +14>Emitted(123, 64) Source(87, 64) + SourceIndex(0) +15>Emitted(123, 66) Source(87, 66) + SourceIndex(0) +16>Emitted(123, 74) Source(87, 74) + SourceIndex(0) +17>Emitted(123, 76) Source(87, 76) + SourceIndex(0) +18>Emitted(123, 78) Source(87, 78) + SourceIndex(0) +19>Emitted(123, 79) Source(87, 79) + SourceIndex(0) +20>Emitted(123, 81) Source(86, 6) + SourceIndex(0) +21>Emitted(123, 95) Source(87, 79) + SourceIndex(0) +22>Emitted(123, 97) Source(86, 6) + SourceIndex(0) +23>Emitted(123, 101) Source(87, 79) + SourceIndex(0) +--- +>>> _7 = _6[_5].skills, _8 = _7 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _7, _9 = _8.primary, primary = _9 === void 0 ? "primary" : _9, _10 = _8.secondary, secondary = _10 === void 0 ? "secondary" : _10; 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -1100,37 +2036,42 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 5 > ^^ 6 > ^^^^^^^^^^^^^^^ 7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } +2 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } 3 > -4 > skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = - > { primary: "nosKill", secondary: "noSkill" } +4 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } 5 > -6 > primary: primaryA = "primary" +6 > primary = "primary" 7 > -8 > primary: primaryA = "primary" -9 > , -10> secondary: secondaryA = "secondary" +8 > primary = "primary" +9 > , + > +10> secondary = "secondary" 11> -12> secondary: secondaryA = "secondary" -1->Emitted(34, 5) Source(49, 8) + SourceIndex(0) -2 >Emitted(34, 23) Source(50, 49) + SourceIndex(0) -3 >Emitted(34, 25) Source(49, 8) + SourceIndex(0) -4 >Emitted(34, 95) Source(50, 49) + SourceIndex(0) -5 >Emitted(34, 97) Source(49, 18) + SourceIndex(0) -6 >Emitted(34, 112) Source(49, 47) + SourceIndex(0) -7 >Emitted(34, 114) Source(49, 18) + SourceIndex(0) -8 >Emitted(34, 155) Source(49, 47) + SourceIndex(0) -9 >Emitted(34, 157) Source(49, 49) + SourceIndex(0) -10>Emitted(34, 174) Source(49, 84) + SourceIndex(0) -11>Emitted(34, 176) Source(49, 49) + SourceIndex(0) -12>Emitted(34, 221) Source(49, 84) + SourceIndex(0) +12> secondary = "secondary" +1->Emitted(124, 5) Source(82, 5) + SourceIndex(0) +2 >Emitted(124, 23) Source(85, 53) + SourceIndex(0) +3 >Emitted(124, 25) Source(82, 5) + SourceIndex(0) +4 >Emitted(124, 95) Source(85, 53) + SourceIndex(0) +5 >Emitted(124, 97) Source(83, 9) + SourceIndex(0) +6 >Emitted(124, 112) Source(83, 28) + SourceIndex(0) +7 >Emitted(124, 114) Source(83, 9) + SourceIndex(0) +8 >Emitted(124, 154) Source(83, 28) + SourceIndex(0) +9 >Emitted(124, 156) Source(84, 9) + SourceIndex(0) +10>Emitted(124, 174) Source(84, 32) + SourceIndex(0) +11>Emitted(124, 176) Source(84, 9) + SourceIndex(0) +12>Emitted(124, 222) Source(84, 32) + SourceIndex(0) --- >>> console.log(primaryA); 1 >^^^^ @@ -1141,10 +2082,10 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > ^^^^^^^^ 7 > ^ 8 > ^ -1 > } = - > { primary: "nosKill", secondary: "noSkill" } } of - > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { > 2 > console 3 > . @@ -1153,1074 +2094,287 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > primaryA 7 > ) 8 > ; -1 >Emitted(35, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(35, 12) Source(53, 12) + SourceIndex(0) -3 >Emitted(35, 13) Source(53, 13) + SourceIndex(0) -4 >Emitted(35, 16) Source(53, 16) + SourceIndex(0) -5 >Emitted(35, 17) Source(53, 17) + SourceIndex(0) -6 >Emitted(35, 25) Source(53, 25) + SourceIndex(0) -7 >Emitted(35, 26) Source(53, 26) + SourceIndex(0) -8 >Emitted(35, 27) Source(53, 27) + SourceIndex(0) +1 >Emitted(125, 5) Source(88, 5) + SourceIndex(0) +2 >Emitted(125, 12) Source(88, 12) + SourceIndex(0) +3 >Emitted(125, 13) Source(88, 13) + SourceIndex(0) +4 >Emitted(125, 16) Source(88, 16) + SourceIndex(0) +5 >Emitted(125, 17) Source(88, 17) + SourceIndex(0) +6 >Emitted(125, 25) Source(88, 25) + SourceIndex(0) +7 >Emitted(125, 26) Source(88, 26) + SourceIndex(0) +8 >Emitted(125, 27) Source(88, 27) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(36, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(126, 2) Source(89, 2) + SourceIndex(0) --- ->>>for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^-> +>>>try { +>>> for (var robots_3 = { iterator: __values(robots) }; __step(robots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> + > > > -2 >for -3 > -4 > ({ name = "noName" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(37, 1) Source(56, 1) + SourceIndex(0) -2 >Emitted(37, 4) Source(56, 4) + SourceIndex(0) -3 >Emitted(37, 5) Source(56, 5) + SourceIndex(0) -4 >Emitted(37, 6) Source(56, 29) + SourceIndex(0) -5 >Emitted(37, 16) Source(56, 35) + SourceIndex(0) -6 >Emitted(37, 18) Source(56, 29) + SourceIndex(0) -7 >Emitted(37, 35) Source(56, 35) + SourceIndex(0) -8 >Emitted(37, 37) Source(56, 29) + SourceIndex(0) -9 >Emitted(37, 57) Source(56, 35) + SourceIndex(0) -10>Emitted(37, 59) Source(56, 29) + SourceIndex(0) -11>Emitted(37, 63) Source(56, 35) + SourceIndex(0) ---- ->>> _1 = robots_2[_0].name, name = _1 === void 0 ? "noName" : _1; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> {name: nameA = "noName", skill: skillA = "noSkill" } +1->Emitted(128, 5) Source(92, 1) + SourceIndex(0) +2 >Emitted(128, 8) Source(92, 4) + SourceIndex(0) +3 >Emitted(128, 9) Source(92, 5) + SourceIndex(0) +4 >Emitted(128, 10) Source(92, 62) + SourceIndex(0) +5 >Emitted(128, 14) Source(92, 62) + SourceIndex(0) +6 >Emitted(128, 25) Source(92, 62) + SourceIndex(0) +7 >Emitted(128, 27) Source(92, 62) + SourceIndex(0) +8 >Emitted(128, 37) Source(92, 62) + SourceIndex(0) +9 >Emitted(128, 46) Source(92, 62) + SourceIndex(0) +10>Emitted(128, 52) Source(92, 68) + SourceIndex(0) +11>Emitted(128, 53) Source(92, 68) + SourceIndex(0) +12>Emitted(128, 55) Source(92, 68) + SourceIndex(0) +13>Emitted(128, 57) Source(92, 6) + SourceIndex(0) +14>Emitted(128, 73) Source(92, 58) + SourceIndex(0) +--- +>>> _11 = robots_3.result.value, _12 = _11.name, nameA = _12 === void 0 ? "noName" : _12, _13 = _11.skill, skillA = _13 === void 0 ? "noSkill" : _13; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -1->Emitted(38, 5) Source(56, 8) + SourceIndex(0) -2 >Emitted(38, 27) Source(56, 23) + SourceIndex(0) -3 >Emitted(38, 29) Source(56, 8) + SourceIndex(0) -4 >Emitted(38, 65) Source(56, 23) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , +6 > skill: skillA = "noSkill" +7 > +8 > skill: skillA = "noSkill" +1->Emitted(129, 38) Source(92, 7) + SourceIndex(0) +2 >Emitted(129, 52) Source(92, 29) + SourceIndex(0) +3 >Emitted(129, 54) Source(92, 7) + SourceIndex(0) +4 >Emitted(129, 93) Source(92, 29) + SourceIndex(0) +5 >Emitted(129, 95) Source(92, 31) + SourceIndex(0) +6 >Emitted(129, 110) Source(92, 56) + SourceIndex(0) +7 >Emitted(129, 112) Source(92, 31) + SourceIndex(0) +8 >Emitted(129, 153) Source(92, 56) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > } of robots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(39, 5) Source(57, 5) + SourceIndex(0) -2 >Emitted(39, 12) Source(57, 12) + SourceIndex(0) -3 >Emitted(39, 13) Source(57, 13) + SourceIndex(0) -4 >Emitted(39, 16) Source(57, 16) + SourceIndex(0) -5 >Emitted(39, 17) Source(57, 17) + SourceIndex(0) -6 >Emitted(39, 22) Source(57, 22) + SourceIndex(0) -7 >Emitted(39, 23) Source(57, 23) + SourceIndex(0) -8 >Emitted(39, 24) Source(57, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(130, 9) Source(93, 5) + SourceIndex(0) +2 >Emitted(130, 16) Source(93, 12) + SourceIndex(0) +3 >Emitted(130, 17) Source(93, 13) + SourceIndex(0) +4 >Emitted(130, 20) Source(93, 16) + SourceIndex(0) +5 >Emitted(130, 21) Source(93, 17) + SourceIndex(0) +6 >Emitted(130, 26) Source(93, 22) + SourceIndex(0) +7 >Emitted(130, 27) Source(93, 23) + SourceIndex(0) +8 >Emitted(130, 28) Source(93, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(40, 2) Source(58, 2) + SourceIndex(0) +1 >Emitted(131, 6) Source(94, 2) + SourceIndex(0) --- ->>>for (var _2 = 0, _3 = getRobots(); _2 < _3.length; _2++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^ -14> ^^^^^-> -1-> +>>>} +>>>catch (e_10_1) { e_10 = { error: e_10_1 }; } +>>>finally { +>>> try { __close(robots_3); } finally { if (e_10) throw e_10.error; } +>>>} +>>>try { +>>> for (var iterator_6 = { iterator: __values(getRobots()) }; __step(iterator_6);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ({ name = "noName" } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(41, 1) Source(59, 1) + SourceIndex(0) -2 >Emitted(41, 4) Source(59, 4) + SourceIndex(0) -3 >Emitted(41, 5) Source(59, 5) + SourceIndex(0) -4 >Emitted(41, 6) Source(59, 29) + SourceIndex(0) -5 >Emitted(41, 16) Source(59, 40) + SourceIndex(0) -6 >Emitted(41, 18) Source(59, 29) + SourceIndex(0) -7 >Emitted(41, 23) Source(59, 29) + SourceIndex(0) -8 >Emitted(41, 32) Source(59, 38) + SourceIndex(0) -9 >Emitted(41, 34) Source(59, 40) + SourceIndex(0) -10>Emitted(41, 36) Source(59, 29) + SourceIndex(0) -11>Emitted(41, 50) Source(59, 40) + SourceIndex(0) -12>Emitted(41, 52) Source(59, 29) + SourceIndex(0) -13>Emitted(41, 56) Source(59, 40) + SourceIndex(0) ---- ->>> _4 = _3[_2].name, name = _4 === void 0 ? "noName" : _4; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> {name: nameA = "noName", skill: skillA = "noSkill" } +1 >Emitted(138, 5) Source(95, 1) + SourceIndex(0) +2 >Emitted(138, 8) Source(95, 4) + SourceIndex(0) +3 >Emitted(138, 9) Source(95, 5) + SourceIndex(0) +4 >Emitted(138, 10) Source(95, 63) + SourceIndex(0) +5 >Emitted(138, 14) Source(95, 63) + SourceIndex(0) +6 >Emitted(138, 27) Source(95, 63) + SourceIndex(0) +7 >Emitted(138, 29) Source(95, 63) + SourceIndex(0) +8 >Emitted(138, 39) Source(95, 63) + SourceIndex(0) +9 >Emitted(138, 48) Source(95, 63) + SourceIndex(0) +10>Emitted(138, 57) Source(95, 72) + SourceIndex(0) +11>Emitted(138, 59) Source(95, 74) + SourceIndex(0) +12>Emitted(138, 60) Source(95, 74) + SourceIndex(0) +13>Emitted(138, 62) Source(95, 74) + SourceIndex(0) +14>Emitted(138, 64) Source(95, 6) + SourceIndex(0) +15>Emitted(138, 82) Source(95, 59) + SourceIndex(0) +--- +>>> _14 = iterator_6.result.value, _15 = _14.name, nameA = _15 === void 0 ? "noName" : _15, _16 = _14.skill, skillA = _16 === void 0 ? "noSkill" : _16; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -1->Emitted(42, 5) Source(59, 8) + SourceIndex(0) -2 >Emitted(42, 21) Source(59, 23) + SourceIndex(0) -3 >Emitted(42, 23) Source(59, 8) + SourceIndex(0) -4 >Emitted(42, 59) Source(59, 23) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of getRobots()) { +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , +6 > skill: skillA = "noSkill" +7 > +8 > skill: skillA = "noSkill" +1->Emitted(139, 40) Source(95, 7) + SourceIndex(0) +2 >Emitted(139, 54) Source(95, 29) + SourceIndex(0) +3 >Emitted(139, 56) Source(95, 7) + SourceIndex(0) +4 >Emitted(139, 95) Source(95, 29) + SourceIndex(0) +5 >Emitted(139, 97) Source(95, 31) + SourceIndex(0) +6 >Emitted(139, 112) Source(95, 56) + SourceIndex(0) +7 >Emitted(139, 114) Source(95, 31) + SourceIndex(0) +8 >Emitted(139, 155) Source(95, 56) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(43, 5) Source(60, 5) + SourceIndex(0) -2 >Emitted(43, 12) Source(60, 12) + SourceIndex(0) -3 >Emitted(43, 13) Source(60, 13) + SourceIndex(0) -4 >Emitted(43, 16) Source(60, 16) + SourceIndex(0) -5 >Emitted(43, 17) Source(60, 17) + SourceIndex(0) -6 >Emitted(43, 22) Source(60, 22) + SourceIndex(0) -7 >Emitted(43, 23) Source(60, 23) + SourceIndex(0) -8 >Emitted(43, 24) Source(60, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(140, 9) Source(96, 5) + SourceIndex(0) +2 >Emitted(140, 16) Source(96, 12) + SourceIndex(0) +3 >Emitted(140, 17) Source(96, 13) + SourceIndex(0) +4 >Emitted(140, 20) Source(96, 16) + SourceIndex(0) +5 >Emitted(140, 21) Source(96, 17) + SourceIndex(0) +6 >Emitted(140, 26) Source(96, 22) + SourceIndex(0) +7 >Emitted(140, 27) Source(96, 23) + SourceIndex(0) +8 >Emitted(140, 28) Source(96, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(44, 2) Source(61, 2) + SourceIndex(0) +1 >Emitted(141, 6) Source(97, 2) + SourceIndex(0) --- ->>>for (var _5 = 0, _6 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _5 < _6.length; _5++) { -1-> +>>>} +>>>catch (e_11_1) { e_11 = { error: e_11_1 }; } +>>>finally { +>>> try { __close(iterator_6); } finally { if (e_11) throw e_11.error; } +>>>} +>>>for (var _17 = 0, _18 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _17 < _18.length; _17++) { +1 > 2 >^^^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^ -15> ^^^^^^^^ -16> ^^ -17> ^^ -18> ^^ -19> ^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^ -25> ^^^^^^^^^^ -26> ^^ -27> ^ -28> ^^ -29> ^^^^^^^^^^^^^^ -30> ^^ -31> ^^^^ -1-> +5 > ^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^ +8 > ^^ +9 > ^^^^ +10> ^^ +11> ^^^^^^^ +12> ^^ +13> ^^^^^ +14> ^^ +15> ^^^^^^^^ +16> ^^ +17> ^^ +18> ^^ +19> ^^^^ +20> ^^ +21> ^^^^^^^^^ +22> ^^ +23> ^^^^^ +24> ^^ +25> ^^^^^^^^^^ +26> ^^ +27> ^ +28> ^^ +29> ^^^^^^^^^^^^^^^^ +30> ^^ +31> ^^^^^ +32> ^^^^^^^^^^^^-> +1 > > 2 >for 3 > -4 > ({ name = "noName" } of -5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -6 > -7 > [ -8 > { -9 > name -10> : -11> "mower" -12> , -13> skill -14> : -15> "mowing" -16> } -17> , -18> { -19> name -20> : -21> "trimmer" -22> , -23> skill -24> : -25> "trimming" -26> } -27> ] -28> -29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -30> -31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(45, 1) Source(62, 1) + SourceIndex(0) -2 >Emitted(45, 4) Source(62, 4) + SourceIndex(0) -3 >Emitted(45, 5) Source(62, 5) + SourceIndex(0) -4 >Emitted(45, 6) Source(62, 29) + SourceIndex(0) -5 >Emitted(45, 16) Source(62, 105) + SourceIndex(0) -6 >Emitted(45, 18) Source(62, 29) + SourceIndex(0) -7 >Emitted(45, 24) Source(62, 30) + SourceIndex(0) -8 >Emitted(45, 26) Source(62, 32) + SourceIndex(0) -9 >Emitted(45, 30) Source(62, 36) + SourceIndex(0) -10>Emitted(45, 32) Source(62, 38) + SourceIndex(0) -11>Emitted(45, 39) Source(62, 45) + SourceIndex(0) -12>Emitted(45, 41) Source(62, 47) + SourceIndex(0) -13>Emitted(45, 46) Source(62, 52) + SourceIndex(0) -14>Emitted(45, 48) Source(62, 54) + SourceIndex(0) -15>Emitted(45, 56) Source(62, 62) + SourceIndex(0) -16>Emitted(45, 58) Source(62, 64) + SourceIndex(0) -17>Emitted(45, 60) Source(62, 66) + SourceIndex(0) -18>Emitted(45, 62) Source(62, 68) + SourceIndex(0) -19>Emitted(45, 66) Source(62, 72) + SourceIndex(0) -20>Emitted(45, 68) Source(62, 74) + SourceIndex(0) -21>Emitted(45, 77) Source(62, 83) + SourceIndex(0) -22>Emitted(45, 79) Source(62, 85) + SourceIndex(0) -23>Emitted(45, 84) Source(62, 90) + SourceIndex(0) -24>Emitted(45, 86) Source(62, 92) + SourceIndex(0) -25>Emitted(45, 96) Source(62, 102) + SourceIndex(0) -26>Emitted(45, 98) Source(62, 104) + SourceIndex(0) -27>Emitted(45, 99) Source(62, 105) + SourceIndex(0) -28>Emitted(45, 101) Source(62, 29) + SourceIndex(0) -29>Emitted(45, 115) Source(62, 105) + SourceIndex(0) -30>Emitted(45, 117) Source(62, 29) + SourceIndex(0) -31>Emitted(45, 121) Source(62, 105) + SourceIndex(0) ---- ->>> _7 = _6[_5].name, name = _7 === void 0 ? "noName" : _7; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > name = "noName" -3 > -4 > name = "noName" -1 >Emitted(46, 5) Source(62, 8) + SourceIndex(0) -2 >Emitted(46, 21) Source(62, 23) + SourceIndex(0) -3 >Emitted(46, 23) Source(62, 8) + SourceIndex(0) -4 >Emitted(46, 59) Source(62, 23) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(47, 5) Source(63, 5) + SourceIndex(0) -2 >Emitted(47, 12) Source(63, 12) + SourceIndex(0) -3 >Emitted(47, 13) Source(63, 13) + SourceIndex(0) -4 >Emitted(47, 16) Source(63, 16) + SourceIndex(0) -5 >Emitted(47, 17) Source(63, 17) + SourceIndex(0) -6 >Emitted(47, 22) Source(63, 22) + SourceIndex(0) -7 >Emitted(47, 23) Source(63, 23) + SourceIndex(0) -8 >Emitted(47, 24) Source(63, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(48, 2) Source(64, 2) + SourceIndex(0) ---- ->>>for (var _8 = 0, multiRobots_2 = multiRobots; _8 < multiRobots_2.length; _8++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(49, 1) Source(65, 1) + SourceIndex(0) -2 >Emitted(49, 4) Source(65, 4) + SourceIndex(0) -3 >Emitted(49, 5) Source(65, 5) + SourceIndex(0) -4 >Emitted(49, 6) Source(70, 6) + SourceIndex(0) -5 >Emitted(49, 16) Source(70, 17) + SourceIndex(0) -6 >Emitted(49, 18) Source(70, 6) + SourceIndex(0) -7 >Emitted(49, 45) Source(70, 17) + SourceIndex(0) -8 >Emitted(49, 47) Source(70, 6) + SourceIndex(0) -9 >Emitted(49, 72) Source(70, 17) + SourceIndex(0) -10>Emitted(49, 74) Source(70, 6) + SourceIndex(0) -11>Emitted(49, 78) Source(70, 17) + SourceIndex(0) ---- ->>> _9 = multiRobots_2[_8].skills, _10 = _9 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _9, _11 = _10.primary, primary = _11 === void 0 ? "primary" : _11, _12 = _10.secondary, secondary = _12 === void 0 ? "secondary" : _12; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -3 > -4 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -5 > -6 > primary = "primary" -7 > -8 > primary = "primary" -9 > , - > -10> secondary = "secondary" -11> -12> secondary = "secondary" -1->Emitted(50, 5) Source(66, 5) + SourceIndex(0) -2 >Emitted(50, 34) Source(69, 53) + SourceIndex(0) -3 >Emitted(50, 36) Source(66, 5) + SourceIndex(0) -4 >Emitted(50, 107) Source(69, 53) + SourceIndex(0) -5 >Emitted(50, 109) Source(67, 9) + SourceIndex(0) -6 >Emitted(50, 126) Source(67, 28) + SourceIndex(0) -7 >Emitted(50, 128) Source(67, 9) + SourceIndex(0) -8 >Emitted(50, 170) Source(67, 28) + SourceIndex(0) -9 >Emitted(50, 172) Source(68, 9) + SourceIndex(0) -10>Emitted(50, 191) Source(68, 32) + SourceIndex(0) -11>Emitted(50, 193) Source(68, 9) + SourceIndex(0) -12>Emitted(50, 239) Source(68, 32) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(51, 5) Source(71, 5) + SourceIndex(0) -2 >Emitted(51, 12) Source(71, 12) + SourceIndex(0) -3 >Emitted(51, 13) Source(71, 13) + SourceIndex(0) -4 >Emitted(51, 16) Source(71, 16) + SourceIndex(0) -5 >Emitted(51, 17) Source(71, 17) + SourceIndex(0) -6 >Emitted(51, 25) Source(71, 25) + SourceIndex(0) -7 >Emitted(51, 26) Source(71, 26) + SourceIndex(0) -8 >Emitted(51, 27) Source(71, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(52, 2) Source(72, 2) + SourceIndex(0) ---- ->>>for (var _13 = 0, _14 = getMultiRobots(); _13 < _14.length; _13++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(53, 1) Source(73, 1) + SourceIndex(0) -2 >Emitted(53, 4) Source(73, 4) + SourceIndex(0) -3 >Emitted(53, 5) Source(73, 5) + SourceIndex(0) -4 >Emitted(53, 6) Source(78, 6) + SourceIndex(0) -5 >Emitted(53, 17) Source(78, 22) + SourceIndex(0) -6 >Emitted(53, 19) Source(78, 6) + SourceIndex(0) -7 >Emitted(53, 25) Source(78, 6) + SourceIndex(0) -8 >Emitted(53, 39) Source(78, 20) + SourceIndex(0) -9 >Emitted(53, 41) Source(78, 22) + SourceIndex(0) -10>Emitted(53, 43) Source(78, 6) + SourceIndex(0) -11>Emitted(53, 59) Source(78, 22) + SourceIndex(0) -12>Emitted(53, 61) Source(78, 6) + SourceIndex(0) -13>Emitted(53, 66) Source(78, 22) + SourceIndex(0) ---- ->>> _15 = _14[_13].skills, _16 = _15 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _15, _17 = _16.primary, primary = _17 === void 0 ? "primary" : _17, _18 = _16.secondary, secondary = _18 === void 0 ? "secondary" : _18; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -3 > -4 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -5 > -6 > primary = "primary" -7 > -8 > primary = "primary" -9 > , - > -10> secondary = "secondary" -11> -12> secondary = "secondary" -1->Emitted(54, 5) Source(74, 5) + SourceIndex(0) -2 >Emitted(54, 26) Source(77, 53) + SourceIndex(0) -3 >Emitted(54, 28) Source(74, 5) + SourceIndex(0) -4 >Emitted(54, 101) Source(77, 53) + SourceIndex(0) -5 >Emitted(54, 103) Source(75, 9) + SourceIndex(0) -6 >Emitted(54, 120) Source(75, 28) + SourceIndex(0) -7 >Emitted(54, 122) Source(75, 9) + SourceIndex(0) -8 >Emitted(54, 164) Source(75, 28) + SourceIndex(0) -9 >Emitted(54, 166) Source(76, 9) + SourceIndex(0) -10>Emitted(54, 185) Source(76, 32) + SourceIndex(0) -11>Emitted(54, 187) Source(76, 9) + SourceIndex(0) -12>Emitted(54, 233) Source(76, 32) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of getMultiRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(55, 5) Source(79, 5) + SourceIndex(0) -2 >Emitted(55, 12) Source(79, 12) + SourceIndex(0) -3 >Emitted(55, 13) Source(79, 13) + SourceIndex(0) -4 >Emitted(55, 16) Source(79, 16) + SourceIndex(0) -5 >Emitted(55, 17) Source(79, 17) + SourceIndex(0) -6 >Emitted(55, 25) Source(79, 25) + SourceIndex(0) -7 >Emitted(55, 26) Source(79, 26) + SourceIndex(0) -8 >Emitted(55, 27) Source(79, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(56, 2) Source(80, 2) + SourceIndex(0) ---- ->>>for (var _19 = 0, _20 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^^ -14> ^^ -15> ^^ -16> ^^^^^^^ -17> ^^ -18> ^^^^^^^^ -19> ^^ -20> ^^^^^^^^^ -21> ^^ -22> ^^^^^^ -23> ^^ -24> ^^ -25> ^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -6 > -7 > [ -8 > { -9 > name -10> : -11> "mower" -12> , -13> skills -14> : -15> { -16> primary -17> : -18> "mowing" -19> , -20> secondary -21> : -22> "none" -23> } -24> } -1->Emitted(57, 1) Source(81, 1) + SourceIndex(0) -2 >Emitted(57, 4) Source(81, 4) + SourceIndex(0) -3 >Emitted(57, 5) Source(81, 5) + SourceIndex(0) -4 >Emitted(57, 6) Source(86, 6) + SourceIndex(0) -5 >Emitted(57, 17) Source(87, 79) + SourceIndex(0) -6 >Emitted(57, 19) Source(86, 6) + SourceIndex(0) -7 >Emitted(57, 26) Source(86, 7) + SourceIndex(0) -8 >Emitted(57, 28) Source(86, 9) + SourceIndex(0) -9 >Emitted(57, 32) Source(86, 13) + SourceIndex(0) -10>Emitted(57, 34) Source(86, 15) + SourceIndex(0) -11>Emitted(57, 41) Source(86, 22) + SourceIndex(0) -12>Emitted(57, 43) Source(86, 24) + SourceIndex(0) -13>Emitted(57, 49) Source(86, 30) + SourceIndex(0) -14>Emitted(57, 51) Source(86, 32) + SourceIndex(0) -15>Emitted(57, 53) Source(86, 34) + SourceIndex(0) -16>Emitted(57, 60) Source(86, 41) + SourceIndex(0) -17>Emitted(57, 62) Source(86, 43) + SourceIndex(0) -18>Emitted(57, 70) Source(86, 51) + SourceIndex(0) -19>Emitted(57, 72) Source(86, 53) + SourceIndex(0) -20>Emitted(57, 81) Source(86, 62) + SourceIndex(0) -21>Emitted(57, 83) Source(86, 64) + SourceIndex(0) -22>Emitted(57, 89) Source(86, 70) + SourceIndex(0) -23>Emitted(57, 91) Source(86, 72) + SourceIndex(0) -24>Emitted(57, 93) Source(86, 74) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _19 < _20.length; _19++) { -1->^^^^ -2 > ^^ -3 > ^^^^ -4 > ^^ -5 > ^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^ -10> ^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^ -15> ^^ -16> ^^^^^^^^ -17> ^^ -18> ^^ -19> ^ -20> ^^ -21> ^^^^^^^^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, - > -2 > { -3 > name -4 > : -5 > "trimmer" -6 > , -7 > skills -8 > : -9 > { -10> primary -11> : -12> "trimming" -13> , -14> secondary -15> : -16> "edging" -17> } -18> } -19> ] -20> -21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(58, 5) Source(87, 5) + SourceIndex(0) -2 >Emitted(58, 7) Source(87, 7) + SourceIndex(0) -3 >Emitted(58, 11) Source(87, 11) + SourceIndex(0) -4 >Emitted(58, 13) Source(87, 13) + SourceIndex(0) -5 >Emitted(58, 22) Source(87, 22) + SourceIndex(0) -6 >Emitted(58, 24) Source(87, 24) + SourceIndex(0) -7 >Emitted(58, 30) Source(87, 30) + SourceIndex(0) -8 >Emitted(58, 32) Source(87, 32) + SourceIndex(0) -9 >Emitted(58, 34) Source(87, 34) + SourceIndex(0) -10>Emitted(58, 41) Source(87, 41) + SourceIndex(0) -11>Emitted(58, 43) Source(87, 43) + SourceIndex(0) -12>Emitted(58, 53) Source(87, 53) + SourceIndex(0) -13>Emitted(58, 55) Source(87, 55) + SourceIndex(0) -14>Emitted(58, 64) Source(87, 64) + SourceIndex(0) -15>Emitted(58, 66) Source(87, 66) + SourceIndex(0) -16>Emitted(58, 74) Source(87, 74) + SourceIndex(0) -17>Emitted(58, 76) Source(87, 76) + SourceIndex(0) -18>Emitted(58, 78) Source(87, 78) + SourceIndex(0) -19>Emitted(58, 79) Source(87, 79) + SourceIndex(0) -20>Emitted(58, 81) Source(86, 6) + SourceIndex(0) -21>Emitted(58, 97) Source(87, 79) + SourceIndex(0) -22>Emitted(58, 99) Source(86, 6) + SourceIndex(0) -23>Emitted(58, 104) Source(87, 79) + SourceIndex(0) ---- ->>> _21 = _20[_19].skills, _22 = _21 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _21, _23 = _22.primary, primary = _23 === void 0 ? "primary" : _23, _24 = _22.secondary, secondary = _24 === void 0 ? "secondary" : _24; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -3 > -4 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -5 > -6 > primary = "primary" -7 > -8 > primary = "primary" -9 > , - > -10> secondary = "secondary" -11> -12> secondary = "secondary" -1->Emitted(59, 5) Source(82, 5) + SourceIndex(0) -2 >Emitted(59, 26) Source(85, 53) + SourceIndex(0) -3 >Emitted(59, 28) Source(82, 5) + SourceIndex(0) -4 >Emitted(59, 101) Source(85, 53) + SourceIndex(0) -5 >Emitted(59, 103) Source(83, 9) + SourceIndex(0) -6 >Emitted(59, 120) Source(83, 28) + SourceIndex(0) -7 >Emitted(59, 122) Source(83, 9) + SourceIndex(0) -8 >Emitted(59, 164) Source(83, 28) + SourceIndex(0) -9 >Emitted(59, 166) Source(84, 9) + SourceIndex(0) -10>Emitted(59, 185) Source(84, 32) + SourceIndex(0) -11>Emitted(59, 187) Source(84, 9) + SourceIndex(0) -12>Emitted(59, 233) Source(84, 32) + SourceIndex(0) ---- ->>> console.log(primaryA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > primaryA -7 > ) -8 > ; -1 >Emitted(60, 5) Source(88, 5) + SourceIndex(0) -2 >Emitted(60, 12) Source(88, 12) + SourceIndex(0) -3 >Emitted(60, 13) Source(88, 13) + SourceIndex(0) -4 >Emitted(60, 16) Source(88, 16) + SourceIndex(0) -5 >Emitted(60, 17) Source(88, 17) + SourceIndex(0) -6 >Emitted(60, 25) Source(88, 25) + SourceIndex(0) -7 >Emitted(60, 26) Source(88, 26) + SourceIndex(0) -8 >Emitted(60, 27) Source(88, 27) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(61, 2) Source(89, 2) + SourceIndex(0) ---- ->>>for (var _25 = 0, robots_3 = robots; _25 < robots_3.length; _25++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > - > -2 >for -3 > -4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(62, 1) Source(92, 1) + SourceIndex(0) -2 >Emitted(62, 4) Source(92, 4) + SourceIndex(0) -3 >Emitted(62, 5) Source(92, 5) + SourceIndex(0) -4 >Emitted(62, 6) Source(92, 62) + SourceIndex(0) -5 >Emitted(62, 17) Source(92, 68) + SourceIndex(0) -6 >Emitted(62, 19) Source(92, 62) + SourceIndex(0) -7 >Emitted(62, 36) Source(92, 68) + SourceIndex(0) -8 >Emitted(62, 38) Source(92, 62) + SourceIndex(0) -9 >Emitted(62, 59) Source(92, 68) + SourceIndex(0) -10>Emitted(62, 61) Source(92, 62) + SourceIndex(0) -11>Emitted(62, 66) Source(92, 68) + SourceIndex(0) ---- ->>> _26 = robots_3[_25], _27 = _26.name, nameA = _27 === void 0 ? "noName" : _27, _28 = _26.skill, skillA = _28 === void 0 ? "noSkill" : _28; -1->^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , -6 > skill: skillA = "noSkill" -7 > -8 > skill: skillA = "noSkill" -1->Emitted(63, 26) Source(92, 7) + SourceIndex(0) -2 >Emitted(63, 40) Source(92, 29) + SourceIndex(0) -3 >Emitted(63, 42) Source(92, 7) + SourceIndex(0) -4 >Emitted(63, 81) Source(92, 29) + SourceIndex(0) -5 >Emitted(63, 83) Source(92, 31) + SourceIndex(0) -6 >Emitted(63, 98) Source(92, 56) + SourceIndex(0) -7 >Emitted(63, 100) Source(92, 31) + SourceIndex(0) -8 >Emitted(63, 141) Source(92, 56) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of robots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(64, 5) Source(93, 5) + SourceIndex(0) -2 >Emitted(64, 12) Source(93, 12) + SourceIndex(0) -3 >Emitted(64, 13) Source(93, 13) + SourceIndex(0) -4 >Emitted(64, 16) Source(93, 16) + SourceIndex(0) -5 >Emitted(64, 17) Source(93, 17) + SourceIndex(0) -6 >Emitted(64, 22) Source(93, 22) + SourceIndex(0) -7 >Emitted(64, 23) Source(93, 23) + SourceIndex(0) -8 >Emitted(64, 24) Source(93, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(65, 2) Source(94, 2) + SourceIndex(0) ---- ->>>for (var _29 = 0, _30 = getRobots(); _29 < _30.length; _29++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(66, 1) Source(95, 1) + SourceIndex(0) -2 >Emitted(66, 4) Source(95, 4) + SourceIndex(0) -3 >Emitted(66, 5) Source(95, 5) + SourceIndex(0) -4 >Emitted(66, 6) Source(95, 63) + SourceIndex(0) -5 >Emitted(66, 17) Source(95, 74) + SourceIndex(0) -6 >Emitted(66, 19) Source(95, 63) + SourceIndex(0) -7 >Emitted(66, 25) Source(95, 63) + SourceIndex(0) -8 >Emitted(66, 34) Source(95, 72) + SourceIndex(0) -9 >Emitted(66, 36) Source(95, 74) + SourceIndex(0) -10>Emitted(66, 38) Source(95, 63) + SourceIndex(0) -11>Emitted(66, 54) Source(95, 74) + SourceIndex(0) -12>Emitted(66, 56) Source(95, 63) + SourceIndex(0) -13>Emitted(66, 61) Source(95, 74) + SourceIndex(0) ---- ->>> _31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skill, skillA = _33 === void 0 ? "noSkill" : _33; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , -6 > skill: skillA = "noSkill" -7 > -8 > skill: skillA = "noSkill" -1->Emitted(67, 21) Source(95, 7) + SourceIndex(0) -2 >Emitted(67, 35) Source(95, 29) + SourceIndex(0) -3 >Emitted(67, 37) Source(95, 7) + SourceIndex(0) -4 >Emitted(67, 76) Source(95, 29) + SourceIndex(0) -5 >Emitted(67, 78) Source(95, 31) + SourceIndex(0) -6 >Emitted(67, 93) Source(95, 56) + SourceIndex(0) -7 >Emitted(67, 95) Source(95, 31) + SourceIndex(0) -8 >Emitted(67, 136) Source(95, 56) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of getRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(68, 5) Source(96, 5) + SourceIndex(0) -2 >Emitted(68, 12) Source(96, 12) + SourceIndex(0) -3 >Emitted(68, 13) Source(96, 13) + SourceIndex(0) -4 >Emitted(68, 16) Source(96, 16) + SourceIndex(0) -5 >Emitted(68, 17) Source(96, 17) + SourceIndex(0) -6 >Emitted(68, 22) Source(96, 22) + SourceIndex(0) -7 >Emitted(68, 23) Source(96, 23) + SourceIndex(0) -8 >Emitted(68, 24) Source(96, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(69, 2) Source(97, 2) + SourceIndex(0) ---- ->>>for (var _34 = 0, _35 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _34 < _35.length; _34++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^ -15> ^^^^^^^^ -16> ^^ -17> ^^ -18> ^^ -19> ^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^ -25> ^^^^^^^^^^ -26> ^^ -27> ^ -28> ^^ -29> ^^^^^^^^^^^^^^^^ -30> ^^ -31> ^^^^^ -32> ^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of +4 > ({name: nameA = "noName", skill: skillA = "noSkill" } of 5 > [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 6 > 7 > [ @@ -2239,706 +2393,72 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 20> : 21> "trimmer" 22> , -23> skill -24> : -25> "trimming" -26> } -27> ] -28> -29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -30> -31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(70, 1) Source(98, 1) + SourceIndex(0) -2 >Emitted(70, 4) Source(98, 4) + SourceIndex(0) -3 >Emitted(70, 5) Source(98, 5) + SourceIndex(0) -4 >Emitted(70, 6) Source(98, 63) + SourceIndex(0) -5 >Emitted(70, 17) Source(98, 139) + SourceIndex(0) -6 >Emitted(70, 19) Source(98, 63) + SourceIndex(0) -7 >Emitted(70, 26) Source(98, 64) + SourceIndex(0) -8 >Emitted(70, 28) Source(98, 66) + SourceIndex(0) -9 >Emitted(70, 32) Source(98, 70) + SourceIndex(0) -10>Emitted(70, 34) Source(98, 72) + SourceIndex(0) -11>Emitted(70, 41) Source(98, 79) + SourceIndex(0) -12>Emitted(70, 43) Source(98, 81) + SourceIndex(0) -13>Emitted(70, 48) Source(98, 86) + SourceIndex(0) -14>Emitted(70, 50) Source(98, 88) + SourceIndex(0) -15>Emitted(70, 58) Source(98, 96) + SourceIndex(0) -16>Emitted(70, 60) Source(98, 98) + SourceIndex(0) -17>Emitted(70, 62) Source(98, 100) + SourceIndex(0) -18>Emitted(70, 64) Source(98, 102) + SourceIndex(0) -19>Emitted(70, 68) Source(98, 106) + SourceIndex(0) -20>Emitted(70, 70) Source(98, 108) + SourceIndex(0) -21>Emitted(70, 79) Source(98, 117) + SourceIndex(0) -22>Emitted(70, 81) Source(98, 119) + SourceIndex(0) -23>Emitted(70, 86) Source(98, 124) + SourceIndex(0) -24>Emitted(70, 88) Source(98, 126) + SourceIndex(0) -25>Emitted(70, 98) Source(98, 136) + SourceIndex(0) -26>Emitted(70, 100) Source(98, 138) + SourceIndex(0) -27>Emitted(70, 101) Source(98, 139) + SourceIndex(0) -28>Emitted(70, 103) Source(98, 63) + SourceIndex(0) -29>Emitted(70, 119) Source(98, 139) + SourceIndex(0) -30>Emitted(70, 121) Source(98, 63) + SourceIndex(0) -31>Emitted(70, 126) Source(98, 139) + SourceIndex(0) ---- ->>> _36 = _35[_34], _37 = _36.name, nameA = _37 === void 0 ? "noName" : _37, _38 = _36.skill, skillA = _38 === void 0 ? "noSkill" : _38; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , -6 > skill: skillA = "noSkill" -7 > -8 > skill: skillA = "noSkill" -1->Emitted(71, 21) Source(98, 7) + SourceIndex(0) -2 >Emitted(71, 35) Source(98, 29) + SourceIndex(0) -3 >Emitted(71, 37) Source(98, 7) + SourceIndex(0) -4 >Emitted(71, 76) Source(98, 29) + SourceIndex(0) -5 >Emitted(71, 78) Source(98, 31) + SourceIndex(0) -6 >Emitted(71, 93) Source(98, 56) + SourceIndex(0) -7 >Emitted(71, 95) Source(98, 31) + SourceIndex(0) -8 >Emitted(71, 136) Source(98, 56) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(72, 5) Source(99, 5) + SourceIndex(0) -2 >Emitted(72, 12) Source(99, 12) + SourceIndex(0) -3 >Emitted(72, 13) Source(99, 13) + SourceIndex(0) -4 >Emitted(72, 16) Source(99, 16) + SourceIndex(0) -5 >Emitted(72, 17) Source(99, 17) + SourceIndex(0) -6 >Emitted(72, 22) Source(99, 22) + SourceIndex(0) -7 >Emitted(72, 23) Source(99, 23) + SourceIndex(0) -8 >Emitted(72, 24) Source(99, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(73, 2) Source(100, 2) + SourceIndex(0) ---- ->>>for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(74, 1) Source(101, 1) + SourceIndex(0) -2 >Emitted(74, 4) Source(101, 4) + SourceIndex(0) -3 >Emitted(74, 5) Source(101, 5) + SourceIndex(0) -4 >Emitted(74, 6) Source(107, 6) + SourceIndex(0) -5 >Emitted(74, 17) Source(107, 17) + SourceIndex(0) -6 >Emitted(74, 19) Source(107, 6) + SourceIndex(0) -7 >Emitted(74, 46) Source(107, 17) + SourceIndex(0) -8 >Emitted(74, 48) Source(107, 6) + SourceIndex(0) -9 >Emitted(74, 74) Source(107, 17) + SourceIndex(0) -10>Emitted(74, 76) Source(107, 6) + SourceIndex(0) -11>Emitted(74, 81) Source(107, 17) + SourceIndex(0) ---- ->>> _40 = multiRobots_3[_39], _41 = _40.name, nameA = _41 === void 0 ? "noName" : _41, _42 = _40.skills, _43 = _42 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _42, _44 = _43.primary, primaryA = _44 === void 0 ? "primary" : _44, _45 = _43.secondary, secondaryA = _45 === void 0 ? "secondary" : _45; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , - > -6 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -7 > -8 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -9 > -10> primary: primaryA = "primary" -11> -12> primary: primaryA = "primary" -13> , - > -14> secondary: secondaryA = "secondary" -15> -16> secondary: secondaryA = "secondary" -1->Emitted(75, 31) Source(102, 5) + SourceIndex(0) -2 >Emitted(75, 45) Source(102, 27) + SourceIndex(0) -3 >Emitted(75, 47) Source(102, 5) + SourceIndex(0) -4 >Emitted(75, 86) Source(102, 27) + SourceIndex(0) -5 >Emitted(75, 88) Source(103, 5) + SourceIndex(0) -6 >Emitted(75, 104) Source(106, 53) + SourceIndex(0) -7 >Emitted(75, 106) Source(103, 5) + SourceIndex(0) -8 >Emitted(75, 179) Source(106, 53) + SourceIndex(0) -9 >Emitted(75, 181) Source(104, 9) + SourceIndex(0) -10>Emitted(75, 198) Source(104, 38) + SourceIndex(0) -11>Emitted(75, 200) Source(104, 9) + SourceIndex(0) -12>Emitted(75, 243) Source(104, 38) + SourceIndex(0) -13>Emitted(75, 245) Source(105, 9) + SourceIndex(0) -14>Emitted(75, 264) Source(105, 44) + SourceIndex(0) -15>Emitted(75, 266) Source(105, 9) + SourceIndex(0) -16>Emitted(75, 313) Source(105, 44) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of multiRobots) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(76, 5) Source(108, 5) + SourceIndex(0) -2 >Emitted(76, 12) Source(108, 12) + SourceIndex(0) -3 >Emitted(76, 13) Source(108, 13) + SourceIndex(0) -4 >Emitted(76, 16) Source(108, 16) + SourceIndex(0) -5 >Emitted(76, 17) Source(108, 17) + SourceIndex(0) -6 >Emitted(76, 22) Source(108, 22) + SourceIndex(0) -7 >Emitted(76, 23) Source(108, 23) + SourceIndex(0) -8 >Emitted(76, 24) Source(108, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(77, 2) Source(109, 2) + SourceIndex(0) ---- ->>>for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(78, 1) Source(110, 1) + SourceIndex(0) -2 >Emitted(78, 4) Source(110, 4) + SourceIndex(0) -3 >Emitted(78, 5) Source(110, 5) + SourceIndex(0) -4 >Emitted(78, 6) Source(116, 6) + SourceIndex(0) -5 >Emitted(78, 17) Source(116, 22) + SourceIndex(0) -6 >Emitted(78, 19) Source(116, 6) + SourceIndex(0) -7 >Emitted(78, 25) Source(116, 6) + SourceIndex(0) -8 >Emitted(78, 39) Source(116, 20) + SourceIndex(0) -9 >Emitted(78, 41) Source(116, 22) + SourceIndex(0) -10>Emitted(78, 43) Source(116, 6) + SourceIndex(0) -11>Emitted(78, 59) Source(116, 22) + SourceIndex(0) -12>Emitted(78, 61) Source(116, 6) + SourceIndex(0) -13>Emitted(78, 66) Source(116, 22) + SourceIndex(0) ---- ->>> _48 = _47[_46], _49 = _48.name, nameA = _49 === void 0 ? "noName" : _49, _50 = _48.skills, _51 = _50 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _50, _52 = _51.primary, primaryA = _52 === void 0 ? "primary" : _52, _53 = _51.secondary, secondaryA = _53 === void 0 ? "secondary" : _53; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , - > -6 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -7 > -8 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -9 > -10> primary: primaryA = "primary" -11> -12> primary: primaryA = "primary" -13> , - > -14> secondary: secondaryA = "secondary" -15> -16> secondary: secondaryA = "secondary" -1->Emitted(79, 21) Source(111, 5) + SourceIndex(0) -2 >Emitted(79, 35) Source(111, 27) + SourceIndex(0) -3 >Emitted(79, 37) Source(111, 5) + SourceIndex(0) -4 >Emitted(79, 76) Source(111, 27) + SourceIndex(0) -5 >Emitted(79, 78) Source(112, 5) + SourceIndex(0) -6 >Emitted(79, 94) Source(115, 53) + SourceIndex(0) -7 >Emitted(79, 96) Source(112, 5) + SourceIndex(0) -8 >Emitted(79, 169) Source(115, 53) + SourceIndex(0) -9 >Emitted(79, 171) Source(113, 9) + SourceIndex(0) -10>Emitted(79, 188) Source(113, 38) + SourceIndex(0) -11>Emitted(79, 190) Source(113, 9) + SourceIndex(0) -12>Emitted(79, 233) Source(113, 38) + SourceIndex(0) -13>Emitted(79, 235) Source(114, 9) + SourceIndex(0) -14>Emitted(79, 254) Source(114, 44) + SourceIndex(0) -15>Emitted(79, 256) Source(114, 9) + SourceIndex(0) -16>Emitted(79, 303) Source(114, 44) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of getMultiRobots()) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(80, 5) Source(117, 5) + SourceIndex(0) -2 >Emitted(80, 12) Source(117, 12) + SourceIndex(0) -3 >Emitted(80, 13) Source(117, 13) + SourceIndex(0) -4 >Emitted(80, 16) Source(117, 16) + SourceIndex(0) -5 >Emitted(80, 17) Source(117, 17) + SourceIndex(0) -6 >Emitted(80, 22) Source(117, 22) + SourceIndex(0) -7 >Emitted(80, 23) Source(117, 23) + SourceIndex(0) -8 >Emitted(80, 24) Source(117, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(81, 2) Source(118, 2) + SourceIndex(0) ---- ->>>for (var _54 = 0, _55 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^ -9 > ^^ -10> ^^^^ -11> ^^ -12> ^^^^^^^ -13> ^^ -14> ^^^^^^ -15> ^^ -16> ^^ -17> ^^^^^^^ -18> ^^ -19> ^^^^^^^^ -20> ^^ -21> ^^^^^^^^^ -22> ^^ -23> ^^^^^^ -24> ^^ -25> ^^ -26> ^^^^^^^^^^^^^^^-> -1-> - > -2 >for -3 > -4 > ({ - > name: nameA = "noName", - > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -6 > -7 > -8 > [ -9 > { -10> name -11> : -12> "mower" -13> , -14> skills -15> : -16> { -17> primary -18> : -19> "mowing" -20> , -21> secondary -22> : -23> "none" -24> } -25> } -1->Emitted(82, 1) Source(119, 1) + SourceIndex(0) -2 >Emitted(82, 4) Source(119, 4) + SourceIndex(0) -3 >Emitted(82, 5) Source(119, 5) + SourceIndex(0) -4 >Emitted(82, 6) Source(125, 6) + SourceIndex(0) -5 >Emitted(82, 17) Source(126, 79) + SourceIndex(0) -6 >Emitted(82, 19) Source(125, 6) + SourceIndex(0) -7 >Emitted(82, 25) Source(125, 20) + SourceIndex(0) -8 >Emitted(82, 26) Source(125, 21) + SourceIndex(0) -9 >Emitted(82, 28) Source(125, 23) + SourceIndex(0) -10>Emitted(82, 32) Source(125, 27) + SourceIndex(0) -11>Emitted(82, 34) Source(125, 29) + SourceIndex(0) -12>Emitted(82, 41) Source(125, 36) + SourceIndex(0) -13>Emitted(82, 43) Source(125, 38) + SourceIndex(0) -14>Emitted(82, 49) Source(125, 44) + SourceIndex(0) -15>Emitted(82, 51) Source(125, 46) + SourceIndex(0) -16>Emitted(82, 53) Source(125, 48) + SourceIndex(0) -17>Emitted(82, 60) Source(125, 55) + SourceIndex(0) -18>Emitted(82, 62) Source(125, 57) + SourceIndex(0) -19>Emitted(82, 70) Source(125, 65) + SourceIndex(0) -20>Emitted(82, 72) Source(125, 67) + SourceIndex(0) -21>Emitted(82, 81) Source(125, 76) + SourceIndex(0) -22>Emitted(82, 83) Source(125, 78) + SourceIndex(0) -23>Emitted(82, 89) Source(125, 84) + SourceIndex(0) -24>Emitted(82, 91) Source(125, 86) + SourceIndex(0) -25>Emitted(82, 93) Source(125, 88) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _54 < _55.length; _54++) { -1->^^^^ -2 > ^^ -3 > ^^^^ -4 > ^^ -5 > ^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^ -10> ^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^ -15> ^^ -16> ^^^^^^^^ -17> ^^ -18> ^^ -19> ^ -20> ^^ -21> ^^^^^^^^^^^^^^^^ -22> ^^ -23> ^^^^^ -24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, - > -2 > { -3 > name -4 > : -5 > "trimmer" -6 > , -7 > skills -8 > : -9 > { -10> primary -11> : -12> "trimming" -13> , -14> secondary -15> : -16> "edging" -17> } -18> } -19> ] -20> -21> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -22> -23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(83, 5) Source(126, 5) + SourceIndex(0) -2 >Emitted(83, 7) Source(126, 7) + SourceIndex(0) -3 >Emitted(83, 11) Source(126, 11) + SourceIndex(0) -4 >Emitted(83, 13) Source(126, 13) + SourceIndex(0) -5 >Emitted(83, 22) Source(126, 22) + SourceIndex(0) -6 >Emitted(83, 24) Source(126, 24) + SourceIndex(0) -7 >Emitted(83, 30) Source(126, 30) + SourceIndex(0) -8 >Emitted(83, 32) Source(126, 32) + SourceIndex(0) -9 >Emitted(83, 34) Source(126, 34) + SourceIndex(0) -10>Emitted(83, 41) Source(126, 41) + SourceIndex(0) -11>Emitted(83, 43) Source(126, 43) + SourceIndex(0) -12>Emitted(83, 53) Source(126, 53) + SourceIndex(0) -13>Emitted(83, 55) Source(126, 55) + SourceIndex(0) -14>Emitted(83, 64) Source(126, 64) + SourceIndex(0) -15>Emitted(83, 66) Source(126, 66) + SourceIndex(0) -16>Emitted(83, 74) Source(126, 74) + SourceIndex(0) -17>Emitted(83, 76) Source(126, 76) + SourceIndex(0) -18>Emitted(83, 78) Source(126, 78) + SourceIndex(0) -19>Emitted(83, 79) Source(126, 79) + SourceIndex(0) -20>Emitted(83, 81) Source(125, 6) + SourceIndex(0) -21>Emitted(83, 97) Source(126, 79) + SourceIndex(0) -22>Emitted(83, 99) Source(125, 6) + SourceIndex(0) -23>Emitted(83, 104) Source(126, 79) + SourceIndex(0) ---- ->>> _56 = _55[_54], _57 = _56.name, nameA = _57 === void 0 ? "noName" : _57, _58 = _56.skills, _59 = _58 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _58, _60 = _59.primary, primaryA = _60 === void 0 ? "primary" : _60, _61 = _59.secondary, secondaryA = _61 === void 0 ? "secondary" : _61; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > name: nameA = "noName" -3 > -4 > name: nameA = "noName" -5 > , - > -6 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -7 > -8 > skills: { - > primary: primaryA = "primary", - > secondary: secondaryA = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -9 > -10> primary: primaryA = "primary" -11> -12> primary: primaryA = "primary" -13> , - > -14> secondary: secondaryA = "secondary" -15> -16> secondary: secondaryA = "secondary" -1->Emitted(84, 21) Source(120, 5) + SourceIndex(0) -2 >Emitted(84, 35) Source(120, 27) + SourceIndex(0) -3 >Emitted(84, 37) Source(120, 5) + SourceIndex(0) -4 >Emitted(84, 76) Source(120, 27) + SourceIndex(0) -5 >Emitted(84, 78) Source(121, 5) + SourceIndex(0) -6 >Emitted(84, 94) Source(124, 53) + SourceIndex(0) -7 >Emitted(84, 96) Source(121, 5) + SourceIndex(0) -8 >Emitted(84, 169) Source(124, 53) + SourceIndex(0) -9 >Emitted(84, 171) Source(122, 9) + SourceIndex(0) -10>Emitted(84, 188) Source(122, 38) + SourceIndex(0) -11>Emitted(84, 190) Source(122, 9) + SourceIndex(0) -12>Emitted(84, 233) Source(122, 38) + SourceIndex(0) -13>Emitted(84, 235) Source(123, 9) + SourceIndex(0) -14>Emitted(84, 254) Source(123, 44) + SourceIndex(0) -15>Emitted(84, 256) Source(123, 9) + SourceIndex(0) -16>Emitted(84, 303) Source(123, 44) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > - > } = { primary: "noSkill", secondary: "noSkill" } - >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, - > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { - > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(85, 5) Source(127, 5) + SourceIndex(0) -2 >Emitted(85, 12) Source(127, 12) + SourceIndex(0) -3 >Emitted(85, 13) Source(127, 13) + SourceIndex(0) -4 >Emitted(85, 16) Source(127, 16) + SourceIndex(0) -5 >Emitted(85, 17) Source(127, 17) + SourceIndex(0) -6 >Emitted(85, 22) Source(127, 22) + SourceIndex(0) -7 >Emitted(85, 23) Source(127, 23) + SourceIndex(0) -8 >Emitted(85, 24) Source(127, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(86, 2) Source(128, 2) + SourceIndex(0) ---- ->>>for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -2 >for -3 > -4 > ({ name = "noName", skill = "noSkill" } of -5 > robots -6 > -7 > robots -8 > -9 > robots -10> -11> robots -1->Emitted(87, 1) Source(130, 1) + SourceIndex(0) -2 >Emitted(87, 4) Source(130, 4) + SourceIndex(0) -3 >Emitted(87, 5) Source(130, 5) + SourceIndex(0) -4 >Emitted(87, 6) Source(130, 49) + SourceIndex(0) -5 >Emitted(87, 17) Source(130, 55) + SourceIndex(0) -6 >Emitted(87, 19) Source(130, 49) + SourceIndex(0) -7 >Emitted(87, 36) Source(130, 55) + SourceIndex(0) -8 >Emitted(87, 38) Source(130, 49) + SourceIndex(0) -9 >Emitted(87, 59) Source(130, 55) + SourceIndex(0) -10>Emitted(87, 61) Source(130, 49) + SourceIndex(0) -11>Emitted(87, 66) Source(130, 55) + SourceIndex(0) ---- ->>> _63 = robots_4[_62], _64 = _63.name, name = _64 === void 0 ? "noName" : _64, _65 = _63.skill, skill = _65 === void 0 ? "noSkill" : _65; -1->^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23> skill +24> : +25> "trimming" +26> } +27> ] +28> +29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +30> +31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] +1 >Emitted(147, 1) Source(98, 1) + SourceIndex(0) +2 >Emitted(147, 4) Source(98, 4) + SourceIndex(0) +3 >Emitted(147, 5) Source(98, 5) + SourceIndex(0) +4 >Emitted(147, 6) Source(98, 63) + SourceIndex(0) +5 >Emitted(147, 17) Source(98, 139) + SourceIndex(0) +6 >Emitted(147, 19) Source(98, 63) + SourceIndex(0) +7 >Emitted(147, 26) Source(98, 64) + SourceIndex(0) +8 >Emitted(147, 28) Source(98, 66) + SourceIndex(0) +9 >Emitted(147, 32) Source(98, 70) + SourceIndex(0) +10>Emitted(147, 34) Source(98, 72) + SourceIndex(0) +11>Emitted(147, 41) Source(98, 79) + SourceIndex(0) +12>Emitted(147, 43) Source(98, 81) + SourceIndex(0) +13>Emitted(147, 48) Source(98, 86) + SourceIndex(0) +14>Emitted(147, 50) Source(98, 88) + SourceIndex(0) +15>Emitted(147, 58) Source(98, 96) + SourceIndex(0) +16>Emitted(147, 60) Source(98, 98) + SourceIndex(0) +17>Emitted(147, 62) Source(98, 100) + SourceIndex(0) +18>Emitted(147, 64) Source(98, 102) + SourceIndex(0) +19>Emitted(147, 68) Source(98, 106) + SourceIndex(0) +20>Emitted(147, 70) Source(98, 108) + SourceIndex(0) +21>Emitted(147, 79) Source(98, 117) + SourceIndex(0) +22>Emitted(147, 81) Source(98, 119) + SourceIndex(0) +23>Emitted(147, 86) Source(98, 124) + SourceIndex(0) +24>Emitted(147, 88) Source(98, 126) + SourceIndex(0) +25>Emitted(147, 98) Source(98, 136) + SourceIndex(0) +26>Emitted(147, 100) Source(98, 138) + SourceIndex(0) +27>Emitted(147, 101) Source(98, 139) + SourceIndex(0) +28>Emitted(147, 103) Source(98, 63) + SourceIndex(0) +29>Emitted(147, 119) Source(98, 139) + SourceIndex(0) +30>Emitted(147, 121) Source(98, 63) + SourceIndex(0) +31>Emitted(147, 126) Source(98, 139) + SourceIndex(0) +--- +>>> _19 = _18[_17], _20 = _19.name, nameA = _20 === void 0 ? "noName" : _20, _21 = _19.skill, skillA = _21 === void 0 ? "noSkill" : _21; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -5 > , -6 > skill = "noSkill" -7 > -8 > skill = "noSkill" -1->Emitted(88, 26) Source(130, 8) + SourceIndex(0) -2 >Emitted(88, 40) Source(130, 23) + SourceIndex(0) -3 >Emitted(88, 42) Source(130, 8) + SourceIndex(0) -4 >Emitted(88, 80) Source(130, 23) + SourceIndex(0) -5 >Emitted(88, 82) Source(130, 25) + SourceIndex(0) -6 >Emitted(88, 97) Source(130, 43) + SourceIndex(0) -7 >Emitted(88, 99) Source(130, 25) + SourceIndex(0) -8 >Emitted(88, 139) Source(130, 43) + SourceIndex(0) +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , +6 > skill: skillA = "noSkill" +7 > +8 > skill: skillA = "noSkill" +1->Emitted(148, 21) Source(98, 7) + SourceIndex(0) +2 >Emitted(148, 35) Source(98, 29) + SourceIndex(0) +3 >Emitted(148, 37) Source(98, 7) + SourceIndex(0) +4 >Emitted(148, 76) Source(98, 29) + SourceIndex(0) +5 >Emitted(148, 78) Source(98, 31) + SourceIndex(0) +6 >Emitted(148, 93) Source(98, 56) + SourceIndex(0) +7 >Emitted(148, 95) Source(98, 31) + SourceIndex(0) +8 >Emitted(148, 136) Source(98, 56) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -2949,7 +2469,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > ^^^^^ 7 > ^ 8 > ^ -1 > } of robots) { +1 > } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) { > 2 > console 3 > . @@ -2958,127 +2478,836 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(89, 5) Source(131, 5) + SourceIndex(0) -2 >Emitted(89, 12) Source(131, 12) + SourceIndex(0) -3 >Emitted(89, 13) Source(131, 13) + SourceIndex(0) -4 >Emitted(89, 16) Source(131, 16) + SourceIndex(0) -5 >Emitted(89, 17) Source(131, 17) + SourceIndex(0) -6 >Emitted(89, 22) Source(131, 22) + SourceIndex(0) -7 >Emitted(89, 23) Source(131, 23) + SourceIndex(0) -8 >Emitted(89, 24) Source(131, 24) + SourceIndex(0) +1 >Emitted(149, 5) Source(99, 5) + SourceIndex(0) +2 >Emitted(149, 12) Source(99, 12) + SourceIndex(0) +3 >Emitted(149, 13) Source(99, 13) + SourceIndex(0) +4 >Emitted(149, 16) Source(99, 16) + SourceIndex(0) +5 >Emitted(149, 17) Source(99, 17) + SourceIndex(0) +6 >Emitted(149, 22) Source(99, 22) + SourceIndex(0) +7 >Emitted(149, 23) Source(99, 23) + SourceIndex(0) +8 >Emitted(149, 24) Source(99, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(90, 2) Source(132, 2) + SourceIndex(0) +1 >Emitted(150, 2) Source(100, 2) + SourceIndex(0) --- ->>>for (var _66 = 0, _67 = getRobots(); _66 < _67.length; _66++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_3 = { iterator: __values(multiRobots) }; __step(multiRobots_3);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({ name = "noName", skill = "noSkill" } of -5 > getRobots() -6 > -7 > -8 > getRobots -9 > () -10> -11> getRobots() -12> -13> getRobots() -1->Emitted(91, 1) Source(133, 1) + SourceIndex(0) -2 >Emitted(91, 4) Source(133, 4) + SourceIndex(0) -3 >Emitted(91, 5) Source(133, 5) + SourceIndex(0) -4 >Emitted(91, 6) Source(133, 49) + SourceIndex(0) -5 >Emitted(91, 17) Source(133, 60) + SourceIndex(0) -6 >Emitted(91, 19) Source(133, 49) + SourceIndex(0) -7 >Emitted(91, 25) Source(133, 49) + SourceIndex(0) -8 >Emitted(91, 34) Source(133, 58) + SourceIndex(0) -9 >Emitted(91, 36) Source(133, 60) + SourceIndex(0) -10>Emitted(91, 38) Source(133, 49) + SourceIndex(0) -11>Emitted(91, 54) Source(133, 60) + SourceIndex(0) -12>Emitted(91, 56) Source(133, 49) + SourceIndex(0) -13>Emitted(91, 61) Source(133, 60) + SourceIndex(0) ---- ->>> _68 = _67[_66], _69 = _68.name, name = _69 === void 0 ? "noName" : _69, _70 = _68.skill, skill = _70 === void 0 ? "noSkill" : _70; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1->Emitted(152, 5) Source(101, 1) + SourceIndex(0) +2 >Emitted(152, 8) Source(101, 4) + SourceIndex(0) +3 >Emitted(152, 9) Source(101, 5) + SourceIndex(0) +4 >Emitted(152, 10) Source(107, 6) + SourceIndex(0) +5 >Emitted(152, 14) Source(107, 6) + SourceIndex(0) +6 >Emitted(152, 30) Source(107, 6) + SourceIndex(0) +7 >Emitted(152, 32) Source(107, 6) + SourceIndex(0) +8 >Emitted(152, 42) Source(107, 6) + SourceIndex(0) +9 >Emitted(152, 51) Source(107, 6) + SourceIndex(0) +10>Emitted(152, 62) Source(107, 17) + SourceIndex(0) +11>Emitted(152, 63) Source(107, 17) + SourceIndex(0) +12>Emitted(152, 65) Source(107, 17) + SourceIndex(0) +13>Emitted(152, 67) Source(101, 6) + SourceIndex(0) +14>Emitted(152, 88) Source(107, 2) + SourceIndex(0) +--- +>>> _22 = multiRobots_3.result.value, _23 = _22.name, nameA = _23 === void 0 ? "noName" : _23, _24 = _22.skills, _25 = _24 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _24, _26 = _25.primary, primaryA = _26 === void 0 ? "primary" : _26, _27 = _25.secondary, secondaryA = _27 === void 0 ? "secondary" : _27; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -5 > , -6 > skill = "noSkill" -7 > -8 > skill = "noSkill" -1->Emitted(92, 21) Source(133, 8) + SourceIndex(0) -2 >Emitted(92, 35) Source(133, 23) + SourceIndex(0) -3 >Emitted(92, 37) Source(133, 8) + SourceIndex(0) -4 >Emitted(92, 75) Source(133, 23) + SourceIndex(0) -5 >Emitted(92, 77) Source(133, 25) + SourceIndex(0) -6 >Emitted(92, 92) Source(133, 42) + SourceIndex(0) -7 >Emitted(92, 94) Source(133, 25) + SourceIndex(0) -8 >Emitted(92, 134) Source(133, 42) + SourceIndex(0) +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , + > +6 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +7 > +8 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +9 > +10> primary: primaryA = "primary" +11> +12> primary: primaryA = "primary" +13> , + > +14> secondary: secondaryA = "secondary" +15> +16> secondary: secondaryA = "secondary" +1->Emitted(153, 43) Source(102, 5) + SourceIndex(0) +2 >Emitted(153, 57) Source(102, 27) + SourceIndex(0) +3 >Emitted(153, 59) Source(102, 5) + SourceIndex(0) +4 >Emitted(153, 98) Source(102, 27) + SourceIndex(0) +5 >Emitted(153, 100) Source(103, 5) + SourceIndex(0) +6 >Emitted(153, 116) Source(106, 53) + SourceIndex(0) +7 >Emitted(153, 118) Source(103, 5) + SourceIndex(0) +8 >Emitted(153, 191) Source(106, 53) + SourceIndex(0) +9 >Emitted(153, 193) Source(104, 9) + SourceIndex(0) +10>Emitted(153, 210) Source(104, 38) + SourceIndex(0) +11>Emitted(153, 212) Source(104, 9) + SourceIndex(0) +12>Emitted(153, 255) Source(104, 38) + SourceIndex(0) +13>Emitted(153, 257) Source(105, 9) + SourceIndex(0) +14>Emitted(153, 276) Source(105, 44) + SourceIndex(0) +15>Emitted(153, 278) Source(105, 9) + SourceIndex(0) +16>Emitted(153, 325) Source(105, 44) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of multiRobots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(154, 9) Source(108, 5) + SourceIndex(0) +2 >Emitted(154, 16) Source(108, 12) + SourceIndex(0) +3 >Emitted(154, 17) Source(108, 13) + SourceIndex(0) +4 >Emitted(154, 20) Source(108, 16) + SourceIndex(0) +5 >Emitted(154, 21) Source(108, 17) + SourceIndex(0) +6 >Emitted(154, 26) Source(108, 22) + SourceIndex(0) +7 >Emitted(154, 27) Source(108, 23) + SourceIndex(0) +8 >Emitted(154, 28) Source(108, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(155, 6) Source(109, 2) + SourceIndex(0) --- ->>> console.log(nameA); +>>>} +>>>catch (e_12_1) { e_12 = { error: e_12_1 }; } +>>>finally { +>>> try { __close(multiRobots_3); } finally { if (e_12) throw e_12.error; } +>>>} +>>>try { +>>> for (var iterator_7 = { iterator: __values(getMultiRobots()) }; __step(iterator_7);) { 1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ -1 > } of getRobots()) { +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > ({ + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(162, 5) Source(110, 1) + SourceIndex(0) +2 >Emitted(162, 8) Source(110, 4) + SourceIndex(0) +3 >Emitted(162, 9) Source(110, 5) + SourceIndex(0) +4 >Emitted(162, 10) Source(116, 6) + SourceIndex(0) +5 >Emitted(162, 14) Source(116, 6) + SourceIndex(0) +6 >Emitted(162, 27) Source(116, 6) + SourceIndex(0) +7 >Emitted(162, 29) Source(116, 6) + SourceIndex(0) +8 >Emitted(162, 39) Source(116, 6) + SourceIndex(0) +9 >Emitted(162, 48) Source(116, 6) + SourceIndex(0) +10>Emitted(162, 62) Source(116, 20) + SourceIndex(0) +11>Emitted(162, 64) Source(116, 22) + SourceIndex(0) +12>Emitted(162, 65) Source(116, 22) + SourceIndex(0) +13>Emitted(162, 67) Source(116, 22) + SourceIndex(0) +14>Emitted(162, 69) Source(110, 6) + SourceIndex(0) +15>Emitted(162, 87) Source(116, 2) + SourceIndex(0) +--- +>>> _28 = iterator_7.result.value, _29 = _28.name, nameA = _29 === void 0 ? "noName" : _29, _30 = _28.skills, _31 = _30 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _30, _32 = _31.primary, primaryA = _32 === void 0 ? "primary" : _32, _33 = _31.secondary, secondaryA = _33 === void 0 ? "secondary" : _33; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , + > +6 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +7 > +8 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +9 > +10> primary: primaryA = "primary" +11> +12> primary: primaryA = "primary" +13> , + > +14> secondary: secondaryA = "secondary" +15> +16> secondary: secondaryA = "secondary" +1->Emitted(163, 40) Source(111, 5) + SourceIndex(0) +2 >Emitted(163, 54) Source(111, 27) + SourceIndex(0) +3 >Emitted(163, 56) Source(111, 5) + SourceIndex(0) +4 >Emitted(163, 95) Source(111, 27) + SourceIndex(0) +5 >Emitted(163, 97) Source(112, 5) + SourceIndex(0) +6 >Emitted(163, 113) Source(115, 53) + SourceIndex(0) +7 >Emitted(163, 115) Source(112, 5) + SourceIndex(0) +8 >Emitted(163, 188) Source(115, 53) + SourceIndex(0) +9 >Emitted(163, 190) Source(113, 9) + SourceIndex(0) +10>Emitted(163, 207) Source(113, 38) + SourceIndex(0) +11>Emitted(163, 209) Source(113, 9) + SourceIndex(0) +12>Emitted(163, 252) Source(113, 38) + SourceIndex(0) +13>Emitted(163, 254) Source(114, 9) + SourceIndex(0) +14>Emitted(163, 273) Source(114, 44) + SourceIndex(0) +15>Emitted(163, 275) Source(114, 9) + SourceIndex(0) +16>Emitted(163, 322) Source(114, 44) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(93, 5) Source(134, 5) + SourceIndex(0) -2 >Emitted(93, 12) Source(134, 12) + SourceIndex(0) -3 >Emitted(93, 13) Source(134, 13) + SourceIndex(0) -4 >Emitted(93, 16) Source(134, 16) + SourceIndex(0) -5 >Emitted(93, 17) Source(134, 17) + SourceIndex(0) -6 >Emitted(93, 22) Source(134, 22) + SourceIndex(0) -7 >Emitted(93, 23) Source(134, 23) + SourceIndex(0) -8 >Emitted(93, 24) Source(134, 24) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(164, 9) Source(117, 5) + SourceIndex(0) +2 >Emitted(164, 16) Source(117, 12) + SourceIndex(0) +3 >Emitted(164, 17) Source(117, 13) + SourceIndex(0) +4 >Emitted(164, 20) Source(117, 16) + SourceIndex(0) +5 >Emitted(164, 21) Source(117, 17) + SourceIndex(0) +6 >Emitted(164, 26) Source(117, 22) + SourceIndex(0) +7 >Emitted(164, 27) Source(117, 23) + SourceIndex(0) +8 >Emitted(164, 28) Source(117, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(165, 6) Source(118, 2) + SourceIndex(0) --- >>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>catch (e_13_1) { e_13 = { error: e_13_1 }; } +>>>finally { +>>> try { __close(iterator_7); } finally { if (e_13) throw e_13.error; } +>>>} +>>>try { +>>> for (var iterator_8 = { iterator: __values([{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^ +11> ^^ +12> ^^^^ +13> ^^ +14> ^^^^^^^ +15> ^^ +16> ^^^^^^ +17> ^^ +18> ^^ +19> ^^^^^^^ +20> ^^ +21> ^^^^^^^^ +22> ^^ +23> ^^^^^^^^^ +24> ^^ +25> ^^^^^^ +26> ^^ +27> ^^ +1 > + > +2 > for +3 > +4 > ({ + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> [ +11> { +12> name +13> : +14> "mower" +15> , +16> skills +17> : +18> { +19> primary +20> : +21> "mowing" +22> , +23> secondary +24> : +25> "none" +26> } +27> } +1 >Emitted(172, 5) Source(119, 1) + SourceIndex(0) +2 >Emitted(172, 8) Source(119, 4) + SourceIndex(0) +3 >Emitted(172, 9) Source(119, 5) + SourceIndex(0) +4 >Emitted(172, 10) Source(125, 6) + SourceIndex(0) +5 >Emitted(172, 14) Source(125, 6) + SourceIndex(0) +6 >Emitted(172, 27) Source(125, 6) + SourceIndex(0) +7 >Emitted(172, 29) Source(125, 6) + SourceIndex(0) +8 >Emitted(172, 39) Source(125, 6) + SourceIndex(0) +9 >Emitted(172, 48) Source(125, 20) + SourceIndex(0) +10>Emitted(172, 49) Source(125, 21) + SourceIndex(0) +11>Emitted(172, 51) Source(125, 23) + SourceIndex(0) +12>Emitted(172, 55) Source(125, 27) + SourceIndex(0) +13>Emitted(172, 57) Source(125, 29) + SourceIndex(0) +14>Emitted(172, 64) Source(125, 36) + SourceIndex(0) +15>Emitted(172, 66) Source(125, 38) + SourceIndex(0) +16>Emitted(172, 72) Source(125, 44) + SourceIndex(0) +17>Emitted(172, 74) Source(125, 46) + SourceIndex(0) +18>Emitted(172, 76) Source(125, 48) + SourceIndex(0) +19>Emitted(172, 83) Source(125, 55) + SourceIndex(0) +20>Emitted(172, 85) Source(125, 57) + SourceIndex(0) +21>Emitted(172, 93) Source(125, 65) + SourceIndex(0) +22>Emitted(172, 95) Source(125, 67) + SourceIndex(0) +23>Emitted(172, 104) Source(125, 76) + SourceIndex(0) +24>Emitted(172, 106) Source(125, 78) + SourceIndex(0) +25>Emitted(172, 112) Source(125, 84) + SourceIndex(0) +26>Emitted(172, 114) Source(125, 86) + SourceIndex(0) +27>Emitted(172, 116) Source(125, 88) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) }; __step(iterator_8);) { +1 >^^^^^^^^^^^^ +2 > ^^ +3 > ^^^^ +4 > ^^ +5 > ^^^^^^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^ +10> ^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^ +15> ^^ +16> ^^^^^^^^ +17> ^^ +18> ^^ +19> ^ +20> ^ +21> ^^ +22> ^^ +23> ^^^^^^^^^^^^^^^^^^ +24> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >, + > +2 > { +3 > name +4 > : +5 > "trimmer" +6 > , +7 > skills +8 > : +9 > { +10> primary +11> : +12> "trimming" +13> , +14> secondary +15> : +16> "edging" +17> } +18> } +19> ] +20> +21> +22> +23> { + > name: nameA = "noName", + > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(173, 13) Source(126, 5) + SourceIndex(0) +2 >Emitted(173, 15) Source(126, 7) + SourceIndex(0) +3 >Emitted(173, 19) Source(126, 11) + SourceIndex(0) +4 >Emitted(173, 21) Source(126, 13) + SourceIndex(0) +5 >Emitted(173, 30) Source(126, 22) + SourceIndex(0) +6 >Emitted(173, 32) Source(126, 24) + SourceIndex(0) +7 >Emitted(173, 38) Source(126, 30) + SourceIndex(0) +8 >Emitted(173, 40) Source(126, 32) + SourceIndex(0) +9 >Emitted(173, 42) Source(126, 34) + SourceIndex(0) +10>Emitted(173, 49) Source(126, 41) + SourceIndex(0) +11>Emitted(173, 51) Source(126, 43) + SourceIndex(0) +12>Emitted(173, 61) Source(126, 53) + SourceIndex(0) +13>Emitted(173, 63) Source(126, 55) + SourceIndex(0) +14>Emitted(173, 72) Source(126, 64) + SourceIndex(0) +15>Emitted(173, 74) Source(126, 66) + SourceIndex(0) +16>Emitted(173, 82) Source(126, 74) + SourceIndex(0) +17>Emitted(173, 84) Source(126, 76) + SourceIndex(0) +18>Emitted(173, 86) Source(126, 78) + SourceIndex(0) +19>Emitted(173, 87) Source(126, 79) + SourceIndex(0) +20>Emitted(173, 88) Source(126, 79) + SourceIndex(0) +21>Emitted(173, 90) Source(126, 79) + SourceIndex(0) +22>Emitted(173, 92) Source(119, 6) + SourceIndex(0) +23>Emitted(173, 110) Source(125, 2) + SourceIndex(0) +--- +>>> _34 = iterator_8.result.value, _35 = _34.name, nameA = _35 === void 0 ? "noName" : _35, _36 = _34.skills, _37 = _36 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _36, _38 = _37.primary, primaryA = _38 === void 0 ? "primary" : _38, _39 = _37.secondary, secondaryA = _39 === void 0 ? "secondary" : _39; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > name: nameA = "noName" +3 > +4 > name: nameA = "noName" +5 > , + > +6 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +7 > +8 > skills: { + > primary: primaryA = "primary", + > secondary: secondaryA = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +9 > +10> primary: primaryA = "primary" +11> +12> primary: primaryA = "primary" +13> , + > +14> secondary: secondaryA = "secondary" +15> +16> secondary: secondaryA = "secondary" +1->Emitted(174, 40) Source(120, 5) + SourceIndex(0) +2 >Emitted(174, 54) Source(120, 27) + SourceIndex(0) +3 >Emitted(174, 56) Source(120, 5) + SourceIndex(0) +4 >Emitted(174, 95) Source(120, 27) + SourceIndex(0) +5 >Emitted(174, 97) Source(121, 5) + SourceIndex(0) +6 >Emitted(174, 113) Source(124, 53) + SourceIndex(0) +7 >Emitted(174, 115) Source(121, 5) + SourceIndex(0) +8 >Emitted(174, 188) Source(124, 53) + SourceIndex(0) +9 >Emitted(174, 190) Source(122, 9) + SourceIndex(0) +10>Emitted(174, 207) Source(122, 38) + SourceIndex(0) +11>Emitted(174, 209) Source(122, 9) + SourceIndex(0) +12>Emitted(174, 252) Source(122, 38) + SourceIndex(0) +13>Emitted(174, 254) Source(123, 9) + SourceIndex(0) +14>Emitted(174, 273) Source(123, 44) + SourceIndex(0) +15>Emitted(174, 275) Source(123, 9) + SourceIndex(0) +16>Emitted(174, 322) Source(123, 44) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > + > } = { primary: "noSkill", secondary: "noSkill" } + >} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, + > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(175, 9) Source(127, 5) + SourceIndex(0) +2 >Emitted(175, 16) Source(127, 12) + SourceIndex(0) +3 >Emitted(175, 17) Source(127, 13) + SourceIndex(0) +4 >Emitted(175, 20) Source(127, 16) + SourceIndex(0) +5 >Emitted(175, 21) Source(127, 17) + SourceIndex(0) +6 >Emitted(175, 26) Source(127, 22) + SourceIndex(0) +7 >Emitted(175, 27) Source(127, 23) + SourceIndex(0) +8 >Emitted(175, 28) Source(127, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(176, 6) Source(128, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_14_1) { e_14 = { error: e_14_1 }; } +>>>finally { +>>> try { __close(iterator_8); } finally { if (e_14) throw e_14.error; } +>>>} +>>>try { +>>> for (var robots_4 = { iterator: __values(robots) }; __step(robots_4);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > +2 > for +3 > +4 > ({ name = "noName", skill = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> robots +11> +12> +13> +14> { name = "noName", skill = "noSkill" } +1 >Emitted(183, 5) Source(130, 1) + SourceIndex(0) +2 >Emitted(183, 8) Source(130, 4) + SourceIndex(0) +3 >Emitted(183, 9) Source(130, 5) + SourceIndex(0) +4 >Emitted(183, 10) Source(130, 49) + SourceIndex(0) +5 >Emitted(183, 14) Source(130, 49) + SourceIndex(0) +6 >Emitted(183, 25) Source(130, 49) + SourceIndex(0) +7 >Emitted(183, 27) Source(130, 49) + SourceIndex(0) +8 >Emitted(183, 37) Source(130, 49) + SourceIndex(0) +9 >Emitted(183, 46) Source(130, 49) + SourceIndex(0) +10>Emitted(183, 52) Source(130, 55) + SourceIndex(0) +11>Emitted(183, 53) Source(130, 55) + SourceIndex(0) +12>Emitted(183, 55) Source(130, 55) + SourceIndex(0) +13>Emitted(183, 57) Source(130, 6) + SourceIndex(0) +14>Emitted(183, 73) Source(130, 45) + SourceIndex(0) +--- +>>> _40 = robots_4.result.value, _41 = _40.name, name = _41 === void 0 ? "noName" : _41, _42 = _40.skill, skill = _42 === void 0 ? "noSkill" : _42; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > name = "noName" +3 > +4 > name = "noName" +5 > , +6 > skill = "noSkill" +7 > +8 > skill = "noSkill" +1->Emitted(184, 38) Source(130, 8) + SourceIndex(0) +2 >Emitted(184, 52) Source(130, 23) + SourceIndex(0) +3 >Emitted(184, 54) Source(130, 8) + SourceIndex(0) +4 >Emitted(184, 92) Source(130, 23) + SourceIndex(0) +5 >Emitted(184, 94) Source(130, 25) + SourceIndex(0) +6 >Emitted(184, 109) Source(130, 43) + SourceIndex(0) +7 >Emitted(184, 111) Source(130, 25) + SourceIndex(0) +8 >Emitted(184, 151) Source(130, 43) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of robots) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(185, 9) Source(131, 5) + SourceIndex(0) +2 >Emitted(185, 16) Source(131, 12) + SourceIndex(0) +3 >Emitted(185, 17) Source(131, 13) + SourceIndex(0) +4 >Emitted(185, 20) Source(131, 16) + SourceIndex(0) +5 >Emitted(185, 21) Source(131, 17) + SourceIndex(0) +6 >Emitted(185, 26) Source(131, 22) + SourceIndex(0) +7 >Emitted(185, 27) Source(131, 23) + SourceIndex(0) +8 >Emitted(185, 28) Source(131, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(94, 2) Source(135, 2) + SourceIndex(0) +1 >Emitted(186, 6) Source(132, 2) + SourceIndex(0) --- ->>>for (var _71 = 0, _72 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _71 < _72.length; _71++) { +>>>} +>>>catch (e_15_1) { e_15 = { error: e_15_1 }; } +>>>finally { +>>> try { __close(robots_4); } finally { if (e_15) throw e_15.error; } +>>>} +>>>try { +>>> for (var iterator_9 = { iterator: __values(getRobots()) }; __step(iterator_9);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > for +3 > +4 > ({ name = "noName", skill = "noSkill" } of +5 > +6 > +7 > +8 > +9 > +10> getRobots +11> () +12> +13> +14> +15> { name = "noName", skill = "noSkill" } +1 >Emitted(193, 5) Source(133, 1) + SourceIndex(0) +2 >Emitted(193, 8) Source(133, 4) + SourceIndex(0) +3 >Emitted(193, 9) Source(133, 5) + SourceIndex(0) +4 >Emitted(193, 10) Source(133, 49) + SourceIndex(0) +5 >Emitted(193, 14) Source(133, 49) + SourceIndex(0) +6 >Emitted(193, 27) Source(133, 49) + SourceIndex(0) +7 >Emitted(193, 29) Source(133, 49) + SourceIndex(0) +8 >Emitted(193, 39) Source(133, 49) + SourceIndex(0) +9 >Emitted(193, 48) Source(133, 49) + SourceIndex(0) +10>Emitted(193, 57) Source(133, 58) + SourceIndex(0) +11>Emitted(193, 59) Source(133, 60) + SourceIndex(0) +12>Emitted(193, 60) Source(133, 60) + SourceIndex(0) +13>Emitted(193, 62) Source(133, 60) + SourceIndex(0) +14>Emitted(193, 64) Source(133, 6) + SourceIndex(0) +15>Emitted(193, 82) Source(133, 45) + SourceIndex(0) +--- +>>> _43 = iterator_9.result.value, _44 = _43.name, name = _44 === void 0 ? "noName" : _44, _45 = _43.skill, skill = _45 === void 0 ? "noSkill" : _45; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> +2 > name = "noName" +3 > +4 > name = "noName" +5 > , +6 > skill = "noSkill" +7 > +8 > skill = "noSkill" +1->Emitted(194, 40) Source(133, 8) + SourceIndex(0) +2 >Emitted(194, 54) Source(133, 23) + SourceIndex(0) +3 >Emitted(194, 56) Source(133, 8) + SourceIndex(0) +4 >Emitted(194, 94) Source(133, 23) + SourceIndex(0) +5 >Emitted(194, 96) Source(133, 25) + SourceIndex(0) +6 >Emitted(194, 111) Source(133, 42) + SourceIndex(0) +7 >Emitted(194, 113) Source(133, 25) + SourceIndex(0) +8 >Emitted(194, 153) Source(133, 42) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ +1 > } of getRobots()) { + > +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(195, 9) Source(134, 5) + SourceIndex(0) +2 >Emitted(195, 16) Source(134, 12) + SourceIndex(0) +3 >Emitted(195, 17) Source(134, 13) + SourceIndex(0) +4 >Emitted(195, 20) Source(134, 16) + SourceIndex(0) +5 >Emitted(195, 21) Source(134, 17) + SourceIndex(0) +6 >Emitted(195, 26) Source(134, 22) + SourceIndex(0) +7 >Emitted(195, 27) Source(134, 23) + SourceIndex(0) +8 >Emitted(195, 28) Source(134, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + >} +1 >Emitted(196, 6) Source(135, 2) + SourceIndex(0) +--- +>>>} +>>>catch (e_16_1) { e_16 = { error: e_16_1 }; } +>>>finally { +>>> try { __close(iterator_9); } finally { if (e_16) throw e_16.error; } +>>>} +>>>for (var _46 = 0, _47 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _46 < _47.length; _46++) { +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -3110,7 +3339,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 30> ^^ 31> ^^^^^ 32> ^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -3142,39 +3371,39 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 29> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] 30> 31> [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] -1->Emitted(95, 1) Source(136, 1) + SourceIndex(0) -2 >Emitted(95, 4) Source(136, 4) + SourceIndex(0) -3 >Emitted(95, 5) Source(136, 5) + SourceIndex(0) -4 >Emitted(95, 6) Source(136, 49) + SourceIndex(0) -5 >Emitted(95, 17) Source(136, 125) + SourceIndex(0) -6 >Emitted(95, 19) Source(136, 49) + SourceIndex(0) -7 >Emitted(95, 26) Source(136, 50) + SourceIndex(0) -8 >Emitted(95, 28) Source(136, 52) + SourceIndex(0) -9 >Emitted(95, 32) Source(136, 56) + SourceIndex(0) -10>Emitted(95, 34) Source(136, 58) + SourceIndex(0) -11>Emitted(95, 41) Source(136, 65) + SourceIndex(0) -12>Emitted(95, 43) Source(136, 67) + SourceIndex(0) -13>Emitted(95, 48) Source(136, 72) + SourceIndex(0) -14>Emitted(95, 50) Source(136, 74) + SourceIndex(0) -15>Emitted(95, 58) Source(136, 82) + SourceIndex(0) -16>Emitted(95, 60) Source(136, 84) + SourceIndex(0) -17>Emitted(95, 62) Source(136, 86) + SourceIndex(0) -18>Emitted(95, 64) Source(136, 88) + SourceIndex(0) -19>Emitted(95, 68) Source(136, 92) + SourceIndex(0) -20>Emitted(95, 70) Source(136, 94) + SourceIndex(0) -21>Emitted(95, 79) Source(136, 103) + SourceIndex(0) -22>Emitted(95, 81) Source(136, 105) + SourceIndex(0) -23>Emitted(95, 86) Source(136, 110) + SourceIndex(0) -24>Emitted(95, 88) Source(136, 112) + SourceIndex(0) -25>Emitted(95, 98) Source(136, 122) + SourceIndex(0) -26>Emitted(95, 100) Source(136, 124) + SourceIndex(0) -27>Emitted(95, 101) Source(136, 125) + SourceIndex(0) -28>Emitted(95, 103) Source(136, 49) + SourceIndex(0) -29>Emitted(95, 119) Source(136, 125) + SourceIndex(0) -30>Emitted(95, 121) Source(136, 49) + SourceIndex(0) -31>Emitted(95, 126) Source(136, 125) + SourceIndex(0) ---- ->>> _73 = _72[_71], _74 = _73.name, name = _74 === void 0 ? "noName" : _74, _75 = _73.skill, skill = _75 === void 0 ? "noSkill" : _75; +1 >Emitted(202, 1) Source(136, 1) + SourceIndex(0) +2 >Emitted(202, 4) Source(136, 4) + SourceIndex(0) +3 >Emitted(202, 5) Source(136, 5) + SourceIndex(0) +4 >Emitted(202, 6) Source(136, 49) + SourceIndex(0) +5 >Emitted(202, 17) Source(136, 125) + SourceIndex(0) +6 >Emitted(202, 19) Source(136, 49) + SourceIndex(0) +7 >Emitted(202, 26) Source(136, 50) + SourceIndex(0) +8 >Emitted(202, 28) Source(136, 52) + SourceIndex(0) +9 >Emitted(202, 32) Source(136, 56) + SourceIndex(0) +10>Emitted(202, 34) Source(136, 58) + SourceIndex(0) +11>Emitted(202, 41) Source(136, 65) + SourceIndex(0) +12>Emitted(202, 43) Source(136, 67) + SourceIndex(0) +13>Emitted(202, 48) Source(136, 72) + SourceIndex(0) +14>Emitted(202, 50) Source(136, 74) + SourceIndex(0) +15>Emitted(202, 58) Source(136, 82) + SourceIndex(0) +16>Emitted(202, 60) Source(136, 84) + SourceIndex(0) +17>Emitted(202, 62) Source(136, 86) + SourceIndex(0) +18>Emitted(202, 64) Source(136, 88) + SourceIndex(0) +19>Emitted(202, 68) Source(136, 92) + SourceIndex(0) +20>Emitted(202, 70) Source(136, 94) + SourceIndex(0) +21>Emitted(202, 79) Source(136, 103) + SourceIndex(0) +22>Emitted(202, 81) Source(136, 105) + SourceIndex(0) +23>Emitted(202, 86) Source(136, 110) + SourceIndex(0) +24>Emitted(202, 88) Source(136, 112) + SourceIndex(0) +25>Emitted(202, 98) Source(136, 122) + SourceIndex(0) +26>Emitted(202, 100) Source(136, 124) + SourceIndex(0) +27>Emitted(202, 101) Source(136, 125) + SourceIndex(0) +28>Emitted(202, 103) Source(136, 49) + SourceIndex(0) +29>Emitted(202, 119) Source(136, 125) + SourceIndex(0) +30>Emitted(202, 121) Source(136, 49) + SourceIndex(0) +31>Emitted(202, 126) Source(136, 125) + SourceIndex(0) +--- +>>> _48 = _47[_46], _49 = _48.name, name = _49 === void 0 ? "noName" : _49, _50 = _48.skill, skill = _50 === void 0 ? "noSkill" : _50; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^ 3 > ^^ @@ -3191,14 +3420,14 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > skill = "noSkill" 7 > 8 > skill = "noSkill" -1->Emitted(96, 21) Source(136, 8) + SourceIndex(0) -2 >Emitted(96, 35) Source(136, 23) + SourceIndex(0) -3 >Emitted(96, 37) Source(136, 8) + SourceIndex(0) -4 >Emitted(96, 75) Source(136, 23) + SourceIndex(0) -5 >Emitted(96, 77) Source(136, 25) + SourceIndex(0) -6 >Emitted(96, 92) Source(136, 43) + SourceIndex(0) -7 >Emitted(96, 94) Source(136, 25) + SourceIndex(0) -8 >Emitted(96, 134) Source(136, 43) + SourceIndex(0) +1->Emitted(203, 21) Source(136, 8) + SourceIndex(0) +2 >Emitted(203, 35) Source(136, 23) + SourceIndex(0) +3 >Emitted(203, 37) Source(136, 8) + SourceIndex(0) +4 >Emitted(203, 75) Source(136, 23) + SourceIndex(0) +5 >Emitted(203, 77) Source(136, 25) + SourceIndex(0) +6 >Emitted(203, 92) Source(136, 43) + SourceIndex(0) +7 >Emitted(203, 94) Source(136, 25) + SourceIndex(0) +8 >Emitted(203, 134) Source(136, 43) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -3218,304 +3447,341 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(97, 5) Source(137, 5) + SourceIndex(0) -2 >Emitted(97, 12) Source(137, 12) + SourceIndex(0) -3 >Emitted(97, 13) Source(137, 13) + SourceIndex(0) -4 >Emitted(97, 16) Source(137, 16) + SourceIndex(0) -5 >Emitted(97, 17) Source(137, 17) + SourceIndex(0) -6 >Emitted(97, 22) Source(137, 22) + SourceIndex(0) -7 >Emitted(97, 23) Source(137, 23) + SourceIndex(0) -8 >Emitted(97, 24) Source(137, 24) + SourceIndex(0) +1 >Emitted(204, 5) Source(137, 5) + SourceIndex(0) +2 >Emitted(204, 12) Source(137, 12) + SourceIndex(0) +3 >Emitted(204, 13) Source(137, 13) + SourceIndex(0) +4 >Emitted(204, 16) Source(137, 16) + SourceIndex(0) +5 >Emitted(204, 17) Source(137, 17) + SourceIndex(0) +6 >Emitted(204, 22) Source(137, 22) + SourceIndex(0) +7 >Emitted(204, 23) Source(137, 23) + SourceIndex(0) +8 >Emitted(204, 24) Source(137, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^-> 1 > >} -1 >Emitted(98, 2) Source(138, 2) + SourceIndex(0) +1 >Emitted(205, 2) Source(138, 2) + SourceIndex(0) --- ->>>for (var _76 = 0, multiRobots_4 = multiRobots; _76 < multiRobots_4.length; _76++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>try { +>>> for (var multiRobots_4 = { iterator: __values(multiRobots) }; __step(multiRobots_4);) { +1->^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^ +11> ^ +12> ^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -2 >for -3 > -4 > ({ - > name = "noName", - > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > multiRobots -6 > -7 > multiRobots -8 > -9 > multiRobots -10> -11> multiRobots -1->Emitted(99, 1) Source(139, 1) + SourceIndex(0) -2 >Emitted(99, 4) Source(139, 4) + SourceIndex(0) -3 >Emitted(99, 5) Source(139, 5) + SourceIndex(0) -4 >Emitted(99, 6) Source(145, 6) + SourceIndex(0) -5 >Emitted(99, 17) Source(145, 17) + SourceIndex(0) -6 >Emitted(99, 19) Source(145, 6) + SourceIndex(0) -7 >Emitted(99, 46) Source(145, 17) + SourceIndex(0) -8 >Emitted(99, 48) Source(145, 6) + SourceIndex(0) -9 >Emitted(99, 74) Source(145, 17) + SourceIndex(0) -10>Emitted(99, 76) Source(145, 6) + SourceIndex(0) -11>Emitted(99, 81) Source(145, 17) + SourceIndex(0) ---- ->>> _77 = multiRobots_4[_76], _78 = _77.name, name = _78 === void 0 ? "noName" : _78, _79 = _77.skills, _80 = _79 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _79, _81 = _80.primary, primary = _81 === void 0 ? "primary" : _81, _82 = _80.secondary, secondary = _82 === void 0 ? "secondary" : _82; -1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ + > name = "noName", + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> multiRobots +11> +12> +13> +14> { + > name = "noName", + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1->Emitted(207, 5) Source(139, 1) + SourceIndex(0) +2 >Emitted(207, 8) Source(139, 4) + SourceIndex(0) +3 >Emitted(207, 9) Source(139, 5) + SourceIndex(0) +4 >Emitted(207, 10) Source(145, 6) + SourceIndex(0) +5 >Emitted(207, 14) Source(145, 6) + SourceIndex(0) +6 >Emitted(207, 30) Source(145, 6) + SourceIndex(0) +7 >Emitted(207, 32) Source(145, 6) + SourceIndex(0) +8 >Emitted(207, 42) Source(145, 6) + SourceIndex(0) +9 >Emitted(207, 51) Source(145, 6) + SourceIndex(0) +10>Emitted(207, 62) Source(145, 17) + SourceIndex(0) +11>Emitted(207, 63) Source(145, 17) + SourceIndex(0) +12>Emitted(207, 65) Source(145, 17) + SourceIndex(0) +13>Emitted(207, 67) Source(139, 6) + SourceIndex(0) +14>Emitted(207, 88) Source(145, 2) + SourceIndex(0) +--- +>>> _51 = multiRobots_4.result.value, _52 = _51.name, name = _52 === void 0 ? "noName" : _52, _53 = _51.skills, _54 = _53 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _53, _55 = _54.primary, primary = _55 === void 0 ? "primary" : _55, _56 = _54.secondary, secondary = _56 === void 0 ? "secondary" : _56; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -5 > , - > -6 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -7 > -8 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -9 > -10> primary = "primary" -11> -12> primary = "primary" -13> , - > -14> secondary = "secondary" -15> -16> secondary = "secondary" -1->Emitted(100, 31) Source(140, 5) + SourceIndex(0) -2 >Emitted(100, 45) Source(140, 20) + SourceIndex(0) -3 >Emitted(100, 47) Source(140, 5) + SourceIndex(0) -4 >Emitted(100, 85) Source(140, 20) + SourceIndex(0) -5 >Emitted(100, 87) Source(141, 5) + SourceIndex(0) -6 >Emitted(100, 103) Source(144, 53) + SourceIndex(0) -7 >Emitted(100, 105) Source(141, 5) + SourceIndex(0) -8 >Emitted(100, 178) Source(144, 53) + SourceIndex(0) -9 >Emitted(100, 180) Source(142, 9) + SourceIndex(0) -10>Emitted(100, 197) Source(142, 28) + SourceIndex(0) -11>Emitted(100, 199) Source(142, 9) + SourceIndex(0) -12>Emitted(100, 241) Source(142, 28) + SourceIndex(0) -13>Emitted(100, 243) Source(143, 9) + SourceIndex(0) -14>Emitted(100, 262) Source(143, 32) + SourceIndex(0) -15>Emitted(100, 264) Source(143, 9) + SourceIndex(0) -16>Emitted(100, 310) Source(143, 32) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name = "noName" +3 > +4 > name = "noName" +5 > , + > +6 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +7 > +8 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +9 > +10> primary = "primary" +11> +12> primary = "primary" +13> , + > +14> secondary = "secondary" +15> +16> secondary = "secondary" +1->Emitted(208, 43) Source(140, 5) + SourceIndex(0) +2 >Emitted(208, 57) Source(140, 20) + SourceIndex(0) +3 >Emitted(208, 59) Source(140, 5) + SourceIndex(0) +4 >Emitted(208, 97) Source(140, 20) + SourceIndex(0) +5 >Emitted(208, 99) Source(141, 5) + SourceIndex(0) +6 >Emitted(208, 115) Source(144, 53) + SourceIndex(0) +7 >Emitted(208, 117) Source(141, 5) + SourceIndex(0) +8 >Emitted(208, 190) Source(144, 53) + SourceIndex(0) +9 >Emitted(208, 192) Source(142, 9) + SourceIndex(0) +10>Emitted(208, 209) Source(142, 28) + SourceIndex(0) +11>Emitted(208, 211) Source(142, 9) + SourceIndex(0) +12>Emitted(208, 253) Source(142, 28) + SourceIndex(0) +13>Emitted(208, 255) Source(143, 9) + SourceIndex(0) +14>Emitted(208, 274) Source(143, 32) + SourceIndex(0) +15>Emitted(208, 276) Source(143, 9) + SourceIndex(0) +16>Emitted(208, 322) Source(143, 32) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > > } = { primary: "noSkill", secondary: "noSkill" } >} of multiRobots) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(101, 5) Source(146, 5) + SourceIndex(0) -2 >Emitted(101, 12) Source(146, 12) + SourceIndex(0) -3 >Emitted(101, 13) Source(146, 13) + SourceIndex(0) -4 >Emitted(101, 16) Source(146, 16) + SourceIndex(0) -5 >Emitted(101, 17) Source(146, 17) + SourceIndex(0) -6 >Emitted(101, 22) Source(146, 22) + SourceIndex(0) -7 >Emitted(101, 23) Source(146, 23) + SourceIndex(0) -8 >Emitted(101, 24) Source(146, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(209, 9) Source(146, 5) + SourceIndex(0) +2 >Emitted(209, 16) Source(146, 12) + SourceIndex(0) +3 >Emitted(209, 17) Source(146, 13) + SourceIndex(0) +4 >Emitted(209, 20) Source(146, 16) + SourceIndex(0) +5 >Emitted(209, 21) Source(146, 17) + SourceIndex(0) +6 >Emitted(209, 26) Source(146, 22) + SourceIndex(0) +7 >Emitted(209, 27) Source(146, 23) + SourceIndex(0) +8 >Emitted(209, 28) Source(146, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(102, 2) Source(147, 2) + SourceIndex(0) +1 >Emitted(210, 6) Source(147, 2) + SourceIndex(0) --- ->>>for (var _83 = 0, _84 = getMultiRobots(); _83 < _84.length; _83++) { -1-> -2 >^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^^^^^^^^^^^^^ -9 > ^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +>>>} +>>>catch (e_17_1) { e_17 = { error: e_17_1 }; } +>>>finally { +>>> try { __close(multiRobots_4); } finally { if (e_17) throw e_17.error; } +>>>} +>>>try { +>>> for (var iterator_10 = { iterator: __values(getMultiRobots()) }; __step(iterator_10);) { +1 >^^^^ +2 > ^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^^^^^^^^ +10> ^^^^^^^^^^^^^^ +11> ^^ +12> ^ +13> ^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > > -2 >for -3 > -4 > ({ - > name = "noName", - > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } - > } of -5 > getMultiRobots() -6 > -7 > -8 > getMultiRobots -9 > () -10> -11> getMultiRobots() -12> -13> getMultiRobots() -1->Emitted(103, 1) Source(148, 1) + SourceIndex(0) -2 >Emitted(103, 4) Source(148, 4) + SourceIndex(0) -3 >Emitted(103, 5) Source(148, 5) + SourceIndex(0) -4 >Emitted(103, 6) Source(154, 6) + SourceIndex(0) -5 >Emitted(103, 17) Source(154, 22) + SourceIndex(0) -6 >Emitted(103, 19) Source(154, 6) + SourceIndex(0) -7 >Emitted(103, 25) Source(154, 6) + SourceIndex(0) -8 >Emitted(103, 39) Source(154, 20) + SourceIndex(0) -9 >Emitted(103, 41) Source(154, 22) + SourceIndex(0) -10>Emitted(103, 43) Source(154, 6) + SourceIndex(0) -11>Emitted(103, 59) Source(154, 22) + SourceIndex(0) -12>Emitted(103, 61) Source(154, 6) + SourceIndex(0) -13>Emitted(103, 66) Source(154, 22) + SourceIndex(0) ---- ->>> _85 = _84[_83], _86 = _85.name, name = _86 === void 0 ? "noName" : _86, _87 = _85.skills, _88 = _87 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _87, _89 = _88.primary, primary = _89 === void 0 ? "primary" : _89, _90 = _88.secondary, secondary = _90 === void 0 ? "secondary" : _90; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > for +3 > +4 > ({ + > name = "noName", + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } of +5 > +6 > +7 > +8 > +9 > +10> getMultiRobots +11> () +12> +13> +14> +15> { + > name = "noName", + > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } + > } +1 >Emitted(217, 5) Source(148, 1) + SourceIndex(0) +2 >Emitted(217, 8) Source(148, 4) + SourceIndex(0) +3 >Emitted(217, 9) Source(148, 5) + SourceIndex(0) +4 >Emitted(217, 10) Source(154, 6) + SourceIndex(0) +5 >Emitted(217, 14) Source(154, 6) + SourceIndex(0) +6 >Emitted(217, 28) Source(154, 6) + SourceIndex(0) +7 >Emitted(217, 30) Source(154, 6) + SourceIndex(0) +8 >Emitted(217, 40) Source(154, 6) + SourceIndex(0) +9 >Emitted(217, 49) Source(154, 6) + SourceIndex(0) +10>Emitted(217, 63) Source(154, 20) + SourceIndex(0) +11>Emitted(217, 65) Source(154, 22) + SourceIndex(0) +12>Emitted(217, 66) Source(154, 22) + SourceIndex(0) +13>Emitted(217, 68) Source(154, 22) + SourceIndex(0) +14>Emitted(217, 70) Source(148, 6) + SourceIndex(0) +15>Emitted(217, 89) Source(154, 2) + SourceIndex(0) +--- +>>> _57 = iterator_10.result.value, _58 = _57.name, name = _58 === void 0 ? "noName" : _58, _59 = _57.skills, _60 = _59 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _59, _61 = _60.primary, primary = _61 === void 0 ? "primary" : _61, _62 = _60.secondary, secondary = _62 === void 0 ? "secondary" : _62; +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > name = "noName" -3 > -4 > name = "noName" -5 > , - > -6 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -7 > -8 > skills: { - > primary = "primary", - > secondary = "secondary" - > } = { primary: "noSkill", secondary: "noSkill" } -9 > -10> primary = "primary" -11> -12> primary = "primary" -13> , - > -14> secondary = "secondary" -15> -16> secondary = "secondary" -1->Emitted(104, 21) Source(149, 5) + SourceIndex(0) -2 >Emitted(104, 35) Source(149, 20) + SourceIndex(0) -3 >Emitted(104, 37) Source(149, 5) + SourceIndex(0) -4 >Emitted(104, 75) Source(149, 20) + SourceIndex(0) -5 >Emitted(104, 77) Source(150, 5) + SourceIndex(0) -6 >Emitted(104, 93) Source(153, 53) + SourceIndex(0) -7 >Emitted(104, 95) Source(150, 5) + SourceIndex(0) -8 >Emitted(104, 168) Source(153, 53) + SourceIndex(0) -9 >Emitted(104, 170) Source(151, 9) + SourceIndex(0) -10>Emitted(104, 187) Source(151, 28) + SourceIndex(0) -11>Emitted(104, 189) Source(151, 9) + SourceIndex(0) -12>Emitted(104, 231) Source(151, 28) + SourceIndex(0) -13>Emitted(104, 233) Source(152, 9) + SourceIndex(0) -14>Emitted(104, 252) Source(152, 32) + SourceIndex(0) -15>Emitted(104, 254) Source(152, 9) + SourceIndex(0) -16>Emitted(104, 300) Source(152, 32) + SourceIndex(0) ---- ->>> console.log(nameA); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^ +2 > name = "noName" +3 > +4 > name = "noName" +5 > , + > +6 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +7 > +8 > skills: { + > primary = "primary", + > secondary = "secondary" + > } = { primary: "noSkill", secondary: "noSkill" } +9 > +10> primary = "primary" +11> +12> primary = "primary" +13> , + > +14> secondary = "secondary" +15> +16> secondary = "secondary" +1->Emitted(218, 41) Source(149, 5) + SourceIndex(0) +2 >Emitted(218, 55) Source(149, 20) + SourceIndex(0) +3 >Emitted(218, 57) Source(149, 5) + SourceIndex(0) +4 >Emitted(218, 95) Source(149, 20) + SourceIndex(0) +5 >Emitted(218, 97) Source(150, 5) + SourceIndex(0) +6 >Emitted(218, 113) Source(153, 53) + SourceIndex(0) +7 >Emitted(218, 115) Source(150, 5) + SourceIndex(0) +8 >Emitted(218, 188) Source(153, 53) + SourceIndex(0) +9 >Emitted(218, 190) Source(151, 9) + SourceIndex(0) +10>Emitted(218, 207) Source(151, 28) + SourceIndex(0) +11>Emitted(218, 209) Source(151, 9) + SourceIndex(0) +12>Emitted(218, 251) Source(151, 28) + SourceIndex(0) +13>Emitted(218, 253) Source(152, 9) + SourceIndex(0) +14>Emitted(218, 272) Source(152, 32) + SourceIndex(0) +15>Emitted(218, 274) Source(152, 9) + SourceIndex(0) +16>Emitted(218, 320) Source(152, 32) + SourceIndex(0) +--- +>>> console.log(nameA); +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^ 1 > > } = { primary: "noSkill", secondary: "noSkill" } >} of getMultiRobots()) { > -2 > console -3 > . -4 > log -5 > ( -6 > nameA -7 > ) -8 > ; -1 >Emitted(105, 5) Source(155, 5) + SourceIndex(0) -2 >Emitted(105, 12) Source(155, 12) + SourceIndex(0) -3 >Emitted(105, 13) Source(155, 13) + SourceIndex(0) -4 >Emitted(105, 16) Source(155, 16) + SourceIndex(0) -5 >Emitted(105, 17) Source(155, 17) + SourceIndex(0) -6 >Emitted(105, 22) Source(155, 22) + SourceIndex(0) -7 >Emitted(105, 23) Source(155, 23) + SourceIndex(0) -8 >Emitted(105, 24) Source(155, 24) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > console +3 > . +4 > log +5 > ( +6 > nameA +7 > ) +8 > ; +1 >Emitted(219, 9) Source(155, 5) + SourceIndex(0) +2 >Emitted(219, 16) Source(155, 12) + SourceIndex(0) +3 >Emitted(219, 17) Source(155, 13) + SourceIndex(0) +4 >Emitted(219, 20) Source(155, 16) + SourceIndex(0) +5 >Emitted(219, 21) Source(155, 17) + SourceIndex(0) +6 >Emitted(219, 26) Source(155, 22) + SourceIndex(0) +7 >Emitted(219, 27) Source(155, 23) + SourceIndex(0) +8 >Emitted(219, 28) Source(155, 24) + SourceIndex(0) +--- +>>> } +1 >^^^^^ 1 > >} -1 >Emitted(106, 2) Source(156, 2) + SourceIndex(0) +1 >Emitted(220, 6) Source(156, 2) + SourceIndex(0) --- ->>>for (var _91 = 0, _92 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, -1-> +>>>} +>>>catch (e_18_1) { e_18 = { error: e_18_1 }; } +>>>finally { +>>> try { __close(iterator_10); } finally { if (e_18) throw e_18.error; } +>>>} +>>>for (var _63 = 0, _64 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, +1 > 2 >^^^ 3 > ^ 4 > ^ @@ -3540,7 +3806,7 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 23> ^^ 24> ^^ 25> ^^^^^^^^^^^^^^^-> -1-> +1 > > 2 >for 3 > @@ -3572,32 +3838,32 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 22> "none" 23> } 24> } -1->Emitted(107, 1) Source(157, 1) + SourceIndex(0) -2 >Emitted(107, 4) Source(157, 4) + SourceIndex(0) -3 >Emitted(107, 5) Source(157, 5) + SourceIndex(0) -4 >Emitted(107, 6) Source(163, 6) + SourceIndex(0) -5 >Emitted(107, 17) Source(164, 79) + SourceIndex(0) -6 >Emitted(107, 19) Source(163, 6) + SourceIndex(0) -7 >Emitted(107, 26) Source(163, 7) + SourceIndex(0) -8 >Emitted(107, 28) Source(163, 9) + SourceIndex(0) -9 >Emitted(107, 32) Source(163, 13) + SourceIndex(0) -10>Emitted(107, 34) Source(163, 15) + SourceIndex(0) -11>Emitted(107, 41) Source(163, 22) + SourceIndex(0) -12>Emitted(107, 43) Source(163, 24) + SourceIndex(0) -13>Emitted(107, 49) Source(163, 30) + SourceIndex(0) -14>Emitted(107, 51) Source(163, 32) + SourceIndex(0) -15>Emitted(107, 53) Source(163, 34) + SourceIndex(0) -16>Emitted(107, 60) Source(163, 41) + SourceIndex(0) -17>Emitted(107, 62) Source(163, 43) + SourceIndex(0) -18>Emitted(107, 70) Source(163, 51) + SourceIndex(0) -19>Emitted(107, 72) Source(163, 53) + SourceIndex(0) -20>Emitted(107, 81) Source(163, 62) + SourceIndex(0) -21>Emitted(107, 83) Source(163, 64) + SourceIndex(0) -22>Emitted(107, 89) Source(163, 70) + SourceIndex(0) -23>Emitted(107, 91) Source(163, 72) + SourceIndex(0) -24>Emitted(107, 93) Source(163, 74) + SourceIndex(0) ---- ->>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _91 < _92.length; _91++) { +1 >Emitted(226, 1) Source(157, 1) + SourceIndex(0) +2 >Emitted(226, 4) Source(157, 4) + SourceIndex(0) +3 >Emitted(226, 5) Source(157, 5) + SourceIndex(0) +4 >Emitted(226, 6) Source(163, 6) + SourceIndex(0) +5 >Emitted(226, 17) Source(164, 79) + SourceIndex(0) +6 >Emitted(226, 19) Source(163, 6) + SourceIndex(0) +7 >Emitted(226, 26) Source(163, 7) + SourceIndex(0) +8 >Emitted(226, 28) Source(163, 9) + SourceIndex(0) +9 >Emitted(226, 32) Source(163, 13) + SourceIndex(0) +10>Emitted(226, 34) Source(163, 15) + SourceIndex(0) +11>Emitted(226, 41) Source(163, 22) + SourceIndex(0) +12>Emitted(226, 43) Source(163, 24) + SourceIndex(0) +13>Emitted(226, 49) Source(163, 30) + SourceIndex(0) +14>Emitted(226, 51) Source(163, 32) + SourceIndex(0) +15>Emitted(226, 53) Source(163, 34) + SourceIndex(0) +16>Emitted(226, 60) Source(163, 41) + SourceIndex(0) +17>Emitted(226, 62) Source(163, 43) + SourceIndex(0) +18>Emitted(226, 70) Source(163, 51) + SourceIndex(0) +19>Emitted(226, 72) Source(163, 53) + SourceIndex(0) +20>Emitted(226, 81) Source(163, 62) + SourceIndex(0) +21>Emitted(226, 83) Source(163, 64) + SourceIndex(0) +22>Emitted(226, 89) Source(163, 70) + SourceIndex(0) +23>Emitted(226, 91) Source(163, 72) + SourceIndex(0) +24>Emitted(226, 93) Source(163, 74) + SourceIndex(0) +--- +>>> { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _63 < _64.length; _63++) { 1->^^^^ 2 > ^^ 3 > ^^^^ @@ -3648,31 +3914,31 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 22> 23> [{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, > { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] -1->Emitted(108, 5) Source(164, 5) + SourceIndex(0) -2 >Emitted(108, 7) Source(164, 7) + SourceIndex(0) -3 >Emitted(108, 11) Source(164, 11) + SourceIndex(0) -4 >Emitted(108, 13) Source(164, 13) + SourceIndex(0) -5 >Emitted(108, 22) Source(164, 22) + SourceIndex(0) -6 >Emitted(108, 24) Source(164, 24) + SourceIndex(0) -7 >Emitted(108, 30) Source(164, 30) + SourceIndex(0) -8 >Emitted(108, 32) Source(164, 32) + SourceIndex(0) -9 >Emitted(108, 34) Source(164, 34) + SourceIndex(0) -10>Emitted(108, 41) Source(164, 41) + SourceIndex(0) -11>Emitted(108, 43) Source(164, 43) + SourceIndex(0) -12>Emitted(108, 53) Source(164, 53) + SourceIndex(0) -13>Emitted(108, 55) Source(164, 55) + SourceIndex(0) -14>Emitted(108, 64) Source(164, 64) + SourceIndex(0) -15>Emitted(108, 66) Source(164, 66) + SourceIndex(0) -16>Emitted(108, 74) Source(164, 74) + SourceIndex(0) -17>Emitted(108, 76) Source(164, 76) + SourceIndex(0) -18>Emitted(108, 78) Source(164, 78) + SourceIndex(0) -19>Emitted(108, 79) Source(164, 79) + SourceIndex(0) -20>Emitted(108, 81) Source(163, 6) + SourceIndex(0) -21>Emitted(108, 97) Source(164, 79) + SourceIndex(0) -22>Emitted(108, 99) Source(163, 6) + SourceIndex(0) -23>Emitted(108, 104) Source(164, 79) + SourceIndex(0) ---- ->>> _93 = _92[_91], _94 = _93.name, name = _94 === void 0 ? "noName" : _94, _95 = _93.skills, _96 = _95 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _95, _97 = _96.primary, primary = _97 === void 0 ? "primary" : _97, _98 = _96.secondary, secondary = _98 === void 0 ? "secondary" : _98; +1->Emitted(227, 5) Source(164, 5) + SourceIndex(0) +2 >Emitted(227, 7) Source(164, 7) + SourceIndex(0) +3 >Emitted(227, 11) Source(164, 11) + SourceIndex(0) +4 >Emitted(227, 13) Source(164, 13) + SourceIndex(0) +5 >Emitted(227, 22) Source(164, 22) + SourceIndex(0) +6 >Emitted(227, 24) Source(164, 24) + SourceIndex(0) +7 >Emitted(227, 30) Source(164, 30) + SourceIndex(0) +8 >Emitted(227, 32) Source(164, 32) + SourceIndex(0) +9 >Emitted(227, 34) Source(164, 34) + SourceIndex(0) +10>Emitted(227, 41) Source(164, 41) + SourceIndex(0) +11>Emitted(227, 43) Source(164, 43) + SourceIndex(0) +12>Emitted(227, 53) Source(164, 53) + SourceIndex(0) +13>Emitted(227, 55) Source(164, 55) + SourceIndex(0) +14>Emitted(227, 64) Source(164, 64) + SourceIndex(0) +15>Emitted(227, 66) Source(164, 66) + SourceIndex(0) +16>Emitted(227, 74) Source(164, 74) + SourceIndex(0) +17>Emitted(227, 76) Source(164, 76) + SourceIndex(0) +18>Emitted(227, 78) Source(164, 78) + SourceIndex(0) +19>Emitted(227, 79) Source(164, 79) + SourceIndex(0) +20>Emitted(227, 81) Source(163, 6) + SourceIndex(0) +21>Emitted(227, 97) Source(164, 79) + SourceIndex(0) +22>Emitted(227, 99) Source(163, 6) + SourceIndex(0) +23>Emitted(227, 104) Source(164, 79) + SourceIndex(0) +--- +>>> _65 = _64[_63], _66 = _65.name, name = _66 === void 0 ? "noName" : _66, _67 = _65.skills, _68 = _67 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _67, _69 = _68.primary, primary = _69 === void 0 ? "primary" : _69, _70 = _68.secondary, secondary = _70 === void 0 ? "secondary" : _70; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^ 3 > ^^ @@ -3713,22 +3979,22 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 14> secondary = "secondary" 15> 16> secondary = "secondary" -1->Emitted(109, 21) Source(158, 5) + SourceIndex(0) -2 >Emitted(109, 35) Source(158, 20) + SourceIndex(0) -3 >Emitted(109, 37) Source(158, 5) + SourceIndex(0) -4 >Emitted(109, 75) Source(158, 20) + SourceIndex(0) -5 >Emitted(109, 77) Source(159, 5) + SourceIndex(0) -6 >Emitted(109, 93) Source(162, 53) + SourceIndex(0) -7 >Emitted(109, 95) Source(159, 5) + SourceIndex(0) -8 >Emitted(109, 168) Source(162, 53) + SourceIndex(0) -9 >Emitted(109, 170) Source(160, 9) + SourceIndex(0) -10>Emitted(109, 187) Source(160, 28) + SourceIndex(0) -11>Emitted(109, 189) Source(160, 9) + SourceIndex(0) -12>Emitted(109, 231) Source(160, 28) + SourceIndex(0) -13>Emitted(109, 233) Source(161, 9) + SourceIndex(0) -14>Emitted(109, 252) Source(161, 32) + SourceIndex(0) -15>Emitted(109, 254) Source(161, 9) + SourceIndex(0) -16>Emitted(109, 300) Source(161, 32) + SourceIndex(0) +1->Emitted(228, 21) Source(158, 5) + SourceIndex(0) +2 >Emitted(228, 35) Source(158, 20) + SourceIndex(0) +3 >Emitted(228, 37) Source(158, 5) + SourceIndex(0) +4 >Emitted(228, 75) Source(158, 20) + SourceIndex(0) +5 >Emitted(228, 77) Source(159, 5) + SourceIndex(0) +6 >Emitted(228, 93) Source(162, 53) + SourceIndex(0) +7 >Emitted(228, 95) Source(159, 5) + SourceIndex(0) +8 >Emitted(228, 168) Source(162, 53) + SourceIndex(0) +9 >Emitted(228, 170) Source(160, 9) + SourceIndex(0) +10>Emitted(228, 187) Source(160, 28) + SourceIndex(0) +11>Emitted(228, 189) Source(160, 9) + SourceIndex(0) +12>Emitted(228, 231) Source(160, 28) + SourceIndex(0) +13>Emitted(228, 233) Source(161, 9) + SourceIndex(0) +14>Emitted(228, 252) Source(161, 32) + SourceIndex(0) +15>Emitted(228, 254) Source(161, 9) + SourceIndex(0) +16>Emitted(228, 300) Source(161, 32) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -3751,21 +4017,21 @@ sourceFile:sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValue 6 > nameA 7 > ) 8 > ; -1 >Emitted(110, 5) Source(165, 5) + SourceIndex(0) -2 >Emitted(110, 12) Source(165, 12) + SourceIndex(0) -3 >Emitted(110, 13) Source(165, 13) + SourceIndex(0) -4 >Emitted(110, 16) Source(165, 16) + SourceIndex(0) -5 >Emitted(110, 17) Source(165, 17) + SourceIndex(0) -6 >Emitted(110, 22) Source(165, 22) + SourceIndex(0) -7 >Emitted(110, 23) Source(165, 23) + SourceIndex(0) -8 >Emitted(110, 24) Source(165, 24) + SourceIndex(0) +1 >Emitted(229, 5) Source(165, 5) + SourceIndex(0) +2 >Emitted(229, 12) Source(165, 12) + SourceIndex(0) +3 >Emitted(229, 13) Source(165, 13) + SourceIndex(0) +4 >Emitted(229, 16) Source(165, 16) + SourceIndex(0) +5 >Emitted(229, 17) Source(165, 17) + SourceIndex(0) +6 >Emitted(229, 22) Source(165, 22) + SourceIndex(0) +7 >Emitted(229, 23) Source(165, 23) + SourceIndex(0) +8 >Emitted(229, 24) Source(165, 24) + SourceIndex(0) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >} -1 >Emitted(111, 2) Source(166, 2) + SourceIndex(0) +1 >Emitted(230, 2) Source(166, 2) + SourceIndex(0) --- ->>>var _a, _d, _g, _j, _k, _l, _m, _q, _r, _s, _t, _w, _x, _y, _z, _1, _4, _7, _9, _10, _11, _12, _15, _16, _17, _18, _21, _22, _23, _24, _26, _27, _28, _31, _32, _33, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _65, _68, _69, _70, _73, _74, _75, _77, _78, _79, _80, _81, _82, _85, _86, _87, _88, _89, _90, _93, _94, _95, _96, _97, _98; +>>>var _a, e_1, _b, e_2, _d, _e, _f, _g, _h, e_3, _j, _k, _l, _m, e_4, _o, _p, _q, _r, e_5, _s, e_6, _t, e_7, _w, _x, _y, _z, _0, e_8, _1, _2, _3, _4, e_9, _7, _8, _9, _10, _11, _12, _13, e_10, _14, _15, _16, e_11, _19, _20, _21, _22, _23, _24, _25, _26, _27, e_12, _28, _29, _30, _31, _32, _33, e_13, _34, _35, _36, _37, _38, _39, e_14, _40, _41, _42, e_15, _43, _44, _45, e_16, _48, _49, _50, _51, _52, _53, _54, _55, _56, e_17, _57, _58, _59, _60, _61, _62, e_18, _65, _66, _67, _68, _69, _70; >>>//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js index faa7b8dcde9c3..c54d457e7a4f3 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js @@ -34,21 +34,29 @@ foo4(robotA); foo4([2, "trimmer", "trimming"]); //// [sourceMapValidationDestructuringParametertArrayBindingPattern.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function foo1(_a) { - var nameA = _a[1]; + var _b = __read(_a, 2), nameA = _b[1]; console.log(nameA); } function foo2(_a) { - var numberB = _a[0]; + var _b = __read(_a, 1), numberB = _b[0]; console.log(numberB); } function foo3(_a) { - var numberA2 = _a[0], nameA2 = _a[1], skillA2 = _a[2]; + var _b = __read(_a, 3), numberA2 = _b[0], nameA2 = _b[1], skillA2 = _b[2]; console.log(nameA2); } function foo4(_a) { - var numberA3 = _a[0], robotAInfo = _a.slice(1); + var _b = __read(_a), numberA3 = _b[0], robotAInfo = _b.slice(1); console.log(robotAInfo); } foo1(robotA); diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js.map b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js.map index 246a2da30a408..d73a7ee4fbd53 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringParametertArrayBindingPattern.js.map] -{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPattern.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3C,cAAc,EAAgB;QAAb,aAAK;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,cAAc,EAAgB;QAAf,eAAO;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AAED,cAAc,EAAkC;QAAjC,gBAAQ,EAAE,cAAM,EAAE,eAAO;IACpC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAgC;QAA/B,gBAAQ,EAAE,wBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPattern.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3C,cAAc,EAAgB;QAAhB,kBAAgB,EAAb,aAAK;IAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,cAAc,EAAgB;QAAhB,kBAAgB,EAAf,eAAO;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AAED,cAAc,EAAkC;QAAlC,kBAAkC,EAAjC,gBAAQ,EAAE,cAAM,EAAE,eAAO;IACpC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAgC;QAAhC,eAAgC,EAA/B,gBAAQ,EAAE,wBAAa;IAClC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.sourcemap.txt index 098cb5058a114..e1ce2fb5d0619 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringParametertArrayBindingPattern.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringParametertArrayBindingPattern.js sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -37,44 +45,49 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(5, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(5, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(5, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(5, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(5, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(5, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(5, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(5, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(5, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(5, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(5, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(5, 44) + SourceIndex(0) --- >>>function foo1(_a) { 1 > 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > > 2 >function foo1( 3 > [, nameA]: Robot -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 15) Source(7, 15) + SourceIndex(0) -3 >Emitted(2, 17) Source(7, 31) + SourceIndex(0) +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(10, 15) Source(7, 15) + SourceIndex(0) +3 >Emitted(10, 17) Source(7, 31) + SourceIndex(0) --- ->>> var nameA = _a[1]; +>>> var _b = __read(_a, 2), nameA = _b[1]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^-> +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^ 1-> -2 > nameA -1->Emitted(3, 9) Source(7, 18) + SourceIndex(0) -2 >Emitted(3, 22) Source(7, 23) + SourceIndex(0) +2 > [, nameA]: Robot +3 > +4 > nameA +1->Emitted(11, 9) Source(7, 15) + SourceIndex(0) +2 >Emitted(11, 27) Source(7, 31) + SourceIndex(0) +3 >Emitted(11, 29) Source(7, 18) + SourceIndex(0) +4 >Emitted(11, 42) Source(7, 23) + SourceIndex(0) --- >>> console.log(nameA); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -82,7 +95,7 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > ^^^^^ 7 > ^ 8 > ^ -1->]: Robot) { +1 >]: Robot) { > 2 > console 3 > . @@ -91,14 +104,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > nameA 7 > ) 8 > ; -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 12) Source(8, 12) + SourceIndex(0) -3 >Emitted(4, 13) Source(8, 13) + SourceIndex(0) -4 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -5 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -6 >Emitted(4, 22) Source(8, 22) + SourceIndex(0) -7 >Emitted(4, 23) Source(8, 23) + SourceIndex(0) -8 >Emitted(4, 24) Source(8, 24) + SourceIndex(0) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 12) Source(8, 12) + SourceIndex(0) +3 >Emitted(12, 13) Source(8, 13) + SourceIndex(0) +4 >Emitted(12, 16) Source(8, 16) + SourceIndex(0) +5 >Emitted(12, 17) Source(8, 17) + SourceIndex(0) +6 >Emitted(12, 22) Source(8, 22) + SourceIndex(0) +7 >Emitted(12, 23) Source(8, 23) + SourceIndex(0) +8 >Emitted(12, 24) Source(8, 24) + SourceIndex(0) --- >>>} 1 > @@ -107,34 +120,39 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(13, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(9, 2) + SourceIndex(0) --- >>>function foo2(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo2( 3 > [numberB]: Robot -1->Emitted(6, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(6, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(6, 17) Source(11, 31) + SourceIndex(0) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(14, 17) Source(11, 31) + SourceIndex(0) --- ->>> var numberB = _a[0]; +>>> var _b = __read(_a, 1), numberB = _b[0]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^-> +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ 1-> -2 > numberB -1->Emitted(7, 9) Source(11, 16) + SourceIndex(0) -2 >Emitted(7, 24) Source(11, 23) + SourceIndex(0) +2 > [numberB]: Robot +3 > +4 > numberB +1->Emitted(15, 9) Source(11, 15) + SourceIndex(0) +2 >Emitted(15, 27) Source(11, 31) + SourceIndex(0) +3 >Emitted(15, 29) Source(11, 16) + SourceIndex(0) +4 >Emitted(15, 44) Source(11, 23) + SourceIndex(0) --- >>> console.log(numberB); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -142,7 +160,7 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > ^^^^^^^ 7 > ^ 8 > ^ -1->]: Robot) { +1 >]: Robot) { > 2 > console 3 > . @@ -151,14 +169,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > numberB 7 > ) 8 > ; -1->Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 12) Source(12, 12) + SourceIndex(0) -3 >Emitted(8, 13) Source(12, 13) + SourceIndex(0) -4 >Emitted(8, 16) Source(12, 16) + SourceIndex(0) -5 >Emitted(8, 17) Source(12, 17) + SourceIndex(0) -6 >Emitted(8, 24) Source(12, 24) + SourceIndex(0) -7 >Emitted(8, 25) Source(12, 25) + SourceIndex(0) -8 >Emitted(8, 26) Source(12, 26) + SourceIndex(0) +1 >Emitted(16, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(16, 12) Source(12, 12) + SourceIndex(0) +3 >Emitted(16, 13) Source(12, 13) + SourceIndex(0) +4 >Emitted(16, 16) Source(12, 16) + SourceIndex(0) +5 >Emitted(16, 17) Source(12, 17) + SourceIndex(0) +6 >Emitted(16, 24) Source(12, 24) + SourceIndex(0) +7 >Emitted(16, 25) Source(12, 25) + SourceIndex(0) +8 >Emitted(16, 26) Source(12, 26) + SourceIndex(0) --- >>>} 1 > @@ -167,42 +185,48 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(9, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(13, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(13, 2) + SourceIndex(0) --- >>>function foo3(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo3( 3 > [numberA2, nameA2, skillA2]: Robot -1->Emitted(10, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(10, 15) Source(15, 15) + SourceIndex(0) -3 >Emitted(10, 17) Source(15, 49) + SourceIndex(0) +1->Emitted(18, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(18, 15) Source(15, 15) + SourceIndex(0) +3 >Emitted(18, 17) Source(15, 49) + SourceIndex(0) --- ->>> var numberA2 = _a[0], nameA2 = _a[1], skillA2 = _a[2]; +>>> var _b = __read(_a, 3), numberA2 = _b[0], nameA2 = _b[1], skillA2 = _b[2]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ 1-> -2 > numberA2 -3 > , -4 > nameA2 -5 > , -6 > skillA2 -1->Emitted(11, 9) Source(15, 16) + SourceIndex(0) -2 >Emitted(11, 25) Source(15, 24) + SourceIndex(0) -3 >Emitted(11, 27) Source(15, 26) + SourceIndex(0) -4 >Emitted(11, 41) Source(15, 32) + SourceIndex(0) -5 >Emitted(11, 43) Source(15, 34) + SourceIndex(0) -6 >Emitted(11, 58) Source(15, 41) + SourceIndex(0) +2 > [numberA2, nameA2, skillA2]: Robot +3 > +4 > numberA2 +5 > , +6 > nameA2 +7 > , +8 > skillA2 +1->Emitted(19, 9) Source(15, 15) + SourceIndex(0) +2 >Emitted(19, 27) Source(15, 49) + SourceIndex(0) +3 >Emitted(19, 29) Source(15, 16) + SourceIndex(0) +4 >Emitted(19, 45) Source(15, 24) + SourceIndex(0) +5 >Emitted(19, 47) Source(15, 26) + SourceIndex(0) +6 >Emitted(19, 61) Source(15, 32) + SourceIndex(0) +7 >Emitted(19, 63) Source(15, 34) + SourceIndex(0) +8 >Emitted(19, 78) Source(15, 41) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -222,14 +246,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > nameA2 7 > ) 8 > ; -1 >Emitted(12, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(16, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(16, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(16, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(16, 17) + SourceIndex(0) -6 >Emitted(12, 23) Source(16, 23) + SourceIndex(0) -7 >Emitted(12, 24) Source(16, 24) + SourceIndex(0) -8 >Emitted(12, 25) Source(16, 25) + SourceIndex(0) +1 >Emitted(20, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(20, 12) Source(16, 12) + SourceIndex(0) +3 >Emitted(20, 13) Source(16, 13) + SourceIndex(0) +4 >Emitted(20, 16) Source(16, 16) + SourceIndex(0) +5 >Emitted(20, 17) Source(16, 17) + SourceIndex(0) +6 >Emitted(20, 23) Source(16, 23) + SourceIndex(0) +7 >Emitted(20, 24) Source(16, 24) + SourceIndex(0) +8 >Emitted(20, 25) Source(16, 25) + SourceIndex(0) --- >>>} 1 > @@ -238,36 +262,42 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(13, 2) Source(17, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(17, 2) + SourceIndex(0) --- >>>function foo4(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo4( 3 > [numberA3, ...robotAInfo]: Robot -1->Emitted(14, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(14, 15) Source(19, 15) + SourceIndex(0) -3 >Emitted(14, 17) Source(19, 47) + SourceIndex(0) +1->Emitted(22, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(22, 15) Source(19, 15) + SourceIndex(0) +3 >Emitted(22, 17) Source(19, 47) + SourceIndex(0) --- ->>> var numberA3 = _a[0], robotAInfo = _a.slice(1); +>>> var _b = __read(_a), numberA3 = _b[0], robotAInfo = _b.slice(1); 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberA3 -3 > , -4 > ...robotAInfo -1->Emitted(15, 9) Source(19, 16) + SourceIndex(0) -2 >Emitted(15, 25) Source(19, 24) + SourceIndex(0) -3 >Emitted(15, 27) Source(19, 26) + SourceIndex(0) -4 >Emitted(15, 51) Source(19, 39) + SourceIndex(0) +2 > [numberA3, ...robotAInfo]: Robot +3 > +4 > numberA3 +5 > , +6 > ...robotAInfo +1->Emitted(23, 9) Source(19, 15) + SourceIndex(0) +2 >Emitted(23, 24) Source(19, 47) + SourceIndex(0) +3 >Emitted(23, 26) Source(19, 16) + SourceIndex(0) +4 >Emitted(23, 42) Source(19, 24) + SourceIndex(0) +5 >Emitted(23, 44) Source(19, 26) + SourceIndex(0) +6 >Emitted(23, 68) Source(19, 39) + SourceIndex(0) --- >>> console.log(robotAInfo); 1 >^^^^ @@ -287,14 +317,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 6 > robotAInfo 7 > ) 8 > ; -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(20, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(20, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(20, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(20, 17) + SourceIndex(0) -6 >Emitted(16, 27) Source(20, 27) + SourceIndex(0) -7 >Emitted(16, 28) Source(20, 28) + SourceIndex(0) -8 >Emitted(16, 29) Source(20, 29) + SourceIndex(0) +1 >Emitted(24, 5) Source(20, 5) + SourceIndex(0) +2 >Emitted(24, 12) Source(20, 12) + SourceIndex(0) +3 >Emitted(24, 13) Source(20, 13) + SourceIndex(0) +4 >Emitted(24, 16) Source(20, 16) + SourceIndex(0) +5 >Emitted(24, 17) Source(20, 17) + SourceIndex(0) +6 >Emitted(24, 27) Source(20, 27) + SourceIndex(0) +7 >Emitted(24, 28) Source(20, 28) + SourceIndex(0) +8 >Emitted(24, 29) Source(20, 29) + SourceIndex(0) --- >>>} 1 > @@ -303,8 +333,8 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 1 > > 2 >} -1 >Emitted(17, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(21, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(21, 2) + SourceIndex(0) --- >>>foo1(robotA); 1-> @@ -322,12 +352,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 4 > robotA 5 > ) 6 > ; -1->Emitted(18, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(18, 6) Source(23, 6) + SourceIndex(0) -4 >Emitted(18, 12) Source(23, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(23, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(23, 14) + SourceIndex(0) +1->Emitted(26, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(26, 6) Source(23, 6) + SourceIndex(0) +4 >Emitted(26, 12) Source(23, 12) + SourceIndex(0) +5 >Emitted(26, 13) Source(23, 13) + SourceIndex(0) +6 >Emitted(26, 14) Source(23, 14) + SourceIndex(0) --- >>>foo1([2, "trimmer", "trimming"]); 1-> @@ -355,18 +385,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 10> ] 11> ) 12> ; -1->Emitted(19, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(19, 5) Source(24, 5) + SourceIndex(0) -3 >Emitted(19, 6) Source(24, 6) + SourceIndex(0) -4 >Emitted(19, 7) Source(24, 7) + SourceIndex(0) -5 >Emitted(19, 8) Source(24, 8) + SourceIndex(0) -6 >Emitted(19, 10) Source(24, 10) + SourceIndex(0) -7 >Emitted(19, 19) Source(24, 19) + SourceIndex(0) -8 >Emitted(19, 21) Source(24, 21) + SourceIndex(0) -9 >Emitted(19, 31) Source(24, 31) + SourceIndex(0) -10>Emitted(19, 32) Source(24, 32) + SourceIndex(0) -11>Emitted(19, 33) Source(24, 33) + SourceIndex(0) -12>Emitted(19, 34) Source(24, 34) + SourceIndex(0) +1->Emitted(27, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(24, 5) + SourceIndex(0) +3 >Emitted(27, 6) Source(24, 6) + SourceIndex(0) +4 >Emitted(27, 7) Source(24, 7) + SourceIndex(0) +5 >Emitted(27, 8) Source(24, 8) + SourceIndex(0) +6 >Emitted(27, 10) Source(24, 10) + SourceIndex(0) +7 >Emitted(27, 19) Source(24, 19) + SourceIndex(0) +8 >Emitted(27, 21) Source(24, 21) + SourceIndex(0) +9 >Emitted(27, 31) Source(24, 31) + SourceIndex(0) +10>Emitted(27, 32) Source(24, 32) + SourceIndex(0) +11>Emitted(27, 33) Source(24, 33) + SourceIndex(0) +12>Emitted(27, 34) Source(24, 34) + SourceIndex(0) --- >>>foo2(robotA); 1 > @@ -384,12 +414,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(20, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(26, 5) + SourceIndex(0) -3 >Emitted(20, 6) Source(26, 6) + SourceIndex(0) -4 >Emitted(20, 12) Source(26, 12) + SourceIndex(0) -5 >Emitted(20, 13) Source(26, 13) + SourceIndex(0) -6 >Emitted(20, 14) Source(26, 14) + SourceIndex(0) +1 >Emitted(28, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(26, 5) + SourceIndex(0) +3 >Emitted(28, 6) Source(26, 6) + SourceIndex(0) +4 >Emitted(28, 12) Source(26, 12) + SourceIndex(0) +5 >Emitted(28, 13) Source(26, 13) + SourceIndex(0) +6 >Emitted(28, 14) Source(26, 14) + SourceIndex(0) --- >>>foo2([2, "trimmer", "trimming"]); 1-> @@ -417,18 +447,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 10> ] 11> ) 12> ; -1->Emitted(21, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(27, 5) + SourceIndex(0) -3 >Emitted(21, 6) Source(27, 6) + SourceIndex(0) -4 >Emitted(21, 7) Source(27, 7) + SourceIndex(0) -5 >Emitted(21, 8) Source(27, 8) + SourceIndex(0) -6 >Emitted(21, 10) Source(27, 10) + SourceIndex(0) -7 >Emitted(21, 19) Source(27, 19) + SourceIndex(0) -8 >Emitted(21, 21) Source(27, 21) + SourceIndex(0) -9 >Emitted(21, 31) Source(27, 31) + SourceIndex(0) -10>Emitted(21, 32) Source(27, 32) + SourceIndex(0) -11>Emitted(21, 33) Source(27, 33) + SourceIndex(0) -12>Emitted(21, 34) Source(27, 34) + SourceIndex(0) +1->Emitted(29, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(27, 5) + SourceIndex(0) +3 >Emitted(29, 6) Source(27, 6) + SourceIndex(0) +4 >Emitted(29, 7) Source(27, 7) + SourceIndex(0) +5 >Emitted(29, 8) Source(27, 8) + SourceIndex(0) +6 >Emitted(29, 10) Source(27, 10) + SourceIndex(0) +7 >Emitted(29, 19) Source(27, 19) + SourceIndex(0) +8 >Emitted(29, 21) Source(27, 21) + SourceIndex(0) +9 >Emitted(29, 31) Source(27, 31) + SourceIndex(0) +10>Emitted(29, 32) Source(27, 32) + SourceIndex(0) +11>Emitted(29, 33) Source(27, 33) + SourceIndex(0) +12>Emitted(29, 34) Source(27, 34) + SourceIndex(0) --- >>>foo3(robotA); 1 > @@ -446,12 +476,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(22, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(22, 6) Source(29, 6) + SourceIndex(0) -4 >Emitted(22, 12) Source(29, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(29, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(29, 14) + SourceIndex(0) +1 >Emitted(30, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(30, 6) Source(29, 6) + SourceIndex(0) +4 >Emitted(30, 12) Source(29, 12) + SourceIndex(0) +5 >Emitted(30, 13) Source(29, 13) + SourceIndex(0) +6 >Emitted(30, 14) Source(29, 14) + SourceIndex(0) --- >>>foo3([2, "trimmer", "trimming"]); 1-> @@ -479,18 +509,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 10> ] 11> ) 12> ; -1->Emitted(23, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(23, 5) Source(30, 5) + SourceIndex(0) -3 >Emitted(23, 6) Source(30, 6) + SourceIndex(0) -4 >Emitted(23, 7) Source(30, 7) + SourceIndex(0) -5 >Emitted(23, 8) Source(30, 8) + SourceIndex(0) -6 >Emitted(23, 10) Source(30, 10) + SourceIndex(0) -7 >Emitted(23, 19) Source(30, 19) + SourceIndex(0) -8 >Emitted(23, 21) Source(30, 21) + SourceIndex(0) -9 >Emitted(23, 31) Source(30, 31) + SourceIndex(0) -10>Emitted(23, 32) Source(30, 32) + SourceIndex(0) -11>Emitted(23, 33) Source(30, 33) + SourceIndex(0) -12>Emitted(23, 34) Source(30, 34) + SourceIndex(0) +1->Emitted(31, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(30, 5) + SourceIndex(0) +3 >Emitted(31, 6) Source(30, 6) + SourceIndex(0) +4 >Emitted(31, 7) Source(30, 7) + SourceIndex(0) +5 >Emitted(31, 8) Source(30, 8) + SourceIndex(0) +6 >Emitted(31, 10) Source(30, 10) + SourceIndex(0) +7 >Emitted(31, 19) Source(30, 19) + SourceIndex(0) +8 >Emitted(31, 21) Source(30, 21) + SourceIndex(0) +9 >Emitted(31, 31) Source(30, 31) + SourceIndex(0) +10>Emitted(31, 32) Source(30, 32) + SourceIndex(0) +11>Emitted(31, 33) Source(30, 33) + SourceIndex(0) +12>Emitted(31, 34) Source(30, 34) + SourceIndex(0) --- >>>foo4(robotA); 1 > @@ -508,12 +538,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(24, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(24, 5) Source(32, 5) + SourceIndex(0) -3 >Emitted(24, 6) Source(32, 6) + SourceIndex(0) -4 >Emitted(24, 12) Source(32, 12) + SourceIndex(0) -5 >Emitted(24, 13) Source(32, 13) + SourceIndex(0) -6 >Emitted(24, 14) Source(32, 14) + SourceIndex(0) +1 >Emitted(32, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(32, 5) + SourceIndex(0) +3 >Emitted(32, 6) Source(32, 6) + SourceIndex(0) +4 >Emitted(32, 12) Source(32, 12) + SourceIndex(0) +5 >Emitted(32, 13) Source(32, 13) + SourceIndex(0) +6 >Emitted(32, 14) Source(32, 14) + SourceIndex(0) --- >>>foo4([2, "trimmer", "trimming"]); 1-> @@ -542,17 +572,17 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern.ts 10> ] 11> ) 12> ; -1->Emitted(25, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(25, 5) Source(33, 5) + SourceIndex(0) -3 >Emitted(25, 6) Source(33, 6) + SourceIndex(0) -4 >Emitted(25, 7) Source(33, 7) + SourceIndex(0) -5 >Emitted(25, 8) Source(33, 8) + SourceIndex(0) -6 >Emitted(25, 10) Source(33, 10) + SourceIndex(0) -7 >Emitted(25, 19) Source(33, 19) + SourceIndex(0) -8 >Emitted(25, 21) Source(33, 21) + SourceIndex(0) -9 >Emitted(25, 31) Source(33, 31) + SourceIndex(0) -10>Emitted(25, 32) Source(33, 32) + SourceIndex(0) -11>Emitted(25, 33) Source(33, 33) + SourceIndex(0) -12>Emitted(25, 34) Source(33, 34) + SourceIndex(0) +1->Emitted(33, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(33, 5) + SourceIndex(0) +3 >Emitted(33, 6) Source(33, 6) + SourceIndex(0) +4 >Emitted(33, 7) Source(33, 7) + SourceIndex(0) +5 >Emitted(33, 8) Source(33, 8) + SourceIndex(0) +6 >Emitted(33, 10) Source(33, 10) + SourceIndex(0) +7 >Emitted(33, 19) Source(33, 19) + SourceIndex(0) +8 >Emitted(33, 21) Source(33, 21) + SourceIndex(0) +9 >Emitted(33, 31) Source(33, 31) + SourceIndex(0) +10>Emitted(33, 32) Source(33, 32) + SourceIndex(0) +11>Emitted(33, 33) Source(33, 33) + SourceIndex(0) +12>Emitted(33, 34) Source(33, 34) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringParametertArrayBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js index 0aa302e099098..91ec72a44a33a 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js @@ -34,21 +34,29 @@ foo4(robotA); foo4(["roomba", ["vaccum", "mopping"]]); //// [sourceMapValidationDestructuringParametertArrayBindingPattern2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = ["trimmer", ["trimming", "edging"]]; function foo1(_a) { - var skillA = _a[1]; + var _b = __read(_a, 2), skillA = _b[1]; console.log(skillA); } function foo2(_a) { - var nameMB = _a[0]; + var _b = __read(_a, 1), nameMB = _b[0]; console.log(nameMB); } function foo3(_a) { - var nameMA = _a[0], _b = _a[1], primarySkillA = _b[0], secondarySkillA = _b[1]; + var _b = __read(_a, 2), nameMA = _b[0], _c = __read(_b[1], 2), primarySkillA = _c[0], secondarySkillA = _c[1]; console.log(nameMA); } function foo4(_a) { - var multiRobotAInfo = _a.slice(0); + var _b = __read(_a), multiRobotAInfo = _b.slice(0); console.log(multiRobotAInfo); } foo1(robotA); diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map index b242ccd9114d8..dc5dbfcce825e 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPattern2.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAExD,cAAc,EAAiB;QAAd,cAAM;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAe;QAAd,cAAM;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAiD;QAAhD,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe;IAClD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA2B;QAA1B,6BAAkB;IAC7B,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPattern2.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAExD,cAAc,EAAiB;QAAjB,kBAAiB,EAAd,cAAM;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAe;QAAf,kBAAe,EAAd,cAAM;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAAiD;QAAjD,kBAAiD,EAAhD,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe;IAClD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA2B;QAA3B,eAA2B,EAA1B,6BAAkB;IAC7B,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.sourcemap.txt index 491e5025ecd83..a14ad08127aea 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringParametertArrayBindingPattern2.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringParametertArrayBindingPattern2.js sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = ["trimmer", ["trimming", "edging"]]; 1 > 2 >^^^^ @@ -41,46 +49,51 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 12> ] 13> ] 14> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 31) + SourceIndex(0) -7 >Emitted(1, 26) Source(5, 33) + SourceIndex(0) -8 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -9 >Emitted(1, 37) Source(5, 44) + SourceIndex(0) -10>Emitted(1, 39) Source(5, 46) + SourceIndex(0) -11>Emitted(1, 47) Source(5, 54) + SourceIndex(0) -12>Emitted(1, 48) Source(5, 55) + SourceIndex(0) -13>Emitted(1, 49) Source(5, 56) + SourceIndex(0) -14>Emitted(1, 50) Source(5, 57) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 24) Source(5, 31) + SourceIndex(0) +7 >Emitted(9, 26) Source(5, 33) + SourceIndex(0) +8 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +9 >Emitted(9, 37) Source(5, 44) + SourceIndex(0) +10>Emitted(9, 39) Source(5, 46) + SourceIndex(0) +11>Emitted(9, 47) Source(5, 54) + SourceIndex(0) +12>Emitted(9, 48) Source(5, 55) + SourceIndex(0) +13>Emitted(9, 49) Source(5, 56) + SourceIndex(0) +14>Emitted(9, 50) Source(5, 57) + SourceIndex(0) --- >>>function foo1(_a) { 1 > 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > > 2 >function foo1( 3 > [, skillA]: Robot -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 15) Source(7, 15) + SourceIndex(0) -3 >Emitted(2, 17) Source(7, 32) + SourceIndex(0) +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(10, 15) Source(7, 15) + SourceIndex(0) +3 >Emitted(10, 17) Source(7, 32) + SourceIndex(0) --- ->>> var skillA = _a[1]; +>>> var _b = __read(_a, 2), skillA = _b[1]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^-> +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ 1-> -2 > skillA -1->Emitted(3, 9) Source(7, 18) + SourceIndex(0) -2 >Emitted(3, 23) Source(7, 24) + SourceIndex(0) +2 > [, skillA]: Robot +3 > +4 > skillA +1->Emitted(11, 9) Source(7, 15) + SourceIndex(0) +2 >Emitted(11, 27) Source(7, 32) + SourceIndex(0) +3 >Emitted(11, 29) Source(7, 18) + SourceIndex(0) +4 >Emitted(11, 43) Source(7, 24) + SourceIndex(0) --- >>> console.log(skillA); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -88,7 +101,7 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > ^^^^^^ 7 > ^ 8 > ^ -1->]: Robot) { +1 >]: Robot) { > 2 > console 3 > . @@ -97,14 +110,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > skillA 7 > ) 8 > ; -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 12) Source(8, 12) + SourceIndex(0) -3 >Emitted(4, 13) Source(8, 13) + SourceIndex(0) -4 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -5 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -6 >Emitted(4, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(4, 24) Source(8, 24) + SourceIndex(0) -8 >Emitted(4, 25) Source(8, 25) + SourceIndex(0) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 12) Source(8, 12) + SourceIndex(0) +3 >Emitted(12, 13) Source(8, 13) + SourceIndex(0) +4 >Emitted(12, 16) Source(8, 16) + SourceIndex(0) +5 >Emitted(12, 17) Source(8, 17) + SourceIndex(0) +6 >Emitted(12, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(12, 24) Source(8, 24) + SourceIndex(0) +8 >Emitted(12, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -113,34 +126,39 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(13, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(9, 2) + SourceIndex(0) --- >>>function foo2(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo2( 3 > [nameMB]: Robot -1->Emitted(6, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(6, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(6, 17) Source(11, 30) + SourceIndex(0) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(14, 17) Source(11, 30) + SourceIndex(0) --- ->>> var nameMB = _a[0]; +>>> var _b = __read(_a, 1), nameMB = _b[0]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^-> +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ 1-> -2 > nameMB -1->Emitted(7, 9) Source(11, 16) + SourceIndex(0) -2 >Emitted(7, 23) Source(11, 22) + SourceIndex(0) +2 > [nameMB]: Robot +3 > +4 > nameMB +1->Emitted(15, 9) Source(11, 15) + SourceIndex(0) +2 >Emitted(15, 27) Source(11, 30) + SourceIndex(0) +3 >Emitted(15, 29) Source(11, 16) + SourceIndex(0) +4 >Emitted(15, 43) Source(11, 22) + SourceIndex(0) --- >>> console.log(nameMB); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -148,7 +166,7 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > ^^^^^^ 7 > ^ 8 > ^ -1->]: Robot) { +1 >]: Robot) { > 2 > console 3 > . @@ -157,14 +175,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > nameMB 7 > ) 8 > ; -1->Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 12) Source(12, 12) + SourceIndex(0) -3 >Emitted(8, 13) Source(12, 13) + SourceIndex(0) -4 >Emitted(8, 16) Source(12, 16) + SourceIndex(0) -5 >Emitted(8, 17) Source(12, 17) + SourceIndex(0) -6 >Emitted(8, 23) Source(12, 23) + SourceIndex(0) -7 >Emitted(8, 24) Source(12, 24) + SourceIndex(0) -8 >Emitted(8, 25) Source(12, 25) + SourceIndex(0) +1 >Emitted(16, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(16, 12) Source(12, 12) + SourceIndex(0) +3 >Emitted(16, 13) Source(12, 13) + SourceIndex(0) +4 >Emitted(16, 16) Source(12, 16) + SourceIndex(0) +5 >Emitted(16, 17) Source(12, 17) + SourceIndex(0) +6 >Emitted(16, 23) Source(12, 23) + SourceIndex(0) +7 >Emitted(16, 24) Source(12, 24) + SourceIndex(0) +8 >Emitted(16, 25) Source(12, 25) + SourceIndex(0) --- >>>} 1 > @@ -173,48 +191,54 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(9, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(13, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(13, 2) + SourceIndex(0) --- >>>function foo3(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo3( 3 > [nameMA, [primarySkillA, secondarySkillA]]: Robot -1->Emitted(10, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(10, 15) Source(15, 15) + SourceIndex(0) -3 >Emitted(10, 17) Source(15, 64) + SourceIndex(0) +1->Emitted(18, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(18, 15) Source(15, 15) + SourceIndex(0) +3 >Emitted(18, 17) Source(15, 64) + SourceIndex(0) --- ->>> var nameMA = _a[0], _b = _a[1], primarySkillA = _b[0], secondarySkillA = _b[1]; +>>> var _b = __read(_a, 2), nameMA = _b[0], _c = __read(_b[1], 2), primarySkillA = _c[0], secondarySkillA = _c[1]; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA -3 > , -4 > [primarySkillA, secondarySkillA] -5 > -6 > primarySkillA -7 > , -8 > secondarySkillA -1->Emitted(11, 9) Source(15, 16) + SourceIndex(0) -2 >Emitted(11, 23) Source(15, 22) + SourceIndex(0) -3 >Emitted(11, 25) Source(15, 24) + SourceIndex(0) -4 >Emitted(11, 35) Source(15, 56) + SourceIndex(0) -5 >Emitted(11, 37) Source(15, 25) + SourceIndex(0) -6 >Emitted(11, 58) Source(15, 38) + SourceIndex(0) -7 >Emitted(11, 60) Source(15, 40) + SourceIndex(0) -8 >Emitted(11, 83) Source(15, 55) + SourceIndex(0) +2 > [nameMA, [primarySkillA, secondarySkillA]]: Robot +3 > +4 > nameMA +5 > , +6 > [primarySkillA, secondarySkillA] +7 > +8 > primarySkillA +9 > , +10> secondarySkillA +1->Emitted(19, 9) Source(15, 15) + SourceIndex(0) +2 >Emitted(19, 27) Source(15, 64) + SourceIndex(0) +3 >Emitted(19, 29) Source(15, 16) + SourceIndex(0) +4 >Emitted(19, 43) Source(15, 22) + SourceIndex(0) +5 >Emitted(19, 45) Source(15, 24) + SourceIndex(0) +6 >Emitted(19, 66) Source(15, 56) + SourceIndex(0) +7 >Emitted(19, 68) Source(15, 25) + SourceIndex(0) +8 >Emitted(19, 89) Source(15, 38) + SourceIndex(0) +9 >Emitted(19, 91) Source(15, 40) + SourceIndex(0) +10>Emitted(19, 114) Source(15, 55) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -234,14 +258,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > nameMA 7 > ) 8 > ; -1 >Emitted(12, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(16, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(16, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(16, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(16, 17) + SourceIndex(0) -6 >Emitted(12, 23) Source(16, 23) + SourceIndex(0) -7 >Emitted(12, 24) Source(16, 24) + SourceIndex(0) -8 >Emitted(12, 25) Source(16, 25) + SourceIndex(0) +1 >Emitted(20, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(20, 12) Source(16, 12) + SourceIndex(0) +3 >Emitted(20, 13) Source(16, 13) + SourceIndex(0) +4 >Emitted(20, 16) Source(16, 16) + SourceIndex(0) +5 >Emitted(20, 17) Source(16, 17) + SourceIndex(0) +6 >Emitted(20, 23) Source(16, 23) + SourceIndex(0) +7 >Emitted(20, 24) Source(16, 24) + SourceIndex(0) +8 >Emitted(20, 25) Source(16, 25) + SourceIndex(0) --- >>>} 1 > @@ -250,30 +274,36 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(13, 2) Source(17, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(17, 2) + SourceIndex(0) --- >>>function foo4(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo4( 3 > [...multiRobotAInfo]: Robot -1->Emitted(14, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(14, 15) Source(19, 15) + SourceIndex(0) -3 >Emitted(14, 17) Source(19, 42) + SourceIndex(0) +1->Emitted(22, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(22, 15) Source(19, 15) + SourceIndex(0) +3 >Emitted(22, 17) Source(19, 42) + SourceIndex(0) --- ->>> var multiRobotAInfo = _a.slice(0); +>>> var _b = __read(_a), multiRobotAInfo = _b.slice(0); 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > ...multiRobotAInfo -1->Emitted(15, 9) Source(19, 16) + SourceIndex(0) -2 >Emitted(15, 38) Source(19, 34) + SourceIndex(0) +2 > [...multiRobotAInfo]: Robot +3 > +4 > ...multiRobotAInfo +1->Emitted(23, 9) Source(19, 15) + SourceIndex(0) +2 >Emitted(23, 24) Source(19, 42) + SourceIndex(0) +3 >Emitted(23, 26) Source(19, 16) + SourceIndex(0) +4 >Emitted(23, 55) Source(19, 34) + SourceIndex(0) --- >>> console.log(multiRobotAInfo); 1 >^^^^ @@ -293,14 +323,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 6 > multiRobotAInfo 7 > ) 8 > ; -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(20, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(20, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(20, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(20, 17) + SourceIndex(0) -6 >Emitted(16, 32) Source(20, 32) + SourceIndex(0) -7 >Emitted(16, 33) Source(20, 33) + SourceIndex(0) -8 >Emitted(16, 34) Source(20, 34) + SourceIndex(0) +1 >Emitted(24, 5) Source(20, 5) + SourceIndex(0) +2 >Emitted(24, 12) Source(20, 12) + SourceIndex(0) +3 >Emitted(24, 13) Source(20, 13) + SourceIndex(0) +4 >Emitted(24, 16) Source(20, 16) + SourceIndex(0) +5 >Emitted(24, 17) Source(20, 17) + SourceIndex(0) +6 >Emitted(24, 32) Source(20, 32) + SourceIndex(0) +7 >Emitted(24, 33) Source(20, 33) + SourceIndex(0) +8 >Emitted(24, 34) Source(20, 34) + SourceIndex(0) --- >>>} 1 > @@ -309,8 +339,8 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 1 > > 2 >} -1 >Emitted(17, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(21, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(21, 2) + SourceIndex(0) --- >>>foo1(robotA); 1-> @@ -328,12 +358,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 4 > robotA 5 > ) 6 > ; -1->Emitted(18, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(18, 6) Source(23, 6) + SourceIndex(0) -4 >Emitted(18, 12) Source(23, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(23, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(23, 14) + SourceIndex(0) +1->Emitted(26, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(26, 6) Source(23, 6) + SourceIndex(0) +4 >Emitted(26, 12) Source(23, 12) + SourceIndex(0) +5 >Emitted(26, 13) Source(23, 13) + SourceIndex(0) +6 >Emitted(26, 14) Source(23, 14) + SourceIndex(0) --- >>>foo1(["roomba", ["vaccum", "mopping"]]); 1-> @@ -365,20 +395,20 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 12> ] 13> ) 14> ; -1->Emitted(19, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(19, 5) Source(24, 5) + SourceIndex(0) -3 >Emitted(19, 6) Source(24, 6) + SourceIndex(0) -4 >Emitted(19, 7) Source(24, 7) + SourceIndex(0) -5 >Emitted(19, 15) Source(24, 15) + SourceIndex(0) -6 >Emitted(19, 17) Source(24, 17) + SourceIndex(0) -7 >Emitted(19, 18) Source(24, 18) + SourceIndex(0) -8 >Emitted(19, 26) Source(24, 26) + SourceIndex(0) -9 >Emitted(19, 28) Source(24, 28) + SourceIndex(0) -10>Emitted(19, 37) Source(24, 37) + SourceIndex(0) -11>Emitted(19, 38) Source(24, 38) + SourceIndex(0) -12>Emitted(19, 39) Source(24, 39) + SourceIndex(0) -13>Emitted(19, 40) Source(24, 40) + SourceIndex(0) -14>Emitted(19, 41) Source(24, 41) + SourceIndex(0) +1->Emitted(27, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(24, 5) + SourceIndex(0) +3 >Emitted(27, 6) Source(24, 6) + SourceIndex(0) +4 >Emitted(27, 7) Source(24, 7) + SourceIndex(0) +5 >Emitted(27, 15) Source(24, 15) + SourceIndex(0) +6 >Emitted(27, 17) Source(24, 17) + SourceIndex(0) +7 >Emitted(27, 18) Source(24, 18) + SourceIndex(0) +8 >Emitted(27, 26) Source(24, 26) + SourceIndex(0) +9 >Emitted(27, 28) Source(24, 28) + SourceIndex(0) +10>Emitted(27, 37) Source(24, 37) + SourceIndex(0) +11>Emitted(27, 38) Source(24, 38) + SourceIndex(0) +12>Emitted(27, 39) Source(24, 39) + SourceIndex(0) +13>Emitted(27, 40) Source(24, 40) + SourceIndex(0) +14>Emitted(27, 41) Source(24, 41) + SourceIndex(0) --- >>>foo2(robotA); 1 > @@ -396,12 +426,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(20, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(26, 5) + SourceIndex(0) -3 >Emitted(20, 6) Source(26, 6) + SourceIndex(0) -4 >Emitted(20, 12) Source(26, 12) + SourceIndex(0) -5 >Emitted(20, 13) Source(26, 13) + SourceIndex(0) -6 >Emitted(20, 14) Source(26, 14) + SourceIndex(0) +1 >Emitted(28, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(26, 5) + SourceIndex(0) +3 >Emitted(28, 6) Source(26, 6) + SourceIndex(0) +4 >Emitted(28, 12) Source(26, 12) + SourceIndex(0) +5 >Emitted(28, 13) Source(26, 13) + SourceIndex(0) +6 >Emitted(28, 14) Source(26, 14) + SourceIndex(0) --- >>>foo2(["roomba", ["vaccum", "mopping"]]); 1-> @@ -433,20 +463,20 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 12> ] 13> ) 14> ; -1->Emitted(21, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(27, 5) + SourceIndex(0) -3 >Emitted(21, 6) Source(27, 6) + SourceIndex(0) -4 >Emitted(21, 7) Source(27, 7) + SourceIndex(0) -5 >Emitted(21, 15) Source(27, 15) + SourceIndex(0) -6 >Emitted(21, 17) Source(27, 17) + SourceIndex(0) -7 >Emitted(21, 18) Source(27, 18) + SourceIndex(0) -8 >Emitted(21, 26) Source(27, 26) + SourceIndex(0) -9 >Emitted(21, 28) Source(27, 28) + SourceIndex(0) -10>Emitted(21, 37) Source(27, 37) + SourceIndex(0) -11>Emitted(21, 38) Source(27, 38) + SourceIndex(0) -12>Emitted(21, 39) Source(27, 39) + SourceIndex(0) -13>Emitted(21, 40) Source(27, 40) + SourceIndex(0) -14>Emitted(21, 41) Source(27, 41) + SourceIndex(0) +1->Emitted(29, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(27, 5) + SourceIndex(0) +3 >Emitted(29, 6) Source(27, 6) + SourceIndex(0) +4 >Emitted(29, 7) Source(27, 7) + SourceIndex(0) +5 >Emitted(29, 15) Source(27, 15) + SourceIndex(0) +6 >Emitted(29, 17) Source(27, 17) + SourceIndex(0) +7 >Emitted(29, 18) Source(27, 18) + SourceIndex(0) +8 >Emitted(29, 26) Source(27, 26) + SourceIndex(0) +9 >Emitted(29, 28) Source(27, 28) + SourceIndex(0) +10>Emitted(29, 37) Source(27, 37) + SourceIndex(0) +11>Emitted(29, 38) Source(27, 38) + SourceIndex(0) +12>Emitted(29, 39) Source(27, 39) + SourceIndex(0) +13>Emitted(29, 40) Source(27, 40) + SourceIndex(0) +14>Emitted(29, 41) Source(27, 41) + SourceIndex(0) --- >>>foo3(robotA); 1 > @@ -464,12 +494,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(22, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(22, 6) Source(29, 6) + SourceIndex(0) -4 >Emitted(22, 12) Source(29, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(29, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(29, 14) + SourceIndex(0) +1 >Emitted(30, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(30, 6) Source(29, 6) + SourceIndex(0) +4 >Emitted(30, 12) Source(29, 12) + SourceIndex(0) +5 >Emitted(30, 13) Source(29, 13) + SourceIndex(0) +6 >Emitted(30, 14) Source(29, 14) + SourceIndex(0) --- >>>foo3(["roomba", ["vaccum", "mopping"]]); 1-> @@ -501,20 +531,20 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 12> ] 13> ) 14> ; -1->Emitted(23, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(23, 5) Source(30, 5) + SourceIndex(0) -3 >Emitted(23, 6) Source(30, 6) + SourceIndex(0) -4 >Emitted(23, 7) Source(30, 7) + SourceIndex(0) -5 >Emitted(23, 15) Source(30, 15) + SourceIndex(0) -6 >Emitted(23, 17) Source(30, 17) + SourceIndex(0) -7 >Emitted(23, 18) Source(30, 18) + SourceIndex(0) -8 >Emitted(23, 26) Source(30, 26) + SourceIndex(0) -9 >Emitted(23, 28) Source(30, 28) + SourceIndex(0) -10>Emitted(23, 37) Source(30, 37) + SourceIndex(0) -11>Emitted(23, 38) Source(30, 38) + SourceIndex(0) -12>Emitted(23, 39) Source(30, 39) + SourceIndex(0) -13>Emitted(23, 40) Source(30, 40) + SourceIndex(0) -14>Emitted(23, 41) Source(30, 41) + SourceIndex(0) +1->Emitted(31, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(30, 5) + SourceIndex(0) +3 >Emitted(31, 6) Source(30, 6) + SourceIndex(0) +4 >Emitted(31, 7) Source(30, 7) + SourceIndex(0) +5 >Emitted(31, 15) Source(30, 15) + SourceIndex(0) +6 >Emitted(31, 17) Source(30, 17) + SourceIndex(0) +7 >Emitted(31, 18) Source(30, 18) + SourceIndex(0) +8 >Emitted(31, 26) Source(30, 26) + SourceIndex(0) +9 >Emitted(31, 28) Source(30, 28) + SourceIndex(0) +10>Emitted(31, 37) Source(30, 37) + SourceIndex(0) +11>Emitted(31, 38) Source(30, 38) + SourceIndex(0) +12>Emitted(31, 39) Source(30, 39) + SourceIndex(0) +13>Emitted(31, 40) Source(30, 40) + SourceIndex(0) +14>Emitted(31, 41) Source(30, 41) + SourceIndex(0) --- >>>foo4(robotA); 1 > @@ -532,12 +562,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 4 > robotA 5 > ) 6 > ; -1 >Emitted(24, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(24, 5) Source(32, 5) + SourceIndex(0) -3 >Emitted(24, 6) Source(32, 6) + SourceIndex(0) -4 >Emitted(24, 12) Source(32, 12) + SourceIndex(0) -5 >Emitted(24, 13) Source(32, 13) + SourceIndex(0) -6 >Emitted(24, 14) Source(32, 14) + SourceIndex(0) +1 >Emitted(32, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(32, 5) + SourceIndex(0) +3 >Emitted(32, 6) Source(32, 6) + SourceIndex(0) +4 >Emitted(32, 12) Source(32, 12) + SourceIndex(0) +5 >Emitted(32, 13) Source(32, 13) + SourceIndex(0) +6 >Emitted(32, 14) Source(32, 14) + SourceIndex(0) --- >>>foo4(["roomba", ["vaccum", "mopping"]]); 1-> @@ -570,19 +600,19 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPattern2.ts 12> ] 13> ) 14> ; -1->Emitted(25, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(25, 5) Source(33, 5) + SourceIndex(0) -3 >Emitted(25, 6) Source(33, 6) + SourceIndex(0) -4 >Emitted(25, 7) Source(33, 7) + SourceIndex(0) -5 >Emitted(25, 15) Source(33, 15) + SourceIndex(0) -6 >Emitted(25, 17) Source(33, 17) + SourceIndex(0) -7 >Emitted(25, 18) Source(33, 18) + SourceIndex(0) -8 >Emitted(25, 26) Source(33, 26) + SourceIndex(0) -9 >Emitted(25, 28) Source(33, 28) + SourceIndex(0) -10>Emitted(25, 37) Source(33, 37) + SourceIndex(0) -11>Emitted(25, 38) Source(33, 38) + SourceIndex(0) -12>Emitted(25, 39) Source(33, 39) + SourceIndex(0) -13>Emitted(25, 40) Source(33, 40) + SourceIndex(0) -14>Emitted(25, 41) Source(33, 41) + SourceIndex(0) +1->Emitted(33, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(33, 5) + SourceIndex(0) +3 >Emitted(33, 6) Source(33, 6) + SourceIndex(0) +4 >Emitted(33, 7) Source(33, 7) + SourceIndex(0) +5 >Emitted(33, 15) Source(33, 15) + SourceIndex(0) +6 >Emitted(33, 17) Source(33, 17) + SourceIndex(0) +7 >Emitted(33, 18) Source(33, 18) + SourceIndex(0) +8 >Emitted(33, 26) Source(33, 26) + SourceIndex(0) +9 >Emitted(33, 28) Source(33, 28) + SourceIndex(0) +10>Emitted(33, 37) Source(33, 37) + SourceIndex(0) +11>Emitted(33, 38) Source(33, 38) + SourceIndex(0) +12>Emitted(33, 39) Source(33, 39) + SourceIndex(0) +13>Emitted(33, 40) Source(33, 40) + SourceIndex(0) +14>Emitted(33, 41) Source(33, 41) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js index 327791a641673..df00329f85247 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js @@ -34,21 +34,29 @@ foo4(robotA); foo4([2, "trimmer", "trimming"]); //// [sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; function foo1(_a) { - var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[1], nameA = _c === void 0 ? "noName" : _c; + var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 2), _c = _b[1], nameA = _c === void 0 ? "noName" : _c; console.log(nameA); } function foo2(_a) { - var _b = (_a === void 0 ? [-1, "name", "skill"] : _a)[0], numberB = _b === void 0 ? -1 : _b; + var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 1), _c = _b[0], numberB = _c === void 0 ? -1 : _c; console.log(numberB); } function foo3(_a) { - var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[0], numberA2 = _c === void 0 ? -1 : _c, _d = _b[1], nameA2 = _d === void 0 ? "name" : _d, _e = _b[2], skillA2 = _e === void 0 ? "skill" : _e; + var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 3), _c = _b[0], numberA2 = _c === void 0 ? -1 : _c, _d = _b[1], nameA2 = _d === void 0 ? "name" : _d, _e = _b[2], skillA2 = _e === void 0 ? "skill" : _e; console.log(nameA2); } function foo4(_a) { - var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[0], numberA3 = _c === void 0 ? -1 : _c, robotAInfo = _b.slice(1); + var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a), _c = _b[0], numberA3 = _c === void 0 ? -1 : _c, robotAInfo = _b.slice(1); console.log(robotAInfo); } foo1(robotA); diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map index 7fdda34358be3..ab9ee8088874c 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map] -{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3C,cAAc,EAAmD;QAAnD,+CAAmD,EAAhD,UAAgB,EAAhB,qCAAgB;IAC7B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,cAAc,EAA6C;QAA5C,oDAAY,EAAZ,iCAAY;IACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AAED,cAAc,EAAkF;QAAlF,+CAAkF,EAAjF,UAAa,EAAb,kCAAa,EAAE,UAAe,EAAf,oCAAe,EAAE,UAAiB,EAAjB,sCAAiB;IAC5D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA6D;QAA7D,+CAA6D,EAA5D,UAAa,EAAb,kCAAa,EAAE,wBAAa;IACvC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3C,cAAc,EAAmD;QAAnD,0DAAmD,EAAhD,UAAgB,EAAhB,qCAAgB;IAC7B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,cAAc,EAA6C;QAA7C,0DAA6C,EAA5C,UAAY,EAAZ,iCAAY;IACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC;AAED,cAAc,EAAkF;QAAlF,0DAAkF,EAAjF,UAAa,EAAb,kCAAa,EAAE,UAAe,EAAf,oCAAe,EAAE,UAAiB,EAAjB,sCAAiB;IAC5D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA6D;QAA7D,uDAA6D,EAA5D,UAAa,EAAb,kCAAa,EAAE,wBAAa;IACvC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.sourcemap.txt index 250d7ec2931aa..07a528e45a7ab 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringParametertArrayBindingPatternDefaultVal emittedFile:tests/cases/compiler/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -37,52 +45,52 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(5, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(5, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(5, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(5, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(5, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(5, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(5, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(5, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(5, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(5, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(5, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(5, 44) + SourceIndex(0) --- >>>function foo1(_a) { 1 > 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > > 2 >function foo1( 3 > [, nameA = "noName"]: Robot = [-1, "name", "skill"] -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 15) Source(7, 15) + SourceIndex(0) -3 >Emitted(2, 17) Source(7, 66) + SourceIndex(0) +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(10, 15) Source(7, 15) + SourceIndex(0) +3 >Emitted(10, 17) Source(7, 66) + SourceIndex(0) --- ->>> var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[1], nameA = _c === void 0 ? "noName" : _c; +>>> var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 2), _c = _b[1], nameA = _c === void 0 ? "noName" : _c; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > [, nameA = "noName"]: Robot = [-1, "name", "skill"] -3 > -4 > nameA = "noName" -5 > -6 > nameA = "noName" -1->Emitted(3, 9) Source(7, 15) + SourceIndex(0) -2 >Emitted(3, 56) Source(7, 66) + SourceIndex(0) -3 >Emitted(3, 58) Source(7, 18) + SourceIndex(0) -4 >Emitted(3, 68) Source(7, 34) + SourceIndex(0) -5 >Emitted(3, 70) Source(7, 18) + SourceIndex(0) -6 >Emitted(3, 107) Source(7, 34) + SourceIndex(0) +3 > +4 > nameA = "noName" +5 > +6 > nameA = "noName" +1->Emitted(11, 9) Source(7, 15) + SourceIndex(0) +2 >Emitted(11, 67) Source(7, 66) + SourceIndex(0) +3 >Emitted(11, 69) Source(7, 18) + SourceIndex(0) +4 >Emitted(11, 79) Source(7, 34) + SourceIndex(0) +5 >Emitted(11, 81) Source(7, 18) + SourceIndex(0) +6 >Emitted(11, 118) Source(7, 34) + SourceIndex(0) --- >>> console.log(nameA); 1 >^^^^ @@ -102,14 +110,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > nameA 7 > ) 8 > ; -1 >Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 12) Source(8, 12) + SourceIndex(0) -3 >Emitted(4, 13) Source(8, 13) + SourceIndex(0) -4 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -5 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -6 >Emitted(4, 22) Source(8, 22) + SourceIndex(0) -7 >Emitted(4, 23) Source(8, 23) + SourceIndex(0) -8 >Emitted(4, 24) Source(8, 24) + SourceIndex(0) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 12) Source(8, 12) + SourceIndex(0) +3 >Emitted(12, 13) Source(8, 13) + SourceIndex(0) +4 >Emitted(12, 16) Source(8, 16) + SourceIndex(0) +5 >Emitted(12, 17) Source(8, 17) + SourceIndex(0) +6 >Emitted(12, 22) Source(8, 22) + SourceIndex(0) +7 >Emitted(12, 23) Source(8, 23) + SourceIndex(0) +8 >Emitted(12, 24) Source(8, 24) + SourceIndex(0) --- >>>} 1 > @@ -118,36 +126,42 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(13, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(9, 2) + SourceIndex(0) --- >>>function foo2(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo2( 3 > [numberB = -1]: Robot = [-1, "name", "skill"] -1->Emitted(6, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(6, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(6, 17) Source(11, 60) + SourceIndex(0) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(14, 17) Source(11, 60) + SourceIndex(0) --- ->>> var _b = (_a === void 0 ? [-1, "name", "skill"] : _a)[0], numberB = _b === void 0 ? -1 : _b; +>>> var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 1), _c = _b[0], numberB = _c === void 0 ? -1 : _c; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > numberB = -1 -3 > -4 > numberB = -1 -1->Emitted(7, 9) Source(11, 16) + SourceIndex(0) -2 >Emitted(7, 61) Source(11, 28) + SourceIndex(0) -3 >Emitted(7, 63) Source(11, 16) + SourceIndex(0) -4 >Emitted(7, 96) Source(11, 28) + SourceIndex(0) +2 > [numberB = -1]: Robot = [-1, "name", "skill"] +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +1->Emitted(15, 9) Source(11, 15) + SourceIndex(0) +2 >Emitted(15, 67) Source(11, 60) + SourceIndex(0) +3 >Emitted(15, 69) Source(11, 16) + SourceIndex(0) +4 >Emitted(15, 79) Source(11, 28) + SourceIndex(0) +5 >Emitted(15, 81) Source(11, 16) + SourceIndex(0) +6 >Emitted(15, 114) Source(11, 28) + SourceIndex(0) --- >>> console.log(numberB); 1 >^^^^ @@ -167,14 +181,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > numberB 7 > ) 8 > ; -1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 12) Source(12, 12) + SourceIndex(0) -3 >Emitted(8, 13) Source(12, 13) + SourceIndex(0) -4 >Emitted(8, 16) Source(12, 16) + SourceIndex(0) -5 >Emitted(8, 17) Source(12, 17) + SourceIndex(0) -6 >Emitted(8, 24) Source(12, 24) + SourceIndex(0) -7 >Emitted(8, 25) Source(12, 25) + SourceIndex(0) -8 >Emitted(8, 26) Source(12, 26) + SourceIndex(0) +1 >Emitted(16, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(16, 12) Source(12, 12) + SourceIndex(0) +3 >Emitted(16, 13) Source(12, 13) + SourceIndex(0) +4 >Emitted(16, 16) Source(12, 16) + SourceIndex(0) +5 >Emitted(16, 17) Source(12, 17) + SourceIndex(0) +6 >Emitted(16, 24) Source(12, 24) + SourceIndex(0) +7 >Emitted(16, 25) Source(12, 25) + SourceIndex(0) +8 >Emitted(16, 26) Source(12, 26) + SourceIndex(0) --- >>>} 1 > @@ -183,66 +197,66 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(9, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(13, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(13, 2) + SourceIndex(0) --- >>>function foo3(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo3( 3 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"]: Robot = [-1, "name", "skill"] -1->Emitted(10, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(10, 15) Source(15, 15) + SourceIndex(0) -3 >Emitted(10, 17) Source(15, 97) + SourceIndex(0) +1->Emitted(18, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(18, 15) Source(15, 15) + SourceIndex(0) +3 >Emitted(18, 17) Source(15, 97) + SourceIndex(0) --- ->>> var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[0], numberA2 = _c === void 0 ? -1 : _c, _d = _b[1], nameA2 = _d === void 0 ? "name" : _d, _e = _b[2], skillA2 = _e === void 0 ? "skill" : _e; +>>> var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a, 3), _c = _b[0], numberA2 = _c === void 0 ? -1 : _c, _d = _b[1], nameA2 = _d === void 0 ? "name" : _d, _e = _b[2], skillA2 = _e === void 0 ? "skill" : _e; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > [numberA2 = -1, nameA2 = "name", skillA2 = "skill"]: Robot = [-1, "name", "skill"] -3 > -4 > numberA2 = -1 -5 > -6 > numberA2 = -1 -7 > , -8 > nameA2 = "name" -9 > -10> nameA2 = "name" -11> , -12> skillA2 = "skill" -13> -14> skillA2 = "skill" -1->Emitted(11, 9) Source(15, 15) + SourceIndex(0) -2 >Emitted(11, 56) Source(15, 97) + SourceIndex(0) -3 >Emitted(11, 58) Source(15, 16) + SourceIndex(0) -4 >Emitted(11, 68) Source(15, 29) + SourceIndex(0) -5 >Emitted(11, 70) Source(15, 16) + SourceIndex(0) -6 >Emitted(11, 104) Source(15, 29) + SourceIndex(0) -7 >Emitted(11, 106) Source(15, 31) + SourceIndex(0) -8 >Emitted(11, 116) Source(15, 46) + SourceIndex(0) -9 >Emitted(11, 118) Source(15, 31) + SourceIndex(0) -10>Emitted(11, 154) Source(15, 46) + SourceIndex(0) -11>Emitted(11, 156) Source(15, 48) + SourceIndex(0) -12>Emitted(11, 166) Source(15, 65) + SourceIndex(0) -13>Emitted(11, 168) Source(15, 48) + SourceIndex(0) -14>Emitted(11, 206) Source(15, 65) + SourceIndex(0) +3 > +4 > numberA2 = -1 +5 > +6 > numberA2 = -1 +7 > , +8 > nameA2 = "name" +9 > +10> nameA2 = "name" +11> , +12> skillA2 = "skill" +13> +14> skillA2 = "skill" +1->Emitted(19, 9) Source(15, 15) + SourceIndex(0) +2 >Emitted(19, 67) Source(15, 97) + SourceIndex(0) +3 >Emitted(19, 69) Source(15, 16) + SourceIndex(0) +4 >Emitted(19, 79) Source(15, 29) + SourceIndex(0) +5 >Emitted(19, 81) Source(15, 16) + SourceIndex(0) +6 >Emitted(19, 115) Source(15, 29) + SourceIndex(0) +7 >Emitted(19, 117) Source(15, 31) + SourceIndex(0) +8 >Emitted(19, 127) Source(15, 46) + SourceIndex(0) +9 >Emitted(19, 129) Source(15, 31) + SourceIndex(0) +10>Emitted(19, 165) Source(15, 46) + SourceIndex(0) +11>Emitted(19, 167) Source(15, 48) + SourceIndex(0) +12>Emitted(19, 177) Source(15, 65) + SourceIndex(0) +13>Emitted(19, 179) Source(15, 48) + SourceIndex(0) +14>Emitted(19, 217) Source(15, 65) + SourceIndex(0) --- >>> console.log(nameA2); 1 >^^^^ @@ -262,14 +276,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > nameA2 7 > ) 8 > ; -1 >Emitted(12, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(16, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(16, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(16, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(16, 17) + SourceIndex(0) -6 >Emitted(12, 23) Source(16, 23) + SourceIndex(0) -7 >Emitted(12, 24) Source(16, 24) + SourceIndex(0) -8 >Emitted(12, 25) Source(16, 25) + SourceIndex(0) +1 >Emitted(20, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(20, 12) Source(16, 12) + SourceIndex(0) +3 >Emitted(20, 13) Source(16, 13) + SourceIndex(0) +4 >Emitted(20, 16) Source(16, 16) + SourceIndex(0) +5 >Emitted(20, 17) Source(16, 17) + SourceIndex(0) +6 >Emitted(20, 23) Source(16, 23) + SourceIndex(0) +7 >Emitted(20, 24) Source(16, 24) + SourceIndex(0) +8 >Emitted(20, 25) Source(16, 25) + SourceIndex(0) --- >>>} 1 > @@ -278,48 +292,48 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(13, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(13, 2) Source(17, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(17, 2) + SourceIndex(0) --- >>>function foo4(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo4( 3 > [numberA3 = -1, ...robotAInfo]: Robot = [-1, "name", "skill"] -1->Emitted(14, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(14, 15) Source(19, 15) + SourceIndex(0) -3 >Emitted(14, 17) Source(19, 76) + SourceIndex(0) +1->Emitted(22, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(22, 15) Source(19, 15) + SourceIndex(0) +3 >Emitted(22, 17) Source(19, 76) + SourceIndex(0) --- ->>> var _b = _a === void 0 ? [-1, "name", "skill"] : _a, _c = _b[0], numberA3 = _c === void 0 ? -1 : _c, robotAInfo = _b.slice(1); +>>> var _b = __read(_a === void 0 ? [-1, "name", "skill"] : _a), _c = _b[0], numberA3 = _c === void 0 ? -1 : _c, robotAInfo = _b.slice(1); 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > [numberA3 = -1, ...robotAInfo]: Robot = [-1, "name", "skill"] -3 > -4 > numberA3 = -1 -5 > -6 > numberA3 = -1 -7 > , -8 > ...robotAInfo -1->Emitted(15, 9) Source(19, 15) + SourceIndex(0) -2 >Emitted(15, 56) Source(19, 76) + SourceIndex(0) -3 >Emitted(15, 58) Source(19, 16) + SourceIndex(0) -4 >Emitted(15, 68) Source(19, 29) + SourceIndex(0) -5 >Emitted(15, 70) Source(19, 16) + SourceIndex(0) -6 >Emitted(15, 104) Source(19, 29) + SourceIndex(0) -7 >Emitted(15, 106) Source(19, 31) + SourceIndex(0) -8 >Emitted(15, 130) Source(19, 44) + SourceIndex(0) +3 > +4 > numberA3 = -1 +5 > +6 > numberA3 = -1 +7 > , +8 > ...robotAInfo +1->Emitted(23, 9) Source(19, 15) + SourceIndex(0) +2 >Emitted(23, 64) Source(19, 76) + SourceIndex(0) +3 >Emitted(23, 66) Source(19, 16) + SourceIndex(0) +4 >Emitted(23, 76) Source(19, 29) + SourceIndex(0) +5 >Emitted(23, 78) Source(19, 16) + SourceIndex(0) +6 >Emitted(23, 112) Source(19, 29) + SourceIndex(0) +7 >Emitted(23, 114) Source(19, 31) + SourceIndex(0) +8 >Emitted(23, 138) Source(19, 44) + SourceIndex(0) --- >>> console.log(robotAInfo); 1 >^^^^ @@ -339,14 +353,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > robotAInfo 7 > ) 8 > ; -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) -2 >Emitted(16, 12) Source(20, 12) + SourceIndex(0) -3 >Emitted(16, 13) Source(20, 13) + SourceIndex(0) -4 >Emitted(16, 16) Source(20, 16) + SourceIndex(0) -5 >Emitted(16, 17) Source(20, 17) + SourceIndex(0) -6 >Emitted(16, 27) Source(20, 27) + SourceIndex(0) -7 >Emitted(16, 28) Source(20, 28) + SourceIndex(0) -8 >Emitted(16, 29) Source(20, 29) + SourceIndex(0) +1 >Emitted(24, 5) Source(20, 5) + SourceIndex(0) +2 >Emitted(24, 12) Source(20, 12) + SourceIndex(0) +3 >Emitted(24, 13) Source(20, 13) + SourceIndex(0) +4 >Emitted(24, 16) Source(20, 16) + SourceIndex(0) +5 >Emitted(24, 17) Source(20, 17) + SourceIndex(0) +6 >Emitted(24, 27) Source(20, 27) + SourceIndex(0) +7 >Emitted(24, 28) Source(20, 28) + SourceIndex(0) +8 >Emitted(24, 29) Source(20, 29) + SourceIndex(0) --- >>>} 1 > @@ -355,8 +369,8 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(17, 1) Source(21, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(21, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(21, 2) + SourceIndex(0) --- >>>foo1(robotA); 1-> @@ -374,12 +388,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1->Emitted(18, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(18, 6) Source(23, 6) + SourceIndex(0) -4 >Emitted(18, 12) Source(23, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(23, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(23, 14) + SourceIndex(0) +1->Emitted(26, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(26, 6) Source(23, 6) + SourceIndex(0) +4 >Emitted(26, 12) Source(23, 12) + SourceIndex(0) +5 >Emitted(26, 13) Source(23, 13) + SourceIndex(0) +6 >Emitted(26, 14) Source(23, 14) + SourceIndex(0) --- >>>foo1([2, "trimmer", "trimming"]); 1-> @@ -407,18 +421,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 10> ] 11> ) 12> ; -1->Emitted(19, 1) Source(24, 1) + SourceIndex(0) -2 >Emitted(19, 5) Source(24, 5) + SourceIndex(0) -3 >Emitted(19, 6) Source(24, 6) + SourceIndex(0) -4 >Emitted(19, 7) Source(24, 7) + SourceIndex(0) -5 >Emitted(19, 8) Source(24, 8) + SourceIndex(0) -6 >Emitted(19, 10) Source(24, 10) + SourceIndex(0) -7 >Emitted(19, 19) Source(24, 19) + SourceIndex(0) -8 >Emitted(19, 21) Source(24, 21) + SourceIndex(0) -9 >Emitted(19, 31) Source(24, 31) + SourceIndex(0) -10>Emitted(19, 32) Source(24, 32) + SourceIndex(0) -11>Emitted(19, 33) Source(24, 33) + SourceIndex(0) -12>Emitted(19, 34) Source(24, 34) + SourceIndex(0) +1->Emitted(27, 1) Source(24, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(24, 5) + SourceIndex(0) +3 >Emitted(27, 6) Source(24, 6) + SourceIndex(0) +4 >Emitted(27, 7) Source(24, 7) + SourceIndex(0) +5 >Emitted(27, 8) Source(24, 8) + SourceIndex(0) +6 >Emitted(27, 10) Source(24, 10) + SourceIndex(0) +7 >Emitted(27, 19) Source(24, 19) + SourceIndex(0) +8 >Emitted(27, 21) Source(24, 21) + SourceIndex(0) +9 >Emitted(27, 31) Source(24, 31) + SourceIndex(0) +10>Emitted(27, 32) Source(24, 32) + SourceIndex(0) +11>Emitted(27, 33) Source(24, 33) + SourceIndex(0) +12>Emitted(27, 34) Source(24, 34) + SourceIndex(0) --- >>>foo2(robotA); 1 > @@ -436,12 +450,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1 >Emitted(20, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(26, 5) + SourceIndex(0) -3 >Emitted(20, 6) Source(26, 6) + SourceIndex(0) -4 >Emitted(20, 12) Source(26, 12) + SourceIndex(0) -5 >Emitted(20, 13) Source(26, 13) + SourceIndex(0) -6 >Emitted(20, 14) Source(26, 14) + SourceIndex(0) +1 >Emitted(28, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(28, 5) Source(26, 5) + SourceIndex(0) +3 >Emitted(28, 6) Source(26, 6) + SourceIndex(0) +4 >Emitted(28, 12) Source(26, 12) + SourceIndex(0) +5 >Emitted(28, 13) Source(26, 13) + SourceIndex(0) +6 >Emitted(28, 14) Source(26, 14) + SourceIndex(0) --- >>>foo2([2, "trimmer", "trimming"]); 1-> @@ -469,18 +483,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 10> ] 11> ) 12> ; -1->Emitted(21, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(27, 5) + SourceIndex(0) -3 >Emitted(21, 6) Source(27, 6) + SourceIndex(0) -4 >Emitted(21, 7) Source(27, 7) + SourceIndex(0) -5 >Emitted(21, 8) Source(27, 8) + SourceIndex(0) -6 >Emitted(21, 10) Source(27, 10) + SourceIndex(0) -7 >Emitted(21, 19) Source(27, 19) + SourceIndex(0) -8 >Emitted(21, 21) Source(27, 21) + SourceIndex(0) -9 >Emitted(21, 31) Source(27, 31) + SourceIndex(0) -10>Emitted(21, 32) Source(27, 32) + SourceIndex(0) -11>Emitted(21, 33) Source(27, 33) + SourceIndex(0) -12>Emitted(21, 34) Source(27, 34) + SourceIndex(0) +1->Emitted(29, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(27, 5) + SourceIndex(0) +3 >Emitted(29, 6) Source(27, 6) + SourceIndex(0) +4 >Emitted(29, 7) Source(27, 7) + SourceIndex(0) +5 >Emitted(29, 8) Source(27, 8) + SourceIndex(0) +6 >Emitted(29, 10) Source(27, 10) + SourceIndex(0) +7 >Emitted(29, 19) Source(27, 19) + SourceIndex(0) +8 >Emitted(29, 21) Source(27, 21) + SourceIndex(0) +9 >Emitted(29, 31) Source(27, 31) + SourceIndex(0) +10>Emitted(29, 32) Source(27, 32) + SourceIndex(0) +11>Emitted(29, 33) Source(27, 33) + SourceIndex(0) +12>Emitted(29, 34) Source(27, 34) + SourceIndex(0) --- >>>foo3(robotA); 1 > @@ -498,12 +512,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1 >Emitted(22, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(22, 6) Source(29, 6) + SourceIndex(0) -4 >Emitted(22, 12) Source(29, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(29, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(29, 14) + SourceIndex(0) +1 >Emitted(30, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(30, 6) Source(29, 6) + SourceIndex(0) +4 >Emitted(30, 12) Source(29, 12) + SourceIndex(0) +5 >Emitted(30, 13) Source(29, 13) + SourceIndex(0) +6 >Emitted(30, 14) Source(29, 14) + SourceIndex(0) --- >>>foo3([2, "trimmer", "trimming"]); 1-> @@ -531,18 +545,18 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 10> ] 11> ) 12> ; -1->Emitted(23, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(23, 5) Source(30, 5) + SourceIndex(0) -3 >Emitted(23, 6) Source(30, 6) + SourceIndex(0) -4 >Emitted(23, 7) Source(30, 7) + SourceIndex(0) -5 >Emitted(23, 8) Source(30, 8) + SourceIndex(0) -6 >Emitted(23, 10) Source(30, 10) + SourceIndex(0) -7 >Emitted(23, 19) Source(30, 19) + SourceIndex(0) -8 >Emitted(23, 21) Source(30, 21) + SourceIndex(0) -9 >Emitted(23, 31) Source(30, 31) + SourceIndex(0) -10>Emitted(23, 32) Source(30, 32) + SourceIndex(0) -11>Emitted(23, 33) Source(30, 33) + SourceIndex(0) -12>Emitted(23, 34) Source(30, 34) + SourceIndex(0) +1->Emitted(31, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(30, 5) + SourceIndex(0) +3 >Emitted(31, 6) Source(30, 6) + SourceIndex(0) +4 >Emitted(31, 7) Source(30, 7) + SourceIndex(0) +5 >Emitted(31, 8) Source(30, 8) + SourceIndex(0) +6 >Emitted(31, 10) Source(30, 10) + SourceIndex(0) +7 >Emitted(31, 19) Source(30, 19) + SourceIndex(0) +8 >Emitted(31, 21) Source(30, 21) + SourceIndex(0) +9 >Emitted(31, 31) Source(30, 31) + SourceIndex(0) +10>Emitted(31, 32) Source(30, 32) + SourceIndex(0) +11>Emitted(31, 33) Source(30, 33) + SourceIndex(0) +12>Emitted(31, 34) Source(30, 34) + SourceIndex(0) --- >>>foo4(robotA); 1 > @@ -560,12 +574,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1 >Emitted(24, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(24, 5) Source(32, 5) + SourceIndex(0) -3 >Emitted(24, 6) Source(32, 6) + SourceIndex(0) -4 >Emitted(24, 12) Source(32, 12) + SourceIndex(0) -5 >Emitted(24, 13) Source(32, 13) + SourceIndex(0) -6 >Emitted(24, 14) Source(32, 14) + SourceIndex(0) +1 >Emitted(32, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(32, 5) + SourceIndex(0) +3 >Emitted(32, 6) Source(32, 6) + SourceIndex(0) +4 >Emitted(32, 12) Source(32, 12) + SourceIndex(0) +5 >Emitted(32, 13) Source(32, 13) + SourceIndex(0) +6 >Emitted(32, 14) Source(32, 14) + SourceIndex(0) --- >>>foo4([2, "trimmer", "trimming"]); 1-> @@ -594,17 +608,17 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 10> ] 11> ) 12> ; -1->Emitted(25, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(25, 5) Source(33, 5) + SourceIndex(0) -3 >Emitted(25, 6) Source(33, 6) + SourceIndex(0) -4 >Emitted(25, 7) Source(33, 7) + SourceIndex(0) -5 >Emitted(25, 8) Source(33, 8) + SourceIndex(0) -6 >Emitted(25, 10) Source(33, 10) + SourceIndex(0) -7 >Emitted(25, 19) Source(33, 19) + SourceIndex(0) -8 >Emitted(25, 21) Source(33, 21) + SourceIndex(0) -9 >Emitted(25, 31) Source(33, 31) + SourceIndex(0) -10>Emitted(25, 32) Source(33, 32) + SourceIndex(0) -11>Emitted(25, 33) Source(33, 33) + SourceIndex(0) -12>Emitted(25, 34) Source(33, 34) + SourceIndex(0) +1->Emitted(33, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(33, 5) + SourceIndex(0) +3 >Emitted(33, 6) Source(33, 6) + SourceIndex(0) +4 >Emitted(33, 7) Source(33, 7) + SourceIndex(0) +5 >Emitted(33, 8) Source(33, 8) + SourceIndex(0) +6 >Emitted(33, 10) Source(33, 10) + SourceIndex(0) +7 >Emitted(33, 19) Source(33, 19) + SourceIndex(0) +8 >Emitted(33, 21) Source(33, 21) + SourceIndex(0) +9 >Emitted(33, 31) Source(33, 31) + SourceIndex(0) +10>Emitted(33, 32) Source(33, 32) + SourceIndex(0) +11>Emitted(33, 33) Source(33, 33) + SourceIndex(0) +12>Emitted(33, 34) Source(33, 34) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js index 81add872b0d98..fb8be66d5df7f 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js @@ -30,17 +30,25 @@ foo3(robotA); foo3(["roomba", ["vaccum", "mopping"]]); //// [sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = ["trimmer", ["trimming", "edging"]]; function foo1(_a) { - var _b = _a === void 0 ? ["name", ["skill1", "skill2"]] : _a, _c = _b[1], skillA = _c === void 0 ? ["noSkill", "noSkill"] : _c; + var _b = __read(_a === void 0 ? ["name", ["skill1", "skill2"]] : _a, 2), _c = _b[1], skillA = _c === void 0 ? ["noSkill", "noSkill"] : _c; console.log(skillA); } function foo2(_a) { - var _b = (_a === void 0 ? ["name", ["skill1", "skill2"]] : _a)[0], nameMB = _b === void 0 ? "noName" : _b; + var _b = __read(_a === void 0 ? ["name", ["skill1", "skill2"]] : _a, 1), _c = _b[0], nameMB = _c === void 0 ? "noName" : _c; console.log(nameMB); } function foo3(_a) { - var _b = _a[0], nameMA = _b === void 0 ? "noName" : _b, _c = _a[1], _d = _c === void 0 ? ["noSkill", "noSkill"] : _c, _e = _d[0], primarySkillA = _e === void 0 ? "primary" : _e, _f = _d[1], secondarySkillA = _f === void 0 ? "secondary" : _f; + var _b = __read(_a, 2), _c = _b[0], nameMA = _c === void 0 ? "noName" : _c, _d = _b[1], _e = __read(_d === void 0 ? ["noSkill", "noSkill"] : _d, 2), _f = _e[0], primarySkillA = _f === void 0 ? "primary" : _f, _g = _e[1], secondarySkillA = _g === void 0 ? "secondary" : _g; console.log(nameMA); } foo1(robotA); diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map index a489a3e41bffb..94b2134e72b06 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAExD,cAAc,EAA0E;QAA1E,wDAA0E,EAAvE,UAA+B,EAA/B,oDAA+B;IAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA2D;QAA1D,6DAAiB,EAAjB,sCAAiB;IAC5B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAGoB;QAHnB,UAAiB,EAAjB,sCAAiB,EAAE,UAGR,EAHQ,gDAGR,EAFtB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAExD,cAAc,EAA0E;QAA1E,mEAA0E,EAAvE,UAA+B,EAA/B,oDAA+B;IAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAA2D;QAA3D,mEAA2D,EAA1D,UAAiB,EAAjB,sCAAiB;IAC5B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,cAAc,EAGoB;QAHpB,kBAGoB,EAHnB,UAAiB,EAAjB,sCAAiB,EAAE,UAGR,EAHQ,2DAGR,EAFtB,UAAyB,EAAzB,8CAAyB,EACzB,UAA6B,EAA7B,kDAA6B;IAE7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAExC,IAAI,CAAC,MAAM,CAAC,CAAC;AACb,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.sourcemap.txt index 28f94da65a1da..08a029f92a22e 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringParametertArrayBindingPatternDefaultVal emittedFile:tests/cases/compiler/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = ["trimmer", ["trimming", "edging"]]; 1 > 2 >^^^^ @@ -41,54 +49,54 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 12> ] 13> ] 14> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 31) + SourceIndex(0) -7 >Emitted(1, 26) Source(5, 33) + SourceIndex(0) -8 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -9 >Emitted(1, 37) Source(5, 44) + SourceIndex(0) -10>Emitted(1, 39) Source(5, 46) + SourceIndex(0) -11>Emitted(1, 47) Source(5, 54) + SourceIndex(0) -12>Emitted(1, 48) Source(5, 55) + SourceIndex(0) -13>Emitted(1, 49) Source(5, 56) + SourceIndex(0) -14>Emitted(1, 50) Source(5, 57) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 24) Source(5, 31) + SourceIndex(0) +7 >Emitted(9, 26) Source(5, 33) + SourceIndex(0) +8 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +9 >Emitted(9, 37) Source(5, 44) + SourceIndex(0) +10>Emitted(9, 39) Source(5, 46) + SourceIndex(0) +11>Emitted(9, 47) Source(5, 54) + SourceIndex(0) +12>Emitted(9, 48) Source(5, 55) + SourceIndex(0) +13>Emitted(9, 49) Source(5, 56) + SourceIndex(0) +14>Emitted(9, 50) Source(5, 57) + SourceIndex(0) --- >>>function foo1(_a) { 1 > 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > > 2 >function foo1( 3 > [, skillA = ["noSkill", "noSkill"]]: Robot= ["name", ["skill1", "skill2"]] -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 15) Source(7, 15) + SourceIndex(0) -3 >Emitted(2, 17) Source(7, 89) + SourceIndex(0) +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(10, 15) Source(7, 15) + SourceIndex(0) +3 >Emitted(10, 17) Source(7, 89) + SourceIndex(0) --- ->>> var _b = _a === void 0 ? ["name", ["skill1", "skill2"]] : _a, _c = _b[1], skillA = _c === void 0 ? ["noSkill", "noSkill"] : _c; +>>> var _b = __read(_a === void 0 ? ["name", ["skill1", "skill2"]] : _a, 2), _c = _b[1], skillA = _c === void 0 ? ["noSkill", "noSkill"] : _c; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > [, skillA = ["noSkill", "noSkill"]]: Robot= ["name", ["skill1", "skill2"]] -3 > -4 > skillA = ["noSkill", "noSkill"] -5 > -6 > skillA = ["noSkill", "noSkill"] -1->Emitted(3, 9) Source(7, 15) + SourceIndex(0) -2 >Emitted(3, 65) Source(7, 89) + SourceIndex(0) -3 >Emitted(3, 67) Source(7, 18) + SourceIndex(0) -4 >Emitted(3, 77) Source(7, 49) + SourceIndex(0) -5 >Emitted(3, 79) Source(7, 18) + SourceIndex(0) -6 >Emitted(3, 131) Source(7, 49) + SourceIndex(0) +3 > +4 > skillA = ["noSkill", "noSkill"] +5 > +6 > skillA = ["noSkill", "noSkill"] +1->Emitted(11, 9) Source(7, 15) + SourceIndex(0) +2 >Emitted(11, 76) Source(7, 89) + SourceIndex(0) +3 >Emitted(11, 78) Source(7, 18) + SourceIndex(0) +4 >Emitted(11, 88) Source(7, 49) + SourceIndex(0) +5 >Emitted(11, 90) Source(7, 18) + SourceIndex(0) +6 >Emitted(11, 142) Source(7, 49) + SourceIndex(0) --- >>> console.log(skillA); 1 >^^^^ @@ -108,14 +116,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > skillA 7 > ) 8 > ; -1 >Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 12) Source(8, 12) + SourceIndex(0) -3 >Emitted(4, 13) Source(8, 13) + SourceIndex(0) -4 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -5 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -6 >Emitted(4, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(4, 24) Source(8, 24) + SourceIndex(0) -8 >Emitted(4, 25) Source(8, 25) + SourceIndex(0) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 12) Source(8, 12) + SourceIndex(0) +3 >Emitted(12, 13) Source(8, 13) + SourceIndex(0) +4 >Emitted(12, 16) Source(8, 16) + SourceIndex(0) +5 >Emitted(12, 17) Source(8, 17) + SourceIndex(0) +6 >Emitted(12, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(12, 24) Source(8, 24) + SourceIndex(0) +8 >Emitted(12, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -124,36 +132,42 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(13, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(9, 2) + SourceIndex(0) --- >>>function foo2(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > 2 >function foo2( 3 > [nameMB = "noName"]: Robot = ["name", ["skill1", "skill2"]] -1->Emitted(6, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(6, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(6, 17) Source(11, 74) + SourceIndex(0) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(14, 17) Source(11, 74) + SourceIndex(0) --- ->>> var _b = (_a === void 0 ? ["name", ["skill1", "skill2"]] : _a)[0], nameMB = _b === void 0 ? "noName" : _b; +>>> var _b = __read(_a === void 0 ? ["name", ["skill1", "skill2"]] : _a, 1), _c = _b[0], nameMB = _c === void 0 ? "noName" : _c; 1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMB = "noName" -3 > -4 > nameMB = "noName" -1->Emitted(7, 9) Source(11, 16) + SourceIndex(0) -2 >Emitted(7, 70) Source(11, 33) + SourceIndex(0) -3 >Emitted(7, 72) Source(11, 16) + SourceIndex(0) -4 >Emitted(7, 110) Source(11, 33) + SourceIndex(0) +2 > [nameMB = "noName"]: Robot = ["name", ["skill1", "skill2"]] +3 > +4 > nameMB = "noName" +5 > +6 > nameMB = "noName" +1->Emitted(15, 9) Source(11, 15) + SourceIndex(0) +2 >Emitted(15, 76) Source(11, 74) + SourceIndex(0) +3 >Emitted(15, 78) Source(11, 16) + SourceIndex(0) +4 >Emitted(15, 88) Source(11, 33) + SourceIndex(0) +5 >Emitted(15, 90) Source(11, 16) + SourceIndex(0) +6 >Emitted(15, 128) Source(11, 33) + SourceIndex(0) --- >>> console.log(nameMB); 1 >^^^^ @@ -173,14 +187,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > nameMB 7 > ) 8 > ; -1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 12) Source(12, 12) + SourceIndex(0) -3 >Emitted(8, 13) Source(12, 13) + SourceIndex(0) -4 >Emitted(8, 16) Source(12, 16) + SourceIndex(0) -5 >Emitted(8, 17) Source(12, 17) + SourceIndex(0) -6 >Emitted(8, 23) Source(12, 23) + SourceIndex(0) -7 >Emitted(8, 24) Source(12, 24) + SourceIndex(0) -8 >Emitted(8, 25) Source(12, 25) + SourceIndex(0) +1 >Emitted(16, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(16, 12) Source(12, 12) + SourceIndex(0) +3 >Emitted(16, 13) Source(12, 13) + SourceIndex(0) +4 >Emitted(16, 16) Source(12, 16) + SourceIndex(0) +5 >Emitted(16, 17) Source(12, 17) + SourceIndex(0) +6 >Emitted(16, 23) Source(12, 23) + SourceIndex(0) +7 >Emitted(16, 24) Source(12, 24) + SourceIndex(0) +8 >Emitted(16, 25) Source(12, 25) + SourceIndex(0) --- >>>} 1 > @@ -189,14 +203,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(9, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(13, 2) + SourceIndex(0) +1 >Emitted(17, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(13, 2) + SourceIndex(0) --- >>>function foo3(_a) { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -205,66 +219,75 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV > primarySkillA = "primary", > secondarySkillA = "secondary" > ] = ["noSkill", "noSkill"]]: Robot -1->Emitted(10, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(10, 15) Source(15, 15) + SourceIndex(0) -3 >Emitted(10, 17) Source(18, 35) + SourceIndex(0) +1->Emitted(18, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(18, 15) Source(15, 15) + SourceIndex(0) +3 >Emitted(18, 17) Source(18, 35) + SourceIndex(0) --- ->>> var _b = _a[0], nameMA = _b === void 0 ? "noName" : _b, _c = _a[1], _d = _c === void 0 ? ["noSkill", "noSkill"] : _c, _e = _d[0], primarySkillA = _e === void 0 ? "primary" : _e, _f = _d[1], secondarySkillA = _f === void 0 ? "secondary" : _f; +>>> var _b = __read(_a, 2), _c = _b[0], nameMA = _c === void 0 ? "noName" : _c, _d = _b[1], _e = __read(_d === void 0 ? ["noSkill", "noSkill"] : _d, 2), _f = _e[0], primarySkillA = _f === void 0 ? "primary" : _f, _g = _e[1], secondarySkillA = _g === void 0 ? "secondary" : _g; 1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > nameMA = "noName" -3 > -4 > nameMA = "noName" -5 > , -6 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["noSkill", "noSkill"] -7 > -8 > [ - > primarySkillA = "primary", - > secondarySkillA = "secondary" - > ] = ["noSkill", "noSkill"] -9 > -10> primarySkillA = "primary" -11> -12> primarySkillA = "primary" -13> , - > -14> secondarySkillA = "secondary" -15> -16> secondarySkillA = "secondary" -1->Emitted(11, 9) Source(15, 16) + SourceIndex(0) -2 >Emitted(11, 19) Source(15, 33) + SourceIndex(0) -3 >Emitted(11, 21) Source(15, 16) + SourceIndex(0) -4 >Emitted(11, 59) Source(15, 33) + SourceIndex(0) -5 >Emitted(11, 61) Source(15, 35) + SourceIndex(0) -6 >Emitted(11, 71) Source(18, 27) + SourceIndex(0) -7 >Emitted(11, 73) Source(15, 35) + SourceIndex(0) -8 >Emitted(11, 121) Source(18, 27) + SourceIndex(0) -9 >Emitted(11, 123) Source(16, 5) + SourceIndex(0) -10>Emitted(11, 133) Source(16, 30) + SourceIndex(0) -11>Emitted(11, 135) Source(16, 5) + SourceIndex(0) -12>Emitted(11, 181) Source(16, 30) + SourceIndex(0) -13>Emitted(11, 183) Source(17, 5) + SourceIndex(0) -14>Emitted(11, 193) Source(17, 34) + SourceIndex(0) -15>Emitted(11, 195) Source(17, 5) + SourceIndex(0) -16>Emitted(11, 245) Source(17, 34) + SourceIndex(0) +2 > [nameMA = "noName", [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["noSkill", "noSkill"]]: Robot +3 > +4 > nameMA = "noName" +5 > +6 > nameMA = "noName" +7 > , +8 > [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["noSkill", "noSkill"] +9 > +10> [ + > primarySkillA = "primary", + > secondarySkillA = "secondary" + > ] = ["noSkill", "noSkill"] +11> +12> primarySkillA = "primary" +13> +14> primarySkillA = "primary" +15> , + > +16> secondarySkillA = "secondary" +17> +18> secondarySkillA = "secondary" +1->Emitted(19, 9) Source(15, 15) + SourceIndex(0) +2 >Emitted(19, 27) Source(18, 35) + SourceIndex(0) +3 >Emitted(19, 29) Source(15, 16) + SourceIndex(0) +4 >Emitted(19, 39) Source(15, 33) + SourceIndex(0) +5 >Emitted(19, 41) Source(15, 16) + SourceIndex(0) +6 >Emitted(19, 79) Source(15, 33) + SourceIndex(0) +7 >Emitted(19, 81) Source(15, 35) + SourceIndex(0) +8 >Emitted(19, 91) Source(18, 27) + SourceIndex(0) +9 >Emitted(19, 93) Source(15, 35) + SourceIndex(0) +10>Emitted(19, 152) Source(18, 27) + SourceIndex(0) +11>Emitted(19, 154) Source(16, 5) + SourceIndex(0) +12>Emitted(19, 164) Source(16, 30) + SourceIndex(0) +13>Emitted(19, 166) Source(16, 5) + SourceIndex(0) +14>Emitted(19, 212) Source(16, 30) + SourceIndex(0) +15>Emitted(19, 214) Source(17, 5) + SourceIndex(0) +16>Emitted(19, 224) Source(17, 34) + SourceIndex(0) +17>Emitted(19, 226) Source(17, 5) + SourceIndex(0) +18>Emitted(19, 276) Source(17, 34) + SourceIndex(0) --- >>> console.log(nameMA); 1 >^^^^ @@ -285,14 +308,14 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 6 > nameMA 7 > ) 8 > ; -1 >Emitted(12, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(12, 12) Source(19, 12) + SourceIndex(0) -3 >Emitted(12, 13) Source(19, 13) + SourceIndex(0) -4 >Emitted(12, 16) Source(19, 16) + SourceIndex(0) -5 >Emitted(12, 17) Source(19, 17) + SourceIndex(0) -6 >Emitted(12, 23) Source(19, 23) + SourceIndex(0) -7 >Emitted(12, 24) Source(19, 24) + SourceIndex(0) -8 >Emitted(12, 25) Source(19, 25) + SourceIndex(0) +1 >Emitted(20, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(20, 12) Source(19, 12) + SourceIndex(0) +3 >Emitted(20, 13) Source(19, 13) + SourceIndex(0) +4 >Emitted(20, 16) Source(19, 16) + SourceIndex(0) +5 >Emitted(20, 17) Source(19, 17) + SourceIndex(0) +6 >Emitted(20, 23) Source(19, 23) + SourceIndex(0) +7 >Emitted(20, 24) Source(19, 24) + SourceIndex(0) +8 >Emitted(20, 25) Source(19, 25) + SourceIndex(0) --- >>>} 1 > @@ -301,8 +324,8 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 1 > > 2 >} -1 >Emitted(13, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(13, 2) Source(20, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(20, 2) + SourceIndex(0) --- >>>foo1(robotA); 1-> @@ -320,12 +343,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1->Emitted(14, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(14, 5) Source(22, 5) + SourceIndex(0) -3 >Emitted(14, 6) Source(22, 6) + SourceIndex(0) -4 >Emitted(14, 12) Source(22, 12) + SourceIndex(0) -5 >Emitted(14, 13) Source(22, 13) + SourceIndex(0) -6 >Emitted(14, 14) Source(22, 14) + SourceIndex(0) +1->Emitted(22, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(22, 5) + SourceIndex(0) +3 >Emitted(22, 6) Source(22, 6) + SourceIndex(0) +4 >Emitted(22, 12) Source(22, 12) + SourceIndex(0) +5 >Emitted(22, 13) Source(22, 13) + SourceIndex(0) +6 >Emitted(22, 14) Source(22, 14) + SourceIndex(0) --- >>>foo1(["roomba", ["vaccum", "mopping"]]); 1-> @@ -357,20 +380,20 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 12> ] 13> ) 14> ; -1->Emitted(15, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(15, 5) Source(23, 5) + SourceIndex(0) -3 >Emitted(15, 6) Source(23, 6) + SourceIndex(0) -4 >Emitted(15, 7) Source(23, 7) + SourceIndex(0) -5 >Emitted(15, 15) Source(23, 15) + SourceIndex(0) -6 >Emitted(15, 17) Source(23, 17) + SourceIndex(0) -7 >Emitted(15, 18) Source(23, 18) + SourceIndex(0) -8 >Emitted(15, 26) Source(23, 26) + SourceIndex(0) -9 >Emitted(15, 28) Source(23, 28) + SourceIndex(0) -10>Emitted(15, 37) Source(23, 37) + SourceIndex(0) -11>Emitted(15, 38) Source(23, 38) + SourceIndex(0) -12>Emitted(15, 39) Source(23, 39) + SourceIndex(0) -13>Emitted(15, 40) Source(23, 40) + SourceIndex(0) -14>Emitted(15, 41) Source(23, 41) + SourceIndex(0) +1->Emitted(23, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(23, 5) Source(23, 5) + SourceIndex(0) +3 >Emitted(23, 6) Source(23, 6) + SourceIndex(0) +4 >Emitted(23, 7) Source(23, 7) + SourceIndex(0) +5 >Emitted(23, 15) Source(23, 15) + SourceIndex(0) +6 >Emitted(23, 17) Source(23, 17) + SourceIndex(0) +7 >Emitted(23, 18) Source(23, 18) + SourceIndex(0) +8 >Emitted(23, 26) Source(23, 26) + SourceIndex(0) +9 >Emitted(23, 28) Source(23, 28) + SourceIndex(0) +10>Emitted(23, 37) Source(23, 37) + SourceIndex(0) +11>Emitted(23, 38) Source(23, 38) + SourceIndex(0) +12>Emitted(23, 39) Source(23, 39) + SourceIndex(0) +13>Emitted(23, 40) Source(23, 40) + SourceIndex(0) +14>Emitted(23, 41) Source(23, 41) + SourceIndex(0) --- >>>foo2(robotA); 1 > @@ -388,12 +411,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1 >Emitted(16, 1) Source(25, 1) + SourceIndex(0) -2 >Emitted(16, 5) Source(25, 5) + SourceIndex(0) -3 >Emitted(16, 6) Source(25, 6) + SourceIndex(0) -4 >Emitted(16, 12) Source(25, 12) + SourceIndex(0) -5 >Emitted(16, 13) Source(25, 13) + SourceIndex(0) -6 >Emitted(16, 14) Source(25, 14) + SourceIndex(0) +1 >Emitted(24, 1) Source(25, 1) + SourceIndex(0) +2 >Emitted(24, 5) Source(25, 5) + SourceIndex(0) +3 >Emitted(24, 6) Source(25, 6) + SourceIndex(0) +4 >Emitted(24, 12) Source(25, 12) + SourceIndex(0) +5 >Emitted(24, 13) Source(25, 13) + SourceIndex(0) +6 >Emitted(24, 14) Source(25, 14) + SourceIndex(0) --- >>>foo2(["roomba", ["vaccum", "mopping"]]); 1-> @@ -425,20 +448,20 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 12> ] 13> ) 14> ; -1->Emitted(17, 1) Source(26, 1) + SourceIndex(0) -2 >Emitted(17, 5) Source(26, 5) + SourceIndex(0) -3 >Emitted(17, 6) Source(26, 6) + SourceIndex(0) -4 >Emitted(17, 7) Source(26, 7) + SourceIndex(0) -5 >Emitted(17, 15) Source(26, 15) + SourceIndex(0) -6 >Emitted(17, 17) Source(26, 17) + SourceIndex(0) -7 >Emitted(17, 18) Source(26, 18) + SourceIndex(0) -8 >Emitted(17, 26) Source(26, 26) + SourceIndex(0) -9 >Emitted(17, 28) Source(26, 28) + SourceIndex(0) -10>Emitted(17, 37) Source(26, 37) + SourceIndex(0) -11>Emitted(17, 38) Source(26, 38) + SourceIndex(0) -12>Emitted(17, 39) Source(26, 39) + SourceIndex(0) -13>Emitted(17, 40) Source(26, 40) + SourceIndex(0) -14>Emitted(17, 41) Source(26, 41) + SourceIndex(0) +1->Emitted(25, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(25, 5) Source(26, 5) + SourceIndex(0) +3 >Emitted(25, 6) Source(26, 6) + SourceIndex(0) +4 >Emitted(25, 7) Source(26, 7) + SourceIndex(0) +5 >Emitted(25, 15) Source(26, 15) + SourceIndex(0) +6 >Emitted(25, 17) Source(26, 17) + SourceIndex(0) +7 >Emitted(25, 18) Source(26, 18) + SourceIndex(0) +8 >Emitted(25, 26) Source(26, 26) + SourceIndex(0) +9 >Emitted(25, 28) Source(26, 28) + SourceIndex(0) +10>Emitted(25, 37) Source(26, 37) + SourceIndex(0) +11>Emitted(25, 38) Source(26, 38) + SourceIndex(0) +12>Emitted(25, 39) Source(26, 39) + SourceIndex(0) +13>Emitted(25, 40) Source(26, 40) + SourceIndex(0) +14>Emitted(25, 41) Source(26, 41) + SourceIndex(0) --- >>>foo3(robotA); 1 > @@ -456,12 +479,12 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 4 > robotA 5 > ) 6 > ; -1 >Emitted(18, 1) Source(28, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(28, 5) + SourceIndex(0) -3 >Emitted(18, 6) Source(28, 6) + SourceIndex(0) -4 >Emitted(18, 12) Source(28, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(28, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(28, 14) + SourceIndex(0) +1 >Emitted(26, 1) Source(28, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(28, 5) + SourceIndex(0) +3 >Emitted(26, 6) Source(28, 6) + SourceIndex(0) +4 >Emitted(26, 12) Source(28, 12) + SourceIndex(0) +5 >Emitted(26, 13) Source(28, 13) + SourceIndex(0) +6 >Emitted(26, 14) Source(28, 14) + SourceIndex(0) --- >>>foo3(["roomba", ["vaccum", "mopping"]]); 1-> @@ -494,19 +517,19 @@ sourceFile:sourceMapValidationDestructuringParametertArrayBindingPatternDefaultV 12> ] 13> ) 14> ; -1->Emitted(19, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(19, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(19, 6) Source(29, 6) + SourceIndex(0) -4 >Emitted(19, 7) Source(29, 7) + SourceIndex(0) -5 >Emitted(19, 15) Source(29, 15) + SourceIndex(0) -6 >Emitted(19, 17) Source(29, 17) + SourceIndex(0) -7 >Emitted(19, 18) Source(29, 18) + SourceIndex(0) -8 >Emitted(19, 26) Source(29, 26) + SourceIndex(0) -9 >Emitted(19, 28) Source(29, 28) + SourceIndex(0) -10>Emitted(19, 37) Source(29, 37) + SourceIndex(0) -11>Emitted(19, 38) Source(29, 38) + SourceIndex(0) -12>Emitted(19, 39) Source(29, 39) + SourceIndex(0) -13>Emitted(19, 40) Source(29, 40) + SourceIndex(0) -14>Emitted(19, 41) Source(29, 41) + SourceIndex(0) +1->Emitted(27, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(27, 6) Source(29, 6) + SourceIndex(0) +4 >Emitted(27, 7) Source(29, 7) + SourceIndex(0) +5 >Emitted(27, 15) Source(29, 15) + SourceIndex(0) +6 >Emitted(27, 17) Source(29, 17) + SourceIndex(0) +7 >Emitted(27, 18) Source(29, 18) + SourceIndex(0) +8 >Emitted(27, 26) Source(29, 26) + SourceIndex(0) +9 >Emitted(27, 28) Source(29, 28) + SourceIndex(0) +10>Emitted(27, 37) Source(29, 37) + SourceIndex(0) +11>Emitted(27, 38) Source(29, 38) + SourceIndex(0) +12>Emitted(27, 39) Source(29, 39) + SourceIndex(0) +13>Emitted(27, 40) Source(29, 40) + SourceIndex(0) +14>Emitted(27, 41) Source(29, 41) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js index fea40d4b900b6..a8938a308fe0d 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js @@ -21,14 +21,22 @@ if (nameA == nameA2) { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; -var nameA = robotA[1]; -var numberB = robotB[0]; -var numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2]; +var _a = __read(robotA, 2), nameA = _a[1]; +var _b = __read(robotB, 1), numberB = _b[0]; +var _c = __read(robotA, 3), numberA2 = _c[0], nameA2 = _c[1], skillA2 = _c[2]; var numberC2 = [3, "edging", "Trimming edges"][0]; -var _a = [3, "edging", "Trimming edges"], numberC = _a[0], nameC = _a[1], skillC = _a[2]; -var numberA3 = robotA[0], robotAInfo = robotA.slice(1); +var _d = [3, "edging", "Trimming edges"], numberC = _d[0], nameC = _d[1], skillC = _d[2]; +var _e = __read(robotA), numberA3 = _e[0], robotAInfo = _e.slice(1); if (nameA == nameA2) { console.log(skillA2); } diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map index 85d004a7ec68d..564b63559209c 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAGxC,IAAA,iBAAK,CAAW;AAClB,IAAA,mBAAO,CAAW;AAClB,IAAA,oBAAQ,EAAE,kBAAM,EAAE,mBAAO,CAAW;AAEpC,IAAA,6CAAQ,CAAoC;AAC7C,IAAA,oCAA0D,EAAzD,eAAO,EAAE,aAAK,EAAE,cAAM,CAAoC;AAE1D,IAAA,oBAAQ,EAAE,4BAAa,CAAW;AAEvC,EAAE,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAG3C,IAAA,sBAAkB,EAAf,aAAK,CAAW;AACnB,IAAA,sBAAkB,EAAjB,eAAO,CAAW;AACnB,IAAA,sBAAoC,EAAnC,gBAAQ,EAAE,cAAM,EAAE,eAAO,CAAW;AAEpC,IAAA,6CAAQ,CAAoC;AAC7C,IAAA,oCAA0D,EAAzD,eAAO,EAAE,aAAK,EAAE,cAAM,CAAoC;AAE3D,IAAA,mBAAkC,EAAjC,gBAAQ,EAAE,wBAAa,CAAW;AAEvC,EAAE,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.sourcemap.txt index fbb082b4ecc39..07f1380cf2467 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPattern.ts emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -38,18 +46,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(5, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(5, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(5, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(5, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(5, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(5, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(5, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(5, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(5, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(5, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(5, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(5, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -64,6 +72,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 10> ^^^^^^^^^^ 11> ^ 12> ^ +13> ^^^-> 1-> > 2 >var @@ -77,79 +86,97 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(6, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(6, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(6, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(6, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(6, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(6, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(6, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(6, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(6, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(6, 48) + SourceIndex(0) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(6, 5) + SourceIndex(0) +3 >Emitted(10, 11) Source(6, 11) + SourceIndex(0) +4 >Emitted(10, 14) Source(6, 21) + SourceIndex(0) +5 >Emitted(10, 15) Source(6, 22) + SourceIndex(0) +6 >Emitted(10, 16) Source(6, 23) + SourceIndex(0) +7 >Emitted(10, 18) Source(6, 25) + SourceIndex(0) +8 >Emitted(10, 27) Source(6, 34) + SourceIndex(0) +9 >Emitted(10, 29) Source(6, 36) + SourceIndex(0) +10>Emitted(10, 39) Source(6, 46) + SourceIndex(0) +11>Emitted(10, 40) Source(6, 47) + SourceIndex(0) +12>Emitted(10, 41) Source(6, 48) + SourceIndex(0) --- ->>>var nameA = robotA[1]; -1 > +>>>var _a = __read(robotA, 2), nameA = _a[1]; +1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^-> -1 > +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +7 > ^^^-> +1-> > > - >let [, + >let 2 > -3 > nameA -4 > ] = robotA; -1 >Emitted(3, 1) Source(9, 8) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 8) + SourceIndex(0) -3 >Emitted(3, 22) Source(9, 13) + SourceIndex(0) -4 >Emitted(3, 23) Source(9, 24) + SourceIndex(0) +3 > [, nameA] = robotA +4 > +5 > nameA +6 > ] = robotA; +1->Emitted(11, 1) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(11, 27) Source(9, 23) + SourceIndex(0) +4 >Emitted(11, 29) Source(9, 8) + SourceIndex(0) +5 >Emitted(11, 42) Source(9, 13) + SourceIndex(0) +6 >Emitted(11, 43) Source(9, 24) + SourceIndex(0) --- ->>>var numberB = robotB[0]; +>>>var _b = __read(robotB, 1), numberB = _b[0]; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >let [ + >let 2 > -3 > numberB -4 > ] = robotB; -1->Emitted(4, 1) Source(10, 6) + SourceIndex(0) -2 >Emitted(4, 5) Source(10, 6) + SourceIndex(0) -3 >Emitted(4, 24) Source(10, 13) + SourceIndex(0) -4 >Emitted(4, 25) Source(10, 24) + SourceIndex(0) +3 > [numberB] = robotB +4 > +5 > numberB +6 > ] = robotB; +1->Emitted(12, 1) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(12, 27) Source(10, 23) + SourceIndex(0) +4 >Emitted(12, 29) Source(10, 6) + SourceIndex(0) +5 >Emitted(12, 44) Source(10, 13) + SourceIndex(0) +6 >Emitted(12, 45) Source(10, 24) + SourceIndex(0) --- ->>>var numberA2 = robotA[0], nameA2 = robotA[1], skillA2 = robotA[2]; +>>>var _c = __read(robotA, 3), numberA2 = _c[0], nameA2 = _c[1], skillA2 = _c[2]; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^ -8 > ^ +7 > ^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^ +10> ^ 1-> - >let [ + >let 2 > -3 > numberA2 -4 > , -5 > nameA2 +3 > [numberA2, nameA2, skillA2] = robotA +4 > +5 > numberA2 6 > , -7 > skillA2 -8 > ] = robotA; -1->Emitted(5, 1) Source(11, 6) + SourceIndex(0) -2 >Emitted(5, 5) Source(11, 6) + SourceIndex(0) -3 >Emitted(5, 25) Source(11, 14) + SourceIndex(0) -4 >Emitted(5, 27) Source(11, 16) + SourceIndex(0) -5 >Emitted(5, 45) Source(11, 22) + SourceIndex(0) -6 >Emitted(5, 47) Source(11, 24) + SourceIndex(0) -7 >Emitted(5, 66) Source(11, 31) + SourceIndex(0) -8 >Emitted(5, 67) Source(11, 42) + SourceIndex(0) +7 > nameA2 +8 > , +9 > skillA2 +10> ] = robotA; +1->Emitted(13, 1) Source(11, 5) + SourceIndex(0) +2 >Emitted(13, 5) Source(11, 5) + SourceIndex(0) +3 >Emitted(13, 27) Source(11, 41) + SourceIndex(0) +4 >Emitted(13, 29) Source(11, 6) + SourceIndex(0) +5 >Emitted(13, 45) Source(11, 14) + SourceIndex(0) +6 >Emitted(13, 47) Source(11, 16) + SourceIndex(0) +7 >Emitted(13, 61) Source(11, 22) + SourceIndex(0) +8 >Emitted(13, 63) Source(11, 24) + SourceIndex(0) +9 >Emitted(13, 78) Source(11, 31) + SourceIndex(0) +10>Emitted(13, 79) Source(11, 42) + SourceIndex(0) --- >>>var numberC2 = [3, "edging", "Trimming edges"][0]; 1 > @@ -163,12 +190,12 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 2 > 3 > numberC2 4 > ] = [3, "edging", "Trimming edges"]; -1 >Emitted(6, 1) Source(13, 6) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 6) + SourceIndex(0) -3 >Emitted(6, 50) Source(13, 14) + SourceIndex(0) -4 >Emitted(6, 51) Source(13, 50) + SourceIndex(0) +1 >Emitted(14, 1) Source(13, 6) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 6) + SourceIndex(0) +3 >Emitted(14, 50) Source(13, 14) + SourceIndex(0) +4 >Emitted(14, 51) Source(13, 50) + SourceIndex(0) --- ->>>var _a = [3, "edging", "Trimming edges"], numberC = _a[0], nameC = _a[1], skillC = _a[2]; +>>>var _d = [3, "edging", "Trimming edges"], numberC = _d[0], nameC = _d[1], skillC = _d[2]; 1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -190,38 +217,44 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 8 > , 9 > skillC 10> ] = [3, "edging", "Trimming edges"]; -1->Emitted(7, 1) Source(14, 5) + SourceIndex(0) -2 >Emitted(7, 5) Source(14, 5) + SourceIndex(0) -3 >Emitted(7, 41) Source(14, 63) + SourceIndex(0) -4 >Emitted(7, 43) Source(14, 6) + SourceIndex(0) -5 >Emitted(7, 58) Source(14, 13) + SourceIndex(0) -6 >Emitted(7, 60) Source(14, 15) + SourceIndex(0) -7 >Emitted(7, 73) Source(14, 20) + SourceIndex(0) -8 >Emitted(7, 75) Source(14, 22) + SourceIndex(0) -9 >Emitted(7, 89) Source(14, 28) + SourceIndex(0) -10>Emitted(7, 90) Source(14, 64) + SourceIndex(0) +1->Emitted(15, 1) Source(14, 5) + SourceIndex(0) +2 >Emitted(15, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(15, 41) Source(14, 63) + SourceIndex(0) +4 >Emitted(15, 43) Source(14, 6) + SourceIndex(0) +5 >Emitted(15, 58) Source(14, 13) + SourceIndex(0) +6 >Emitted(15, 60) Source(14, 15) + SourceIndex(0) +7 >Emitted(15, 73) Source(14, 20) + SourceIndex(0) +8 >Emitted(15, 75) Source(14, 22) + SourceIndex(0) +9 >Emitted(15, 89) Source(14, 28) + SourceIndex(0) +10>Emitted(15, 90) Source(14, 64) + SourceIndex(0) --- ->>>var numberA3 = robotA[0], robotAInfo = robotA.slice(1); +>>>var _e = __read(robotA), numberA3 = _e[0], robotAInfo = _e.slice(1); 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ 1 > > - >let [ + >let 2 > -3 > numberA3 -4 > , -5 > ...robotAInfo -6 > ] = robotA; -1 >Emitted(8, 1) Source(16, 6) + SourceIndex(0) -2 >Emitted(8, 5) Source(16, 6) + SourceIndex(0) -3 >Emitted(8, 25) Source(16, 14) + SourceIndex(0) -4 >Emitted(8, 27) Source(16, 16) + SourceIndex(0) -5 >Emitted(8, 55) Source(16, 29) + SourceIndex(0) -6 >Emitted(8, 56) Source(16, 40) + SourceIndex(0) +3 > [numberA3, ...robotAInfo] = robotA +4 > +5 > numberA3 +6 > , +7 > ...robotAInfo +8 > ] = robotA; +1 >Emitted(16, 1) Source(16, 5) + SourceIndex(0) +2 >Emitted(16, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(16, 24) Source(16, 39) + SourceIndex(0) +4 >Emitted(16, 26) Source(16, 6) + SourceIndex(0) +5 >Emitted(16, 42) Source(16, 14) + SourceIndex(0) +6 >Emitted(16, 44) Source(16, 16) + SourceIndex(0) +7 >Emitted(16, 68) Source(16, 29) + SourceIndex(0) +8 >Emitted(16, 69) Source(16, 40) + SourceIndex(0) --- >>>if (nameA == nameA2) { 1 > @@ -247,16 +280,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 8 > ) 9 > 10> { -1 >Emitted(9, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(9, 3) Source(18, 3) + SourceIndex(0) -3 >Emitted(9, 4) Source(18, 4) + SourceIndex(0) -4 >Emitted(9, 5) Source(18, 5) + SourceIndex(0) -5 >Emitted(9, 10) Source(18, 10) + SourceIndex(0) -6 >Emitted(9, 14) Source(18, 14) + SourceIndex(0) -7 >Emitted(9, 20) Source(18, 20) + SourceIndex(0) -8 >Emitted(9, 21) Source(18, 21) + SourceIndex(0) -9 >Emitted(9, 22) Source(18, 22) + SourceIndex(0) -10>Emitted(9, 23) Source(18, 23) + SourceIndex(0) +1 >Emitted(17, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(17, 3) Source(18, 3) + SourceIndex(0) +3 >Emitted(17, 4) Source(18, 4) + SourceIndex(0) +4 >Emitted(17, 5) Source(18, 5) + SourceIndex(0) +5 >Emitted(17, 10) Source(18, 10) + SourceIndex(0) +6 >Emitted(17, 14) Source(18, 14) + SourceIndex(0) +7 >Emitted(17, 20) Source(18, 20) + SourceIndex(0) +8 >Emitted(17, 21) Source(18, 21) + SourceIndex(0) +9 >Emitted(17, 22) Source(18, 22) + SourceIndex(0) +10>Emitted(17, 23) Source(18, 23) + SourceIndex(0) --- >>> console.log(skillA2); 1->^^^^ @@ -276,14 +309,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 6 > skillA2 7 > ) 8 > ; -1->Emitted(10, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(10, 12) Source(19, 12) + SourceIndex(0) -3 >Emitted(10, 13) Source(19, 13) + SourceIndex(0) -4 >Emitted(10, 16) Source(19, 16) + SourceIndex(0) -5 >Emitted(10, 17) Source(19, 17) + SourceIndex(0) -6 >Emitted(10, 24) Source(19, 24) + SourceIndex(0) -7 >Emitted(10, 25) Source(19, 25) + SourceIndex(0) -8 >Emitted(10, 26) Source(19, 26) + SourceIndex(0) +1->Emitted(18, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(18, 12) Source(19, 12) + SourceIndex(0) +3 >Emitted(18, 13) Source(19, 13) + SourceIndex(0) +4 >Emitted(18, 16) Source(19, 16) + SourceIndex(0) +5 >Emitted(18, 17) Source(19, 17) + SourceIndex(0) +6 >Emitted(18, 24) Source(19, 24) + SourceIndex(0) +7 >Emitted(18, 25) Source(19, 25) + SourceIndex(0) +8 >Emitted(18, 26) Source(19, 26) + SourceIndex(0) --- >>>} 1 > @@ -292,7 +325,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern. 1 > > 2 >} -1 >Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 2) Source(20, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(20, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js index b93acc66a10a3..f1577c013f5ff 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js @@ -20,14 +20,22 @@ if (nameMB == nameMA) { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var multiRobotA = ["mower", ["mowing", ""]]; var multiRobotB = ["trimmer", ["trimming", "edging"]]; -var skillA = multiRobotA[1]; -var nameMB = multiRobotB[0]; -var nameMA = multiRobotA[0], _a = multiRobotA[1], primarySkillA = _a[0], secondarySkillA = _a[1]; +var _a = __read(multiRobotA, 2), skillA = _a[1]; +var _b = __read(multiRobotB, 1), nameMB = _b[0]; +var _c = __read(multiRobotA, 2), nameMA = _c[0], _d = __read(_c[1], 2), primarySkillA = _d[0], secondarySkillA = _d[1]; var nameMC = ["roomba", ["vaccum", "mopping"]][0]; -var _b = ["roomba", ["vaccum", "mopping"]], nameMC2 = _b[0], _c = _b[1], primarySkillC = _c[0], secondarySkillC = _c[1]; -var multiRobotAInfo = multiRobotA.slice(0); +var _e = ["roomba", ["vaccum", "mopping"]], nameMC2 = _e[0], _f = __read(_e[1], 2), primarySkillC = _f[0], secondarySkillC = _f[1]; +var _g = __read(multiRobotA), multiRobotAInfo = _g.slice(0); if (nameMB == nameMA) { console.log(skillA[0] + skillA[1]); } diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map index 30ce8c0ea8a7b..5473c8592cf0c 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.ts"],"names":[],"mappings":"AAIA,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElE,IAAA,uBAAM,CAAgB;AACxB,IAAA,uBAAM,CAAgB;AACtB,IAAA,uBAAM,EAAE,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAiB;AAExD,IAAA,6CAAM,CAAsC;AAC7C,IAAA,sCAA+E,EAA9E,eAAO,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAuC;AAE/E,IAAA,sCAAkB,CAAgB;AAEvC,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAErE,IAAA,2BAAwB,EAArB,cAAM,CAAgB;AACzB,IAAA,2BAAsB,EAArB,cAAM,CAAgB;AACvB,IAAA,2BAAwD,EAAvD,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAiB;AAExD,IAAA,6CAAM,CAAsC;AAC7C,IAAA,sCAA+E,EAA9E,eAAO,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAuC;AAEhF,IAAA,wBAAkC,EAAjC,6BAAkB,CAAgB;AAEvC,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.sourcemap.txt index fb2170d1b4635..b47d43e79c5cd 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.t emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var multiRobotA = ["mower", ["mowing", ""]]; 1 > 2 >^^^^ @@ -42,20 +50,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 12> ] 13> ] 14> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 16) Source(5, 16) + SourceIndex(0) -4 >Emitted(1, 19) Source(5, 38) + SourceIndex(0) -5 >Emitted(1, 20) Source(5, 39) + SourceIndex(0) -6 >Emitted(1, 27) Source(5, 46) + SourceIndex(0) -7 >Emitted(1, 29) Source(5, 48) + SourceIndex(0) -8 >Emitted(1, 30) Source(5, 49) + SourceIndex(0) -9 >Emitted(1, 38) Source(5, 57) + SourceIndex(0) -10>Emitted(1, 40) Source(5, 59) + SourceIndex(0) -11>Emitted(1, 42) Source(5, 61) + SourceIndex(0) -12>Emitted(1, 43) Source(5, 62) + SourceIndex(0) -13>Emitted(1, 44) Source(5, 63) + SourceIndex(0) -14>Emitted(1, 45) Source(5, 64) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 16) Source(5, 16) + SourceIndex(0) +4 >Emitted(9, 19) Source(5, 38) + SourceIndex(0) +5 >Emitted(9, 20) Source(5, 39) + SourceIndex(0) +6 >Emitted(9, 27) Source(5, 46) + SourceIndex(0) +7 >Emitted(9, 29) Source(5, 48) + SourceIndex(0) +8 >Emitted(9, 30) Source(5, 49) + SourceIndex(0) +9 >Emitted(9, 38) Source(5, 57) + SourceIndex(0) +10>Emitted(9, 40) Source(5, 59) + SourceIndex(0) +11>Emitted(9, 42) Source(5, 61) + SourceIndex(0) +12>Emitted(9, 43) Source(5, 62) + SourceIndex(0) +13>Emitted(9, 44) Source(5, 63) + SourceIndex(0) +14>Emitted(9, 45) Source(5, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -87,117 +95,135 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 12> ] 13> ] 14> ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(6, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(6, 38) + SourceIndex(0) -5 >Emitted(2, 20) Source(6, 39) + SourceIndex(0) -6 >Emitted(2, 29) Source(6, 48) + SourceIndex(0) -7 >Emitted(2, 31) Source(6, 50) + SourceIndex(0) -8 >Emitted(2, 32) Source(6, 51) + SourceIndex(0) -9 >Emitted(2, 42) Source(6, 61) + SourceIndex(0) -10>Emitted(2, 44) Source(6, 63) + SourceIndex(0) -11>Emitted(2, 52) Source(6, 71) + SourceIndex(0) -12>Emitted(2, 53) Source(6, 72) + SourceIndex(0) -13>Emitted(2, 54) Source(6, 73) + SourceIndex(0) -14>Emitted(2, 55) Source(6, 74) + SourceIndex(0) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(6, 5) + SourceIndex(0) +3 >Emitted(10, 16) Source(6, 16) + SourceIndex(0) +4 >Emitted(10, 19) Source(6, 38) + SourceIndex(0) +5 >Emitted(10, 20) Source(6, 39) + SourceIndex(0) +6 >Emitted(10, 29) Source(6, 48) + SourceIndex(0) +7 >Emitted(10, 31) Source(6, 50) + SourceIndex(0) +8 >Emitted(10, 32) Source(6, 51) + SourceIndex(0) +9 >Emitted(10, 42) Source(6, 61) + SourceIndex(0) +10>Emitted(10, 44) Source(6, 63) + SourceIndex(0) +11>Emitted(10, 52) Source(6, 71) + SourceIndex(0) +12>Emitted(10, 53) Source(6, 72) + SourceIndex(0) +13>Emitted(10, 54) Source(6, 73) + SourceIndex(0) +14>Emitted(10, 55) Source(6, 74) + SourceIndex(0) --- ->>>var skillA = multiRobotA[1]; +>>>var _a = __read(multiRobotA, 2), skillA = _a[1]; 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +7 > ^-> 1 > > - >let [, + >let 2 > -3 > skillA -4 > ] = multiRobotA; -1 >Emitted(3, 1) Source(8, 8) + SourceIndex(0) -2 >Emitted(3, 5) Source(8, 8) + SourceIndex(0) -3 >Emitted(3, 28) Source(8, 14) + SourceIndex(0) -4 >Emitted(3, 29) Source(8, 30) + SourceIndex(0) +3 > [, skillA] = multiRobotA +4 > +5 > skillA +6 > ] = multiRobotA; +1 >Emitted(11, 1) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(11, 32) Source(8, 29) + SourceIndex(0) +4 >Emitted(11, 34) Source(8, 8) + SourceIndex(0) +5 >Emitted(11, 48) Source(8, 14) + SourceIndex(0) +6 >Emitted(11, 49) Source(8, 30) + SourceIndex(0) --- ->>>var nameMB = multiRobotB[0]; +>>>var _b = __read(multiRobotB, 1), nameMB = _b[0]; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >let [ + >let 2 > -3 > nameMB -4 > ] = multiRobotB; -1->Emitted(4, 1) Source(9, 6) + SourceIndex(0) -2 >Emitted(4, 5) Source(9, 6) + SourceIndex(0) -3 >Emitted(4, 28) Source(9, 12) + SourceIndex(0) -4 >Emitted(4, 29) Source(9, 28) + SourceIndex(0) +3 > [nameMB] = multiRobotB +4 > +5 > nameMB +6 > ] = multiRobotB; +1->Emitted(12, 1) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(12, 32) Source(9, 27) + SourceIndex(0) +4 >Emitted(12, 34) Source(9, 6) + SourceIndex(0) +5 >Emitted(12, 48) Source(9, 12) + SourceIndex(0) +6 >Emitted(12, 49) Source(9, 28) + SourceIndex(0) --- ->>>var nameMA = multiRobotA[0], _a = multiRobotA[1], primarySkillA = _a[0], secondarySkillA = _a[1]; +>>>var _c = __read(multiRobotA, 2), nameMA = _c[0], _d = __read(_c[1], 2), primarySkillA = _d[0], secondarySkillA = _d[1]; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^ -10> ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ +12> ^ 1-> - >let [ + >let 2 > -3 > nameMA -4 > , -5 > [primarySkillA, secondarySkillA] -6 > -7 > primarySkillA -8 > , -9 > secondarySkillA -10> ]] = multiRobotA; -1->Emitted(5, 1) Source(10, 6) + SourceIndex(0) -2 >Emitted(5, 5) Source(10, 6) + SourceIndex(0) -3 >Emitted(5, 28) Source(10, 12) + SourceIndex(0) -4 >Emitted(5, 30) Source(10, 14) + SourceIndex(0) -5 >Emitted(5, 49) Source(10, 46) + SourceIndex(0) -6 >Emitted(5, 51) Source(10, 15) + SourceIndex(0) -7 >Emitted(5, 72) Source(10, 28) + SourceIndex(0) -8 >Emitted(5, 74) Source(10, 30) + SourceIndex(0) -9 >Emitted(5, 97) Source(10, 45) + SourceIndex(0) -10>Emitted(5, 98) Source(10, 62) + SourceIndex(0) +3 > [nameMA, [primarySkillA, secondarySkillA]] = multiRobotA +4 > +5 > nameMA +6 > , +7 > [primarySkillA, secondarySkillA] +8 > +9 > primarySkillA +10> , +11> secondarySkillA +12> ]] = multiRobotA; +1->Emitted(13, 1) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(13, 32) Source(10, 61) + SourceIndex(0) +4 >Emitted(13, 34) Source(10, 6) + SourceIndex(0) +5 >Emitted(13, 48) Source(10, 12) + SourceIndex(0) +6 >Emitted(13, 50) Source(10, 14) + SourceIndex(0) +7 >Emitted(13, 71) Source(10, 46) + SourceIndex(0) +8 >Emitted(13, 73) Source(10, 15) + SourceIndex(0) +9 >Emitted(13, 94) Source(10, 28) + SourceIndex(0) +10>Emitted(13, 96) Source(10, 30) + SourceIndex(0) +11>Emitted(13, 119) Source(10, 45) + SourceIndex(0) +12>Emitted(13, 120) Source(10, 62) + SourceIndex(0) --- >>>var nameMC = ["roomba", ["vaccum", "mopping"]][0]; 1 > 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > >let [ 2 > 3 > nameMC 4 > ] = ["roomba", ["vaccum", "mopping"]]; -1 >Emitted(6, 1) Source(12, 6) + SourceIndex(0) -2 >Emitted(6, 5) Source(12, 6) + SourceIndex(0) -3 >Emitted(6, 50) Source(12, 12) + SourceIndex(0) -4 >Emitted(6, 51) Source(12, 50) + SourceIndex(0) +1 >Emitted(14, 1) Source(12, 6) + SourceIndex(0) +2 >Emitted(14, 5) Source(12, 6) + SourceIndex(0) +3 >Emitted(14, 50) Source(12, 12) + SourceIndex(0) +4 >Emitted(14, 51) Source(12, 50) + SourceIndex(0) --- ->>>var _b = ["roomba", ["vaccum", "mopping"]], nameMC2 = _b[0], _c = _b[1], primarySkillC = _c[0], secondarySkillC = _c[1]; +>>>var _e = ["roomba", ["vaccum", "mopping"]], nameMC2 = _e[0], _f = __read(_e[1], 2), primarySkillC = _f[0], secondarySkillC = _f[1]; 1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^ 5 > ^^^^^^^^^^^^^^^ 6 > ^^ -7 > ^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^ -12> ^ +7 > ^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^ +12> ^ 1-> >let 2 > @@ -206,39 +232,45 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 5 > nameMC2 6 > , 7 > [primarySkillC, secondarySkillC] -8 > -9 > primarySkillC -10> , -11> secondarySkillC -12> ]] = ["roomba", ["vaccum", "mopping"]]; -1->Emitted(7, 1) Source(13, 5) + SourceIndex(0) -2 >Emitted(7, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(7, 43) Source(13, 84) + SourceIndex(0) -4 >Emitted(7, 45) Source(13, 6) + SourceIndex(0) -5 >Emitted(7, 60) Source(13, 13) + SourceIndex(0) -6 >Emitted(7, 62) Source(13, 15) + SourceIndex(0) -7 >Emitted(7, 72) Source(13, 47) + SourceIndex(0) -8 >Emitted(7, 74) Source(13, 16) + SourceIndex(0) -9 >Emitted(7, 95) Source(13, 29) + SourceIndex(0) -10>Emitted(7, 97) Source(13, 31) + SourceIndex(0) -11>Emitted(7, 120) Source(13, 46) + SourceIndex(0) -12>Emitted(7, 121) Source(13, 85) + SourceIndex(0) +8 > +9 > primarySkillC +10> , +11> secondarySkillC +12> ]] = ["roomba", ["vaccum", "mopping"]]; +1->Emitted(15, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(15, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(15, 43) Source(13, 84) + SourceIndex(0) +4 >Emitted(15, 45) Source(13, 6) + SourceIndex(0) +5 >Emitted(15, 60) Source(13, 13) + SourceIndex(0) +6 >Emitted(15, 62) Source(13, 15) + SourceIndex(0) +7 >Emitted(15, 83) Source(13, 47) + SourceIndex(0) +8 >Emitted(15, 85) Source(13, 16) + SourceIndex(0) +9 >Emitted(15, 106) Source(13, 29) + SourceIndex(0) +10>Emitted(15, 108) Source(13, 31) + SourceIndex(0) +11>Emitted(15, 131) Source(13, 46) + SourceIndex(0) +12>Emitted(15, 132) Source(13, 85) + SourceIndex(0) --- ->>>var multiRobotAInfo = multiRobotA.slice(0); +>>>var _g = __read(multiRobotA), multiRobotAInfo = _g.slice(0); 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^ 1 > > - >let [ + >let 2 > -3 > ...multiRobotAInfo -4 > ] = multiRobotA; -1 >Emitted(8, 1) Source(15, 6) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 6) + SourceIndex(0) -3 >Emitted(8, 43) Source(15, 24) + SourceIndex(0) -4 >Emitted(8, 44) Source(15, 40) + SourceIndex(0) +3 > [...multiRobotAInfo] = multiRobotA +4 > +5 > ...multiRobotAInfo +6 > ] = multiRobotA; +1 >Emitted(16, 1) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(16, 29) Source(15, 39) + SourceIndex(0) +4 >Emitted(16, 31) Source(15, 6) + SourceIndex(0) +5 >Emitted(16, 60) Source(15, 24) + SourceIndex(0) +6 >Emitted(16, 61) Source(15, 40) + SourceIndex(0) --- >>>if (nameMB == nameMA) { 1 > @@ -264,16 +296,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 8 > ) 9 > 10> { -1 >Emitted(9, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(9, 3) Source(17, 3) + SourceIndex(0) -3 >Emitted(9, 4) Source(17, 4) + SourceIndex(0) -4 >Emitted(9, 5) Source(17, 5) + SourceIndex(0) -5 >Emitted(9, 11) Source(17, 11) + SourceIndex(0) -6 >Emitted(9, 15) Source(17, 15) + SourceIndex(0) -7 >Emitted(9, 21) Source(17, 21) + SourceIndex(0) -8 >Emitted(9, 22) Source(17, 22) + SourceIndex(0) -9 >Emitted(9, 23) Source(17, 23) + SourceIndex(0) -10>Emitted(9, 24) Source(17, 24) + SourceIndex(0) +1 >Emitted(17, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(17, 3) Source(17, 3) + SourceIndex(0) +3 >Emitted(17, 4) Source(17, 4) + SourceIndex(0) +4 >Emitted(17, 5) Source(17, 5) + SourceIndex(0) +5 >Emitted(17, 11) Source(17, 11) + SourceIndex(0) +6 >Emitted(17, 15) Source(17, 15) + SourceIndex(0) +7 >Emitted(17, 21) Source(17, 21) + SourceIndex(0) +8 >Emitted(17, 22) Source(17, 22) + SourceIndex(0) +9 >Emitted(17, 23) Source(17, 23) + SourceIndex(0) +10>Emitted(17, 24) Source(17, 24) + SourceIndex(0) --- >>> console.log(skillA[0] + skillA[1]); 1->^^^^ @@ -309,22 +341,22 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 14> ] 15> ) 16> ; -1->Emitted(10, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(10, 12) Source(18, 12) + SourceIndex(0) -3 >Emitted(10, 13) Source(18, 13) + SourceIndex(0) -4 >Emitted(10, 16) Source(18, 16) + SourceIndex(0) -5 >Emitted(10, 17) Source(18, 17) + SourceIndex(0) -6 >Emitted(10, 23) Source(18, 23) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 24) + SourceIndex(0) -8 >Emitted(10, 25) Source(18, 25) + SourceIndex(0) -9 >Emitted(10, 26) Source(18, 26) + SourceIndex(0) -10>Emitted(10, 29) Source(18, 29) + SourceIndex(0) -11>Emitted(10, 35) Source(18, 35) + SourceIndex(0) -12>Emitted(10, 36) Source(18, 36) + SourceIndex(0) -13>Emitted(10, 37) Source(18, 37) + SourceIndex(0) -14>Emitted(10, 38) Source(18, 38) + SourceIndex(0) -15>Emitted(10, 39) Source(18, 39) + SourceIndex(0) -16>Emitted(10, 40) Source(18, 40) + SourceIndex(0) +1->Emitted(18, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(18, 12) Source(18, 12) + SourceIndex(0) +3 >Emitted(18, 13) Source(18, 13) + SourceIndex(0) +4 >Emitted(18, 16) Source(18, 16) + SourceIndex(0) +5 >Emitted(18, 17) Source(18, 17) + SourceIndex(0) +6 >Emitted(18, 23) Source(18, 23) + SourceIndex(0) +7 >Emitted(18, 24) Source(18, 24) + SourceIndex(0) +8 >Emitted(18, 25) Source(18, 25) + SourceIndex(0) +9 >Emitted(18, 26) Source(18, 26) + SourceIndex(0) +10>Emitted(18, 29) Source(18, 29) + SourceIndex(0) +11>Emitted(18, 35) Source(18, 35) + SourceIndex(0) +12>Emitted(18, 36) Source(18, 36) + SourceIndex(0) +13>Emitted(18, 37) Source(18, 37) + SourceIndex(0) +14>Emitted(18, 38) Source(18, 38) + SourceIndex(0) +15>Emitted(18, 39) Source(18, 39) + SourceIndex(0) +16>Emitted(18, 40) Source(18, 40) + SourceIndex(0) --- >>>} 1 > @@ -333,7 +365,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern2 1 > > 2 >} -1 >Emitted(11, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js index 32862b978db6b..6f03e8d49fad7 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js @@ -57,6 +57,14 @@ function getMultiRobotB() { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var multiRobotA = ["mower", ["mowing", ""]]; @@ -65,29 +73,29 @@ var nameA, numberB, nameB, skillB; var robotAInfo; var multiSkillB, nameMB, primarySkillB, secondarySkillB; var multiRobotAInfo; -nameA = robotA[1]; -_a = getRobotB(), nameB = _a[1]; -_b = [2, "trimmer", "trimming"], nameB = _b[1]; -multiSkillB = multiRobotB[1]; -_c = getMultiRobotB(), multiSkillB = _c[1]; -_d = ["roomba", ["vaccum", "mopping"]], multiSkillB = _d[1]; -numberB = robotB[0]; -numberB = getRobotB()[0]; +_a = __read(robotA, 2), nameA = _a[1]; +_b = __read(getRobotB(), 2), nameB = _b[1]; +_c = [2, "trimmer", "trimming"], nameB = _c[1]; +_d = __read(multiRobotB, 2), multiSkillB = _d[1]; +_e = __read(getMultiRobotB(), 2), multiSkillB = _e[1]; +_f = ["roomba", ["vaccum", "mopping"]], multiSkillB = _f[1]; +_g = __read(robotB, 1), numberB = _g[0]; +_h = __read(getRobotB(), 1), numberB = _h[0]; numberB = [2, "trimmer", "trimming"][0]; -nameMB = multiRobotB[0]; -nameMB = getMultiRobotB()[0]; +_j = __read(multiRobotB, 1), nameMB = _j[0]; +_k = __read(getMultiRobotB(), 1), nameMB = _k[0]; nameMB = ["trimmer", ["trimming", "edging"]][0]; -numberB = robotB[0], nameB = robotB[1], skillB = robotB[2]; -_e = getRobotB(), numberB = _e[0], nameB = _e[1], skillB = _e[2]; -_f = [2, "trimmer", "trimming"], numberB = _f[0], nameB = _f[1], skillB = _f[2]; -nameMB = multiRobotB[0], _g = multiRobotB[1], primarySkillB = _g[0], secondarySkillB = _g[1]; -_h = getMultiRobotB(), nameMB = _h[0], _j = _h[1], primarySkillB = _j[0], secondarySkillB = _j[1]; -_k = ["trimmer", ["trimming", "edging"]], nameMB = _k[0], _l = _k[1], primarySkillB = _l[0], secondarySkillB = _l[1]; -numberB = robotB[0], robotAInfo = robotB.slice(1); -_m = getRobotB(), numberB = _m[0], robotAInfo = _m.slice(1); -_o = [2, "trimmer", "trimming"], numberB = _o[0], robotAInfo = _o.slice(1); -multiRobotAInfo = multiRobotA.slice(0); -multiRobotAInfo = getMultiRobotB().slice(0); +_l = __read(robotB, 3), numberB = _l[0], nameB = _l[1], skillB = _l[2]; +_m = __read(getRobotB(), 3), numberB = _m[0], nameB = _m[1], skillB = _m[2]; +_o = [2, "trimmer", "trimming"], numberB = _o[0], nameB = _o[1], skillB = _o[2]; +_p = __read(multiRobotB, 2), nameMB = _p[0], _q = __read(_p[1], 2), primarySkillB = _q[0], secondarySkillB = _q[1]; +_r = __read(getMultiRobotB(), 2), nameMB = _r[0], _s = __read(_r[1], 2), primarySkillB = _s[0], secondarySkillB = _s[1]; +_t = ["trimmer", ["trimming", "edging"]], nameMB = _t[0], _u = __read(_t[1], 2), primarySkillB = _u[0], secondarySkillB = _u[1]; +_v = __read(robotB), numberB = _v[0], robotAInfo = _v.slice(1); +_w = __read(getRobotB()), numberB = _w[0], robotAInfo = _w.slice(1); +_x = __read([2, "trimmer", "trimming"]), numberB = _x[0], robotAInfo = _x.slice(1); +_y = __read(multiRobotA), multiRobotAInfo = _y.slice(0); +_z = __read(getMultiRobotB()), multiRobotAInfo = _z.slice(0); multiRobotAInfo = ["trimmer", ["trimming", "edging"]].slice(0); if (nameA == nameB) { console.log(skillB); @@ -98,5 +106,5 @@ function getRobotB() { function getMultiRobotB() { return multiRobotB; } -var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z; //# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map index 1b6c788952d26..2411caa8815b1 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzE,IAAI,KAAa,EAAE,OAAe,EAAE,KAAa,EAAE,MAAc,CAAC;AAClE,IAAI,UAA+B,CAAC;AAEpC,IAAI,WAA6B,EAAE,MAAc,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClG,IAAI,eAA8C,CAAC;AAEhD,iBAAK,CAAW;AACnB,gBAAuB,EAApB,aAAK,CAAgB;AACxB,+BAAsC,EAAnC,aAAK,CAA+B;AACpC,4BAAW,CAAgB;AAC9B,qBAAkC,EAA/B,mBAAW,CAAqB;AACnC,sCAAmD,EAAhD,mBAAW,CAAsC;AAEnD,mBAAO,CAAW;AAClB,wBAAO,CAAgB;AACvB,uCAAO,CAA+B;AACtC,uBAAM,CAAgB;AACtB,4BAAM,CAAqB;AAC3B,+CAAM,CAAwC;AAE9C,mBAAO,EAAE,iBAAK,EAAE,kBAAM,CAAW;AAClC,gBAAsC,EAArC,eAAO,EAAE,aAAK,EAAE,cAAM,CAAgB;AACvC,+BAAqD,EAApD,eAAO,EAAE,aAAK,EAAE,cAAM,CAA+B;AACrD,uBAAM,EAAE,mBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAiB;AACzD,qBAA6D,EAA5D,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAsB;AAC9D,wCAAgF,EAA/E,cAAM,EAAE,UAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAyC;AAEhF,mBAAO,EAAE,4BAAa,CAAW;AAClC,gBAAsC,EAArC,eAAO,EAAE,wBAAa,CAAgB;AACvC,+BAA4D,EAA3D,eAAO,EAAE,wBAAa,CAAsC;AAC5D,sCAAkB,CAAgB;AAClC,2CAAkB,CAAqB;AACvC,8DAAkB,CAAwC;AAE3D,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzE,IAAI,KAAa,EAAE,OAAe,EAAE,KAAa,EAAE,MAAc,CAAC;AAClE,IAAI,UAA+B,CAAC;AAEpC,IAAI,WAA6B,EAAE,MAAc,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAClG,IAAI,eAA8C,CAAC;AAEnD,sBAAkB,EAAf,aAAK,CAAW;AACnB,2BAAuB,EAApB,aAAK,CAAgB;AACxB,+BAAsC,EAAnC,aAAK,CAA+B;AACvC,2BAA6B,EAA1B,mBAAW,CAAgB;AAC9B,gCAAkC,EAA/B,mBAAW,CAAqB;AACnC,sCAAmD,EAAhD,mBAAW,CAAsC;AAEpD,sBAAkB,EAAjB,eAAO,CAAW;AACnB,2BAAuB,EAAtB,eAAO,CAAgB;AACvB,uCAAO,CAA+B;AACvC,2BAAsB,EAArB,cAAM,CAAgB;AACvB,gCAA2B,EAA1B,cAAM,CAAqB;AAC3B,+CAAM,CAAwC;AAE/C,sBAAiC,EAAhC,eAAO,EAAE,aAAK,EAAE,cAAM,CAAW;AAClC,2BAAsC,EAArC,eAAO,EAAE,aAAK,EAAE,cAAM,CAAgB;AACvC,+BAAqD,EAApD,eAAO,EAAE,aAAK,EAAE,cAAM,CAA+B;AACtD,2BAAwD,EAAvD,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAiB;AACzD,gCAA6D,EAA5D,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAsB;AAC9D,wCAAgF,EAA/E,cAAM,EAAE,qBAAgC,EAA/B,qBAAa,EAAE,uBAAe,CAAyC;AAEjF,mBAAiC,EAAhC,eAAO,EAAE,wBAAa,CAAW;AAClC,wBAAsC,EAArC,eAAO,EAAE,wBAAa,CAAgB;AACvC,uCAA4D,EAA3D,eAAO,EAAE,wBAAa,CAAsC;AAC7D,wBAAkC,EAAjC,6BAAkB,CAAgB;AACnC,6BAAuC,EAAtC,6BAAkB,CAAqB;AACvC,8DAAkB,CAAwC;AAE3D,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.sourcemap.txt index 466b36630c363..d4ede541f387b 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.t emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +48,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -80,18 +88,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(10, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(10, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(10, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(10, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(10, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(10, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(10, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(10, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(10, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(10, 41) Source(8, 48) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -124,20 +132,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 12> ] 13> ] 14> ; -1->Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 16) Source(9, 16) + SourceIndex(0) -4 >Emitted(3, 19) Source(9, 38) + SourceIndex(0) -5 >Emitted(3, 20) Source(9, 39) + SourceIndex(0) -6 >Emitted(3, 27) Source(9, 46) + SourceIndex(0) -7 >Emitted(3, 29) Source(9, 48) + SourceIndex(0) -8 >Emitted(3, 30) Source(9, 49) + SourceIndex(0) -9 >Emitted(3, 38) Source(9, 57) + SourceIndex(0) -10>Emitted(3, 40) Source(9, 59) + SourceIndex(0) -11>Emitted(3, 42) Source(9, 61) + SourceIndex(0) -12>Emitted(3, 43) Source(9, 62) + SourceIndex(0) -13>Emitted(3, 44) Source(9, 63) + SourceIndex(0) -14>Emitted(3, 45) Source(9, 64) + SourceIndex(0) +1->Emitted(11, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(11, 16) Source(9, 16) + SourceIndex(0) +4 >Emitted(11, 19) Source(9, 38) + SourceIndex(0) +5 >Emitted(11, 20) Source(9, 39) + SourceIndex(0) +6 >Emitted(11, 27) Source(9, 46) + SourceIndex(0) +7 >Emitted(11, 29) Source(9, 48) + SourceIndex(0) +8 >Emitted(11, 30) Source(9, 49) + SourceIndex(0) +9 >Emitted(11, 38) Source(9, 57) + SourceIndex(0) +10>Emitted(11, 40) Source(9, 59) + SourceIndex(0) +11>Emitted(11, 42) Source(9, 61) + SourceIndex(0) +12>Emitted(11, 43) Source(9, 62) + SourceIndex(0) +13>Emitted(11, 44) Source(9, 63) + SourceIndex(0) +14>Emitted(11, 45) Source(9, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -169,20 +177,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 12> ] 13> ] 14> ; -1->Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) -3 >Emitted(4, 16) Source(10, 16) + SourceIndex(0) -4 >Emitted(4, 19) Source(10, 38) + SourceIndex(0) -5 >Emitted(4, 20) Source(10, 39) + SourceIndex(0) -6 >Emitted(4, 29) Source(10, 48) + SourceIndex(0) -7 >Emitted(4, 31) Source(10, 50) + SourceIndex(0) -8 >Emitted(4, 32) Source(10, 51) + SourceIndex(0) -9 >Emitted(4, 42) Source(10, 61) + SourceIndex(0) -10>Emitted(4, 44) Source(10, 63) + SourceIndex(0) -11>Emitted(4, 52) Source(10, 71) + SourceIndex(0) -12>Emitted(4, 53) Source(10, 72) + SourceIndex(0) -13>Emitted(4, 54) Source(10, 73) + SourceIndex(0) -14>Emitted(4, 55) Source(10, 74) + SourceIndex(0) +1->Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(12, 19) Source(10, 38) + SourceIndex(0) +5 >Emitted(12, 20) Source(10, 39) + SourceIndex(0) +6 >Emitted(12, 29) Source(10, 48) + SourceIndex(0) +7 >Emitted(12, 31) Source(10, 50) + SourceIndex(0) +8 >Emitted(12, 32) Source(10, 51) + SourceIndex(0) +9 >Emitted(12, 42) Source(10, 61) + SourceIndex(0) +10>Emitted(12, 44) Source(10, 63) + SourceIndex(0) +11>Emitted(12, 52) Source(10, 71) + SourceIndex(0) +12>Emitted(12, 53) Source(10, 72) + SourceIndex(0) +13>Emitted(12, 54) Source(10, 73) + SourceIndex(0) +14>Emitted(12, 55) Source(10, 74) + SourceIndex(0) --- >>>var nameA, numberB, nameB, skillB; 1 > @@ -207,16 +215,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 8 > , 9 > skillB: string 10> ; -1 >Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 10) Source(12, 18) + SourceIndex(0) -4 >Emitted(5, 12) Source(12, 20) + SourceIndex(0) -5 >Emitted(5, 19) Source(12, 35) + SourceIndex(0) -6 >Emitted(5, 21) Source(12, 37) + SourceIndex(0) -7 >Emitted(5, 26) Source(12, 50) + SourceIndex(0) -8 >Emitted(5, 28) Source(12, 52) + SourceIndex(0) -9 >Emitted(5, 34) Source(12, 66) + SourceIndex(0) -10>Emitted(5, 35) Source(12, 67) + SourceIndex(0) +1 >Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 10) Source(12, 18) + SourceIndex(0) +4 >Emitted(13, 12) Source(12, 20) + SourceIndex(0) +5 >Emitted(13, 19) Source(12, 35) + SourceIndex(0) +6 >Emitted(13, 21) Source(12, 37) + SourceIndex(0) +7 >Emitted(13, 26) Source(12, 50) + SourceIndex(0) +8 >Emitted(13, 28) Source(12, 52) + SourceIndex(0) +9 >Emitted(13, 34) Source(12, 66) + SourceIndex(0) +10>Emitted(13, 35) Source(12, 67) + SourceIndex(0) --- >>>var robotAInfo; 1 > @@ -229,10 +237,10 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 2 >let 3 > robotAInfo: (number | string)[] 4 > ; -1 >Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 15) Source(13, 36) + SourceIndex(0) -4 >Emitted(6, 16) Source(13, 37) + SourceIndex(0) +1 >Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 15) Source(13, 36) + SourceIndex(0) +4 >Emitted(14, 16) Source(13, 37) + SourceIndex(0) --- >>>var multiSkillB, nameMB, primarySkillB, secondarySkillB; 1-> @@ -257,116 +265,130 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 8 > , 9 > secondarySkillB: string 10> ; -1->Emitted(7, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(15, 34) + SourceIndex(0) -4 >Emitted(7, 18) Source(15, 36) + SourceIndex(0) -5 >Emitted(7, 24) Source(15, 50) + SourceIndex(0) -6 >Emitted(7, 26) Source(15, 52) + SourceIndex(0) -7 >Emitted(7, 39) Source(15, 73) + SourceIndex(0) -8 >Emitted(7, 41) Source(15, 75) + SourceIndex(0) -9 >Emitted(7, 56) Source(15, 98) + SourceIndex(0) -10>Emitted(7, 57) Source(15, 99) + SourceIndex(0) +1->Emitted(15, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(15, 16) Source(15, 34) + SourceIndex(0) +4 >Emitted(15, 18) Source(15, 36) + SourceIndex(0) +5 >Emitted(15, 24) Source(15, 50) + SourceIndex(0) +6 >Emitted(15, 26) Source(15, 52) + SourceIndex(0) +7 >Emitted(15, 39) Source(15, 73) + SourceIndex(0) +8 >Emitted(15, 41) Source(15, 75) + SourceIndex(0) +9 >Emitted(15, 56) Source(15, 98) + SourceIndex(0) +10>Emitted(15, 57) Source(15, 99) + SourceIndex(0) --- >>>var multiRobotAInfo; 1 > 2 >^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let 3 > multiRobotAInfo: (string | [string, string])[] 4 > ; -1 >Emitted(8, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(8, 20) Source(16, 51) + SourceIndex(0) -4 >Emitted(8, 21) Source(16, 52) + SourceIndex(0) +1 >Emitted(16, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(16, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(16, 20) Source(16, 51) + SourceIndex(0) +4 >Emitted(16, 21) Source(16, 52) + SourceIndex(0) --- ->>>nameA = robotA[1]; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^-> -1 > +>>>_a = __read(robotA, 2), nameA = _a[1]; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> > - >[, -2 >nameA -3 > ] = robotA; -1 >Emitted(9, 1) Source(18, 4) + SourceIndex(0) -2 >Emitted(9, 18) Source(18, 9) + SourceIndex(0) -3 >Emitted(9, 19) Source(18, 20) + SourceIndex(0) ---- ->>>_a = getRobotB(), nameB = _a[1]; + > +2 >[, nameA] = robotA +3 > +4 > nameA +5 > ] = robotA; +1->Emitted(17, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(17, 23) Source(18, 19) + SourceIndex(0) +3 >Emitted(17, 25) Source(18, 4) + SourceIndex(0) +4 >Emitted(17, 38) Source(18, 9) + SourceIndex(0) +5 >Emitted(17, 39) Source(18, 20) + SourceIndex(0) +--- +>>>_b = __read(getRobotB(), 2), nameB = _b[1]; 1-> -2 >^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^-> 1-> > 2 >[, nameB] = getRobotB() -3 > -4 > nameB -5 > ] = getRobotB(); -1->Emitted(10, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(10, 17) Source(19, 24) + SourceIndex(0) -3 >Emitted(10, 19) Source(19, 4) + SourceIndex(0) -4 >Emitted(10, 32) Source(19, 9) + SourceIndex(0) -5 >Emitted(10, 33) Source(19, 25) + SourceIndex(0) ---- ->>>_b = [2, "trimmer", "trimming"], nameB = _b[1]; +3 > +4 > nameB +5 > ] = getRobotB(); +1->Emitted(18, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 28) Source(19, 24) + SourceIndex(0) +3 >Emitted(18, 30) Source(19, 4) + SourceIndex(0) +4 >Emitted(18, 43) Source(19, 9) + SourceIndex(0) +5 >Emitted(18, 44) Source(19, 25) + SourceIndex(0) +--- +>>>_c = [2, "trimmer", "trimming"], nameB = _c[1]; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ 4 > ^^^^^^^^^^^^^ 5 > ^ +6 > ^^^-> 1-> > 2 >[, nameB] = [2, "trimmer", "trimming"] 3 > 4 > nameB 5 > ] = [2, "trimmer", "trimming"]; -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 32) Source(20, 39) + SourceIndex(0) -3 >Emitted(11, 34) Source(20, 4) + SourceIndex(0) -4 >Emitted(11, 47) Source(20, 9) + SourceIndex(0) -5 >Emitted(11, 48) Source(20, 40) + SourceIndex(0) +1->Emitted(19, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(19, 32) Source(20, 39) + SourceIndex(0) +3 >Emitted(19, 34) Source(20, 4) + SourceIndex(0) +4 >Emitted(19, 47) Source(20, 9) + SourceIndex(0) +5 >Emitted(19, 48) Source(20, 40) + SourceIndex(0) --- ->>>multiSkillB = multiRobotB[1]; -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^-> -1 > - >[, -2 >multiSkillB -3 > ] = multiRobotB; -1 >Emitted(12, 1) Source(21, 4) + SourceIndex(0) -2 >Emitted(12, 29) Source(21, 15) + SourceIndex(0) -3 >Emitted(12, 30) Source(21, 31) + SourceIndex(0) ---- ->>>_c = getMultiRobotB(), multiSkillB = _c[1]; +>>>_d = __read(multiRobotB, 2), multiSkillB = _d[1]; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > +2 >[, multiSkillB] = multiRobotB +3 > +4 > multiSkillB +5 > ] = multiRobotB; +1->Emitted(20, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(20, 28) Source(21, 30) + SourceIndex(0) +3 >Emitted(20, 30) Source(21, 4) + SourceIndex(0) +4 >Emitted(20, 49) Source(21, 15) + SourceIndex(0) +5 >Emitted(20, 50) Source(21, 31) + SourceIndex(0) +--- +>>>_e = __read(getMultiRobotB(), 2), multiSkillB = _e[1]; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^^-> 1-> > 2 >[, multiSkillB] = getMultiRobotB() -3 > -4 > multiSkillB -5 > ] = getMultiRobotB(); -1->Emitted(13, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(13, 22) Source(22, 35) + SourceIndex(0) -3 >Emitted(13, 24) Source(22, 4) + SourceIndex(0) -4 >Emitted(13, 43) Source(22, 15) + SourceIndex(0) -5 >Emitted(13, 44) Source(22, 36) + SourceIndex(0) ---- ->>>_d = ["roomba", ["vaccum", "mopping"]], multiSkillB = _d[1]; +3 > +4 > multiSkillB +5 > ] = getMultiRobotB(); +1->Emitted(21, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(21, 33) Source(22, 35) + SourceIndex(0) +3 >Emitted(21, 35) Source(22, 4) + SourceIndex(0) +4 >Emitted(21, 54) Source(22, 15) + SourceIndex(0) +5 >Emitted(21, 55) Source(22, 36) + SourceIndex(0) +--- +>>>_f = ["roomba", ["vaccum", "mopping"]], multiSkillB = _f[1]; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -378,148 +400,177 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 3 > 4 > multiSkillB 5 > ] = ["roomba", ["vaccum", "mopping"]]; -1->Emitted(14, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(14, 39) Source(23, 52) + SourceIndex(0) -3 >Emitted(14, 41) Source(23, 4) + SourceIndex(0) -4 >Emitted(14, 60) Source(23, 15) + SourceIndex(0) -5 >Emitted(14, 61) Source(23, 53) + SourceIndex(0) +1->Emitted(22, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(22, 39) Source(23, 52) + SourceIndex(0) +3 >Emitted(22, 41) Source(23, 4) + SourceIndex(0) +4 >Emitted(22, 60) Source(23, 15) + SourceIndex(0) +5 >Emitted(22, 61) Source(23, 53) + SourceIndex(0) --- ->>>numberB = robotB[0]; +>>>_g = __read(robotB, 1), numberB = _g[0]; 1 > -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> 1 > > - >[ -2 >numberB -3 > ] = robotB; -1 >Emitted(15, 1) Source(25, 2) + SourceIndex(0) -2 >Emitted(15, 20) Source(25, 9) + SourceIndex(0) -3 >Emitted(15, 21) Source(25, 20) + SourceIndex(0) ---- ->>>numberB = getRobotB()[0]; + > +2 >[numberB] = robotB +3 > +4 > numberB +5 > ] = robotB; +1 >Emitted(23, 1) Source(25, 1) + SourceIndex(0) +2 >Emitted(23, 23) Source(25, 19) + SourceIndex(0) +3 >Emitted(23, 25) Source(25, 2) + SourceIndex(0) +4 >Emitted(23, 40) Source(25, 9) + SourceIndex(0) +5 >Emitted(23, 41) Source(25, 20) + SourceIndex(0) +--- +>>>_h = __read(getRobotB(), 1), numberB = _h[0]; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^ 1-> - >[ -2 >numberB -3 > ] = getRobotB(); -1->Emitted(16, 1) Source(26, 2) + SourceIndex(0) -2 >Emitted(16, 25) Source(26, 9) + SourceIndex(0) -3 >Emitted(16, 26) Source(26, 25) + SourceIndex(0) + > +2 >[numberB] = getRobotB() +3 > +4 > numberB +5 > ] = getRobotB(); +1->Emitted(24, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(24, 28) Source(26, 24) + SourceIndex(0) +3 >Emitted(24, 30) Source(26, 2) + SourceIndex(0) +4 >Emitted(24, 45) Source(26, 9) + SourceIndex(0) +5 >Emitted(24, 46) Source(26, 25) + SourceIndex(0) --- >>>numberB = [2, "trimmer", "trimming"][0]; -1-> +1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^ -1-> +4 > ^^^^^-> +1 > >[ 2 >numberB 3 > ] = [2, "trimmer", "trimming"]; -1->Emitted(17, 1) Source(27, 2) + SourceIndex(0) -2 >Emitted(17, 40) Source(27, 9) + SourceIndex(0) -3 >Emitted(17, 41) Source(27, 40) + SourceIndex(0) +1 >Emitted(25, 1) Source(27, 2) + SourceIndex(0) +2 >Emitted(25, 40) Source(27, 9) + SourceIndex(0) +3 >Emitted(25, 41) Source(27, 40) + SourceIndex(0) --- ->>>nameMB = multiRobotB[0]; -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1 > - >[ -2 >nameMB -3 > ] = multiRobotB; -1 >Emitted(18, 1) Source(28, 2) + SourceIndex(0) -2 >Emitted(18, 24) Source(28, 8) + SourceIndex(0) -3 >Emitted(18, 25) Source(28, 24) + SourceIndex(0) ---- ->>>nameMB = getMultiRobotB()[0]; +>>>_j = __read(multiRobotB, 1), nameMB = _j[0]; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> 1-> - >[ -2 >nameMB -3 > ] = getMultiRobotB(); -1->Emitted(19, 1) Source(29, 2) + SourceIndex(0) -2 >Emitted(19, 29) Source(29, 8) + SourceIndex(0) -3 >Emitted(19, 30) Source(29, 29) + SourceIndex(0) + > +2 >[nameMB] = multiRobotB +3 > +4 > nameMB +5 > ] = multiRobotB; +1->Emitted(26, 1) Source(28, 1) + SourceIndex(0) +2 >Emitted(26, 28) Source(28, 23) + SourceIndex(0) +3 >Emitted(26, 30) Source(28, 2) + SourceIndex(0) +4 >Emitted(26, 44) Source(28, 8) + SourceIndex(0) +5 >Emitted(26, 45) Source(28, 24) + SourceIndex(0) +--- +>>>_k = __read(getMultiRobotB(), 1), nameMB = _k[0]; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +1-> + > +2 >[nameMB] = getMultiRobotB() +3 > +4 > nameMB +5 > ] = getMultiRobotB(); +1->Emitted(27, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(27, 33) Source(29, 28) + SourceIndex(0) +3 >Emitted(27, 35) Source(29, 2) + SourceIndex(0) +4 >Emitted(27, 49) Source(29, 8) + SourceIndex(0) +5 >Emitted(27, 50) Source(29, 29) + SourceIndex(0) --- >>>nameMB = ["trimmer", ["trimming", "edging"]][0]; -1-> +1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^ -4 > ^^^^^^^^^^^^-> -1-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > >[ 2 >nameMB 3 > ] = ["trimmer", ["trimming", "edging"]]; -1->Emitted(20, 1) Source(30, 2) + SourceIndex(0) -2 >Emitted(20, 48) Source(30, 8) + SourceIndex(0) -3 >Emitted(20, 49) Source(30, 48) + SourceIndex(0) +1 >Emitted(28, 1) Source(30, 2) + SourceIndex(0) +2 >Emitted(28, 48) Source(30, 8) + SourceIndex(0) +3 >Emitted(28, 49) Source(30, 48) + SourceIndex(0) --- ->>>numberB = robotB[0], nameB = robotB[1], skillB = robotB[2]; +>>>_l = __read(robotB, 3), numberB = _l[0], nameB = _l[1], skillB = _l[2]; 1-> -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^ +9 > ^ +10> ^^^^^^-> 1-> > - >[ -2 >numberB -3 > , -4 > nameB -5 > , -6 > skillB -7 > ] = robotB; -1->Emitted(21, 1) Source(32, 2) + SourceIndex(0) -2 >Emitted(21, 20) Source(32, 9) + SourceIndex(0) -3 >Emitted(21, 22) Source(32, 11) + SourceIndex(0) -4 >Emitted(21, 39) Source(32, 16) + SourceIndex(0) -5 >Emitted(21, 41) Source(32, 18) + SourceIndex(0) -6 >Emitted(21, 59) Source(32, 24) + SourceIndex(0) -7 >Emitted(21, 60) Source(32, 35) + SourceIndex(0) ---- ->>>_e = getRobotB(), numberB = _e[0], nameB = _e[1], skillB = _e[2]; + > +2 >[numberB, nameB, skillB] = robotB +3 > +4 > numberB +5 > , +6 > nameB +7 > , +8 > skillB +9 > ] = robotB; +1->Emitted(29, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(29, 23) Source(32, 34) + SourceIndex(0) +3 >Emitted(29, 25) Source(32, 2) + SourceIndex(0) +4 >Emitted(29, 40) Source(32, 9) + SourceIndex(0) +5 >Emitted(29, 42) Source(32, 11) + SourceIndex(0) +6 >Emitted(29, 55) Source(32, 16) + SourceIndex(0) +7 >Emitted(29, 57) Source(32, 18) + SourceIndex(0) +8 >Emitted(29, 71) Source(32, 24) + SourceIndex(0) +9 >Emitted(29, 72) Source(32, 35) + SourceIndex(0) +--- +>>>_m = __read(getRobotB(), 3), numberB = _m[0], nameB = _m[1], skillB = _m[2]; 1-> -2 >^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^ -9 > ^ -10> ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^ +9 > ^ +10> ^^^^^-> 1-> > 2 >[numberB, nameB, skillB] = getRobotB() -3 > -4 > numberB -5 > , -6 > nameB -7 > , -8 > skillB -9 > ] = getRobotB(); -1->Emitted(22, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(22, 17) Source(33, 39) + SourceIndex(0) -3 >Emitted(22, 19) Source(33, 2) + SourceIndex(0) -4 >Emitted(22, 34) Source(33, 9) + SourceIndex(0) -5 >Emitted(22, 36) Source(33, 11) + SourceIndex(0) -6 >Emitted(22, 49) Source(33, 16) + SourceIndex(0) -7 >Emitted(22, 51) Source(33, 18) + SourceIndex(0) -8 >Emitted(22, 65) Source(33, 24) + SourceIndex(0) -9 >Emitted(22, 66) Source(33, 40) + SourceIndex(0) ---- ->>>_f = [2, "trimmer", "trimming"], numberB = _f[0], nameB = _f[1], skillB = _f[2]; +3 > +4 > numberB +5 > , +6 > nameB +7 > , +8 > skillB +9 > ] = getRobotB(); +1->Emitted(30, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(30, 28) Source(33, 39) + SourceIndex(0) +3 >Emitted(30, 30) Source(33, 2) + SourceIndex(0) +4 >Emitted(30, 45) Source(33, 9) + SourceIndex(0) +5 >Emitted(30, 47) Source(33, 11) + SourceIndex(0) +6 >Emitted(30, 60) Source(33, 16) + SourceIndex(0) +7 >Emitted(30, 62) Source(33, 18) + SourceIndex(0) +8 >Emitted(30, 76) Source(33, 24) + SourceIndex(0) +9 >Emitted(30, 77) Source(33, 40) + SourceIndex(0) +--- +>>>_o = [2, "trimmer", "trimming"], numberB = _o[0], nameB = _o[1], skillB = _o[2]; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -529,7 +580,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 7 > ^^ 8 > ^^^^^^^^^^^^^^ 9 > ^ -10> ^^^^^^^^^^^^^^-> +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >[numberB, nameB, skillB] = [2, "trimmer", "trimming"] @@ -540,96 +591,102 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 7 > , 8 > skillB 9 > ] = [2, "trimmer", "trimming"]; -1->Emitted(23, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(23, 32) Source(34, 54) + SourceIndex(0) -3 >Emitted(23, 34) Source(34, 2) + SourceIndex(0) -4 >Emitted(23, 49) Source(34, 9) + SourceIndex(0) -5 >Emitted(23, 51) Source(34, 11) + SourceIndex(0) -6 >Emitted(23, 64) Source(34, 16) + SourceIndex(0) -7 >Emitted(23, 66) Source(34, 18) + SourceIndex(0) -8 >Emitted(23, 80) Source(34, 24) + SourceIndex(0) -9 >Emitted(23, 81) Source(34, 55) + SourceIndex(0) ---- ->>>nameMB = multiRobotB[0], _g = multiRobotB[1], primarySkillB = _g[0], secondarySkillB = _g[1]; +1->Emitted(31, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(31, 32) Source(34, 54) + SourceIndex(0) +3 >Emitted(31, 34) Source(34, 2) + SourceIndex(0) +4 >Emitted(31, 49) Source(34, 9) + SourceIndex(0) +5 >Emitted(31, 51) Source(34, 11) + SourceIndex(0) +6 >Emitted(31, 64) Source(34, 16) + SourceIndex(0) +7 >Emitted(31, 66) Source(34, 18) + SourceIndex(0) +8 >Emitted(31, 80) Source(34, 24) + SourceIndex(0) +9 >Emitted(31, 81) Source(34, 55) + SourceIndex(0) +--- +>>>_p = __read(multiRobotB, 2), nameMB = _p[0], _q = __read(_p[1], 2), primarySkillB = _q[0], secondarySkillB = _q[1]; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^ -10> ^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^ +11> ^ +12> ^^^^^^-> 1-> - >[ -2 >nameMB -3 > , -4 > [primarySkillB, secondarySkillB] -5 > -6 > primarySkillB -7 > , -8 > secondarySkillB -9 > ]] = multiRobotB; -1->Emitted(24, 1) Source(35, 2) + SourceIndex(0) -2 >Emitted(24, 24) Source(35, 8) + SourceIndex(0) -3 >Emitted(24, 26) Source(35, 10) + SourceIndex(0) -4 >Emitted(24, 45) Source(35, 42) + SourceIndex(0) -5 >Emitted(24, 47) Source(35, 11) + SourceIndex(0) -6 >Emitted(24, 68) Source(35, 24) + SourceIndex(0) -7 >Emitted(24, 70) Source(35, 26) + SourceIndex(0) -8 >Emitted(24, 93) Source(35, 41) + SourceIndex(0) -9 >Emitted(24, 94) Source(35, 58) + SourceIndex(0) ---- ->>>_h = getMultiRobotB(), nameMB = _h[0], _j = _h[1], primarySkillB = _j[0], secondarySkillB = _j[1]; + > +2 >[nameMB, [primarySkillB, secondarySkillB]] = multiRobotB +3 > +4 > nameMB +5 > , +6 > [primarySkillB, secondarySkillB] +7 > +8 > primarySkillB +9 > , +10> secondarySkillB +11> ]] = multiRobotB; +1->Emitted(32, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(32, 28) Source(35, 57) + SourceIndex(0) +3 >Emitted(32, 30) Source(35, 2) + SourceIndex(0) +4 >Emitted(32, 44) Source(35, 8) + SourceIndex(0) +5 >Emitted(32, 46) Source(35, 10) + SourceIndex(0) +6 >Emitted(32, 67) Source(35, 42) + SourceIndex(0) +7 >Emitted(32, 69) Source(35, 11) + SourceIndex(0) +8 >Emitted(32, 90) Source(35, 24) + SourceIndex(0) +9 >Emitted(32, 92) Source(35, 26) + SourceIndex(0) +10>Emitted(32, 115) Source(35, 41) + SourceIndex(0) +11>Emitted(32, 116) Source(35, 58) + SourceIndex(0) +--- +>>>_r = __read(getMultiRobotB(), 2), nameMB = _r[0], _s = __read(_r[1], 2), primarySkillB = _s[0], secondarySkillB = _s[1]; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^ -11> ^ -12> ^^^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^ +11> ^ +12> ^^^^^^^^^-> 1-> > 2 >[nameMB, [primarySkillB, secondarySkillB]] = getMultiRobotB() -3 > -4 > nameMB -5 > , -6 > [primarySkillB, secondarySkillB] -7 > -8 > primarySkillB -9 > , -10> secondarySkillB -11> ]] = getMultiRobotB(); -1->Emitted(25, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(25, 22) Source(36, 62) + SourceIndex(0) -3 >Emitted(25, 24) Source(36, 2) + SourceIndex(0) -4 >Emitted(25, 38) Source(36, 8) + SourceIndex(0) -5 >Emitted(25, 40) Source(36, 10) + SourceIndex(0) -6 >Emitted(25, 50) Source(36, 42) + SourceIndex(0) -7 >Emitted(25, 52) Source(36, 11) + SourceIndex(0) -8 >Emitted(25, 73) Source(36, 24) + SourceIndex(0) -9 >Emitted(25, 75) Source(36, 26) + SourceIndex(0) -10>Emitted(25, 98) Source(36, 41) + SourceIndex(0) -11>Emitted(25, 99) Source(36, 63) + SourceIndex(0) ---- ->>>_k = ["trimmer", ["trimming", "edging"]], nameMB = _k[0], _l = _k[1], primarySkillB = _l[0], secondarySkillB = _l[1]; +3 > +4 > nameMB +5 > , +6 > [primarySkillB, secondarySkillB] +7 > +8 > primarySkillB +9 > , +10> secondarySkillB +11> ]] = getMultiRobotB(); +1->Emitted(33, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(33, 33) Source(36, 62) + SourceIndex(0) +3 >Emitted(33, 35) Source(36, 2) + SourceIndex(0) +4 >Emitted(33, 49) Source(36, 8) + SourceIndex(0) +5 >Emitted(33, 51) Source(36, 10) + SourceIndex(0) +6 >Emitted(33, 72) Source(36, 42) + SourceIndex(0) +7 >Emitted(33, 74) Source(36, 11) + SourceIndex(0) +8 >Emitted(33, 95) Source(36, 24) + SourceIndex(0) +9 >Emitted(33, 97) Source(36, 26) + SourceIndex(0) +10>Emitted(33, 120) Source(36, 41) + SourceIndex(0) +11>Emitted(33, 121) Source(36, 63) + SourceIndex(0) +--- +>>>_t = ["trimmer", ["trimming", "edging"]], nameMB = _t[0], _u = __read(_t[1], 2), primarySkillB = _u[0], secondarySkillB = _u[1]; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ 4 > ^^^^^^^^^^^^^^ 5 > ^^ -6 > ^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^ -11> ^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^ +11> ^ 1-> > 2 >[nameMB, [primarySkillB, secondarySkillB]] = ["trimmer", ["trimming", "edging"]] @@ -637,117 +694,135 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 4 > nameMB 5 > , 6 > [primarySkillB, secondarySkillB] -7 > -8 > primarySkillB -9 > , -10> secondarySkillB -11> ]] = ["trimmer", ["trimming", "edging"]]; -1->Emitted(26, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(26, 41) Source(37, 81) + SourceIndex(0) -3 >Emitted(26, 43) Source(37, 2) + SourceIndex(0) -4 >Emitted(26, 57) Source(37, 8) + SourceIndex(0) -5 >Emitted(26, 59) Source(37, 10) + SourceIndex(0) -6 >Emitted(26, 69) Source(37, 42) + SourceIndex(0) -7 >Emitted(26, 71) Source(37, 11) + SourceIndex(0) -8 >Emitted(26, 92) Source(37, 24) + SourceIndex(0) -9 >Emitted(26, 94) Source(37, 26) + SourceIndex(0) -10>Emitted(26, 117) Source(37, 41) + SourceIndex(0) -11>Emitted(26, 118) Source(37, 82) + SourceIndex(0) ---- ->>>numberB = robotB[0], robotAInfo = robotB.slice(1); +7 > +8 > primarySkillB +9 > , +10> secondarySkillB +11> ]] = ["trimmer", ["trimming", "edging"]]; +1->Emitted(34, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(34, 41) Source(37, 81) + SourceIndex(0) +3 >Emitted(34, 43) Source(37, 2) + SourceIndex(0) +4 >Emitted(34, 57) Source(37, 8) + SourceIndex(0) +5 >Emitted(34, 59) Source(37, 10) + SourceIndex(0) +6 >Emitted(34, 80) Source(37, 42) + SourceIndex(0) +7 >Emitted(34, 82) Source(37, 11) + SourceIndex(0) +8 >Emitted(34, 103) Source(37, 24) + SourceIndex(0) +9 >Emitted(34, 105) Source(37, 26) + SourceIndex(0) +10>Emitted(34, 128) Source(37, 41) + SourceIndex(0) +11>Emitted(34, 129) Source(37, 82) + SourceIndex(0) +--- +>>>_v = __read(robotB), numberB = _v[0], robotAInfo = _v.slice(1); 1 > 2 >^^^^^^^^^^^^^^^^^^^ 3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^-> 1 > > - >[ -2 >numberB -3 > , -4 > ...robotAInfo -5 > ] = robotB; -1 >Emitted(27, 1) Source(39, 2) + SourceIndex(0) -2 >Emitted(27, 20) Source(39, 9) + SourceIndex(0) -3 >Emitted(27, 22) Source(39, 11) + SourceIndex(0) -4 >Emitted(27, 50) Source(39, 24) + SourceIndex(0) -5 >Emitted(27, 51) Source(39, 35) + SourceIndex(0) ---- ->>>_m = getRobotB(), numberB = _m[0], robotAInfo = _m.slice(1); + > +2 >[numberB, ...robotAInfo] = robotB +3 > +4 > numberB +5 > , +6 > ...robotAInfo +7 > ] = robotB; +1 >Emitted(35, 1) Source(39, 1) + SourceIndex(0) +2 >Emitted(35, 20) Source(39, 34) + SourceIndex(0) +3 >Emitted(35, 22) Source(39, 2) + SourceIndex(0) +4 >Emitted(35, 37) Source(39, 9) + SourceIndex(0) +5 >Emitted(35, 39) Source(39, 11) + SourceIndex(0) +6 >Emitted(35, 63) Source(39, 24) + SourceIndex(0) +7 >Emitted(35, 64) Source(39, 35) + SourceIndex(0) +--- +>>>_w = __read(getRobotB()), numberB = _w[0], robotAInfo = _w.slice(1); 1-> -2 >^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^^^^^^^^^^-> 1-> > 2 >[numberB, ...robotAInfo] = getRobotB() -3 > -4 > numberB -5 > , -6 > ...robotAInfo -7 > ] = getRobotB(); -1->Emitted(28, 1) Source(40, 1) + SourceIndex(0) -2 >Emitted(28, 17) Source(40, 39) + SourceIndex(0) -3 >Emitted(28, 19) Source(40, 2) + SourceIndex(0) -4 >Emitted(28, 34) Source(40, 9) + SourceIndex(0) -5 >Emitted(28, 36) Source(40, 11) + SourceIndex(0) -6 >Emitted(28, 60) Source(40, 24) + SourceIndex(0) -7 >Emitted(28, 61) Source(40, 40) + SourceIndex(0) ---- ->>>_o = [2, "trimmer", "trimming"], numberB = _o[0], robotAInfo = _o.slice(1); +3 > +4 > numberB +5 > , +6 > ...robotAInfo +7 > ] = getRobotB(); +1->Emitted(36, 1) Source(40, 1) + SourceIndex(0) +2 >Emitted(36, 25) Source(40, 39) + SourceIndex(0) +3 >Emitted(36, 27) Source(40, 2) + SourceIndex(0) +4 >Emitted(36, 42) Source(40, 9) + SourceIndex(0) +5 >Emitted(36, 44) Source(40, 11) + SourceIndex(0) +6 >Emitted(36, 68) Source(40, 24) + SourceIndex(0) +7 >Emitted(36, 69) Source(40, 40) + SourceIndex(0) +--- +>>>_x = __read([2, "trimmer", "trimming"]), numberB = _x[0], robotAInfo = _x.slice(1); 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^ +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ 1-> > 2 >[numberB, ...robotAInfo] = [2, "trimmer", "trimming"] -3 > -4 > numberB -5 > , -6 > ...robotAInfo -7 > ] = [2, "trimmer", "trimming"]; -1->Emitted(29, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(29, 32) Source(41, 61) + SourceIndex(0) -3 >Emitted(29, 34) Source(41, 2) + SourceIndex(0) -4 >Emitted(29, 49) Source(41, 9) + SourceIndex(0) -5 >Emitted(29, 51) Source(41, 11) + SourceIndex(0) -6 >Emitted(29, 75) Source(41, 24) + SourceIndex(0) -7 >Emitted(29, 76) Source(41, 62) + SourceIndex(0) ---- ->>>multiRobotAInfo = multiRobotA.slice(0); +3 > +4 > numberB +5 > , +6 > ...robotAInfo +7 > ] = [2, "trimmer", "trimming"]; +1->Emitted(37, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(37, 40) Source(41, 61) + SourceIndex(0) +3 >Emitted(37, 42) Source(41, 2) + SourceIndex(0) +4 >Emitted(37, 57) Source(41, 9) + SourceIndex(0) +5 >Emitted(37, 59) Source(41, 11) + SourceIndex(0) +6 >Emitted(37, 83) Source(41, 24) + SourceIndex(0) +7 >Emitted(37, 84) Source(41, 62) + SourceIndex(0) +--- +>>>_y = __read(multiRobotA), multiRobotAInfo = _y.slice(0); 1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> 1 > - >[ -2 >...multiRobotAInfo -3 > ] = multiRobotA; -1 >Emitted(30, 1) Source(42, 2) + SourceIndex(0) -2 >Emitted(30, 39) Source(42, 20) + SourceIndex(0) -3 >Emitted(30, 40) Source(42, 36) + SourceIndex(0) ---- ->>>multiRobotAInfo = getMultiRobotB().slice(0); + > +2 >[...multiRobotAInfo] = multiRobotA +3 > +4 > ...multiRobotAInfo +5 > ] = multiRobotA; +1 >Emitted(38, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(38, 25) Source(42, 35) + SourceIndex(0) +3 >Emitted(38, 27) Source(42, 2) + SourceIndex(0) +4 >Emitted(38, 56) Source(42, 20) + SourceIndex(0) +5 >Emitted(38, 57) Source(42, 36) + SourceIndex(0) +--- +>>>_z = __read(getMultiRobotB()), multiRobotAInfo = _z.slice(0); 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^-> 1-> - >[ -2 >...multiRobotAInfo -3 > ] = getMultiRobotB(); -1->Emitted(31, 1) Source(43, 2) + SourceIndex(0) -2 >Emitted(31, 44) Source(43, 20) + SourceIndex(0) -3 >Emitted(31, 45) Source(43, 41) + SourceIndex(0) + > +2 >[...multiRobotAInfo] = getMultiRobotB() +3 > +4 > ...multiRobotAInfo +5 > ] = getMultiRobotB(); +1->Emitted(39, 1) Source(43, 1) + SourceIndex(0) +2 >Emitted(39, 30) Source(43, 40) + SourceIndex(0) +3 >Emitted(39, 32) Source(43, 2) + SourceIndex(0) +4 >Emitted(39, 61) Source(43, 20) + SourceIndex(0) +5 >Emitted(39, 62) Source(43, 41) + SourceIndex(0) --- >>>multiRobotAInfo = ["trimmer", ["trimming", "edging"]].slice(0); 1-> @@ -757,9 +832,9 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 >[ 2 >...multiRobotAInfo 3 > ] = ["trimmer", ["trimming", "edging"]]; -1->Emitted(32, 1) Source(44, 2) + SourceIndex(0) -2 >Emitted(32, 63) Source(44, 20) + SourceIndex(0) -3 >Emitted(32, 64) Source(44, 60) + SourceIndex(0) +1->Emitted(40, 1) Source(44, 2) + SourceIndex(0) +2 >Emitted(40, 63) Source(44, 20) + SourceIndex(0) +3 >Emitted(40, 64) Source(44, 60) + SourceIndex(0) --- >>>if (nameA == nameB) { 1 > @@ -785,16 +860,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 8 > ) 9 > 10> { -1 >Emitted(33, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(33, 3) Source(46, 3) + SourceIndex(0) -3 >Emitted(33, 4) Source(46, 4) + SourceIndex(0) -4 >Emitted(33, 5) Source(46, 5) + SourceIndex(0) -5 >Emitted(33, 10) Source(46, 10) + SourceIndex(0) -6 >Emitted(33, 14) Source(46, 14) + SourceIndex(0) -7 >Emitted(33, 19) Source(46, 19) + SourceIndex(0) -8 >Emitted(33, 20) Source(46, 20) + SourceIndex(0) -9 >Emitted(33, 21) Source(46, 21) + SourceIndex(0) -10>Emitted(33, 22) Source(46, 22) + SourceIndex(0) +1 >Emitted(41, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(41, 3) Source(46, 3) + SourceIndex(0) +3 >Emitted(41, 4) Source(46, 4) + SourceIndex(0) +4 >Emitted(41, 5) Source(46, 5) + SourceIndex(0) +5 >Emitted(41, 10) Source(46, 10) + SourceIndex(0) +6 >Emitted(41, 14) Source(46, 14) + SourceIndex(0) +7 >Emitted(41, 19) Source(46, 19) + SourceIndex(0) +8 >Emitted(41, 20) Source(46, 20) + SourceIndex(0) +9 >Emitted(41, 21) Source(46, 21) + SourceIndex(0) +10>Emitted(41, 22) Source(46, 22) + SourceIndex(0) --- >>> console.log(skillB); 1->^^^^ @@ -814,14 +889,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 6 > skillB 7 > ) 8 > ; -1->Emitted(34, 5) Source(47, 5) + SourceIndex(0) -2 >Emitted(34, 12) Source(47, 12) + SourceIndex(0) -3 >Emitted(34, 13) Source(47, 13) + SourceIndex(0) -4 >Emitted(34, 16) Source(47, 16) + SourceIndex(0) -5 >Emitted(34, 17) Source(47, 17) + SourceIndex(0) -6 >Emitted(34, 23) Source(47, 23) + SourceIndex(0) -7 >Emitted(34, 24) Source(47, 24) + SourceIndex(0) -8 >Emitted(34, 25) Source(47, 25) + SourceIndex(0) +1->Emitted(42, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(42, 12) Source(47, 12) + SourceIndex(0) +3 >Emitted(42, 13) Source(47, 13) + SourceIndex(0) +4 >Emitted(42, 16) Source(47, 16) + SourceIndex(0) +5 >Emitted(42, 17) Source(47, 17) + SourceIndex(0) +6 >Emitted(42, 23) Source(47, 23) + SourceIndex(0) +7 >Emitted(42, 24) Source(47, 24) + SourceIndex(0) +8 >Emitted(42, 25) Source(47, 25) + SourceIndex(0) --- >>>} 1 > @@ -830,8 +905,8 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 1 > > 2 >} -1 >Emitted(35, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(35, 2) Source(48, 2) + SourceIndex(0) +1 >Emitted(43, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(43, 2) Source(48, 2) + SourceIndex(0) --- >>>function getRobotB() { 1-> @@ -839,7 +914,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 1-> > > -1->Emitted(36, 1) Source(50, 1) + SourceIndex(0) +1->Emitted(44, 1) Source(50, 1) + SourceIndex(0) --- >>> return robotB; 1->^^^^ @@ -853,11 +928,11 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 3 > 4 > robotB 5 > ; -1->Emitted(37, 5) Source(51, 5) + SourceIndex(0) -2 >Emitted(37, 11) Source(51, 11) + SourceIndex(0) -3 >Emitted(37, 12) Source(51, 12) + SourceIndex(0) -4 >Emitted(37, 18) Source(51, 18) + SourceIndex(0) -5 >Emitted(37, 19) Source(51, 19) + SourceIndex(0) +1->Emitted(45, 5) Source(51, 5) + SourceIndex(0) +2 >Emitted(45, 11) Source(51, 11) + SourceIndex(0) +3 >Emitted(45, 12) Source(51, 12) + SourceIndex(0) +4 >Emitted(45, 18) Source(51, 18) + SourceIndex(0) +5 >Emitted(45, 19) Source(51, 19) + SourceIndex(0) --- >>>} 1 > @@ -866,8 +941,8 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 1 > > 2 >} -1 >Emitted(38, 1) Source(52, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(52, 2) + SourceIndex(0) +1 >Emitted(46, 1) Source(52, 1) + SourceIndex(0) +2 >Emitted(46, 2) Source(52, 2) + SourceIndex(0) --- >>>function getMultiRobotB() { 1-> @@ -875,7 +950,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 1-> > > -1->Emitted(39, 1) Source(54, 1) + SourceIndex(0) +1->Emitted(47, 1) Source(54, 1) + SourceIndex(0) --- >>> return multiRobotB; 1->^^^^ @@ -889,21 +964,21 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPattern3 3 > 4 > multiRobotB 5 > ; -1->Emitted(40, 5) Source(55, 5) + SourceIndex(0) -2 >Emitted(40, 11) Source(55, 11) + SourceIndex(0) -3 >Emitted(40, 12) Source(55, 12) + SourceIndex(0) -4 >Emitted(40, 23) Source(55, 23) + SourceIndex(0) -5 >Emitted(40, 24) Source(55, 24) + SourceIndex(0) +1->Emitted(48, 5) Source(55, 5) + SourceIndex(0) +2 >Emitted(48, 11) Source(55, 11) + SourceIndex(0) +3 >Emitted(48, 12) Source(55, 12) + SourceIndex(0) +4 >Emitted(48, 23) Source(55, 23) + SourceIndex(0) +5 >Emitted(48, 24) Source(55, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(41, 1) Source(56, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(56, 2) + SourceIndex(0) +1 >Emitted(49, 1) Source(56, 1) + SourceIndex(0) +2 >Emitted(49, 2) Source(56, 2) + SourceIndex(0) --- ->>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; +>>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z; >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js index 8cc61944e762f..c0a44bb25a951 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js @@ -20,14 +20,22 @@ if (nameA == nameA2) { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; -var _a = robotA[1], nameA = _a === void 0 ? "noName" : _a; -var _b = robotB[0], numberB = _b === void 0 ? -1 : _b; -var _c = robotA[0], numberA2 = _c === void 0 ? -1 : _c, _d = robotA[1], nameA2 = _d === void 0 ? "noName" : _d, _e = robotA[2], skillA2 = _e === void 0 ? "noSkill" : _e; -var _f = [3, "edging", "Trimming edges"][0], numberC2 = _f === void 0 ? -1 : _f; -var _g = [3, "edging", "Trimming edges"], _h = _g[0], numberC = _h === void 0 ? -1 : _h, _j = _g[1], nameC = _j === void 0 ? "noName" : _j, _k = _g[2], skillC = _k === void 0 ? "noSkill" : _k; -var _l = robotA[0], numberA3 = _l === void 0 ? -1 : _l, robotAInfo = robotA.slice(1); +var _a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; +var _c = __read(robotB, 1), _d = _c[0], numberB = _d === void 0 ? -1 : _d; +var _e = __read(robotA, 3), _f = _e[0], numberA2 = _f === void 0 ? -1 : _f, _g = _e[1], nameA2 = _g === void 0 ? "noName" : _g, _h = _e[2], skillA2 = _h === void 0 ? "noSkill" : _h; +var _j = [3, "edging", "Trimming edges"][0], numberC2 = _j === void 0 ? -1 : _j; +var _k = [3, "edging", "Trimming edges"], _l = _k[0], numberC = _l === void 0 ? -1 : _l, _m = _k[1], nameC = _m === void 0 ? "noName" : _m, _o = _k[2], skillC = _o === void 0 ? "noSkill" : _o; +var _p = __read(robotA), _q = _p[0], numberA3 = _q === void 0 ? -1 : _q, robotAInfo = _p.slice(1); if (nameA == nameA2) { console.log(skillA2); } diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map index eb622ca275b4a..b1bebaf44d2b0 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":"AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAExC,IAAA,cAAgB,EAAhB,qCAAgB,CAAW;AAC7B,IAAA,cAAY,EAAZ,iCAAY,CAAW;AACvB,IAAA,cAAa,EAAb,kCAAa,EAAE,cAAiB,EAAjB,sCAAiB,EAAE,cAAmB,EAAnB,wCAAmB,CAAW;AAEhE,IAAA,uCAAa,EAAb,kCAAa,CAAoC;AAClD,IAAA,oCAAsF,EAArF,UAAY,EAAZ,iCAAY,EAAE,UAAgB,EAAhB,qCAAgB,EAAE,UAAkB,EAAlB,uCAAkB,CAAoC;AAEtF,IAAA,cAAa,EAAb,kCAAa,EAAE,4BAAa,CAAW;AAE5C,EAAE,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAE3C,IAAA,sBAA6B,EAA1B,UAAgB,EAAhB,qCAAgB,CAAW;AAC9B,IAAA,sBAAuB,EAAtB,UAAY,EAAZ,iCAAY,CAAW;AACxB,IAAA,sBAAgE,EAA/D,UAAa,EAAb,kCAAa,EAAE,UAAiB,EAAjB,sCAAiB,EAAE,UAAmB,EAAnB,wCAAmB,CAAW;AAEhE,IAAA,uCAAa,EAAb,kCAAa,CAAoC;AAClD,IAAA,oCAAsF,EAArF,UAAY,EAAZ,iCAAY,EAAE,UAAgB,EAAhB,qCAAgB,EAAE,UAAkB,EAAlB,uCAAkB,CAAoC;AAEvF,IAAA,mBAAuC,EAAtC,UAAa,EAAb,kCAAa,EAAE,wBAAa,CAAW;AAE5C,EAAE,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;IAClB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.sourcemap.txt index 93c8e84f4cdd9..72e87f3882d00 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPatternDef emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -38,18 +46,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(5, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(5, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(5, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(5, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(5, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(5, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(5, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(5, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(5, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(5, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(5, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(5, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(5, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(5, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(5, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(5, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(5, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(5, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(5, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(5, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -64,7 +72,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 10> ^^^^^^^^^^ 11> ^ 12> ^ -13> ^^^^^^^^^^^^^^^^^^^-> +13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -78,109 +86,127 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(6, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(6, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(6, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(6, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(6, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(6, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(6, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(6, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(6, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(6, 48) + SourceIndex(0) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(6, 5) + SourceIndex(0) +3 >Emitted(10, 11) Source(6, 11) + SourceIndex(0) +4 >Emitted(10, 14) Source(6, 21) + SourceIndex(0) +5 >Emitted(10, 15) Source(6, 22) + SourceIndex(0) +6 >Emitted(10, 16) Source(6, 23) + SourceIndex(0) +7 >Emitted(10, 18) Source(6, 25) + SourceIndex(0) +8 >Emitted(10, 27) Source(6, 34) + SourceIndex(0) +9 >Emitted(10, 29) Source(6, 36) + SourceIndex(0) +10>Emitted(10, 39) Source(6, 46) + SourceIndex(0) +11>Emitted(10, 40) Source(6, 47) + SourceIndex(0) +12>Emitted(10, 41) Source(6, 48) + SourceIndex(0) --- ->>>var _a = robotA[1], nameA = _a === void 0 ? "noName" : _a; +>>>var _a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "noName" : _b; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ 1-> > - >let [, + >let 2 > -3 > nameA = "noName" -4 > -5 > nameA = "noName" -6 > ] = robotA; -1->Emitted(3, 1) Source(8, 8) + SourceIndex(0) -2 >Emitted(3, 5) Source(8, 8) + SourceIndex(0) -3 >Emitted(3, 19) Source(8, 24) + SourceIndex(0) -4 >Emitted(3, 21) Source(8, 8) + SourceIndex(0) -5 >Emitted(3, 58) Source(8, 24) + SourceIndex(0) -6 >Emitted(3, 59) Source(8, 35) + SourceIndex(0) +3 > [, nameA = "noName"] = robotA +4 > +5 > nameA = "noName" +6 > +7 > nameA = "noName" +8 > ] = robotA; +1->Emitted(11, 1) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(11, 27) Source(8, 34) + SourceIndex(0) +4 >Emitted(11, 29) Source(8, 8) + SourceIndex(0) +5 >Emitted(11, 39) Source(8, 24) + SourceIndex(0) +6 >Emitted(11, 41) Source(8, 8) + SourceIndex(0) +7 >Emitted(11, 78) Source(8, 24) + SourceIndex(0) +8 >Emitted(11, 79) Source(8, 35) + SourceIndex(0) --- ->>>var _b = robotB[0], numberB = _b === void 0 ? -1 : _b; +>>>var _c = __read(robotB, 1), _d = _c[0], numberB = _d === void 0 ? -1 : _d; 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >let [ + >let 2 > -3 > numberB = -1 -4 > -5 > numberB = -1 -6 > ] = robotB; -1 >Emitted(4, 1) Source(9, 6) + SourceIndex(0) -2 >Emitted(4, 5) Source(9, 6) + SourceIndex(0) -3 >Emitted(4, 19) Source(9, 18) + SourceIndex(0) -4 >Emitted(4, 21) Source(9, 6) + SourceIndex(0) -5 >Emitted(4, 54) Source(9, 18) + SourceIndex(0) -6 >Emitted(4, 55) Source(9, 29) + SourceIndex(0) +3 > [numberB = -1] = robotB +4 > +5 > numberB = -1 +6 > +7 > numberB = -1 +8 > ] = robotB; +1 >Emitted(12, 1) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(12, 27) Source(9, 28) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 6) + SourceIndex(0) +5 >Emitted(12, 39) Source(9, 18) + SourceIndex(0) +6 >Emitted(12, 41) Source(9, 6) + SourceIndex(0) +7 >Emitted(12, 74) Source(9, 18) + SourceIndex(0) +8 >Emitted(12, 75) Source(9, 29) + SourceIndex(0) --- ->>>var _c = robotA[0], numberA2 = _c === void 0 ? -1 : _c, _d = robotA[1], nameA2 = _d === void 0 ? "noName" : _d, _e = robotA[2], skillA2 = _e === void 0 ? "noSkill" : _e; +>>>var _e = __read(robotA, 3), _f = _e[0], numberA2 = _f === void 0 ? -1 : _f, _g = _e[1], nameA2 = _g === void 0 ? "noName" : _g, _h = _e[2], skillA2 = _h === void 0 ? "noSkill" : _h; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^ 1-> - >let [ + >let 2 > -3 > numberA2 = -1 -4 > -5 > numberA2 = -1 -6 > , -7 > nameA2 = "noName" -8 > -9 > nameA2 = "noName" -10> , -11> skillA2 = "noSkill" -12> +3 > [numberA2 = -1, nameA2 = "noName", skillA2 = "noSkill"] = robotA +4 > +5 > numberA2 = -1 +6 > +7 > numberA2 = -1 +8 > , +9 > nameA2 = "noName" +10> +11> nameA2 = "noName" +12> , 13> skillA2 = "noSkill" -14> ] = robotA; -1->Emitted(5, 1) Source(10, 6) + SourceIndex(0) -2 >Emitted(5, 5) Source(10, 6) + SourceIndex(0) -3 >Emitted(5, 19) Source(10, 19) + SourceIndex(0) -4 >Emitted(5, 21) Source(10, 6) + SourceIndex(0) -5 >Emitted(5, 55) Source(10, 19) + SourceIndex(0) -6 >Emitted(5, 57) Source(10, 21) + SourceIndex(0) -7 >Emitted(5, 71) Source(10, 38) + SourceIndex(0) -8 >Emitted(5, 73) Source(10, 21) + SourceIndex(0) -9 >Emitted(5, 111) Source(10, 38) + SourceIndex(0) -10>Emitted(5, 113) Source(10, 40) + SourceIndex(0) -11>Emitted(5, 127) Source(10, 59) + SourceIndex(0) -12>Emitted(5, 129) Source(10, 40) + SourceIndex(0) -13>Emitted(5, 169) Source(10, 59) + SourceIndex(0) -14>Emitted(5, 170) Source(10, 70) + SourceIndex(0) +14> +15> skillA2 = "noSkill" +16> ] = robotA; +1->Emitted(13, 1) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(13, 27) Source(10, 69) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 6) + SourceIndex(0) +5 >Emitted(13, 39) Source(10, 19) + SourceIndex(0) +6 >Emitted(13, 41) Source(10, 6) + SourceIndex(0) +7 >Emitted(13, 75) Source(10, 19) + SourceIndex(0) +8 >Emitted(13, 77) Source(10, 21) + SourceIndex(0) +9 >Emitted(13, 87) Source(10, 38) + SourceIndex(0) +10>Emitted(13, 89) Source(10, 21) + SourceIndex(0) +11>Emitted(13, 127) Source(10, 38) + SourceIndex(0) +12>Emitted(13, 129) Source(10, 40) + SourceIndex(0) +13>Emitted(13, 139) Source(10, 59) + SourceIndex(0) +14>Emitted(13, 141) Source(10, 40) + SourceIndex(0) +15>Emitted(13, 181) Source(10, 59) + SourceIndex(0) +16>Emitted(13, 182) Source(10, 70) + SourceIndex(0) --- ->>>var _f = [3, "edging", "Trimming edges"][0], numberC2 = _f === void 0 ? -1 : _f; +>>>var _j = [3, "edging", "Trimming edges"][0], numberC2 = _j === void 0 ? -1 : _j; 1 > 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -196,14 +222,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 4 > 5 > numberC2 = -1 6 > ] = [3, "edging", "Trimming edges"]; -1 >Emitted(6, 1) Source(12, 6) + SourceIndex(0) -2 >Emitted(6, 5) Source(12, 6) + SourceIndex(0) -3 >Emitted(6, 44) Source(12, 19) + SourceIndex(0) -4 >Emitted(6, 46) Source(12, 6) + SourceIndex(0) -5 >Emitted(6, 80) Source(12, 19) + SourceIndex(0) -6 >Emitted(6, 81) Source(12, 55) + SourceIndex(0) +1 >Emitted(14, 1) Source(12, 6) + SourceIndex(0) +2 >Emitted(14, 5) Source(12, 6) + SourceIndex(0) +3 >Emitted(14, 44) Source(12, 19) + SourceIndex(0) +4 >Emitted(14, 46) Source(12, 6) + SourceIndex(0) +5 >Emitted(14, 80) Source(12, 19) + SourceIndex(0) +6 >Emitted(14, 81) Source(12, 55) + SourceIndex(0) --- ->>>var _g = [3, "edging", "Trimming edges"], _h = _g[0], numberC = _h === void 0 ? -1 : _h, _j = _g[1], nameC = _j === void 0 ? "noName" : _j, _k = _g[2], skillC = _k === void 0 ? "noSkill" : _k; +>>>var _k = [3, "edging", "Trimming edges"], _l = _k[0], numberC = _l === void 0 ? -1 : _l, _m = _k[1], nameC = _m === void 0 ? "noName" : _m, _o = _k[2], skillC = _o === void 0 ? "noSkill" : _o; 1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -237,50 +263,56 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 14> 15> skillC = "noSkill" 16> ] = [3, "edging", "Trimming edges"]; -1->Emitted(7, 1) Source(13, 5) + SourceIndex(0) -2 >Emitted(7, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(7, 41) Source(13, 91) + SourceIndex(0) -4 >Emitted(7, 43) Source(13, 6) + SourceIndex(0) -5 >Emitted(7, 53) Source(13, 18) + SourceIndex(0) -6 >Emitted(7, 55) Source(13, 6) + SourceIndex(0) -7 >Emitted(7, 88) Source(13, 18) + SourceIndex(0) -8 >Emitted(7, 90) Source(13, 20) + SourceIndex(0) -9 >Emitted(7, 100) Source(13, 36) + SourceIndex(0) -10>Emitted(7, 102) Source(13, 20) + SourceIndex(0) -11>Emitted(7, 139) Source(13, 36) + SourceIndex(0) -12>Emitted(7, 141) Source(13, 38) + SourceIndex(0) -13>Emitted(7, 151) Source(13, 56) + SourceIndex(0) -14>Emitted(7, 153) Source(13, 38) + SourceIndex(0) -15>Emitted(7, 192) Source(13, 56) + SourceIndex(0) -16>Emitted(7, 193) Source(13, 92) + SourceIndex(0) +1->Emitted(15, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(15, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(15, 41) Source(13, 91) + SourceIndex(0) +4 >Emitted(15, 43) Source(13, 6) + SourceIndex(0) +5 >Emitted(15, 53) Source(13, 18) + SourceIndex(0) +6 >Emitted(15, 55) Source(13, 6) + SourceIndex(0) +7 >Emitted(15, 88) Source(13, 18) + SourceIndex(0) +8 >Emitted(15, 90) Source(13, 20) + SourceIndex(0) +9 >Emitted(15, 100) Source(13, 36) + SourceIndex(0) +10>Emitted(15, 102) Source(13, 20) + SourceIndex(0) +11>Emitted(15, 139) Source(13, 36) + SourceIndex(0) +12>Emitted(15, 141) Source(13, 38) + SourceIndex(0) +13>Emitted(15, 151) Source(13, 56) + SourceIndex(0) +14>Emitted(15, 153) Source(13, 38) + SourceIndex(0) +15>Emitted(15, 192) Source(13, 56) + SourceIndex(0) +16>Emitted(15, 193) Source(13, 92) + SourceIndex(0) --- ->>>var _l = robotA[0], numberA3 = _l === void 0 ? -1 : _l, robotAInfo = robotA.slice(1); +>>>var _p = __read(robotA), _q = _p[0], numberA3 = _q === void 0 ? -1 : _q, robotAInfo = _p.slice(1); 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^ +10> ^ 1 > > - >let [ + >let 2 > -3 > numberA3 = -1 -4 > -5 > numberA3 = -1 -6 > , -7 > ...robotAInfo -8 > ] = robotA; -1 >Emitted(8, 1) Source(15, 6) + SourceIndex(0) -2 >Emitted(8, 5) Source(15, 6) + SourceIndex(0) -3 >Emitted(8, 19) Source(15, 19) + SourceIndex(0) -4 >Emitted(8, 21) Source(15, 6) + SourceIndex(0) -5 >Emitted(8, 55) Source(15, 19) + SourceIndex(0) -6 >Emitted(8, 57) Source(15, 21) + SourceIndex(0) -7 >Emitted(8, 85) Source(15, 34) + SourceIndex(0) -8 >Emitted(8, 86) Source(15, 45) + SourceIndex(0) +3 > [numberA3 = -1, ...robotAInfo] = robotA +4 > +5 > numberA3 = -1 +6 > +7 > numberA3 = -1 +8 > , +9 > ...robotAInfo +10> ] = robotA; +1 >Emitted(16, 1) Source(15, 5) + SourceIndex(0) +2 >Emitted(16, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(16, 24) Source(15, 44) + SourceIndex(0) +4 >Emitted(16, 26) Source(15, 6) + SourceIndex(0) +5 >Emitted(16, 36) Source(15, 19) + SourceIndex(0) +6 >Emitted(16, 38) Source(15, 6) + SourceIndex(0) +7 >Emitted(16, 72) Source(15, 19) + SourceIndex(0) +8 >Emitted(16, 74) Source(15, 21) + SourceIndex(0) +9 >Emitted(16, 98) Source(15, 34) + SourceIndex(0) +10>Emitted(16, 99) Source(15, 45) + SourceIndex(0) --- >>>if (nameA == nameA2) { 1 > @@ -306,16 +338,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > ) 9 > 10> { -1 >Emitted(9, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(9, 3) Source(17, 3) + SourceIndex(0) -3 >Emitted(9, 4) Source(17, 4) + SourceIndex(0) -4 >Emitted(9, 5) Source(17, 5) + SourceIndex(0) -5 >Emitted(9, 10) Source(17, 10) + SourceIndex(0) -6 >Emitted(9, 14) Source(17, 14) + SourceIndex(0) -7 >Emitted(9, 20) Source(17, 20) + SourceIndex(0) -8 >Emitted(9, 21) Source(17, 21) + SourceIndex(0) -9 >Emitted(9, 22) Source(17, 22) + SourceIndex(0) -10>Emitted(9, 23) Source(17, 23) + SourceIndex(0) +1 >Emitted(17, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(17, 3) Source(17, 3) + SourceIndex(0) +3 >Emitted(17, 4) Source(17, 4) + SourceIndex(0) +4 >Emitted(17, 5) Source(17, 5) + SourceIndex(0) +5 >Emitted(17, 10) Source(17, 10) + SourceIndex(0) +6 >Emitted(17, 14) Source(17, 14) + SourceIndex(0) +7 >Emitted(17, 20) Source(17, 20) + SourceIndex(0) +8 >Emitted(17, 21) Source(17, 21) + SourceIndex(0) +9 >Emitted(17, 22) Source(17, 22) + SourceIndex(0) +10>Emitted(17, 23) Source(17, 23) + SourceIndex(0) --- >>> console.log(skillA2); 1->^^^^ @@ -335,14 +367,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 6 > skillA2 7 > ) 8 > ; -1->Emitted(10, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(10, 12) Source(18, 12) + SourceIndex(0) -3 >Emitted(10, 13) Source(18, 13) + SourceIndex(0) -4 >Emitted(10, 16) Source(18, 16) + SourceIndex(0) -5 >Emitted(10, 17) Source(18, 17) + SourceIndex(0) -6 >Emitted(10, 24) Source(18, 24) + SourceIndex(0) -7 >Emitted(10, 25) Source(18, 25) + SourceIndex(0) -8 >Emitted(10, 26) Source(18, 26) + SourceIndex(0) +1->Emitted(18, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(18, 12) Source(18, 12) + SourceIndex(0) +3 >Emitted(18, 13) Source(18, 13) + SourceIndex(0) +4 >Emitted(18, 16) Source(18, 16) + SourceIndex(0) +5 >Emitted(18, 17) Source(18, 17) + SourceIndex(0) +6 >Emitted(18, 24) Source(18, 24) + SourceIndex(0) +7 >Emitted(18, 25) Source(18, 25) + SourceIndex(0) +8 >Emitted(18, 26) Source(18, 26) + SourceIndex(0) --- >>>} 1 > @@ -351,7 +383,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1 > > 2 >} -1 >Emitted(11, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js index b20e0be4fe03c..cf8e9dce3152a 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js @@ -18,13 +18,21 @@ if (nameMB == nameMA) { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var multiRobotA = ["mower", ["mowing", ""]]; var multiRobotB = ["trimmer", ["trimming", "edging"]]; -var _a = multiRobotA[1], skillA = _a === void 0 ? ["noSkill", "noSkill"] : _a; -var _b = multiRobotB[0], nameMB = _b === void 0 ? "noName" : _b; -var _c = multiRobotA[0], nameMA = _c === void 0 ? "noName" : _c, _d = multiRobotA[1], _e = _d === void 0 ? ["noSkill", "noSkill"] : _d, _f = _e[0], primarySkillA = _f === void 0 ? "noSkill" : _f, _g = _e[1], secondarySkillA = _g === void 0 ? "noSkill" : _g; -var _h = ["roomba", ["vaccum", "mopping"]][0], nameMC = _h === void 0 ? "noName" : _h; -var _j = ["roomba", ["vaccum", "mopping"]], _k = _j[0], nameMC2 = _k === void 0 ? "noName" : _k, _l = _j[1], _m = _l === void 0 ? ["noSkill", "noSkill"] : _l, _o = _m[0], primarySkillC = _o === void 0 ? "noSkill" : _o, _p = _m[1], secondarySkillC = _p === void 0 ? "noSkill" : _p; +var _a = __read(multiRobotA, 2), _b = _a[1], skillA = _b === void 0 ? ["noSkill", "noSkill"] : _b; +var _c = __read(multiRobotB, 1), _d = _c[0], nameMB = _d === void 0 ? "noName" : _d; +var _e = __read(multiRobotA, 2), _f = _e[0], nameMA = _f === void 0 ? "noName" : _f, _g = _e[1], _h = __read(_g === void 0 ? ["noSkill", "noSkill"] : _g, 2), _j = _h[0], primarySkillA = _j === void 0 ? "noSkill" : _j, _k = _h[1], secondarySkillA = _k === void 0 ? "noSkill" : _k; +var _l = ["roomba", ["vaccum", "mopping"]][0], nameMC = _l === void 0 ? "noName" : _l; +var _m = ["roomba", ["vaccum", "mopping"]], _o = _m[0], nameMC2 = _o === void 0 ? "noName" : _o, _p = _m[1], _q = __read(_p === void 0 ? ["noSkill", "noSkill"] : _p, 2), _r = _q[0], primarySkillC = _r === void 0 ? "noSkill" : _r, _s = _q[1], secondarySkillC = _s === void 0 ? "noSkill" : _s; if (nameMB == nameMA) { console.log(skillA[0] + skillA[1]); } diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map index d729035306488..04c3eaad7b081 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":"AAIA,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElE,IAAA,mBAA+B,EAA/B,oDAA+B,CAAgB;AACjD,IAAA,mBAAiB,EAAjB,sCAAiB,CAAiB;AAClC,IAAA,mBAAiB,EAAjB,sCAAiB,EAAE,mBAAiF,EAAjF,gDAAiF,EAAhF,UAAyB,EAAzB,8CAAyB,EAAE,UAA2B,EAA3B,gDAA2B,CAA0C;AAEpH,IAAA,yCAAiB,EAAjB,sCAAiB,CAAuC;AACzD,IAAA,sCAA2I,EAA1I,UAAkB,EAAlB,uCAAkB,EAAE,UAAiF,EAAjF,gDAAiF,EAAhF,UAAyB,EAAzB,8CAAyB,EAAE,UAA2B,EAA3B,gDAA2B,CAAgE;AAEhJ,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":";;;;;;;;AAIA,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAErE,IAAA,2BAAiD,EAA9C,UAA+B,EAA/B,oDAA+B,CAAgB;AAClD,IAAA,2BAAkC,EAAjC,UAAiB,EAAjB,sCAAiB,CAAiB;AACnC,IAAA,2BAAoH,EAAnH,UAAiB,EAAjB,sCAAiB,EAAE,UAAiF,EAAjF,2DAAiF,EAAhF,UAAyB,EAAzB,8CAAyB,EAAE,UAA2B,EAA3B,gDAA2B,CAA0C;AAEpH,IAAA,yCAAiB,EAAjB,sCAAiB,CAAuC;AACzD,IAAA,sCAA2I,EAA1I,UAAkB,EAAlB,uCAAkB,EAAE,UAAiF,EAAjF,2DAAiF,EAAhF,UAAyB,EAAzB,8CAAyB,EAAE,UAA2B,EAA3B,gDAA2B,CAAgE;AAEhJ,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.sourcemap.txt index fc4aa48b1ce05..61301505e127e 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPatternDef emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var multiRobotA = ["mower", ["mowing", ""]]; 1 > 2 >^^^^ @@ -42,20 +50,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 12> ] 13> ] 14> ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 5) + SourceIndex(0) -3 >Emitted(1, 16) Source(5, 16) + SourceIndex(0) -4 >Emitted(1, 19) Source(5, 38) + SourceIndex(0) -5 >Emitted(1, 20) Source(5, 39) + SourceIndex(0) -6 >Emitted(1, 27) Source(5, 46) + SourceIndex(0) -7 >Emitted(1, 29) Source(5, 48) + SourceIndex(0) -8 >Emitted(1, 30) Source(5, 49) + SourceIndex(0) -9 >Emitted(1, 38) Source(5, 57) + SourceIndex(0) -10>Emitted(1, 40) Source(5, 59) + SourceIndex(0) -11>Emitted(1, 42) Source(5, 61) + SourceIndex(0) -12>Emitted(1, 43) Source(5, 62) + SourceIndex(0) -13>Emitted(1, 44) Source(5, 63) + SourceIndex(0) -14>Emitted(1, 45) Source(5, 64) + SourceIndex(0) +1 >Emitted(9, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(9, 16) Source(5, 16) + SourceIndex(0) +4 >Emitted(9, 19) Source(5, 38) + SourceIndex(0) +5 >Emitted(9, 20) Source(5, 39) + SourceIndex(0) +6 >Emitted(9, 27) Source(5, 46) + SourceIndex(0) +7 >Emitted(9, 29) Source(5, 48) + SourceIndex(0) +8 >Emitted(9, 30) Source(5, 49) + SourceIndex(0) +9 >Emitted(9, 38) Source(5, 57) + SourceIndex(0) +10>Emitted(9, 40) Source(5, 59) + SourceIndex(0) +11>Emitted(9, 42) Source(5, 61) + SourceIndex(0) +12>Emitted(9, 43) Source(5, 62) + SourceIndex(0) +13>Emitted(9, 44) Source(5, 63) + SourceIndex(0) +14>Emitted(9, 45) Source(5, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -72,7 +80,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 12> ^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^-> +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -88,130 +96,148 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 12> ] 13> ] 14> ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 5) + SourceIndex(0) -3 >Emitted(2, 16) Source(6, 16) + SourceIndex(0) -4 >Emitted(2, 19) Source(6, 38) + SourceIndex(0) -5 >Emitted(2, 20) Source(6, 39) + SourceIndex(0) -6 >Emitted(2, 29) Source(6, 48) + SourceIndex(0) -7 >Emitted(2, 31) Source(6, 50) + SourceIndex(0) -8 >Emitted(2, 32) Source(6, 51) + SourceIndex(0) -9 >Emitted(2, 42) Source(6, 61) + SourceIndex(0) -10>Emitted(2, 44) Source(6, 63) + SourceIndex(0) -11>Emitted(2, 52) Source(6, 71) + SourceIndex(0) -12>Emitted(2, 53) Source(6, 72) + SourceIndex(0) -13>Emitted(2, 54) Source(6, 73) + SourceIndex(0) -14>Emitted(2, 55) Source(6, 74) + SourceIndex(0) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(6, 5) + SourceIndex(0) +3 >Emitted(10, 16) Source(6, 16) + SourceIndex(0) +4 >Emitted(10, 19) Source(6, 38) + SourceIndex(0) +5 >Emitted(10, 20) Source(6, 39) + SourceIndex(0) +6 >Emitted(10, 29) Source(6, 48) + SourceIndex(0) +7 >Emitted(10, 31) Source(6, 50) + SourceIndex(0) +8 >Emitted(10, 32) Source(6, 51) + SourceIndex(0) +9 >Emitted(10, 42) Source(6, 61) + SourceIndex(0) +10>Emitted(10, 44) Source(6, 63) + SourceIndex(0) +11>Emitted(10, 52) Source(6, 71) + SourceIndex(0) +12>Emitted(10, 53) Source(6, 72) + SourceIndex(0) +13>Emitted(10, 54) Source(6, 73) + SourceIndex(0) +14>Emitted(10, 55) Source(6, 74) + SourceIndex(0) --- ->>>var _a = multiRobotA[1], skillA = _a === void 0 ? ["noSkill", "noSkill"] : _a; +>>>var _a = __read(multiRobotA, 2), _b = _a[1], skillA = _b === void 0 ? ["noSkill", "noSkill"] : _b; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ 1-> > - >let [, + >let 2 > -3 > skillA = ["noSkill", "noSkill"] -4 > -5 > skillA = ["noSkill", "noSkill"] -6 > ] = multiRobotA; -1->Emitted(3, 1) Source(8, 8) + SourceIndex(0) -2 >Emitted(3, 5) Source(8, 8) + SourceIndex(0) -3 >Emitted(3, 24) Source(8, 39) + SourceIndex(0) -4 >Emitted(3, 26) Source(8, 8) + SourceIndex(0) -5 >Emitted(3, 78) Source(8, 39) + SourceIndex(0) -6 >Emitted(3, 79) Source(8, 55) + SourceIndex(0) +3 > [, skillA = ["noSkill", "noSkill"]] = multiRobotA +4 > +5 > skillA = ["noSkill", "noSkill"] +6 > +7 > skillA = ["noSkill", "noSkill"] +8 > ] = multiRobotA; +1->Emitted(11, 1) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(11, 32) Source(8, 54) + SourceIndex(0) +4 >Emitted(11, 34) Source(8, 8) + SourceIndex(0) +5 >Emitted(11, 44) Source(8, 39) + SourceIndex(0) +6 >Emitted(11, 46) Source(8, 8) + SourceIndex(0) +7 >Emitted(11, 98) Source(8, 39) + SourceIndex(0) +8 >Emitted(11, 99) Source(8, 55) + SourceIndex(0) --- ->>>var _b = multiRobotB[0], nameMB = _b === void 0 ? "noName" : _b; +>>>var _c = __read(multiRobotB, 1), _d = _c[0], nameMB = _d === void 0 ? "noName" : _d; 1 > 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >let [ + >let 2 > -3 > nameMB = "noName" -4 > -5 > nameMB = "noName" -6 > ] = multiRobotB; -1 >Emitted(4, 1) Source(9, 6) + SourceIndex(0) -2 >Emitted(4, 5) Source(9, 6) + SourceIndex(0) -3 >Emitted(4, 24) Source(9, 23) + SourceIndex(0) -4 >Emitted(4, 26) Source(9, 6) + SourceIndex(0) -5 >Emitted(4, 64) Source(9, 23) + SourceIndex(0) -6 >Emitted(4, 65) Source(9, 40) + SourceIndex(0) +3 > [nameMB = "noName" ] = multiRobotB +4 > +5 > nameMB = "noName" +6 > +7 > nameMB = "noName" +8 > ] = multiRobotB; +1 >Emitted(12, 1) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(12, 32) Source(9, 39) + SourceIndex(0) +4 >Emitted(12, 34) Source(9, 6) + SourceIndex(0) +5 >Emitted(12, 44) Source(9, 23) + SourceIndex(0) +6 >Emitted(12, 46) Source(9, 6) + SourceIndex(0) +7 >Emitted(12, 84) Source(9, 23) + SourceIndex(0) +8 >Emitted(12, 85) Source(9, 40) + SourceIndex(0) --- ->>>var _c = multiRobotA[0], nameMA = _c === void 0 ? "noName" : _c, _d = multiRobotA[1], _e = _d === void 0 ? ["noSkill", "noSkill"] : _d, _f = _e[0], primarySkillA = _f === void 0 ? "noSkill" : _f, _g = _e[1], secondarySkillA = _g === void 0 ? "noSkill" : _g; +>>>var _e = __read(multiRobotA, 2), _f = _e[0], nameMA = _f === void 0 ? "noName" : _f, _g = _e[1], _h = __read(_g === void 0 ? ["noSkill", "noSkill"] : _g, 2), _j = _h[0], primarySkillA = _j === void 0 ? "noSkill" : _j, _k = _h[1], secondarySkillA = _k === void 0 ? "noSkill" : _k; 1-> 2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -10> ^^ -11> ^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -18> ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^^ +9 > ^^^^^^^^^^ +10> ^^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^ 1-> - >let [ + >let 2 > -3 > nameMA = "noName" -4 > -5 > nameMA = "noName" -6 > , -7 > [primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"] -8 > -9 > [primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"] -10> -11> primarySkillA = "noSkill" -12> -13> primarySkillA = "noSkill" -14> , -15> secondarySkillA = "noSkill" -16> -17> secondarySkillA = "noSkill" -18> ] = ["noSkill", "noSkill"]] = multiRobotA; -1->Emitted(5, 1) Source(10, 6) + SourceIndex(0) -2 >Emitted(5, 5) Source(10, 6) + SourceIndex(0) -3 >Emitted(5, 24) Source(10, 23) + SourceIndex(0) -4 >Emitted(5, 26) Source(10, 6) + SourceIndex(0) -5 >Emitted(5, 64) Source(10, 23) + SourceIndex(0) -6 >Emitted(5, 66) Source(10, 25) + SourceIndex(0) -7 >Emitted(5, 85) Source(10, 106) + SourceIndex(0) -8 >Emitted(5, 87) Source(10, 25) + SourceIndex(0) -9 >Emitted(5, 135) Source(10, 106) + SourceIndex(0) -10>Emitted(5, 137) Source(10, 26) + SourceIndex(0) -11>Emitted(5, 147) Source(10, 51) + SourceIndex(0) -12>Emitted(5, 149) Source(10, 26) + SourceIndex(0) -13>Emitted(5, 195) Source(10, 51) + SourceIndex(0) -14>Emitted(5, 197) Source(10, 53) + SourceIndex(0) -15>Emitted(5, 207) Source(10, 80) + SourceIndex(0) -16>Emitted(5, 209) Source(10, 53) + SourceIndex(0) -17>Emitted(5, 257) Source(10, 80) + SourceIndex(0) -18>Emitted(5, 258) Source(10, 122) + SourceIndex(0) +3 > [nameMA = "noName", [primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"]] = multiRobotA +4 > +5 > nameMA = "noName" +6 > +7 > nameMA = "noName" +8 > , +9 > [primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"] +10> +11> [primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"] +12> +13> primarySkillA = "noSkill" +14> +15> primarySkillA = "noSkill" +16> , +17> secondarySkillA = "noSkill" +18> +19> secondarySkillA = "noSkill" +20> ] = ["noSkill", "noSkill"]] = multiRobotA; +1->Emitted(13, 1) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(13, 32) Source(10, 121) + SourceIndex(0) +4 >Emitted(13, 34) Source(10, 6) + SourceIndex(0) +5 >Emitted(13, 44) Source(10, 23) + SourceIndex(0) +6 >Emitted(13, 46) Source(10, 6) + SourceIndex(0) +7 >Emitted(13, 84) Source(10, 23) + SourceIndex(0) +8 >Emitted(13, 86) Source(10, 25) + SourceIndex(0) +9 >Emitted(13, 96) Source(10, 106) + SourceIndex(0) +10>Emitted(13, 98) Source(10, 25) + SourceIndex(0) +11>Emitted(13, 157) Source(10, 106) + SourceIndex(0) +12>Emitted(13, 159) Source(10, 26) + SourceIndex(0) +13>Emitted(13, 169) Source(10, 51) + SourceIndex(0) +14>Emitted(13, 171) Source(10, 26) + SourceIndex(0) +15>Emitted(13, 217) Source(10, 51) + SourceIndex(0) +16>Emitted(13, 219) Source(10, 53) + SourceIndex(0) +17>Emitted(13, 229) Source(10, 80) + SourceIndex(0) +18>Emitted(13, 231) Source(10, 53) + SourceIndex(0) +19>Emitted(13, 279) Source(10, 80) + SourceIndex(0) +20>Emitted(13, 280) Source(10, 122) + SourceIndex(0) --- ->>>var _h = ["roomba", ["vaccum", "mopping"]][0], nameMC = _h === void 0 ? "noName" : _h; +>>>var _l = ["roomba", ["vaccum", "mopping"]][0], nameMC = _l === void 0 ? "noName" : _l; 1 > 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^ 5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > >let [ @@ -220,14 +246,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 4 > 5 > nameMC = "noName" 6 > ] = ["roomba", ["vaccum", "mopping"]]; -1 >Emitted(6, 1) Source(12, 6) + SourceIndex(0) -2 >Emitted(6, 5) Source(12, 6) + SourceIndex(0) -3 >Emitted(6, 46) Source(12, 23) + SourceIndex(0) -4 >Emitted(6, 48) Source(12, 6) + SourceIndex(0) -5 >Emitted(6, 86) Source(12, 23) + SourceIndex(0) -6 >Emitted(6, 87) Source(12, 62) + SourceIndex(0) +1 >Emitted(14, 1) Source(12, 6) + SourceIndex(0) +2 >Emitted(14, 5) Source(12, 6) + SourceIndex(0) +3 >Emitted(14, 46) Source(12, 23) + SourceIndex(0) +4 >Emitted(14, 48) Source(12, 6) + SourceIndex(0) +5 >Emitted(14, 86) Source(12, 23) + SourceIndex(0) +6 >Emitted(14, 87) Source(12, 62) + SourceIndex(0) --- ->>>var _j = ["roomba", ["vaccum", "mopping"]], _k = _j[0], nameMC2 = _k === void 0 ? "noName" : _k, _l = _j[1], _m = _l === void 0 ? ["noSkill", "noSkill"] : _l, _o = _m[0], primarySkillC = _o === void 0 ? "noSkill" : _o, _p = _m[1], secondarySkillC = _p === void 0 ? "noSkill" : _p; +>>>var _m = ["roomba", ["vaccum", "mopping"]], _o = _m[0], nameMC2 = _o === void 0 ? "noName" : _o, _p = _m[1], _q = __read(_p === void 0 ? ["noSkill", "noSkill"] : _p, 2), _r = _q[0], primarySkillC = _r === void 0 ? "noSkill" : _r, _s = _q[1], secondarySkillC = _s === void 0 ? "noSkill" : _s; 1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -238,16 +264,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > ^^ 9 > ^^^^^^^^^^ 10> ^^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^^ -17> ^^^^^^^^^^ -18> ^^ -19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -20> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^^ +15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16> ^^ +17> ^^^^^^^^^^ +18> ^^ +19> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20> ^ 1-> >let 2 > @@ -260,35 +286,35 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 9 > [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"] 10> 11> [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"] -12> -13> primarySkillC = "noSkill" -14> -15> primarySkillC = "noSkill" -16> , -17> secondarySkillC = "noSkill" -18> -19> secondarySkillC = "noSkill" -20> ] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]]; -1->Emitted(7, 1) Source(13, 5) + SourceIndex(0) -2 >Emitted(7, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(7, 43) Source(13, 144) + SourceIndex(0) -4 >Emitted(7, 45) Source(13, 6) + SourceIndex(0) -5 >Emitted(7, 55) Source(13, 24) + SourceIndex(0) -6 >Emitted(7, 57) Source(13, 6) + SourceIndex(0) -7 >Emitted(7, 96) Source(13, 24) + SourceIndex(0) -8 >Emitted(7, 98) Source(13, 26) + SourceIndex(0) -9 >Emitted(7, 108) Source(13, 107) + SourceIndex(0) -10>Emitted(7, 110) Source(13, 26) + SourceIndex(0) -11>Emitted(7, 158) Source(13, 107) + SourceIndex(0) -12>Emitted(7, 160) Source(13, 27) + SourceIndex(0) -13>Emitted(7, 170) Source(13, 52) + SourceIndex(0) -14>Emitted(7, 172) Source(13, 27) + SourceIndex(0) -15>Emitted(7, 218) Source(13, 52) + SourceIndex(0) -16>Emitted(7, 220) Source(13, 54) + SourceIndex(0) -17>Emitted(7, 230) Source(13, 81) + SourceIndex(0) -18>Emitted(7, 232) Source(13, 54) + SourceIndex(0) -19>Emitted(7, 280) Source(13, 81) + SourceIndex(0) -20>Emitted(7, 281) Source(13, 145) + SourceIndex(0) +12> +13> primarySkillC = "noSkill" +14> +15> primarySkillC = "noSkill" +16> , +17> secondarySkillC = "noSkill" +18> +19> secondarySkillC = "noSkill" +20> ] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]]; +1->Emitted(15, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(15, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(15, 43) Source(13, 144) + SourceIndex(0) +4 >Emitted(15, 45) Source(13, 6) + SourceIndex(0) +5 >Emitted(15, 55) Source(13, 24) + SourceIndex(0) +6 >Emitted(15, 57) Source(13, 6) + SourceIndex(0) +7 >Emitted(15, 96) Source(13, 24) + SourceIndex(0) +8 >Emitted(15, 98) Source(13, 26) + SourceIndex(0) +9 >Emitted(15, 108) Source(13, 107) + SourceIndex(0) +10>Emitted(15, 110) Source(13, 26) + SourceIndex(0) +11>Emitted(15, 169) Source(13, 107) + SourceIndex(0) +12>Emitted(15, 171) Source(13, 27) + SourceIndex(0) +13>Emitted(15, 181) Source(13, 52) + SourceIndex(0) +14>Emitted(15, 183) Source(13, 27) + SourceIndex(0) +15>Emitted(15, 229) Source(13, 52) + SourceIndex(0) +16>Emitted(15, 231) Source(13, 54) + SourceIndex(0) +17>Emitted(15, 241) Source(13, 81) + SourceIndex(0) +18>Emitted(15, 243) Source(13, 54) + SourceIndex(0) +19>Emitted(15, 291) Source(13, 81) + SourceIndex(0) +20>Emitted(15, 292) Source(13, 145) + SourceIndex(0) --- >>>if (nameMB == nameMA) { 1 > @@ -314,16 +340,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > ) 9 > 10> { -1 >Emitted(8, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(8, 3) Source(15, 3) + SourceIndex(0) -3 >Emitted(8, 4) Source(15, 4) + SourceIndex(0) -4 >Emitted(8, 5) Source(15, 5) + SourceIndex(0) -5 >Emitted(8, 11) Source(15, 11) + SourceIndex(0) -6 >Emitted(8, 15) Source(15, 15) + SourceIndex(0) -7 >Emitted(8, 21) Source(15, 21) + SourceIndex(0) -8 >Emitted(8, 22) Source(15, 22) + SourceIndex(0) -9 >Emitted(8, 23) Source(15, 23) + SourceIndex(0) -10>Emitted(8, 24) Source(15, 24) + SourceIndex(0) +1 >Emitted(16, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(16, 3) Source(15, 3) + SourceIndex(0) +3 >Emitted(16, 4) Source(15, 4) + SourceIndex(0) +4 >Emitted(16, 5) Source(15, 5) + SourceIndex(0) +5 >Emitted(16, 11) Source(15, 11) + SourceIndex(0) +6 >Emitted(16, 15) Source(15, 15) + SourceIndex(0) +7 >Emitted(16, 21) Source(15, 21) + SourceIndex(0) +8 >Emitted(16, 22) Source(15, 22) + SourceIndex(0) +9 >Emitted(16, 23) Source(15, 23) + SourceIndex(0) +10>Emitted(16, 24) Source(15, 24) + SourceIndex(0) --- >>> console.log(skillA[0] + skillA[1]); 1->^^^^ @@ -359,22 +385,22 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 14> ] 15> ) 16> ; -1->Emitted(9, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(9, 12) Source(16, 12) + SourceIndex(0) -3 >Emitted(9, 13) Source(16, 13) + SourceIndex(0) -4 >Emitted(9, 16) Source(16, 16) + SourceIndex(0) -5 >Emitted(9, 17) Source(16, 17) + SourceIndex(0) -6 >Emitted(9, 23) Source(16, 23) + SourceIndex(0) -7 >Emitted(9, 24) Source(16, 24) + SourceIndex(0) -8 >Emitted(9, 25) Source(16, 25) + SourceIndex(0) -9 >Emitted(9, 26) Source(16, 26) + SourceIndex(0) -10>Emitted(9, 29) Source(16, 29) + SourceIndex(0) -11>Emitted(9, 35) Source(16, 35) + SourceIndex(0) -12>Emitted(9, 36) Source(16, 36) + SourceIndex(0) -13>Emitted(9, 37) Source(16, 37) + SourceIndex(0) -14>Emitted(9, 38) Source(16, 38) + SourceIndex(0) -15>Emitted(9, 39) Source(16, 39) + SourceIndex(0) -16>Emitted(9, 40) Source(16, 40) + SourceIndex(0) +1->Emitted(17, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(17, 12) Source(16, 12) + SourceIndex(0) +3 >Emitted(17, 13) Source(16, 13) + SourceIndex(0) +4 >Emitted(17, 16) Source(16, 16) + SourceIndex(0) +5 >Emitted(17, 17) Source(16, 17) + SourceIndex(0) +6 >Emitted(17, 23) Source(16, 23) + SourceIndex(0) +7 >Emitted(17, 24) Source(16, 24) + SourceIndex(0) +8 >Emitted(17, 25) Source(16, 25) + SourceIndex(0) +9 >Emitted(17, 26) Source(16, 26) + SourceIndex(0) +10>Emitted(17, 29) Source(16, 29) + SourceIndex(0) +11>Emitted(17, 35) Source(16, 35) + SourceIndex(0) +12>Emitted(17, 36) Source(16, 36) + SourceIndex(0) +13>Emitted(17, 37) Source(16, 37) + SourceIndex(0) +14>Emitted(17, 38) Source(16, 38) + SourceIndex(0) +15>Emitted(17, 39) Source(16, 39) + SourceIndex(0) +16>Emitted(17, 40) Source(16, 40) + SourceIndex(0) --- >>>} 1 > @@ -383,7 +409,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1 > > 2 >} -1 >Emitted(10, 1) Source(17, 1) + SourceIndex(0) -2 >Emitted(10, 2) Source(17, 2) + SourceIndex(0) +1 >Emitted(18, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(18, 2) Source(17, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js index deb2680000fc1..b3ce220db3e6c 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js @@ -55,6 +55,14 @@ function getMultiRobotB() { } //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var robotA = [1, "mower", "mowing"]; var robotB = [2, "trimmer", "trimming"]; var multiRobotA = ["mower", ["mowing", ""]]; @@ -63,27 +71,27 @@ var nameA, numberB, nameB, skillB; var robotAInfo; var multiSkillB, nameMB, primarySkillB, secondarySkillB; var multiRobotAInfo; -_a = robotA[1], nameA = _a === void 0 ? "helloNoName" : _a; -_b = getRobotB(), _c = _b[1], nameB = _c === void 0 ? "helloNoName" : _c; -_d = [2, "trimmer", "trimming"], _e = _d[1], nameB = _e === void 0 ? "helloNoName" : _e; -_f = multiRobotB[1], multiSkillB = _f === void 0 ? [] : _f; -_g = getMultiRobotB(), _h = _g[1], multiSkillB = _h === void 0 ? [] : _h; -_j = ["roomba", ["vaccum", "mopping"]], _k = _j[1], multiSkillB = _k === void 0 ? [] : _k; -_l = robotB[0], numberB = _l === void 0 ? -1 : _l; -_m = getRobotB()[0], numberB = _m === void 0 ? -1 : _m; -_o = [2, "trimmer", "trimming"][0], numberB = _o === void 0 ? -1 : _o; -_p = multiRobotB[0], nameMB = _p === void 0 ? "helloNoName" : _p; -_q = getMultiRobotB()[0], nameMB = _q === void 0 ? "helloNoName" : _q; -_r = ["trimmer", ["trimming", "edging"]][0], nameMB = _r === void 0 ? "helloNoName" : _r; -_s = robotB[0], numberB = _s === void 0 ? -1 : _s, _t = robotB[1], nameB = _t === void 0 ? "helloNoName" : _t, _u = robotB[2], skillB = _u === void 0 ? "noSkill" : _u; -_v = getRobotB(), _w = _v[0], numberB = _w === void 0 ? -1 : _w, _x = _v[1], nameB = _x === void 0 ? "helloNoName" : _x, _y = _v[2], skillB = _y === void 0 ? "noSkill" : _y; -_z = [2, "trimmer", "trimming"], _0 = _z[0], numberB = _0 === void 0 ? -1 : _0, _1 = _z[1], nameB = _1 === void 0 ? "helloNoName" : _1, _2 = _z[2], skillB = _2 === void 0 ? "noSkill" : _2; -_3 = multiRobotB[0], nameMB = _3 === void 0 ? "helloNoName" : _3, _4 = multiRobotB[1], _5 = _4 === void 0 ? [] : _4, _6 = _5[0], primarySkillB = _6 === void 0 ? "noSkill" : _6, _7 = _5[1], secondarySkillB = _7 === void 0 ? "noSkill" : _7; -_8 = getMultiRobotB(), _9 = _8[0], nameMB = _9 === void 0 ? "helloNoName" : _9, _10 = _8[1], _11 = _10 === void 0 ? [] : _10, _12 = _11[0], primarySkillB = _12 === void 0 ? "noSkill" : _12, _13 = _11[1], secondarySkillB = _13 === void 0 ? "noSkill" : _13; -_14 = ["trimmer", ["trimming", "edging"]], _15 = _14[0], nameMB = _15 === void 0 ? "helloNoName" : _15, _16 = _14[1], _17 = _16 === void 0 ? [] : _16, _18 = _17[0], primarySkillB = _18 === void 0 ? "noSkill" : _18, _19 = _17[1], secondarySkillB = _19 === void 0 ? "noSkill" : _19; -_20 = robotB[0], numberB = _20 === void 0 ? -1 : _20, robotAInfo = robotB.slice(1); -_21 = getRobotB(), _22 = _21[0], numberB = _22 === void 0 ? -1 : _22, robotAInfo = _21.slice(1); -_23 = [2, "trimmer", "trimming"], _24 = _23[0], numberB = _24 === void 0 ? -1 : _24, robotAInfo = _23.slice(1); +_a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "helloNoName" : _b; +_c = __read(getRobotB(), 2), _d = _c[1], nameB = _d === void 0 ? "helloNoName" : _d; +_e = [2, "trimmer", "trimming"], _f = _e[1], nameB = _f === void 0 ? "helloNoName" : _f; +_g = __read(multiRobotB, 2), _h = _g[1], multiSkillB = _h === void 0 ? [] : _h; +_j = __read(getMultiRobotB(), 2), _k = _j[1], multiSkillB = _k === void 0 ? [] : _k; +_l = ["roomba", ["vaccum", "mopping"]], _m = _l[1], multiSkillB = _m === void 0 ? [] : _m; +_o = __read(robotB, 1), _p = _o[0], numberB = _p === void 0 ? -1 : _p; +_q = __read(getRobotB(), 1), _r = _q[0], numberB = _r === void 0 ? -1 : _r; +_s = [2, "trimmer", "trimming"][0], numberB = _s === void 0 ? -1 : _s; +_t = __read(multiRobotB, 1), _u = _t[0], nameMB = _u === void 0 ? "helloNoName" : _u; +_v = __read(getMultiRobotB(), 1), _w = _v[0], nameMB = _w === void 0 ? "helloNoName" : _w; +_x = ["trimmer", ["trimming", "edging"]][0], nameMB = _x === void 0 ? "helloNoName" : _x; +_y = __read(robotB, 3), _z = _y[0], numberB = _z === void 0 ? -1 : _z, _0 = _y[1], nameB = _0 === void 0 ? "helloNoName" : _0, _1 = _y[2], skillB = _1 === void 0 ? "noSkill" : _1; +_2 = __read(getRobotB(), 3), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3, _4 = _2[1], nameB = _4 === void 0 ? "helloNoName" : _4, _5 = _2[2], skillB = _5 === void 0 ? "noSkill" : _5; +_6 = [2, "trimmer", "trimming"], _7 = _6[0], numberB = _7 === void 0 ? -1 : _7, _8 = _6[1], nameB = _8 === void 0 ? "helloNoName" : _8, _9 = _6[2], skillB = _9 === void 0 ? "noSkill" : _9; +_10 = __read(multiRobotB, 2), _11 = _10[0], nameMB = _11 === void 0 ? "helloNoName" : _11, _12 = _10[1], _13 = __read(_12 === void 0 ? [] : _12, 2), _14 = _13[0], primarySkillB = _14 === void 0 ? "noSkill" : _14, _15 = _13[1], secondarySkillB = _15 === void 0 ? "noSkill" : _15; +_16 = __read(getMultiRobotB(), 2), _17 = _16[0], nameMB = _17 === void 0 ? "helloNoName" : _17, _18 = _16[1], _19 = __read(_18 === void 0 ? [] : _18, 2), _20 = _19[0], primarySkillB = _20 === void 0 ? "noSkill" : _20, _21 = _19[1], secondarySkillB = _21 === void 0 ? "noSkill" : _21; +_22 = ["trimmer", ["trimming", "edging"]], _23 = _22[0], nameMB = _23 === void 0 ? "helloNoName" : _23, _24 = _22[1], _25 = __read(_24 === void 0 ? [] : _24, 2), _26 = _25[0], primarySkillB = _26 === void 0 ? "noSkill" : _26, _27 = _25[1], secondarySkillB = _27 === void 0 ? "noSkill" : _27; +_28 = __read(robotB), _29 = _28[0], numberB = _29 === void 0 ? -1 : _29, robotAInfo = _28.slice(1); +_30 = __read(getRobotB()), _31 = _30[0], numberB = _31 === void 0 ? -1 : _31, robotAInfo = _30.slice(1); +_32 = __read([2, "trimmer", "trimming"]), _33 = _32[0], numberB = _33 === void 0 ? -1 : _33, robotAInfo = _32.slice(1); if (nameA == nameB) { console.log(skillB); } @@ -93,5 +101,5 @@ function getRobotB() { function getMultiRobotB() { return multiRobotB; } -var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24; +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33; //# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map index 1b7453826e4b9..989695a3d40cb 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map] -{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.ts"],"names":[],"mappings":"AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzE,IAAI,KAAa,EAAE,OAAe,EAAE,KAAa,EAAE,MAAc,CAAC;AAClE,IAAI,UAA+B,CAAC;AAEpC,IAAI,WAAqB,EAAE,MAAc,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAC1F,IAAI,eAAsC,CAAC;AAExC,cAAqB,EAArB,0CAAqB,CAAW;AACnC,gBAAuC,EAApC,UAAqB,EAArB,0CAAqB,CAAgB;AACxC,+BAAsD,EAAnD,UAAqB,EAArB,0CAAqB,CAA+B;AACpD,mBAAgB,EAAhB,qCAAgB,CAAgB;AACnC,qBAAuC,EAApC,UAAgB,EAAhB,qCAAgB,CAAqB;AACxC,sCAAwD,EAArD,UAAgB,EAAhB,qCAAgB,CAAsC;AAExD,cAAY,EAAZ,iCAAY,CAAW;AACvB,mBAAY,EAAZ,iCAAY,CAAgB;AAC5B,kCAAY,EAAZ,iCAAY,CAA+B;AAC3C,mBAAsB,EAAtB,2CAAsB,CAAgB;AACtC,wBAAsB,EAAtB,2CAAsB,CAAqB;AAC3C,2CAAsB,EAAtB,2CAAsB,CAAwC;AAE9D,cAAY,EAAZ,iCAAY,EAAE,cAAqB,EAArB,0CAAqB,EAAE,cAAkB,EAAlB,uCAAkB,CAAW;AACnE,gBAAuE,EAAtE,UAAY,EAAZ,iCAAY,EAAE,UAAqB,EAArB,0CAAqB,EAAE,UAAkB,EAAlB,uCAAkB,CAAgB;AACxE,+BAAsF,EAArF,UAAY,EAAZ,iCAAY,EAAE,UAAqB,EAArB,0CAAqB,EAAE,UAAkB,EAAlB,uCAAkB,CAA+B;AACtF,mBAAsB,EAAtB,2CAAsB,EAAE,mBAA6D,EAA7D,4BAA6D,EAA5D,UAAyB,EAAzB,8CAAyB,EAAE,UAA2B,EAA3B,gDAA2B,CAAsB;AACtG,qBAA0G,EAAzG,UAAsB,EAAtB,2CAAsB,EAAE,WAA6D,EAA7D,+BAA6D,EAA5D,YAAyB,EAAzB,gDAAyB,EAAE,YAA2B,EAA3B,kDAA2B,CAA2B;AAC3G,yCACuC,EADtC,YAAsB,EAAtB,6CAAsB,EAAE,YAA6D,EAA7D,+BAA6D,EAA5D,YAAyB,EAAzB,gDAAyB,EAAE,YAA2B,EAA3B,kDAA2B,CACxC;AAEvC,eAAY,EAAZ,mCAAY,EAAE,4BAAa,CAAW;AACvC,iBAA2C,EAA1C,YAAY,EAAZ,mCAAY,EAAE,yBAAa,CAAgB;AAC5C,gCAAiE,EAAhE,YAAY,EAAZ,mCAAY,EAAE,yBAAa,CAAsC;AAElE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js","sourceRoot":"","sources":["sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.ts"],"names":[],"mappings":";;;;;;;;AAMA,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,IAAI,MAAM,GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,IAAI,WAAW,GAAsB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAI,WAAW,GAAsB,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzE,IAAI,KAAa,EAAE,OAAe,EAAE,KAAa,EAAE,MAAc,CAAC;AAClE,IAAI,UAA+B,CAAC;AAEpC,IAAI,WAAqB,EAAE,MAAc,EAAE,aAAqB,EAAE,eAAuB,CAAC;AAC1F,IAAI,eAAsC,CAAC;AAE3C,sBAAkC,EAA/B,UAAqB,EAArB,0CAAqB,CAAW;AACnC,2BAAuC,EAApC,UAAqB,EAArB,0CAAqB,CAAgB;AACxC,+BAAsD,EAAnD,UAAqB,EAArB,0CAAqB,CAA+B;AACvD,2BAAkC,EAA/B,UAAgB,EAAhB,qCAAgB,CAAgB;AACnC,gCAAuC,EAApC,UAAgB,EAAhB,qCAAgB,CAAqB;AACxC,sCAAwD,EAArD,UAAgB,EAAhB,qCAAgB,CAAsC;AAEzD,sBAAuB,EAAtB,UAAY,EAAZ,iCAAY,CAAW;AACxB,2BAA4B,EAA3B,UAAY,EAAZ,iCAAY,CAAgB;AAC5B,kCAAY,EAAZ,iCAAY,CAA+B;AAC5C,2BAAsC,EAArC,UAAsB,EAAtB,2CAAsB,CAAgB;AACvC,gCAA2C,EAA1C,UAAsB,EAAtB,2CAAsB,CAAqB;AAC3C,2CAAsB,EAAtB,2CAAsB,CAAwC;AAE/D,sBAAkE,EAAjE,UAAY,EAAZ,iCAAY,EAAE,UAAqB,EAArB,0CAAqB,EAAE,UAAkB,EAAlB,uCAAkB,CAAW;AACnE,2BAAuE,EAAtE,UAAY,EAAZ,iCAAY,EAAE,UAAqB,EAArB,0CAAqB,EAAE,UAAkB,EAAlB,uCAAkB,CAAgB;AACxE,+BAAsF,EAArF,UAAY,EAAZ,iCAAY,EAAE,UAAqB,EAArB,0CAAqB,EAAE,UAAkB,EAAlB,uCAAkB,CAA+B;AACvF,4BAAqG,EAApG,YAAsB,EAAtB,6CAAsB,EAAE,YAA6D,EAA7D,0CAA6D,EAA5D,YAAyB,EAAzB,gDAAyB,EAAE,YAA2B,EAA3B,kDAA2B,CAAsB;AACtG,iCAA0G,EAAzG,YAAsB,EAAtB,6CAAsB,EAAE,YAA6D,EAA7D,0CAA6D,EAA5D,YAAyB,EAAzB,gDAAyB,EAAE,YAA2B,EAA3B,kDAA2B,CAA2B;AAC3G,yCACuC,EADtC,YAAsB,EAAtB,6CAAsB,EAAE,YAA6D,EAA7D,0CAA6D,EAA5D,YAAyB,EAAzB,gDAAyB,EAAE,YAA2B,EAA3B,kDAA2B,CACxC;AAExC,oBAAsC,EAArC,YAAY,EAAZ,mCAAY,EAAE,yBAAa,CAAW;AACvC,yBAA2C,EAA1C,YAAY,EAAZ,mCAAY,EAAE,yBAAa,CAAgB;AAC5C,wCAAiE,EAAhE,YAAY,EAAZ,mCAAY,EAAE,yBAAa,CAAsC;AAElE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;IACI,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAED;IACI,MAAM,CAAC,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.sourcemap.txt index c9784dc30a337..9563fc1de1eb1 100644 --- a/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.sourcemap.txt @@ -8,6 +8,14 @@ sources: sourceMapValidationDestructuringVariableStatementArrayBindingPatternDef emittedFile:tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> if (!(m = o.__iterator__)) return o; +>>> var m, i = m.call(o), ar = [], r, e; +>>> try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } +>>> catch (error) { e = { error: error }; } +>>> finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } +>>> return ar; +>>>}; >>>var robotA = [1, "mower", "mowing"]; 1 > 2 >^^^^ @@ -40,18 +48,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 10> "mowing" 11> ] 12> ; -1 >Emitted(1, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(1, 11) Source(7, 11) + SourceIndex(0) -4 >Emitted(1, 14) Source(7, 21) + SourceIndex(0) -5 >Emitted(1, 15) Source(7, 22) + SourceIndex(0) -6 >Emitted(1, 16) Source(7, 23) + SourceIndex(0) -7 >Emitted(1, 18) Source(7, 25) + SourceIndex(0) -8 >Emitted(1, 25) Source(7, 32) + SourceIndex(0) -9 >Emitted(1, 27) Source(7, 34) + SourceIndex(0) -10>Emitted(1, 35) Source(7, 42) + SourceIndex(0) -11>Emitted(1, 36) Source(7, 43) + SourceIndex(0) -12>Emitted(1, 37) Source(7, 44) + SourceIndex(0) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(9, 11) Source(7, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(7, 21) + SourceIndex(0) +5 >Emitted(9, 15) Source(7, 22) + SourceIndex(0) +6 >Emitted(9, 16) Source(7, 23) + SourceIndex(0) +7 >Emitted(9, 18) Source(7, 25) + SourceIndex(0) +8 >Emitted(9, 25) Source(7, 32) + SourceIndex(0) +9 >Emitted(9, 27) Source(7, 34) + SourceIndex(0) +10>Emitted(9, 35) Source(7, 42) + SourceIndex(0) +11>Emitted(9, 36) Source(7, 43) + SourceIndex(0) +12>Emitted(9, 37) Source(7, 44) + SourceIndex(0) --- >>>var robotB = [2, "trimmer", "trimming"]; 1-> @@ -80,18 +88,18 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 10> "trimming" 11> ] 12> ; -1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(2, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(8, 21) + SourceIndex(0) -5 >Emitted(2, 15) Source(8, 22) + SourceIndex(0) -6 >Emitted(2, 16) Source(8, 23) + SourceIndex(0) -7 >Emitted(2, 18) Source(8, 25) + SourceIndex(0) -8 >Emitted(2, 27) Source(8, 34) + SourceIndex(0) -9 >Emitted(2, 29) Source(8, 36) + SourceIndex(0) -10>Emitted(2, 39) Source(8, 46) + SourceIndex(0) -11>Emitted(2, 40) Source(8, 47) + SourceIndex(0) -12>Emitted(2, 41) Source(8, 48) + SourceIndex(0) +1->Emitted(10, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(10, 14) Source(8, 21) + SourceIndex(0) +5 >Emitted(10, 15) Source(8, 22) + SourceIndex(0) +6 >Emitted(10, 16) Source(8, 23) + SourceIndex(0) +7 >Emitted(10, 18) Source(8, 25) + SourceIndex(0) +8 >Emitted(10, 27) Source(8, 34) + SourceIndex(0) +9 >Emitted(10, 29) Source(8, 36) + SourceIndex(0) +10>Emitted(10, 39) Source(8, 46) + SourceIndex(0) +11>Emitted(10, 40) Source(8, 47) + SourceIndex(0) +12>Emitted(10, 41) Source(8, 48) + SourceIndex(0) --- >>>var multiRobotA = ["mower", ["mowing", ""]]; 1-> @@ -124,20 +132,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 12> ] 13> ] 14> ; -1->Emitted(3, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(9, 5) + SourceIndex(0) -3 >Emitted(3, 16) Source(9, 16) + SourceIndex(0) -4 >Emitted(3, 19) Source(9, 38) + SourceIndex(0) -5 >Emitted(3, 20) Source(9, 39) + SourceIndex(0) -6 >Emitted(3, 27) Source(9, 46) + SourceIndex(0) -7 >Emitted(3, 29) Source(9, 48) + SourceIndex(0) -8 >Emitted(3, 30) Source(9, 49) + SourceIndex(0) -9 >Emitted(3, 38) Source(9, 57) + SourceIndex(0) -10>Emitted(3, 40) Source(9, 59) + SourceIndex(0) -11>Emitted(3, 42) Source(9, 61) + SourceIndex(0) -12>Emitted(3, 43) Source(9, 62) + SourceIndex(0) -13>Emitted(3, 44) Source(9, 63) + SourceIndex(0) -14>Emitted(3, 45) Source(9, 64) + SourceIndex(0) +1->Emitted(11, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(9, 5) + SourceIndex(0) +3 >Emitted(11, 16) Source(9, 16) + SourceIndex(0) +4 >Emitted(11, 19) Source(9, 38) + SourceIndex(0) +5 >Emitted(11, 20) Source(9, 39) + SourceIndex(0) +6 >Emitted(11, 27) Source(9, 46) + SourceIndex(0) +7 >Emitted(11, 29) Source(9, 48) + SourceIndex(0) +8 >Emitted(11, 30) Source(9, 49) + SourceIndex(0) +9 >Emitted(11, 38) Source(9, 57) + SourceIndex(0) +10>Emitted(11, 40) Source(9, 59) + SourceIndex(0) +11>Emitted(11, 42) Source(9, 61) + SourceIndex(0) +12>Emitted(11, 43) Source(9, 62) + SourceIndex(0) +13>Emitted(11, 44) Source(9, 63) + SourceIndex(0) +14>Emitted(11, 45) Source(9, 64) + SourceIndex(0) --- >>>var multiRobotB = ["trimmer", ["trimming", "edging"]]; 1-> @@ -169,20 +177,20 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 12> ] 13> ] 14> ; -1->Emitted(4, 1) Source(10, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) -3 >Emitted(4, 16) Source(10, 16) + SourceIndex(0) -4 >Emitted(4, 19) Source(10, 38) + SourceIndex(0) -5 >Emitted(4, 20) Source(10, 39) + SourceIndex(0) -6 >Emitted(4, 29) Source(10, 48) + SourceIndex(0) -7 >Emitted(4, 31) Source(10, 50) + SourceIndex(0) -8 >Emitted(4, 32) Source(10, 51) + SourceIndex(0) -9 >Emitted(4, 42) Source(10, 61) + SourceIndex(0) -10>Emitted(4, 44) Source(10, 63) + SourceIndex(0) -11>Emitted(4, 52) Source(10, 71) + SourceIndex(0) -12>Emitted(4, 53) Source(10, 72) + SourceIndex(0) -13>Emitted(4, 54) Source(10, 73) + SourceIndex(0) -14>Emitted(4, 55) Source(10, 74) + SourceIndex(0) +1->Emitted(12, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(12, 19) Source(10, 38) + SourceIndex(0) +5 >Emitted(12, 20) Source(10, 39) + SourceIndex(0) +6 >Emitted(12, 29) Source(10, 48) + SourceIndex(0) +7 >Emitted(12, 31) Source(10, 50) + SourceIndex(0) +8 >Emitted(12, 32) Source(10, 51) + SourceIndex(0) +9 >Emitted(12, 42) Source(10, 61) + SourceIndex(0) +10>Emitted(12, 44) Source(10, 63) + SourceIndex(0) +11>Emitted(12, 52) Source(10, 71) + SourceIndex(0) +12>Emitted(12, 53) Source(10, 72) + SourceIndex(0) +13>Emitted(12, 54) Source(10, 73) + SourceIndex(0) +14>Emitted(12, 55) Source(10, 74) + SourceIndex(0) --- >>>var nameA, numberB, nameB, skillB; 1 > @@ -207,16 +215,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > , 9 > skillB: string 10> ; -1 >Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(12, 5) + SourceIndex(0) -3 >Emitted(5, 10) Source(12, 18) + SourceIndex(0) -4 >Emitted(5, 12) Source(12, 20) + SourceIndex(0) -5 >Emitted(5, 19) Source(12, 35) + SourceIndex(0) -6 >Emitted(5, 21) Source(12, 37) + SourceIndex(0) -7 >Emitted(5, 26) Source(12, 50) + SourceIndex(0) -8 >Emitted(5, 28) Source(12, 52) + SourceIndex(0) -9 >Emitted(5, 34) Source(12, 66) + SourceIndex(0) -10>Emitted(5, 35) Source(12, 67) + SourceIndex(0) +1 >Emitted(13, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(13, 10) Source(12, 18) + SourceIndex(0) +4 >Emitted(13, 12) Source(12, 20) + SourceIndex(0) +5 >Emitted(13, 19) Source(12, 35) + SourceIndex(0) +6 >Emitted(13, 21) Source(12, 37) + SourceIndex(0) +7 >Emitted(13, 26) Source(12, 50) + SourceIndex(0) +8 >Emitted(13, 28) Source(12, 52) + SourceIndex(0) +9 >Emitted(13, 34) Source(12, 66) + SourceIndex(0) +10>Emitted(13, 35) Source(12, 67) + SourceIndex(0) --- >>>var robotAInfo; 1 > @@ -229,10 +237,10 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 2 >let 3 > robotAInfo: (number | string)[] 4 > ; -1 >Emitted(6, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(13, 5) + SourceIndex(0) -3 >Emitted(6, 15) Source(13, 36) + SourceIndex(0) -4 >Emitted(6, 16) Source(13, 37) + SourceIndex(0) +1 >Emitted(14, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +3 >Emitted(14, 15) Source(13, 36) + SourceIndex(0) +4 >Emitted(14, 16) Source(13, 37) + SourceIndex(0) --- >>>var multiSkillB, nameMB, primarySkillB, secondarySkillB; 1-> @@ -257,79 +265,85 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > , 9 > secondarySkillB: string 10> ; -1->Emitted(7, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(15, 5) + SourceIndex(0) -3 >Emitted(7, 16) Source(15, 26) + SourceIndex(0) -4 >Emitted(7, 18) Source(15, 28) + SourceIndex(0) -5 >Emitted(7, 24) Source(15, 42) + SourceIndex(0) -6 >Emitted(7, 26) Source(15, 44) + SourceIndex(0) -7 >Emitted(7, 39) Source(15, 65) + SourceIndex(0) -8 >Emitted(7, 41) Source(15, 67) + SourceIndex(0) -9 >Emitted(7, 56) Source(15, 90) + SourceIndex(0) -10>Emitted(7, 57) Source(15, 91) + SourceIndex(0) +1->Emitted(15, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(15, 5) + SourceIndex(0) +3 >Emitted(15, 16) Source(15, 26) + SourceIndex(0) +4 >Emitted(15, 18) Source(15, 28) + SourceIndex(0) +5 >Emitted(15, 24) Source(15, 42) + SourceIndex(0) +6 >Emitted(15, 26) Source(15, 44) + SourceIndex(0) +7 >Emitted(15, 39) Source(15, 65) + SourceIndex(0) +8 >Emitted(15, 41) Source(15, 67) + SourceIndex(0) +9 >Emitted(15, 56) Source(15, 90) + SourceIndex(0) +10>Emitted(15, 57) Source(15, 91) + SourceIndex(0) --- >>>var multiRobotAInfo; 1 > 2 >^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >let 3 > multiRobotAInfo: (string | string[])[] 4 > ; -1 >Emitted(8, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(8, 5) Source(16, 5) + SourceIndex(0) -3 >Emitted(8, 20) Source(16, 43) + SourceIndex(0) -4 >Emitted(8, 21) Source(16, 44) + SourceIndex(0) +1 >Emitted(16, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(16, 5) Source(16, 5) + SourceIndex(0) +3 >Emitted(16, 20) Source(16, 43) + SourceIndex(0) +4 >Emitted(16, 21) Source(16, 44) + SourceIndex(0) --- ->>>_a = robotA[1], nameA = _a === void 0 ? "helloNoName" : _a; +>>>_a = __read(robotA, 2), _b = _a[1], nameA = _b === void 0 ? "helloNoName" : _b; 1-> -2 >^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^-> 1-> > - >[, -2 >nameA = "helloNoName" -3 > -4 > nameA = "helloNoName" -5 > ] = robotA; -1->Emitted(9, 1) Source(18, 4) + SourceIndex(0) -2 >Emitted(9, 15) Source(18, 25) + SourceIndex(0) -3 >Emitted(9, 17) Source(18, 4) + SourceIndex(0) -4 >Emitted(9, 59) Source(18, 25) + SourceIndex(0) -5 >Emitted(9, 60) Source(18, 36) + SourceIndex(0) + > +2 >[, nameA = "helloNoName"] = robotA +3 > +4 > nameA = "helloNoName" +5 > +6 > nameA = "helloNoName" +7 > ] = robotA; +1->Emitted(17, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(17, 23) Source(18, 35) + SourceIndex(0) +3 >Emitted(17, 25) Source(18, 4) + SourceIndex(0) +4 >Emitted(17, 35) Source(18, 25) + SourceIndex(0) +5 >Emitted(17, 37) Source(18, 4) + SourceIndex(0) +6 >Emitted(17, 79) Source(18, 25) + SourceIndex(0) +7 >Emitted(17, 80) Source(18, 36) + SourceIndex(0) --- ->>>_b = getRobotB(), _c = _b[1], nameB = _c === void 0 ? "helloNoName" : _c; +>>>_c = __read(getRobotB(), 2), _d = _c[1], nameB = _d === void 0 ? "helloNoName" : _d; 1-> -2 >^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^-> 1-> > 2 >[, nameB = "helloNoName"] = getRobotB() -3 > -4 > nameB = "helloNoName" -5 > -6 > nameB = "helloNoName" -7 > ] = getRobotB(); -1->Emitted(10, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(10, 17) Source(19, 40) + SourceIndex(0) -3 >Emitted(10, 19) Source(19, 4) + SourceIndex(0) -4 >Emitted(10, 29) Source(19, 25) + SourceIndex(0) -5 >Emitted(10, 31) Source(19, 4) + SourceIndex(0) -6 >Emitted(10, 73) Source(19, 25) + SourceIndex(0) -7 >Emitted(10, 74) Source(19, 41) + SourceIndex(0) +3 > +4 > nameB = "helloNoName" +5 > +6 > nameB = "helloNoName" +7 > ] = getRobotB(); +1->Emitted(18, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 28) Source(19, 40) + SourceIndex(0) +3 >Emitted(18, 30) Source(19, 4) + SourceIndex(0) +4 >Emitted(18, 40) Source(19, 25) + SourceIndex(0) +5 >Emitted(18, 42) Source(19, 4) + SourceIndex(0) +6 >Emitted(18, 84) Source(19, 25) + SourceIndex(0) +7 >Emitted(18, 85) Source(19, 41) + SourceIndex(0) --- ->>>_d = [2, "trimmer", "trimming"], _e = _d[1], nameB = _e === void 0 ? "helloNoName" : _e; +>>>_e = [2, "trimmer", "trimming"], _f = _e[1], nameB = _f === void 0 ? "helloNoName" : _f; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -345,59 +359,65 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 5 > 6 > nameB = "helloNoName" 7 > ] = [2, "trimmer", "trimming"]; -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 32) Source(20, 55) + SourceIndex(0) -3 >Emitted(11, 34) Source(20, 4) + SourceIndex(0) -4 >Emitted(11, 44) Source(20, 25) + SourceIndex(0) -5 >Emitted(11, 46) Source(20, 4) + SourceIndex(0) -6 >Emitted(11, 88) Source(20, 25) + SourceIndex(0) -7 >Emitted(11, 89) Source(20, 56) + SourceIndex(0) +1->Emitted(19, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(19, 32) Source(20, 55) + SourceIndex(0) +3 >Emitted(19, 34) Source(20, 4) + SourceIndex(0) +4 >Emitted(19, 44) Source(20, 25) + SourceIndex(0) +5 >Emitted(19, 46) Source(20, 4) + SourceIndex(0) +6 >Emitted(19, 88) Source(20, 25) + SourceIndex(0) +7 >Emitted(19, 89) Source(20, 56) + SourceIndex(0) --- ->>>_f = multiRobotB[1], multiSkillB = _f === void 0 ? [] : _f; +>>>_g = __read(multiRobotB, 2), _h = _g[1], multiSkillB = _h === void 0 ? [] : _h; 1 > -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^-> 1 > - >[, -2 >multiSkillB = [] -3 > -4 > multiSkillB = [] -5 > ] = multiRobotB; -1 >Emitted(12, 1) Source(21, 4) + SourceIndex(0) -2 >Emitted(12, 20) Source(21, 20) + SourceIndex(0) -3 >Emitted(12, 22) Source(21, 4) + SourceIndex(0) -4 >Emitted(12, 59) Source(21, 20) + SourceIndex(0) -5 >Emitted(12, 60) Source(21, 36) + SourceIndex(0) + > +2 >[, multiSkillB = []] = multiRobotB +3 > +4 > multiSkillB = [] +5 > +6 > multiSkillB = [] +7 > ] = multiRobotB; +1 >Emitted(20, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(20, 28) Source(21, 35) + SourceIndex(0) +3 >Emitted(20, 30) Source(21, 4) + SourceIndex(0) +4 >Emitted(20, 40) Source(21, 20) + SourceIndex(0) +5 >Emitted(20, 42) Source(21, 4) + SourceIndex(0) +6 >Emitted(20, 79) Source(21, 20) + SourceIndex(0) +7 >Emitted(20, 80) Source(21, 36) + SourceIndex(0) --- ->>>_g = getMultiRobotB(), _h = _g[1], multiSkillB = _h === void 0 ? [] : _h; +>>>_j = __read(getMultiRobotB(), 2), _k = _j[1], multiSkillB = _k === void 0 ? [] : _k; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^-> 1-> > 2 >[, multiSkillB = []] = getMultiRobotB() -3 > -4 > multiSkillB = [] -5 > -6 > multiSkillB = [] -7 > ] = getMultiRobotB(); -1->Emitted(13, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(13, 22) Source(22, 40) + SourceIndex(0) -3 >Emitted(13, 24) Source(22, 4) + SourceIndex(0) -4 >Emitted(13, 34) Source(22, 20) + SourceIndex(0) -5 >Emitted(13, 36) Source(22, 4) + SourceIndex(0) -6 >Emitted(13, 73) Source(22, 20) + SourceIndex(0) -7 >Emitted(13, 74) Source(22, 41) + SourceIndex(0) +3 > +4 > multiSkillB = [] +5 > +6 > multiSkillB = [] +7 > ] = getMultiRobotB(); +1->Emitted(21, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(21, 33) Source(22, 40) + SourceIndex(0) +3 >Emitted(21, 35) Source(22, 4) + SourceIndex(0) +4 >Emitted(21, 45) Source(22, 20) + SourceIndex(0) +5 >Emitted(21, 47) Source(22, 4) + SourceIndex(0) +6 >Emitted(21, 84) Source(22, 20) + SourceIndex(0) +7 >Emitted(21, 85) Source(22, 41) + SourceIndex(0) --- ->>>_j = ["roomba", ["vaccum", "mopping"]], _k = _j[1], multiSkillB = _k === void 0 ? [] : _k; +>>>_l = ["roomba", ["vaccum", "mopping"]], _m = _l[1], multiSkillB = _m === void 0 ? [] : _m; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -413,222 +433,251 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 5 > 6 > multiSkillB = [] 7 > ] = ["roomba", ["vaccum", "mopping"]]; -1->Emitted(14, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(14, 39) Source(23, 57) + SourceIndex(0) -3 >Emitted(14, 41) Source(23, 4) + SourceIndex(0) -4 >Emitted(14, 51) Source(23, 20) + SourceIndex(0) -5 >Emitted(14, 53) Source(23, 4) + SourceIndex(0) -6 >Emitted(14, 90) Source(23, 20) + SourceIndex(0) -7 >Emitted(14, 91) Source(23, 58) + SourceIndex(0) +1->Emitted(22, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(22, 39) Source(23, 57) + SourceIndex(0) +3 >Emitted(22, 41) Source(23, 4) + SourceIndex(0) +4 >Emitted(22, 51) Source(23, 20) + SourceIndex(0) +5 >Emitted(22, 53) Source(23, 4) + SourceIndex(0) +6 >Emitted(22, 90) Source(23, 20) + SourceIndex(0) +7 >Emitted(22, 91) Source(23, 58) + SourceIndex(0) --- ->>>_l = robotB[0], numberB = _l === void 0 ? -1 : _l; +>>>_o = __read(robotB, 1), _p = _o[0], numberB = _p === void 0 ? -1 : _p; 1 > -2 >^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^-> 1 > > - >[ -2 >numberB = -1 -3 > -4 > numberB = -1 -5 > ] = robotB; -1 >Emitted(15, 1) Source(25, 2) + SourceIndex(0) -2 >Emitted(15, 15) Source(25, 14) + SourceIndex(0) -3 >Emitted(15, 17) Source(25, 2) + SourceIndex(0) -4 >Emitted(15, 50) Source(25, 14) + SourceIndex(0) -5 >Emitted(15, 51) Source(25, 25) + SourceIndex(0) + > +2 >[numberB = -1] = robotB +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > ] = robotB; +1 >Emitted(23, 1) Source(25, 1) + SourceIndex(0) +2 >Emitted(23, 23) Source(25, 24) + SourceIndex(0) +3 >Emitted(23, 25) Source(25, 2) + SourceIndex(0) +4 >Emitted(23, 35) Source(25, 14) + SourceIndex(0) +5 >Emitted(23, 37) Source(25, 2) + SourceIndex(0) +6 >Emitted(23, 70) Source(25, 14) + SourceIndex(0) +7 >Emitted(23, 71) Source(25, 25) + SourceIndex(0) --- ->>>_m = getRobotB()[0], numberB = _m === void 0 ? -1 : _m; +>>>_q = __read(getRobotB(), 1), _r = _q[0], numberB = _r === void 0 ? -1 : _r; 1-> -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ 1-> - >[ -2 >numberB = -1 -3 > -4 > numberB = -1 -5 > ] = getRobotB(); -1->Emitted(16, 1) Source(26, 2) + SourceIndex(0) -2 >Emitted(16, 20) Source(26, 14) + SourceIndex(0) -3 >Emitted(16, 22) Source(26, 2) + SourceIndex(0) -4 >Emitted(16, 55) Source(26, 14) + SourceIndex(0) -5 >Emitted(16, 56) Source(26, 30) + SourceIndex(0) + > +2 >[numberB = -1] = getRobotB() +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > ] = getRobotB(); +1->Emitted(24, 1) Source(26, 1) + SourceIndex(0) +2 >Emitted(24, 28) Source(26, 29) + SourceIndex(0) +3 >Emitted(24, 30) Source(26, 2) + SourceIndex(0) +4 >Emitted(24, 40) Source(26, 14) + SourceIndex(0) +5 >Emitted(24, 42) Source(26, 2) + SourceIndex(0) +6 >Emitted(24, 75) Source(26, 14) + SourceIndex(0) +7 >Emitted(24, 76) Source(26, 30) + SourceIndex(0) --- ->>>_o = [2, "trimmer", "trimming"][0], numberB = _o === void 0 ? -1 : _o; -1-> +>>>_s = [2, "trimmer", "trimming"][0], numberB = _s === void 0 ? -1 : _s; +1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 > ^ -1-> +6 > ^^^^^^^^^^^^^^^^-> +1 > >[ 2 >numberB = -1 3 > 4 > numberB = -1 5 > ] = [2, "trimmer", "trimming"]; -1->Emitted(17, 1) Source(27, 2) + SourceIndex(0) -2 >Emitted(17, 35) Source(27, 14) + SourceIndex(0) -3 >Emitted(17, 37) Source(27, 2) + SourceIndex(0) -4 >Emitted(17, 70) Source(27, 14) + SourceIndex(0) -5 >Emitted(17, 71) Source(27, 45) + SourceIndex(0) ---- ->>>_p = multiRobotB[0], nameMB = _p === void 0 ? "helloNoName" : _p; -1 > -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1 > - >[ -2 >nameMB = "helloNoName" -3 > -4 > nameMB = "helloNoName" -5 > ] = multiRobotB; -1 >Emitted(18, 1) Source(28, 2) + SourceIndex(0) -2 >Emitted(18, 20) Source(28, 24) + SourceIndex(0) -3 >Emitted(18, 22) Source(28, 2) + SourceIndex(0) -4 >Emitted(18, 65) Source(28, 24) + SourceIndex(0) -5 >Emitted(18, 66) Source(28, 40) + SourceIndex(0) +1 >Emitted(25, 1) Source(27, 2) + SourceIndex(0) +2 >Emitted(25, 35) Source(27, 14) + SourceIndex(0) +3 >Emitted(25, 37) Source(27, 2) + SourceIndex(0) +4 >Emitted(25, 70) Source(27, 14) + SourceIndex(0) +5 >Emitted(25, 71) Source(27, 45) + SourceIndex(0) --- ->>>_q = getMultiRobotB()[0], nameMB = _q === void 0 ? "helloNoName" : _q; +>>>_t = __read(multiRobotB, 1), _u = _t[0], nameMB = _u === void 0 ? "helloNoName" : _u; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^-> 1-> - >[ -2 >nameMB = "helloNoName" -3 > -4 > nameMB = "helloNoName" -5 > ] = getMultiRobotB(); -1->Emitted(19, 1) Source(29, 2) + SourceIndex(0) -2 >Emitted(19, 25) Source(29, 24) + SourceIndex(0) -3 >Emitted(19, 27) Source(29, 2) + SourceIndex(0) -4 >Emitted(19, 70) Source(29, 24) + SourceIndex(0) -5 >Emitted(19, 71) Source(29, 45) + SourceIndex(0) + > +2 >[nameMB = "helloNoName"] = multiRobotB +3 > +4 > nameMB = "helloNoName" +5 > +6 > nameMB = "helloNoName" +7 > ] = multiRobotB; +1->Emitted(26, 1) Source(28, 1) + SourceIndex(0) +2 >Emitted(26, 28) Source(28, 39) + SourceIndex(0) +3 >Emitted(26, 30) Source(28, 2) + SourceIndex(0) +4 >Emitted(26, 40) Source(28, 24) + SourceIndex(0) +5 >Emitted(26, 42) Source(28, 2) + SourceIndex(0) +6 >Emitted(26, 85) Source(28, 24) + SourceIndex(0) +7 >Emitted(26, 86) Source(28, 40) + SourceIndex(0) --- ->>>_r = ["trimmer", ["trimming", "edging"]][0], nameMB = _r === void 0 ? "helloNoName" : _r; +>>>_v = __read(getMultiRobotB(), 1), _w = _v[0], nameMB = _w === void 0 ? "helloNoName" : _w; 1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^ +1-> + > +2 >[nameMB = "helloNoName"] = getMultiRobotB() +3 > +4 > nameMB = "helloNoName" +5 > +6 > nameMB = "helloNoName" +7 > ] = getMultiRobotB(); +1->Emitted(27, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(27, 33) Source(29, 44) + SourceIndex(0) +3 >Emitted(27, 35) Source(29, 2) + SourceIndex(0) +4 >Emitted(27, 45) Source(29, 24) + SourceIndex(0) +5 >Emitted(27, 47) Source(29, 2) + SourceIndex(0) +6 >Emitted(27, 90) Source(29, 24) + SourceIndex(0) +7 >Emitted(27, 91) Source(29, 45) + SourceIndex(0) +--- +>>>_x = ["trimmer", ["trimming", "edging"]][0], nameMB = _x === void 0 ? "helloNoName" : _x; +1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > >[ 2 >nameMB = "helloNoName" 3 > 4 > nameMB = "helloNoName" 5 > ] = ["trimmer", ["trimming", "edging"]]; -1->Emitted(20, 1) Source(30, 2) + SourceIndex(0) -2 >Emitted(20, 44) Source(30, 24) + SourceIndex(0) -3 >Emitted(20, 46) Source(30, 2) + SourceIndex(0) -4 >Emitted(20, 89) Source(30, 24) + SourceIndex(0) -5 >Emitted(20, 90) Source(30, 64) + SourceIndex(0) +1 >Emitted(28, 1) Source(30, 2) + SourceIndex(0) +2 >Emitted(28, 44) Source(30, 24) + SourceIndex(0) +3 >Emitted(28, 46) Source(30, 2) + SourceIndex(0) +4 >Emitted(28, 89) Source(30, 24) + SourceIndex(0) +5 >Emitted(28, 90) Source(30, 64) + SourceIndex(0) --- ->>>_s = robotB[0], numberB = _s === void 0 ? -1 : _s, _t = robotB[1], nameB = _t === void 0 ? "helloNoName" : _t, _u = robotB[2], skillB = _u === void 0 ? "noSkill" : _u; +>>>_y = __read(robotB, 3), _z = _y[0], numberB = _z === void 0 ? -1 : _z, _0 = _y[1], nameB = _0 === void 0 ? "helloNoName" : _0, _1 = _y[2], skillB = _1 === void 0 ? "noSkill" : _1; 1-> -2 >^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^ +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^ -14> ^^^^^^^-> +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^ +16> ^^^^^^-> 1-> > - >[ -2 >numberB = -1 -3 > -4 > numberB = -1 -5 > , -6 > nameB = "helloNoName" -7 > -8 > nameB = "helloNoName" -9 > , -10> skillB = "noSkill" -11> + > +2 >[numberB = -1, nameB = "helloNoName", skillB = "noSkill"] = robotB +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > , +8 > nameB = "helloNoName" +9 > +10> nameB = "helloNoName" +11> , 12> skillB = "noSkill" -13> ] = robotB; -1->Emitted(21, 1) Source(32, 2) + SourceIndex(0) -2 >Emitted(21, 15) Source(32, 14) + SourceIndex(0) -3 >Emitted(21, 17) Source(32, 2) + SourceIndex(0) -4 >Emitted(21, 50) Source(32, 14) + SourceIndex(0) -5 >Emitted(21, 52) Source(32, 16) + SourceIndex(0) -6 >Emitted(21, 66) Source(32, 37) + SourceIndex(0) -7 >Emitted(21, 68) Source(32, 16) + SourceIndex(0) -8 >Emitted(21, 110) Source(32, 37) + SourceIndex(0) -9 >Emitted(21, 112) Source(32, 39) + SourceIndex(0) -10>Emitted(21, 126) Source(32, 57) + SourceIndex(0) -11>Emitted(21, 128) Source(32, 39) + SourceIndex(0) -12>Emitted(21, 167) Source(32, 57) + SourceIndex(0) -13>Emitted(21, 168) Source(32, 68) + SourceIndex(0) +13> +14> skillB = "noSkill" +15> ] = robotB; +1->Emitted(29, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(29, 23) Source(32, 67) + SourceIndex(0) +3 >Emitted(29, 25) Source(32, 2) + SourceIndex(0) +4 >Emitted(29, 35) Source(32, 14) + SourceIndex(0) +5 >Emitted(29, 37) Source(32, 2) + SourceIndex(0) +6 >Emitted(29, 70) Source(32, 14) + SourceIndex(0) +7 >Emitted(29, 72) Source(32, 16) + SourceIndex(0) +8 >Emitted(29, 82) Source(32, 37) + SourceIndex(0) +9 >Emitted(29, 84) Source(32, 16) + SourceIndex(0) +10>Emitted(29, 126) Source(32, 37) + SourceIndex(0) +11>Emitted(29, 128) Source(32, 39) + SourceIndex(0) +12>Emitted(29, 138) Source(32, 57) + SourceIndex(0) +13>Emitted(29, 140) Source(32, 39) + SourceIndex(0) +14>Emitted(29, 179) Source(32, 57) + SourceIndex(0) +15>Emitted(29, 180) Source(32, 68) + SourceIndex(0) --- ->>>_v = getRobotB(), _w = _v[0], numberB = _w === void 0 ? -1 : _w, _x = _v[1], nameB = _x === void 0 ? "helloNoName" : _x, _y = _v[2], skillB = _y === void 0 ? "noSkill" : _y; +>>>_2 = __read(getRobotB(), 3), _3 = _2[0], numberB = _3 === void 0 ? -1 : _3, _4 = _2[1], nameB = _4 === void 0 ? "helloNoName" : _4, _5 = _2[2], skillB = _5 === void 0 ? "noSkill" : _5; 1-> -2 >^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^ -16> ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^ +16> ^^^^^-> 1-> > 2 >[numberB = -1, nameB = "helloNoName", skillB = "noSkill"] = getRobotB() -3 > -4 > numberB = -1 -5 > -6 > numberB = -1 -7 > , -8 > nameB = "helloNoName" -9 > -10> nameB = "helloNoName" -11> , -12> skillB = "noSkill" -13> -14> skillB = "noSkill" -15> ] = getRobotB(); -1->Emitted(22, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(22, 17) Source(33, 72) + SourceIndex(0) -3 >Emitted(22, 19) Source(33, 2) + SourceIndex(0) -4 >Emitted(22, 29) Source(33, 14) + SourceIndex(0) -5 >Emitted(22, 31) Source(33, 2) + SourceIndex(0) -6 >Emitted(22, 64) Source(33, 14) + SourceIndex(0) -7 >Emitted(22, 66) Source(33, 16) + SourceIndex(0) -8 >Emitted(22, 76) Source(33, 37) + SourceIndex(0) -9 >Emitted(22, 78) Source(33, 16) + SourceIndex(0) -10>Emitted(22, 120) Source(33, 37) + SourceIndex(0) -11>Emitted(22, 122) Source(33, 39) + SourceIndex(0) -12>Emitted(22, 132) Source(33, 57) + SourceIndex(0) -13>Emitted(22, 134) Source(33, 39) + SourceIndex(0) -14>Emitted(22, 173) Source(33, 57) + SourceIndex(0) -15>Emitted(22, 174) Source(33, 73) + SourceIndex(0) +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > , +8 > nameB = "helloNoName" +9 > +10> nameB = "helloNoName" +11> , +12> skillB = "noSkill" +13> +14> skillB = "noSkill" +15> ] = getRobotB(); +1->Emitted(30, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(30, 28) Source(33, 72) + SourceIndex(0) +3 >Emitted(30, 30) Source(33, 2) + SourceIndex(0) +4 >Emitted(30, 40) Source(33, 14) + SourceIndex(0) +5 >Emitted(30, 42) Source(33, 2) + SourceIndex(0) +6 >Emitted(30, 75) Source(33, 14) + SourceIndex(0) +7 >Emitted(30, 77) Source(33, 16) + SourceIndex(0) +8 >Emitted(30, 87) Source(33, 37) + SourceIndex(0) +9 >Emitted(30, 89) Source(33, 16) + SourceIndex(0) +10>Emitted(30, 131) Source(33, 37) + SourceIndex(0) +11>Emitted(30, 133) Source(33, 39) + SourceIndex(0) +12>Emitted(30, 143) Source(33, 57) + SourceIndex(0) +13>Emitted(30, 145) Source(33, 39) + SourceIndex(0) +14>Emitted(30, 184) Source(33, 57) + SourceIndex(0) +15>Emitted(30, 185) Source(33, 73) + SourceIndex(0) --- ->>>_z = [2, "trimmer", "trimming"], _0 = _z[0], numberB = _0 === void 0 ? -1 : _0, _1 = _z[1], nameB = _1 === void 0 ? "helloNoName" : _1, _2 = _z[2], skillB = _2 === void 0 ? "noSkill" : _2; +>>>_6 = [2, "trimmer", "trimming"], _7 = _6[0], numberB = _7 === void 0 ? -1 : _7, _8 = _6[1], nameB = _8 === void 0 ? "helloNoName" : _8, _9 = _6[2], skillB = _9 === void 0 ? "noSkill" : _9; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -644,7 +693,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 13> ^^ 14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15> ^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >[numberB = -1, nameB = "helloNoName", skillB = "noSkill"] = [2, "trimmer", "trimming"] @@ -661,139 +710,145 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 13> 14> skillB = "noSkill" 15> ] = [2, "trimmer", "trimming"]; -1->Emitted(23, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(23, 32) Source(34, 87) + SourceIndex(0) -3 >Emitted(23, 34) Source(34, 2) + SourceIndex(0) -4 >Emitted(23, 44) Source(34, 14) + SourceIndex(0) -5 >Emitted(23, 46) Source(34, 2) + SourceIndex(0) -6 >Emitted(23, 79) Source(34, 14) + SourceIndex(0) -7 >Emitted(23, 81) Source(34, 16) + SourceIndex(0) -8 >Emitted(23, 91) Source(34, 37) + SourceIndex(0) -9 >Emitted(23, 93) Source(34, 16) + SourceIndex(0) -10>Emitted(23, 135) Source(34, 37) + SourceIndex(0) -11>Emitted(23, 137) Source(34, 39) + SourceIndex(0) -12>Emitted(23, 147) Source(34, 57) + SourceIndex(0) -13>Emitted(23, 149) Source(34, 39) + SourceIndex(0) -14>Emitted(23, 188) Source(34, 57) + SourceIndex(0) -15>Emitted(23, 189) Source(34, 88) + SourceIndex(0) +1->Emitted(31, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(31, 32) Source(34, 87) + SourceIndex(0) +3 >Emitted(31, 34) Source(34, 2) + SourceIndex(0) +4 >Emitted(31, 44) Source(34, 14) + SourceIndex(0) +5 >Emitted(31, 46) Source(34, 2) + SourceIndex(0) +6 >Emitted(31, 79) Source(34, 14) + SourceIndex(0) +7 >Emitted(31, 81) Source(34, 16) + SourceIndex(0) +8 >Emitted(31, 91) Source(34, 37) + SourceIndex(0) +9 >Emitted(31, 93) Source(34, 16) + SourceIndex(0) +10>Emitted(31, 135) Source(34, 37) + SourceIndex(0) +11>Emitted(31, 137) Source(34, 39) + SourceIndex(0) +12>Emitted(31, 147) Source(34, 57) + SourceIndex(0) +13>Emitted(31, 149) Source(34, 39) + SourceIndex(0) +14>Emitted(31, 188) Source(34, 57) + SourceIndex(0) +15>Emitted(31, 189) Source(34, 88) + SourceIndex(0) --- ->>>_3 = multiRobotB[0], nameMB = _3 === void 0 ? "helloNoName" : _3, _4 = multiRobotB[1], _5 = _4 === void 0 ? [] : _4, _6 = _5[0], primarySkillB = _6 === void 0 ? "noSkill" : _6, _7 = _5[1], secondarySkillB = _7 === void 0 ? "noSkill" : _7; +>>>_10 = __read(multiRobotB, 2), _11 = _10[0], nameMB = _11 === void 0 ? "helloNoName" : _11, _12 = _10[1], _13 = __read(_12 === void 0 ? [] : _12, 2), _14 = _13[0], primarySkillB = _14 === void 0 ? "noSkill" : _14, _15 = _13[1], secondarySkillB = _15 === void 0 ? "noSkill" : _15; 1-> -2 >^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -17> ^ -18> ^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^ +20> ^^^^^^-> 1-> - >[ -2 >nameMB = "helloNoName" -3 > -4 > nameMB = "helloNoName" -5 > , -6 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] -7 > -8 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] -9 > -10> primarySkillB = "noSkill" -11> -12> primarySkillB = "noSkill" -13> , -14> secondarySkillB = "noSkill" -15> -16> secondarySkillB = "noSkill" -17> ] = []] = multiRobotB; -1->Emitted(24, 1) Source(35, 2) + SourceIndex(0) -2 >Emitted(24, 20) Source(35, 24) + SourceIndex(0) -3 >Emitted(24, 22) Source(35, 2) + SourceIndex(0) -4 >Emitted(24, 65) Source(35, 24) + SourceIndex(0) -5 >Emitted(24, 67) Source(35, 26) + SourceIndex(0) -6 >Emitted(24, 86) Source(35, 87) + SourceIndex(0) -7 >Emitted(24, 88) Source(35, 26) + SourceIndex(0) -8 >Emitted(24, 116) Source(35, 87) + SourceIndex(0) -9 >Emitted(24, 118) Source(35, 27) + SourceIndex(0) -10>Emitted(24, 128) Source(35, 52) + SourceIndex(0) -11>Emitted(24, 130) Source(35, 27) + SourceIndex(0) -12>Emitted(24, 176) Source(35, 52) + SourceIndex(0) -13>Emitted(24, 178) Source(35, 54) + SourceIndex(0) -14>Emitted(24, 188) Source(35, 81) + SourceIndex(0) -15>Emitted(24, 190) Source(35, 54) + SourceIndex(0) -16>Emitted(24, 238) Source(35, 81) + SourceIndex(0) -17>Emitted(24, 239) Source(35, 103) + SourceIndex(0) + > +2 >[nameMB = "helloNoName", [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = []] = multiRobotB +3 > +4 > nameMB = "helloNoName" +5 > +6 > nameMB = "helloNoName" +7 > , +8 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] +9 > +10> [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] +11> +12> primarySkillB = "noSkill" +13> +14> primarySkillB = "noSkill" +15> , +16> secondarySkillB = "noSkill" +17> +18> secondarySkillB = "noSkill" +19> ] = []] = multiRobotB; +1->Emitted(32, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(32, 29) Source(35, 102) + SourceIndex(0) +3 >Emitted(32, 31) Source(35, 2) + SourceIndex(0) +4 >Emitted(32, 43) Source(35, 24) + SourceIndex(0) +5 >Emitted(32, 45) Source(35, 2) + SourceIndex(0) +6 >Emitted(32, 90) Source(35, 24) + SourceIndex(0) +7 >Emitted(32, 92) Source(35, 26) + SourceIndex(0) +8 >Emitted(32, 104) Source(35, 87) + SourceIndex(0) +9 >Emitted(32, 106) Source(35, 26) + SourceIndex(0) +10>Emitted(32, 148) Source(35, 87) + SourceIndex(0) +11>Emitted(32, 150) Source(35, 27) + SourceIndex(0) +12>Emitted(32, 162) Source(35, 52) + SourceIndex(0) +13>Emitted(32, 164) Source(35, 27) + SourceIndex(0) +14>Emitted(32, 212) Source(35, 52) + SourceIndex(0) +15>Emitted(32, 214) Source(35, 54) + SourceIndex(0) +16>Emitted(32, 226) Source(35, 81) + SourceIndex(0) +17>Emitted(32, 228) Source(35, 54) + SourceIndex(0) +18>Emitted(32, 278) Source(35, 81) + SourceIndex(0) +19>Emitted(32, 279) Source(35, 103) + SourceIndex(0) --- ->>>_8 = getMultiRobotB(), _9 = _8[0], nameMB = _9 === void 0 ? "helloNoName" : _9, _10 = _8[1], _11 = _10 === void 0 ? [] : _10, _12 = _11[0], primarySkillB = _12 === void 0 ? "noSkill" : _12, _13 = _11[1], secondarySkillB = _13 === void 0 ? "noSkill" : _13; +>>>_16 = __read(getMultiRobotB(), 2), _17 = _16[0], nameMB = _17 === void 0 ? "helloNoName" : _17, _18 = _16[1], _19 = __read(_18 === void 0 ? [] : _18, 2), _20 = _19[0], primarySkillB = _20 === void 0 ? "noSkill" : _20, _21 = _19[1], secondarySkillB = _21 === void 0 ? "noSkill" : _21; 1-> -2 >^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^ -9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^ +9 > ^^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^ +20> ^^^^^^^^^-> 1-> > 2 >[nameMB = "helloNoName", [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = []] = getMultiRobotB() -3 > -4 > nameMB = "helloNoName" -5 > -6 > nameMB = "helloNoName" -7 > , -8 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] -9 > -10> [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] -11> -12> primarySkillB = "noSkill" -13> -14> primarySkillB = "noSkill" -15> , -16> secondarySkillB = "noSkill" -17> -18> secondarySkillB = "noSkill" -19> ] = []] = getMultiRobotB(); -1->Emitted(25, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(25, 22) Source(36, 107) + SourceIndex(0) -3 >Emitted(25, 24) Source(36, 2) + SourceIndex(0) -4 >Emitted(25, 34) Source(36, 24) + SourceIndex(0) -5 >Emitted(25, 36) Source(36, 2) + SourceIndex(0) -6 >Emitted(25, 79) Source(36, 24) + SourceIndex(0) -7 >Emitted(25, 81) Source(36, 26) + SourceIndex(0) -8 >Emitted(25, 92) Source(36, 87) + SourceIndex(0) -9 >Emitted(25, 94) Source(36, 26) + SourceIndex(0) -10>Emitted(25, 125) Source(36, 87) + SourceIndex(0) -11>Emitted(25, 127) Source(36, 27) + SourceIndex(0) -12>Emitted(25, 139) Source(36, 52) + SourceIndex(0) -13>Emitted(25, 141) Source(36, 27) + SourceIndex(0) -14>Emitted(25, 189) Source(36, 52) + SourceIndex(0) -15>Emitted(25, 191) Source(36, 54) + SourceIndex(0) -16>Emitted(25, 203) Source(36, 81) + SourceIndex(0) -17>Emitted(25, 205) Source(36, 54) + SourceIndex(0) -18>Emitted(25, 255) Source(36, 81) + SourceIndex(0) -19>Emitted(25, 256) Source(36, 108) + SourceIndex(0) +3 > +4 > nameMB = "helloNoName" +5 > +6 > nameMB = "helloNoName" +7 > , +8 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] +9 > +10> [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] +11> +12> primarySkillB = "noSkill" +13> +14> primarySkillB = "noSkill" +15> , +16> secondarySkillB = "noSkill" +17> +18> secondarySkillB = "noSkill" +19> ] = []] = getMultiRobotB(); +1->Emitted(33, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(33, 34) Source(36, 107) + SourceIndex(0) +3 >Emitted(33, 36) Source(36, 2) + SourceIndex(0) +4 >Emitted(33, 48) Source(36, 24) + SourceIndex(0) +5 >Emitted(33, 50) Source(36, 2) + SourceIndex(0) +6 >Emitted(33, 95) Source(36, 24) + SourceIndex(0) +7 >Emitted(33, 97) Source(36, 26) + SourceIndex(0) +8 >Emitted(33, 109) Source(36, 87) + SourceIndex(0) +9 >Emitted(33, 111) Source(36, 26) + SourceIndex(0) +10>Emitted(33, 153) Source(36, 87) + SourceIndex(0) +11>Emitted(33, 155) Source(36, 27) + SourceIndex(0) +12>Emitted(33, 167) Source(36, 52) + SourceIndex(0) +13>Emitted(33, 169) Source(36, 27) + SourceIndex(0) +14>Emitted(33, 217) Source(36, 52) + SourceIndex(0) +15>Emitted(33, 219) Source(36, 54) + SourceIndex(0) +16>Emitted(33, 231) Source(36, 81) + SourceIndex(0) +17>Emitted(33, 233) Source(36, 54) + SourceIndex(0) +18>Emitted(33, 283) Source(36, 81) + SourceIndex(0) +19>Emitted(33, 284) Source(36, 108) + SourceIndex(0) --- ->>>_14 = ["trimmer", ["trimming", "edging"]], _15 = _14[0], nameMB = _15 === void 0 ? "helloNoName" : _15, _16 = _14[1], _17 = _16 === void 0 ? [] : _16, _18 = _17[0], primarySkillB = _18 === void 0 ? "noSkill" : _18, _19 = _17[1], secondarySkillB = _19 === void 0 ? "noSkill" : _19; +>>>_22 = ["trimmer", ["trimming", "edging"]], _23 = _22[0], nameMB = _23 === void 0 ? "helloNoName" : _23, _24 = _22[1], _25 = __read(_24 === void 0 ? [] : _24, 2), _26 = _25[0], primarySkillB = _26 === void 0 ? "noSkill" : _26, _27 = _25[1], secondarySkillB = _27 === void 0 ? "noSkill" : _27; 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^ @@ -803,16 +858,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 7 > ^^ 8 > ^^^^^^^^^^^^ 9 > ^^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -11> ^^ -12> ^^^^^^^^^^^^ -13> ^^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -15> ^^ -16> ^^^^^^^^^^^^ -17> ^^ -18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -19> ^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11> ^^ +12> ^^^^^^^^^^^^ +13> ^^ +14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15> ^^ +16> ^^^^^^^^^^^^ +17> ^^ +18> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +19> ^ 1-> > 2 >[nameMB = "helloNoName", [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = []] = @@ -825,122 +880,128 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] 9 > 10> [primarySkillB = "noSkill", secondarySkillB = "noSkill"] = [] -11> -12> primarySkillB = "noSkill" -13> -14> primarySkillB = "noSkill" -15> , -16> secondarySkillB = "noSkill" -17> -18> secondarySkillB = "noSkill" -19> ] = []] = - > ["trimmer", ["trimming", "edging"]]; -1->Emitted(26, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(26, 42) Source(38, 40) + SourceIndex(0) -3 >Emitted(26, 44) Source(37, 2) + SourceIndex(0) -4 >Emitted(26, 56) Source(37, 24) + SourceIndex(0) -5 >Emitted(26, 58) Source(37, 2) + SourceIndex(0) -6 >Emitted(26, 103) Source(37, 24) + SourceIndex(0) -7 >Emitted(26, 105) Source(37, 26) + SourceIndex(0) -8 >Emitted(26, 117) Source(37, 87) + SourceIndex(0) -9 >Emitted(26, 119) Source(37, 26) + SourceIndex(0) -10>Emitted(26, 150) Source(37, 87) + SourceIndex(0) -11>Emitted(26, 152) Source(37, 27) + SourceIndex(0) -12>Emitted(26, 164) Source(37, 52) + SourceIndex(0) -13>Emitted(26, 166) Source(37, 27) + SourceIndex(0) -14>Emitted(26, 214) Source(37, 52) + SourceIndex(0) -15>Emitted(26, 216) Source(37, 54) + SourceIndex(0) -16>Emitted(26, 228) Source(37, 81) + SourceIndex(0) -17>Emitted(26, 230) Source(37, 54) + SourceIndex(0) -18>Emitted(26, 280) Source(37, 81) + SourceIndex(0) -19>Emitted(26, 281) Source(38, 41) + SourceIndex(0) +11> +12> primarySkillB = "noSkill" +13> +14> primarySkillB = "noSkill" +15> , +16> secondarySkillB = "noSkill" +17> +18> secondarySkillB = "noSkill" +19> ] = []] = + > ["trimmer", ["trimming", "edging"]]; +1->Emitted(34, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(34, 42) Source(38, 40) + SourceIndex(0) +3 >Emitted(34, 44) Source(37, 2) + SourceIndex(0) +4 >Emitted(34, 56) Source(37, 24) + SourceIndex(0) +5 >Emitted(34, 58) Source(37, 2) + SourceIndex(0) +6 >Emitted(34, 103) Source(37, 24) + SourceIndex(0) +7 >Emitted(34, 105) Source(37, 26) + SourceIndex(0) +8 >Emitted(34, 117) Source(37, 87) + SourceIndex(0) +9 >Emitted(34, 119) Source(37, 26) + SourceIndex(0) +10>Emitted(34, 161) Source(37, 87) + SourceIndex(0) +11>Emitted(34, 163) Source(37, 27) + SourceIndex(0) +12>Emitted(34, 175) Source(37, 52) + SourceIndex(0) +13>Emitted(34, 177) Source(37, 27) + SourceIndex(0) +14>Emitted(34, 225) Source(37, 52) + SourceIndex(0) +15>Emitted(34, 227) Source(37, 54) + SourceIndex(0) +16>Emitted(34, 239) Source(37, 81) + SourceIndex(0) +17>Emitted(34, 241) Source(37, 54) + SourceIndex(0) +18>Emitted(34, 291) Source(37, 81) + SourceIndex(0) +19>Emitted(34, 292) Source(38, 41) + SourceIndex(0) --- ->>>_20 = robotB[0], numberB = _20 === void 0 ? -1 : _20, robotAInfo = robotB.slice(1); +>>>_28 = __read(robotB), _29 = _28[0], numberB = _29 === void 0 ? -1 : _29, robotAInfo = _28.slice(1); 1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^ +10> ^^^^^^-> 1 > > - >[ -2 >numberB = -1 -3 > -4 > numberB = -1 -5 > , -6 > ...robotAInfo -7 > ] = robotB; -1 >Emitted(27, 1) Source(40, 2) + SourceIndex(0) -2 >Emitted(27, 16) Source(40, 14) + SourceIndex(0) -3 >Emitted(27, 18) Source(40, 2) + SourceIndex(0) -4 >Emitted(27, 53) Source(40, 14) + SourceIndex(0) -5 >Emitted(27, 55) Source(40, 16) + SourceIndex(0) -6 >Emitted(27, 83) Source(40, 29) + SourceIndex(0) -7 >Emitted(27, 84) Source(40, 40) + SourceIndex(0) + > +2 >[numberB = -1, ...robotAInfo] = robotB +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > , +8 > ...robotAInfo +9 > ] = robotB; +1 >Emitted(35, 1) Source(40, 1) + SourceIndex(0) +2 >Emitted(35, 21) Source(40, 39) + SourceIndex(0) +3 >Emitted(35, 23) Source(40, 2) + SourceIndex(0) +4 >Emitted(35, 35) Source(40, 14) + SourceIndex(0) +5 >Emitted(35, 37) Source(40, 2) + SourceIndex(0) +6 >Emitted(35, 72) Source(40, 14) + SourceIndex(0) +7 >Emitted(35, 74) Source(40, 16) + SourceIndex(0) +8 >Emitted(35, 99) Source(40, 29) + SourceIndex(0) +9 >Emitted(35, 100) Source(40, 40) + SourceIndex(0) --- ->>>_21 = getRobotB(), _22 = _21[0], numberB = _22 === void 0 ? -1 : _22, robotAInfo = _21.slice(1); +>>>_30 = __read(getRobotB()), _31 = _30[0], numberB = _31 === void 0 ? -1 : _31, robotAInfo = _30.slice(1); 1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^ -10> ^^^^^^^^^^^^^^^^-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^ +10> ^^^^^^^^^^^^^^^^-> 1-> > 2 >[numberB = -1, ...robotAInfo] = getRobotB() -3 > -4 > numberB = -1 -5 > -6 > numberB = -1 -7 > , -8 > ...robotAInfo -9 > ] = getRobotB(); -1->Emitted(28, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(28, 18) Source(41, 44) + SourceIndex(0) -3 >Emitted(28, 20) Source(41, 2) + SourceIndex(0) -4 >Emitted(28, 32) Source(41, 14) + SourceIndex(0) -5 >Emitted(28, 34) Source(41, 2) + SourceIndex(0) -6 >Emitted(28, 69) Source(41, 14) + SourceIndex(0) -7 >Emitted(28, 71) Source(41, 16) + SourceIndex(0) -8 >Emitted(28, 96) Source(41, 29) + SourceIndex(0) -9 >Emitted(28, 97) Source(41, 45) + SourceIndex(0) +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > , +8 > ...robotAInfo +9 > ] = getRobotB(); +1->Emitted(36, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(36, 26) Source(41, 44) + SourceIndex(0) +3 >Emitted(36, 28) Source(41, 2) + SourceIndex(0) +4 >Emitted(36, 40) Source(41, 14) + SourceIndex(0) +5 >Emitted(36, 42) Source(41, 2) + SourceIndex(0) +6 >Emitted(36, 77) Source(41, 14) + SourceIndex(0) +7 >Emitted(36, 79) Source(41, 16) + SourceIndex(0) +8 >Emitted(36, 104) Source(41, 29) + SourceIndex(0) +9 >Emitted(36, 105) Source(41, 45) + SourceIndex(0) --- ->>>_23 = [2, "trimmer", "trimming"], _24 = _23[0], numberB = _24 === void 0 ? -1 : _24, robotAInfo = _23.slice(1); +>>>_32 = __read([2, "trimmer", "trimming"]), _33 = _32[0], numberB = _33 === void 0 ? -1 : _33, robotAInfo = _32.slice(1); 1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^ +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^ 1-> > 2 >[numberB = -1, ...robotAInfo] = [2, "trimmer", "trimming"] -3 > -4 > numberB = -1 -5 > -6 > numberB = -1 -7 > , -8 > ...robotAInfo -9 > ] = [2, "trimmer", "trimming"]; -1->Emitted(29, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(29, 33) Source(42, 66) + SourceIndex(0) -3 >Emitted(29, 35) Source(42, 2) + SourceIndex(0) -4 >Emitted(29, 47) Source(42, 14) + SourceIndex(0) -5 >Emitted(29, 49) Source(42, 2) + SourceIndex(0) -6 >Emitted(29, 84) Source(42, 14) + SourceIndex(0) -7 >Emitted(29, 86) Source(42, 16) + SourceIndex(0) -8 >Emitted(29, 111) Source(42, 29) + SourceIndex(0) -9 >Emitted(29, 112) Source(42, 67) + SourceIndex(0) +3 > +4 > numberB = -1 +5 > +6 > numberB = -1 +7 > , +8 > ...robotAInfo +9 > ] = [2, "trimmer", "trimming"]; +1->Emitted(37, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(37, 41) Source(42, 66) + SourceIndex(0) +3 >Emitted(37, 43) Source(42, 2) + SourceIndex(0) +4 >Emitted(37, 55) Source(42, 14) + SourceIndex(0) +5 >Emitted(37, 57) Source(42, 2) + SourceIndex(0) +6 >Emitted(37, 92) Source(42, 14) + SourceIndex(0) +7 >Emitted(37, 94) Source(42, 16) + SourceIndex(0) +8 >Emitted(37, 119) Source(42, 29) + SourceIndex(0) +9 >Emitted(37, 120) Source(42, 67) + SourceIndex(0) --- >>>if (nameA == nameB) { 1 > @@ -966,16 +1027,16 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 8 > ) 9 > 10> { -1 >Emitted(30, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(30, 3) Source(44, 3) + SourceIndex(0) -3 >Emitted(30, 4) Source(44, 4) + SourceIndex(0) -4 >Emitted(30, 5) Source(44, 5) + SourceIndex(0) -5 >Emitted(30, 10) Source(44, 10) + SourceIndex(0) -6 >Emitted(30, 14) Source(44, 14) + SourceIndex(0) -7 >Emitted(30, 19) Source(44, 19) + SourceIndex(0) -8 >Emitted(30, 20) Source(44, 20) + SourceIndex(0) -9 >Emitted(30, 21) Source(44, 21) + SourceIndex(0) -10>Emitted(30, 22) Source(44, 22) + SourceIndex(0) +1 >Emitted(38, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(38, 3) Source(44, 3) + SourceIndex(0) +3 >Emitted(38, 4) Source(44, 4) + SourceIndex(0) +4 >Emitted(38, 5) Source(44, 5) + SourceIndex(0) +5 >Emitted(38, 10) Source(44, 10) + SourceIndex(0) +6 >Emitted(38, 14) Source(44, 14) + SourceIndex(0) +7 >Emitted(38, 19) Source(44, 19) + SourceIndex(0) +8 >Emitted(38, 20) Source(44, 20) + SourceIndex(0) +9 >Emitted(38, 21) Source(44, 21) + SourceIndex(0) +10>Emitted(38, 22) Source(44, 22) + SourceIndex(0) --- >>> console.log(skillB); 1->^^^^ @@ -995,14 +1056,14 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 6 > skillB 7 > ) 8 > ; -1->Emitted(31, 5) Source(45, 5) + SourceIndex(0) -2 >Emitted(31, 12) Source(45, 12) + SourceIndex(0) -3 >Emitted(31, 13) Source(45, 13) + SourceIndex(0) -4 >Emitted(31, 16) Source(45, 16) + SourceIndex(0) -5 >Emitted(31, 17) Source(45, 17) + SourceIndex(0) -6 >Emitted(31, 23) Source(45, 23) + SourceIndex(0) -7 >Emitted(31, 24) Source(45, 24) + SourceIndex(0) -8 >Emitted(31, 25) Source(45, 25) + SourceIndex(0) +1->Emitted(39, 5) Source(45, 5) + SourceIndex(0) +2 >Emitted(39, 12) Source(45, 12) + SourceIndex(0) +3 >Emitted(39, 13) Source(45, 13) + SourceIndex(0) +4 >Emitted(39, 16) Source(45, 16) + SourceIndex(0) +5 >Emitted(39, 17) Source(45, 17) + SourceIndex(0) +6 >Emitted(39, 23) Source(45, 23) + SourceIndex(0) +7 >Emitted(39, 24) Source(45, 24) + SourceIndex(0) +8 >Emitted(39, 25) Source(45, 25) + SourceIndex(0) --- >>>} 1 > @@ -1011,8 +1072,8 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1 > > 2 >} -1 >Emitted(32, 1) Source(46, 1) + SourceIndex(0) -2 >Emitted(32, 2) Source(46, 2) + SourceIndex(0) +1 >Emitted(40, 1) Source(46, 1) + SourceIndex(0) +2 >Emitted(40, 2) Source(46, 2) + SourceIndex(0) --- >>>function getRobotB() { 1-> @@ -1020,7 +1081,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1-> > > -1->Emitted(33, 1) Source(48, 1) + SourceIndex(0) +1->Emitted(41, 1) Source(48, 1) + SourceIndex(0) --- >>> return robotB; 1->^^^^ @@ -1034,11 +1095,11 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 3 > 4 > robotB 5 > ; -1->Emitted(34, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(34, 11) Source(49, 11) + SourceIndex(0) -3 >Emitted(34, 12) Source(49, 12) + SourceIndex(0) -4 >Emitted(34, 18) Source(49, 18) + SourceIndex(0) -5 >Emitted(34, 19) Source(49, 19) + SourceIndex(0) +1->Emitted(42, 5) Source(49, 5) + SourceIndex(0) +2 >Emitted(42, 11) Source(49, 11) + SourceIndex(0) +3 >Emitted(42, 12) Source(49, 12) + SourceIndex(0) +4 >Emitted(42, 18) Source(49, 18) + SourceIndex(0) +5 >Emitted(42, 19) Source(49, 19) + SourceIndex(0) --- >>>} 1 > @@ -1047,8 +1108,8 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1 > > 2 >} -1 >Emitted(35, 1) Source(50, 1) + SourceIndex(0) -2 >Emitted(35, 2) Source(50, 2) + SourceIndex(0) +1 >Emitted(43, 1) Source(50, 1) + SourceIndex(0) +2 >Emitted(43, 2) Source(50, 2) + SourceIndex(0) --- >>>function getMultiRobotB() { 1-> @@ -1056,7 +1117,7 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 1-> > > -1->Emitted(36, 1) Source(52, 1) + SourceIndex(0) +1->Emitted(44, 1) Source(52, 1) + SourceIndex(0) --- >>> return multiRobotB; 1->^^^^ @@ -1070,21 +1131,21 @@ sourceFile:sourceMapValidationDestructuringVariableStatementArrayBindingPatternD 3 > 4 > multiRobotB 5 > ; -1->Emitted(37, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(37, 11) Source(53, 11) + SourceIndex(0) -3 >Emitted(37, 12) Source(53, 12) + SourceIndex(0) -4 >Emitted(37, 23) Source(53, 23) + SourceIndex(0) -5 >Emitted(37, 24) Source(53, 24) + SourceIndex(0) +1->Emitted(45, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(45, 11) Source(53, 11) + SourceIndex(0) +3 >Emitted(45, 12) Source(53, 12) + SourceIndex(0) +4 >Emitted(45, 23) Source(53, 23) + SourceIndex(0) +5 >Emitted(45, 24) Source(53, 24) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(38, 1) Source(54, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(54, 2) + SourceIndex(0) +1 >Emitted(46, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(46, 2) Source(54, 2) + SourceIndex(0) --- ->>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24; +>>>var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33; >>>//# sourceMappingURL=sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationStatements.js.map b/tests/baselines/reference/sourceMapValidationStatements.js.map index 464ab4dc00283..5841f329e5edf 100644 --- a/tests/baselines/reference/sourceMapValidationStatements.js.map +++ b/tests/baselines/reference/sourceMapValidationStatements.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationStatements.js.map] -{"version":3,"file":"sourceMapValidationStatements.js","sourceRoot":"","sources":["sourceMapValidationStatements.ts"],"names":[],"mappings":"AAAA;IACI,IAAI,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1B,CAAC,IAAI,CAAC,CAAC;QACP,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IACD,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACT,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IAAC,IAAI,CAAC,CAAC;QACJ,CAAC,IAAI,EAAE,CAAC;QACR,CAAC,EAAE,CAAC;IACR,CAAC;IACD,IAAI,CAAC,GAAG;QACJ,CAAC;QACD,CAAC;QACD,CAAC;KACJ,CAAC;IACF,IAAI,GAAG,GAAG;QACN,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,OAAO;KACb,CAAC;IACF,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACb,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACD,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACnB,CAAE;IAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACT,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACb,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACf,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACD,MAAM,IAAI,KAAK,EAAE,CAAC;IACtB,CAAE;IAAA,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACV,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACP,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,GAAG,EAAE,CAAC;QACR,CAAC,GAAG,CAAC,CAAC;QACN,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACZ,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,SAAS,CAAC;YACN,CAAC,IAAI,CAAC,CAAC;YACP,CAAC,GAAG,EAAE,CAAC;YACP,KAAK,CAAC;QAEV,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACZ,CAAC,EAAE,CAAC;IACR,CAAC;IACD,GAAG,CAAC;QACA,CAAC,EAAE,CAAC;IACR,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAC;IACf,CAAC,GAAG,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,KAAK,CAAC,CAAC;IACR,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACX,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,CAAC;AACX,CAAC;AACD,IAAI,CAAC,GAAG;IACJ,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AACF,CAAC,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationStatements.js","sourceRoot":"","sources":["sourceMapValidationStatements.ts"],"names":[],"mappings":"AAAA;IACI,IAAI,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1B,CAAC,IAAI,CAAC,CAAC;QACP,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IACD,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACT,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IAAC,IAAI,CAAC,CAAC;QACJ,CAAC,IAAI,EAAE,CAAC;QACR,CAAC,EAAE,CAAC;IACR,CAAC;IACD,IAAI,CAAC,GAAG;QACJ,CAAC;QACD,CAAC;QACD,CAAC;KACJ,CAAC;IACF,IAAI,GAAG,GAAG;QACN,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,OAAO;KACb,CAAC;IACF,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACb,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACD,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACnB,CAAC;IAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACT,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACb,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACf,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACD,MAAM,IAAI,KAAK,EAAE,CAAC;IACtB,CAAC;IAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACV,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACP,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,GAAG,EAAE,CAAC;QACR,CAAC,GAAG,CAAC,CAAC;QACN,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACZ,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,SAAS,CAAC;YACN,CAAC,IAAI,CAAC,CAAC;YACP,CAAC,GAAG,EAAE,CAAC;YACP,KAAK,CAAC;QAEV,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACZ,CAAC,EAAE,CAAC;IACR,CAAC;IACD,GAAG,CAAC;QACA,CAAC,EAAE,CAAC;IACR,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAC;IACf,CAAC,GAAG,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,KAAK,CAAC,CAAC;IACR,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACX,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,CAAC;AACX,CAAC;AACD,IAAI,CAAC,GAAG;IACJ,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AACF,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt b/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt index ed7c9395d2fbb..7c5c5bfcfeba6 100644 --- a/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt @@ -525,9 +525,9 @@ sourceFile:sourceMapValidationStatements.ts 3 > ^^^^^^^^^^^-> 1 > > -2 > } +2 > } 1 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) -2 >Emitted(30, 6) Source(29, 7) + SourceIndex(0) +2 >Emitted(30, 6) Source(29, 6) + SourceIndex(0) --- >>> catch (e) { 1->^^^^ @@ -539,7 +539,7 @@ sourceFile:sourceMapValidationStatements.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^-> -1-> +1-> 2 > catch 3 > 4 > ( @@ -727,9 +727,9 @@ sourceFile:sourceMapValidationStatements.ts 3 > ^^^^^^^^^^^^-> 1 > > -2 > } +2 > } 1 >Emitted(41, 5) Source(38, 5) + SourceIndex(0) -2 >Emitted(41, 6) Source(38, 7) + SourceIndex(0) +2 >Emitted(41, 6) Source(38, 6) + SourceIndex(0) --- >>> catch (e1) { 1->^^^^ @@ -741,7 +741,7 @@ sourceFile:sourceMapValidationStatements.ts 7 > ^ 8 > ^ 9 > ^^^^-> -1-> +1-> 2 > catch 3 > 4 > ( diff --git a/tests/baselines/reference/sourceMapValidationTryCatchFinally.js.map b/tests/baselines/reference/sourceMapValidationTryCatchFinally.js.map index 4650641085608..8b8690b470d8e 100644 --- a/tests/baselines/reference/sourceMapValidationTryCatchFinally.js.map +++ b/tests/baselines/reference/sourceMapValidationTryCatchFinally.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationTryCatchFinally.js.map] -{"version":3,"file":"sourceMapValidationTryCatchFinally.js","sourceRoot":"","sources":["sourceMapValidationTryCatchFinally.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,EAAE,CAAC;AACX,IAAI,CAAC;IACD,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAE;AAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACT,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;QAAS,CAAC;IACP,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AACf,CAAC;AACD,IACA,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,IAAI,KAAK,EAAE,CAAC;AACtB,CACA;AAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CACT,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;QAED,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationTryCatchFinally.js","sourceRoot":"","sources":["sourceMapValidationTryCatchFinally.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,EAAE,CAAC;AACX,IAAI,CAAC;IACD,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;AAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACT,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;QAAS,CAAC;IACP,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AACf,CAAC;AACD,IACA,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,IAAI,KAAK,EAAE,CAAC;AACtB,CAAC;AACD,KAAK,CAAC,CAAC,CAAC,CAAC,CACT,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;QAED,CAAC;IACG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationTryCatchFinally.sourcemap.txt b/tests/baselines/reference/sourceMapValidationTryCatchFinally.sourcemap.txt index d625e74c262db..845ec5eeb27e7 100644 --- a/tests/baselines/reference/sourceMapValidationTryCatchFinally.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationTryCatchFinally.sourcemap.txt @@ -71,9 +71,9 @@ sourceFile:sourceMapValidationTryCatchFinally.ts 3 > ^^^^^^^^^^^-> 1 > > -2 >} +2 >} 1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(4, 3) + SourceIndex(0) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- >>>catch (e) { 1-> @@ -85,7 +85,7 @@ sourceFile:sourceMapValidationTryCatchFinally.ts 7 > ^ 8 > ^ 9 > ^^^^-> -1-> +1-> 2 >catch 3 > 4 > ( @@ -245,10 +245,9 @@ sourceFile:sourceMapValidationTryCatchFinally.ts 3 > ^^^^^^^^^^^-> 1 > > -2 >} - > +2 >} 1 >Emitted(14, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(14, 2) Source(14, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(13, 2) + SourceIndex(0) --- >>>catch (e) { 1-> @@ -260,7 +259,8 @@ sourceFile:sourceMapValidationTryCatchFinally.ts 7 > ^ 8 > ^ 9 > ^^^^-> -1-> +1-> + > 2 >catch 3 > 4 > ( diff --git a/tests/baselines/reference/strictModeReservedWordInDestructuring.js b/tests/baselines/reference/strictModeReservedWordInDestructuring.js index 78c8ab788ca84..1b2f853a8ab2a 100644 --- a/tests/baselines/reference/strictModeReservedWordInDestructuring.js +++ b/tests/baselines/reference/strictModeReservedWordInDestructuring.js @@ -10,9 +10,17 @@ var { public: a, protected: b } = { public: 1, protected: 2 }; //// [strictModeReservedWordInDestructuring.js] "use strict"; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var public = [1][0]; var public = { x: 1 }.x; -var private = [["hello"]][0][0]; -var _a = { y: { s: 1 }, z: { o: { p: 'h' } } }, static = _a.y.s, package = _a.z.o.p; -var _b = { public: 1, protected: 2 }, public = _b.public, protected = _b.protected; -var _c = { public: 1, protected: 2 }, a = _c.public, b = _c.protected; +var _a = __read([["hello"]][0], 1), private = _a[0]; +var _b = { y: { s: 1 }, z: { o: { p: 'h' } } }, static = _b.y.s, package = _b.z.o.p; +var _c = { public: 1, protected: 2 }, public = _c.public, protected = _c.protected; +var _d = { public: 1, protected: 2 }, a = _d.public, b = _d.protected; diff --git a/tests/baselines/reference/systemModule11.js b/tests/baselines/reference/systemModule11.js index 41574af1d9aa5..212a24b5e205f 100644 --- a/tests/baselines/reference/systemModule11.js +++ b/tests/baselines/reference/systemModule11.js @@ -55,8 +55,7 @@ System.register(["bar"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) - exports[n] = m[n]; + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; } exports_1(exports); } @@ -83,8 +82,7 @@ System.register(["bar"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) - exports[n] = m[n]; + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; } exports_1(exports); } @@ -111,8 +109,7 @@ System.register(["a", "bar"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) - exports[n] = m[n]; + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; } exports_1(exports); } @@ -162,8 +159,7 @@ System.register(["a"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default") - exports[n] = m[n]; + if (n !== "default") exports[n] = m[n]; } exports_1(exports); } diff --git a/tests/baselines/reference/systemModule13.js b/tests/baselines/reference/systemModule13.js index d3fee049e0490..9558cea4344da 100644 --- a/tests/baselines/reference/systemModule13.js +++ b/tests/baselines/reference/systemModule13.js @@ -7,15 +7,23 @@ for ([x] of [[1]]) {} //// [systemModule13.js] System.register([], function (exports_1, context_1) { "use strict"; + var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; + }; var __moduleName = context_1 && context_1.id; - var x, y, z, z0, z1, _a, _b; + var x, y, z, z0, z1, _a, _b, _c; return { setters: [], execute: function () { exports_1("x", x = (_a = [1, 2, 3], _a[0])), exports_1("y", y = _a[1]), exports_1("z", z = _a[2]); exports_1("z0", z0 = (_b = { a: true, b: { c: "123" } }, _b.a)), exports_1("z1", z1 = _b.b.c); for (var _i = 0, _a = [[1]]; _i < _a.length; _i++) { - exports_1("x", x = _a[_i][0]); + _c = __read(_a[_i], 1), exports_1("x", x = _c[0]); } } }; diff --git a/tests/baselines/reference/systemModule16.js b/tests/baselines/reference/systemModule16.js index 8058e0f2ea176..86b6a4482151e 100644 --- a/tests/baselines/reference/systemModule16.js +++ b/tests/baselines/reference/systemModule16.js @@ -27,8 +27,7 @@ System.register(["foo", "bar"], function (exports_1, context_1) { function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) - exports[n] = m[n]; + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; } exports_1(exports); } diff --git a/tests/baselines/reference/systemModule8.js b/tests/baselines/reference/systemModule8.js index 3065d4f35b301..89285ac076178 100644 --- a/tests/baselines/reference/systemModule8.js +++ b/tests/baselines/reference/systemModule8.js @@ -33,11 +33,19 @@ for ([x] of [[1]]) {} //// [systemModule8.js] System.register([], function (exports_1, context_1) { "use strict"; + var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; + }; var __moduleName = context_1 && context_1.id; function foo() { exports_1("x", x = 100); } - var x, y, z0, z1, _a; + var x, y, z0, z1, _a, _b; return { setters: [], execute: function () { @@ -64,7 +72,7 @@ System.register([], function (exports_1, context_1) { exports_1("y", y = [1][0]); exports_1("z0", z0 = (_a = { a: true, b: { c: "123" } }, _a.a)), exports_1("z1", z1 = _a.b.c); for (var _i = 0, _a = [[1]]; _i < _a.length; _i++) { - exports_1("x", x = _a[_i][0]); + _b = __read(_a[_i], 1), exports_1("x", x = _b[0]); } } }; diff --git a/tests/baselines/reference/systemModule9.js b/tests/baselines/reference/systemModule9.js index 9e497140083ec..fce3aa1bdf4dd 100644 --- a/tests/baselines/reference/systemModule9.js +++ b/tests/baselines/reference/systemModule9.js @@ -33,8 +33,7 @@ System.register(["file1", "file2", "file3", "file4", "file5", "file6", "file7"], function exportStar_1(m) { var exports = {}; for (var n in m) { - if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) - exports[n] = m[n]; + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; } exports_1(exports); } diff --git a/tests/baselines/reference/templateStringInYieldKeyword.errors.txt b/tests/baselines/reference/templateStringInYieldKeyword.errors.txt deleted file mode 100644 index 578c24e7ce90f..0000000000000 --- a/tests/baselines/reference/templateStringInYieldKeyword.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -tests/cases/conformance/es6/templates/templateStringInYieldKeyword.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/conformance/es6/templates/templateStringInYieldKeyword.ts (1 errors) ==== - function* gen() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - // Once this is supported, the inner expression does not need to be parenthesized. - var x = yield `abc${ x }def`; - } - \ No newline at end of file diff --git a/tests/baselines/reference/templateStringInYieldKeyword.js b/tests/baselines/reference/templateStringInYieldKeyword.js index e23eaa17c9cc0..5636c53857c0d 100644 --- a/tests/baselines/reference/templateStringInYieldKeyword.js +++ b/tests/baselines/reference/templateStringInYieldKeyword.js @@ -6,7 +6,41 @@ function* gen() { //// [templateStringInYieldKeyword.js] -function* gen() { - // Once this is supported, the inner expression does not need to be parenthesized. - var x = yield "abc" + x + "def"; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function gen() { + var x; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, "abc" + x + "def"]; + case 1: + x = _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/templateStringInYieldKeyword.symbols b/tests/baselines/reference/templateStringInYieldKeyword.symbols new file mode 100644 index 0000000000000..3e8e63d295459 --- /dev/null +++ b/tests/baselines/reference/templateStringInYieldKeyword.symbols @@ -0,0 +1,10 @@ +=== tests/cases/conformance/es6/templates/templateStringInYieldKeyword.ts === +function* gen() { +>gen : Symbol(gen, Decl(templateStringInYieldKeyword.ts, 0, 0)) + + // Once this is supported, the inner expression does not need to be parenthesized. + var x = yield `abc${ x }def`; +>x : Symbol(x, Decl(templateStringInYieldKeyword.ts, 2, 7)) +>x : Symbol(x, Decl(templateStringInYieldKeyword.ts, 2, 7)) +} + diff --git a/tests/baselines/reference/templateStringInYieldKeyword.types b/tests/baselines/reference/templateStringInYieldKeyword.types new file mode 100644 index 0000000000000..005bab9951fc2 --- /dev/null +++ b/tests/baselines/reference/templateStringInYieldKeyword.types @@ -0,0 +1,12 @@ +=== tests/cases/conformance/es6/templates/templateStringInYieldKeyword.ts === +function* gen() { +>gen : () => PseudoIterableIterator + + // Once this is supported, the inner expression does not need to be parenthesized. + var x = yield `abc${ x }def`; +>x : any +>yield `abc${ x }def` : any +>`abc${ x }def` : string +>x : any +} + diff --git a/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js b/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js index 8230f0ec8f1e4..ca0dbaa1306ba 100644 --- a/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js +++ b/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js @@ -6,7 +6,43 @@ function* gen { //// [templateStringWithEmbeddedYieldKeyword.js] -function* gen() { - // Once this is supported, yield *must* be parenthesized. - var x = "abc" + (yield 10) + "def"; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function gen() { + var x, _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + _a = "abc"; + return [4 /*yield*/, 10]; + case 1: + x = _a + (_b.sent()) + "def"; + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js index 6f30140c63ec1..12634430b3e54 100644 --- a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js +++ b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js @@ -30,6 +30,18 @@ new X(1,); //// [trailingCommasInFunctionParametersAndArguments.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; function f1(x) { } f1(1); function f2() { @@ -38,7 +50,7 @@ function f2() { args[_i - 0] = arguments[_i]; } } -f2.apply(void 0, []); +f2.apply(void 0, __spread([])); f3(1); f3(1, 2); // Works for constructors too diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.js b/tests/baselines/reference/transformNestedGeneratorsWithTry.js index 69273e6263398..ebc7e73a2cd3f 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.js +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.js @@ -34,7 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; 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; - return { next: verb(0), "throw": verb(1), "return": verb(2) }; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); diff --git a/tests/baselines/reference/tsxEmit1.js b/tests/baselines/reference/tsxEmit1.js index dacb3ad621ad1..8ecf5bdcdda00 100644 --- a/tests/baselines/reference/tsxEmit1.js +++ b/tests/baselines/reference/tsxEmit1.js @@ -41,6 +41,18 @@ var whitespace3 =
//// [file.jsx] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; var p; var selfClosed1 =
; var selfClosed2 =
; @@ -60,10 +72,10 @@ var SomeClass = (function () { SomeClass.prototype.f = function () { var _this = this; var rewrites1 =
{function () { return _this; }}
; - var rewrites2 =
{[p].concat(p, [p])}
; + var rewrites2 =
{__spread([p], p, [p])}
; var rewrites3 =
{{ p: p }}
; var rewrites4 =
; - var rewrites5 =
; + var rewrites5 =
; var rewrites6 =
; }; return SomeClass; diff --git a/tests/baselines/reference/tsxReactEmit1.js b/tests/baselines/reference/tsxReactEmit1.js index 20a91b3fe89e0..ab73afc89b4c9 100644 --- a/tests/baselines/reference/tsxReactEmit1.js +++ b/tests/baselines/reference/tsxReactEmit1.js @@ -42,6 +42,18 @@ var whitespace3 =
//// [file.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; var p; var selfClosed1 = React.createElement("div", null); var selfClosed2 = React.createElement("div", { x: "1" }); @@ -61,10 +73,10 @@ var SomeClass = (function () { SomeClass.prototype.f = function () { var _this = this; var rewrites1 = React.createElement("div", null, function () { return _this; }); - var rewrites2 = React.createElement("div", null, [p].concat(p, [p])); + var rewrites2 = React.createElement("div", null, __spread([p], p, [p])); var rewrites3 = React.createElement("div", null, { p: p }); var rewrites4 = React.createElement("div", { a: function () { return _this; } }); - var rewrites5 = React.createElement("div", { a: [p].concat(p, [p]) }); + var rewrites5 = React.createElement("div", { a: __spread([p], p, [p]) }); var rewrites6 = React.createElement("div", { a: { p: p } }); }; return SomeClass; diff --git a/tests/baselines/reference/tupleElementTypes2.js b/tests/baselines/reference/tupleElementTypes2.js index 56a7b1c889e61..195cdd7ca1e3b 100644 --- a/tests/baselines/reference/tupleElementTypes2.js +++ b/tests/baselines/reference/tupleElementTypes2.js @@ -2,6 +2,14 @@ function f([a, b]: [number, any]) { } //// [tupleElementTypes2.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f(_a) { - var a = _a[0], b = _a[1]; + var _b = __read(_a, 2), a = _b[0], b = _b[1]; } diff --git a/tests/baselines/reference/tupleElementTypes4.js b/tests/baselines/reference/tupleElementTypes4.js index 58c5b3f31ae8d..652f5a81d9f0f 100644 --- a/tests/baselines/reference/tupleElementTypes4.js +++ b/tests/baselines/reference/tupleElementTypes4.js @@ -2,6 +2,14 @@ function f([a, b] = [0, undefined]) { } //// [tupleElementTypes4.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f(_a) { - var _b = _a === void 0 ? [0, undefined] : _a, a = _b[0], b = _b[1]; + var _b = __read(_a === void 0 ? [0, undefined] : _a, 2), a = _b[0], b = _b[1]; } diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js index 244b0df3333db..67cdf85edf751 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.js +++ b/tests/baselines/reference/typeGuardFunctionErrors.js @@ -151,6 +151,14 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var A = (function () { function A() { } @@ -274,7 +282,7 @@ function b5(_a, p2, p3) { return true; } function b6(_a, p2, p3) { - var a = _a[0], b = _a[1], p1 = _a[2]; + var _b = __read(_a, 3), a = _b[0], b = _b[1], p1 = _b[2]; return true; } function b7(_a, p2, p3) { diff --git a/tests/baselines/reference/typeInferenceFBoundedTypeParams.js b/tests/baselines/reference/typeInferenceFBoundedTypeParams.js index 3e30901df0647..aa107fe411f55 100644 --- a/tests/baselines/reference/typeInferenceFBoundedTypeParams.js +++ b/tests/baselines/reference/typeInferenceFBoundedTypeParams.js @@ -25,12 +25,30 @@ fold( //// [typeInferenceFBoundedTypeParams.js] // Example from #6037 +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; function fold(values, result, fold) { - for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { - var value = values_1[_i]; - result = fold(result, value); + try { + for (var values_1 = { iterator: __values(values) }; __step(values_1);) { + var value = values_1.result.value; + result = fold(result, value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { __close(values_1); } finally { if (e_1) throw e_1.error; } } return result; + var e_1; } function append(values, value) { values.push(value); diff --git a/tests/baselines/reference/underscoreTest1.js b/tests/baselines/reference/underscoreTest1.js index 687a210e6707c..63e4c16ea1ea0 100644 --- a/tests/baselines/reference/underscoreTest1.js +++ b/tests/baselines/reference/underscoreTest1.js @@ -5,7 +5,7 @@ interface Dictionary { [x: string]: T; } -interface Iterator { +interface Iterator_ { (value: T, index: any, list: any): U; } @@ -81,10 +81,10 @@ module Underscore { } export interface WrappedArray extends WrappedObject> { - each(iterator: Iterator, context?: any): void; - forEach(iterator: Iterator, context?: any): void; - map(iterator: Iterator, context?: any): U[]; - collect(iterator: Iterator, context?: any): U[]; + each(iterator: Iterator_, context?: any): void; + forEach(iterator: Iterator_, context?: any): void; + map(iterator: Iterator_, context?: any): U[]; + collect(iterator: Iterator_, context?: any): U[]; reduce(iterator: Reducer, initialValue?: T, context?: any): T; reduce(iterator: Reducer, initialValue: U, context?: any): U; foldl(iterator: Reducer, initialValue?: T, context?: any): T; @@ -95,28 +95,28 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): U; foldr(iterator: Reducer, initialValue?: T, context?: any): T; foldr(iterator: Reducer, initialValue: U, context?: any): U; - find(iterator: Iterator, context?: any): T; - detect(iterator: Iterator, context?: any): T; - filter(iterator: Iterator, context?: any): T[]; - select(iterator: Iterator, context?: any): T[]; + find(iterator: Iterator_, context?: any): T; + detect(iterator: Iterator_, context?: any): T; + filter(iterator: Iterator_, context?: any): T[]; + select(iterator: Iterator_, context?: any): T[]; where(properties: Object): T[]; findWhere(properties: Object): T; - reject(iterator: Iterator, context?: any): T[]; - every(iterator?: Iterator, context?: any): boolean; - all(iterator?: Iterator, context?: any): boolean; - some(iterator?: Iterator, context?: any): boolean; - any(iterator?: Iterator, context?: any): boolean; + reject(iterator: Iterator_, context?: any): T[]; + every(iterator?: Iterator_, context?: any): boolean; + all(iterator?: Iterator_, context?: any): boolean; + some(iterator?: Iterator_, context?: any): boolean; + any(iterator?: Iterator_, context?: any): boolean; contains(value: T): boolean; include(value: T): boolean; invoke(methodName: string, ...args: any[]): any[]; pluck(propertyName: string): any[]; - max(iterator?: Iterator, context?: any): T; - min(iterator?: Iterator, context?: any): T; - sortBy(iterator: Iterator, context?: any): T[]; + max(iterator?: Iterator_, context?: any): T; + min(iterator?: Iterator_, context?: any): T; + sortBy(iterator: Iterator_, context?: any): T[]; sortBy(propertyName: string): T[]; - groupBy(iterator?: Iterator, context?: any): Dictionary; + groupBy(iterator?: Iterator_, context?: any): Dictionary; groupBy(propertyName: string): Dictionary; - countBy(iterator?: Iterator, context?: any): Dictionary; + countBy(iterator?: Iterator_, context?: any): Dictionary; countBy(propertyName: string): Dictionary; shuffle(): T[]; toArray(): T[]; @@ -139,16 +139,16 @@ module Underscore { intersection(...arrays: T[][]): T[]; difference(...others: T[][]): T[]; uniq(isSorted?: boolean): T[]; - uniq(isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): U[]; unique(isSorted?: boolean): T[]; - unique(isSorted: boolean, iterator: Iterator, context?: any): U[]; + unique(isSorted: boolean, iterator: Iterator_, context?: any): U[]; zip(...arrays: any[][]): any[][]; object(): any; object(values: any[]): any; indexOf(value: T, isSorted?: boolean): number; lastIndexOf(value: T, fromIndex?: number): number; sortedIndex(obj: T, propertyName: string): number; - sortedIndex(obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): number; // Methods from Array concat(...items: T[]): T[]; join(separator?: string): string; @@ -164,10 +164,10 @@ module Underscore { } export interface WrappedDictionary extends WrappedObject> { - each(iterator: Iterator, context?: any): void; - forEach(iterator: Iterator, context?: any): void; - map(iterator: Iterator, context?: any): U[]; - collect(iterator: Iterator, context?: any): U[]; + each(iterator: Iterator_, context?: any): void; + forEach(iterator: Iterator_, context?: any): void; + map(iterator: Iterator_, context?: any): U[]; + collect(iterator: Iterator_, context?: any): U[]; reduce(iterator: Reducer, initialValue?: T, context?: any): T; reduce(iterator: Reducer, initialValue: U, context?: any): U; foldl(iterator: Reducer, initialValue?: T, context?: any): T; @@ -178,28 +178,28 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): U; foldr(iterator: Reducer, initialValue?: T, context?: any): T; foldr(iterator: Reducer, initialValue: U, context?: any): U; - find(iterator: Iterator, context?: any): T; - detect(iterator: Iterator, context?: any): T; - filter(iterator: Iterator, context?: any): T[]; - select(iterator: Iterator, context?: any): T[]; + find(iterator: Iterator_, context?: any): T; + detect(iterator: Iterator_, context?: any): T; + filter(iterator: Iterator_, context?: any): T[]; + select(iterator: Iterator_, context?: any): T[]; where(properties: Object): T[]; findWhere(properties: Object): T; - reject(iterator: Iterator, context?: any): T[]; - every(iterator?: Iterator, context?: any): boolean; - all(iterator?: Iterator, context?: any): boolean; - some(iterator?: Iterator, context?: any): boolean; - any(iterator?: Iterator, context?: any): boolean; + reject(iterator: Iterator_, context?: any): T[]; + every(iterator?: Iterator_, context?: any): boolean; + all(iterator?: Iterator_, context?: any): boolean; + some(iterator?: Iterator_, context?: any): boolean; + any(iterator?: Iterator_, context?: any): boolean; contains(value: T): boolean; include(value: T): boolean; invoke(methodName: string, ...args: any[]): any[]; pluck(propertyName: string): any[]; - max(iterator?: Iterator, context?: any): T; - min(iterator?: Iterator, context?: any): T; - sortBy(iterator: Iterator, context?: any): T[]; + max(iterator?: Iterator_, context?: any): T; + min(iterator?: Iterator_, context?: any): T; + sortBy(iterator: Iterator_, context?: any): T[]; sortBy(propertyName: string): T[]; - groupBy(iterator?: Iterator, context?: any): Dictionary; + groupBy(iterator?: Iterator_, context?: any): Dictionary; groupBy(propertyName: string): Dictionary; - countBy(iterator?: Iterator, context?: any): Dictionary; + countBy(iterator?: Iterator_, context?: any): Dictionary; countBy(propertyName: string): Dictionary; shuffle(): T[]; toArray(): T[]; @@ -240,10 +240,10 @@ module Underscore { } export interface ChainedArray extends ChainedObject> { - each(iterator: Iterator, context?: any): ChainedObject; - forEach(iterator: Iterator, context?: any): ChainedObject; - map(iterator: Iterator, context?: any): ChainedArray; - collect(iterator: Iterator, context?: any): ChainedArray; + each(iterator: Iterator_, context?: any): ChainedObject; + forEach(iterator: Iterator_, context?: any): ChainedObject; + map(iterator: Iterator_, context?: any): ChainedArray; + collect(iterator: Iterator_, context?: any): ChainedArray; reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldl(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; @@ -254,29 +254,29 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue: U, context?: any): ChainedObject; - find(iterator: Iterator, context?: any): ChainedObject; - detect(iterator: Iterator, context?: any): ChainedObject; - filter(iterator: Iterator, context?: any): ChainedArray; - select(iterator: Iterator, context?: any): ChainedArray; + find(iterator: Iterator_, context?: any): ChainedObject; + detect(iterator: Iterator_, context?: any): ChainedObject; + filter(iterator: Iterator_, context?: any): ChainedArray; + select(iterator: Iterator_, context?: any): ChainedArray; where(properties: Object): ChainedArray; findWhere(properties: Object): ChainedObject; - reject(iterator: Iterator, context?: any): ChainedArray; - every(iterator?: Iterator, context?: any): ChainedObject; - all(iterator?: Iterator, context?: any): ChainedObject; - some(iterator?: Iterator, context?: any): ChainedObject; - any(iterator?: Iterator, context?: any): ChainedObject; + reject(iterator: Iterator_, context?: any): ChainedArray; + every(iterator?: Iterator_, context?: any): ChainedObject; + all(iterator?: Iterator_, context?: any): ChainedObject; + some(iterator?: Iterator_, context?: any): ChainedObject; + any(iterator?: Iterator_, context?: any): ChainedObject; contains(value: T): ChainedObject; include(value: T): ChainedObject; invoke(methodName: string, ...args: any[]): ChainedArray; pluck(propertyName: string): ChainedArray; - max(iterator?: Iterator, context?: any): ChainedObject; - min(iterator?: Iterator, context?: any): ChainedObject; - sortBy(iterator: Iterator, context?: any): ChainedArray; + max(iterator?: Iterator_, context?: any): ChainedObject; + min(iterator?: Iterator_, context?: any): ChainedObject; + sortBy(iterator: Iterator_, context?: any): ChainedArray; sortBy(propertyName: string): ChainedArray; // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; groupBy(propertyName: string): ChainedDictionary; - countBy(iterator?: Iterator, context?: any): ChainedDictionary; + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; countBy(propertyName: string): ChainedDictionary; shuffle(): ChainedArray; toArray(): ChainedArray; @@ -299,16 +299,16 @@ module Underscore { intersection(...arrays: T[][]): ChainedArray; difference(...others: T[][]): ChainedArray; uniq(isSorted?: boolean): ChainedArray; - uniq(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; unique(isSorted?: boolean): ChainedArray; - unique(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; + unique(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; zip(...arrays: any[][]): ChainedArray; object(): ChainedObject; object(values: any[]): ChainedObject; indexOf(value: T, isSorted?: boolean): ChainedObject; lastIndexOf(value: T, fromIndex?: number): ChainedObject; sortedIndex(obj: T, propertyName: string): ChainedObject; - sortedIndex(obj: T, iterator?: Iterator, context?: any): ChainedObject; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): ChainedObject; // Methods from Array concat(...items: T[]): ChainedArray; join(separator?: string): ChainedObject; @@ -331,10 +331,10 @@ module Underscore { } export interface ChainedDictionary extends ChainedObject> { - each(iterator: Iterator, context?: any): ChainedObject; - forEach(iterator: Iterator, context?: any): ChainedObject; - map(iterator: Iterator, context?: any): ChainedArray; - collect(iterator: Iterator, context?: any): ChainedArray; + each(iterator: Iterator_, context?: any): ChainedObject; + forEach(iterator: Iterator_, context?: any): ChainedObject; + map(iterator: Iterator_, context?: any): ChainedArray; + collect(iterator: Iterator_, context?: any): ChainedArray; reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldl(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; @@ -345,29 +345,29 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue: U, context?: any): ChainedObject; - find(iterator: Iterator, context?: any): ChainedObject; - detect(iterator: Iterator, context?: any): ChainedObject; - filter(iterator: Iterator, context?: any): ChainedArray; - select(iterator: Iterator, context?: any): ChainedArray; + find(iterator: Iterator_, context?: any): ChainedObject; + detect(iterator: Iterator_, context?: any): ChainedObject; + filter(iterator: Iterator_, context?: any): ChainedArray; + select(iterator: Iterator_, context?: any): ChainedArray; where(properties: Object): ChainedArray; findWhere(properties: Object): ChainedObject; - reject(iterator: Iterator, context?: any): ChainedArray; - every(iterator?: Iterator, context?: any): ChainedObject; - all(iterator?: Iterator, context?: any): ChainedObject; - some(iterator?: Iterator, context?: any): ChainedObject; - any(iterator?: Iterator, context?: any): ChainedObject; + reject(iterator: Iterator_, context?: any): ChainedArray; + every(iterator?: Iterator_, context?: any): ChainedObject; + all(iterator?: Iterator_, context?: any): ChainedObject; + some(iterator?: Iterator_, context?: any): ChainedObject; + any(iterator?: Iterator_, context?: any): ChainedObject; contains(value: T): ChainedObject; include(value: T): ChainedObject; invoke(methodName: string, ...args: any[]): ChainedArray; pluck(propertyName: string): ChainedArray; - max(iterator?: Iterator, context?: any): ChainedObject; - min(iterator?: Iterator, context?: any): ChainedObject; - sortBy(iterator: Iterator, context?: any): ChainedArray; + max(iterator?: Iterator_, context?: any): ChainedObject; + min(iterator?: Iterator_, context?: any): ChainedObject; + sortBy(iterator: Iterator_, context?: any): ChainedArray; sortBy(propertyName: string): ChainedArray; // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; groupBy(propertyName: string): ChainedDictionary; - countBy(iterator?: Iterator, context?: any): ChainedDictionary; + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; countBy(propertyName: string): ChainedDictionary; shuffle(): ChainedArray; toArray(): ChainedArray; @@ -398,15 +398,15 @@ module Underscore { chain(list: Dictionary): ChainedDictionary; chain(obj: T): ChainedObject; - each(list: T[], iterator: Iterator, context?: any): void; - each(list: Dictionary, iterator: Iterator, context?: any): void; - forEach(list: T[], iterator: Iterator, context?: any): void; - forEach(list: Dictionary, iterator: Iterator, context?: any): void; + each(list: T[], iterator: Iterator_, context?: any): void; + each(list: Dictionary, iterator: Iterator_, context?: any): void; + forEach(list: T[], iterator: Iterator_, context?: any): void; + forEach(list: Dictionary, iterator: Iterator_, context?: any): void; - map(list: T[], iterator: Iterator, context?: any): U[]; - map(list: Dictionary, iterator: Iterator, context?: any): U[]; - collect(list: T[], iterator: Iterator, context?: any): U[]; - collect(list: Dictionary, iterator: Iterator, context?: any): U[]; + map(list: T[], iterator: Iterator_, context?: any): U[]; + map(list: Dictionary, iterator: Iterator_, context?: any): U[]; + collect(list: T[], iterator: Iterator_, context?: any): U[]; + collect(list: Dictionary, iterator: Iterator_, context?: any): U[]; reduce(list: T[], iterator: Reducer, initialValue?: T, context?: any): T; reduce(list: T[], iterator: Reducer, initialValue: U, context?: any): U; @@ -430,15 +430,15 @@ module Underscore { foldr(list: Dictionary, iterator: Reducer, initialValue?: T, context?: any): T; foldr(list: Dictionary, iterator: Reducer, initialValue: U, context?: any): U; - find(list: T[], iterator: Iterator, context?: any): T; - find(list: Dictionary, iterator: Iterator, context?: any): T; - detect(list: T[], iterator: Iterator, context?: any): T; - detect(list: Dictionary, iterator: Iterator, context?: any): T; + find(list: T[], iterator: Iterator_, context?: any): T; + find(list: Dictionary, iterator: Iterator_, context?: any): T; + detect(list: T[], iterator: Iterator_, context?: any): T; + detect(list: Dictionary, iterator: Iterator_, context?: any): T; - filter(list: T[], iterator: Iterator, context?: any): T[]; - filter(list: Dictionary, iterator: Iterator, context?: any): T[]; - select(list: T[], iterator: Iterator, context?: any): T[]; - select(list: Dictionary, iterator: Iterator, context?: any): T[]; + filter(list: T[], iterator: Iterator_, context?: any): T[]; + filter(list: Dictionary, iterator: Iterator_, context?: any): T[]; + select(list: T[], iterator: Iterator_, context?: any): T[]; + select(list: Dictionary, iterator: Iterator_, context?: any): T[]; where(list: T[], properties: Object): T[]; where(list: Dictionary, properties: Object): T[]; @@ -446,18 +446,18 @@ module Underscore { findWhere(list: T[], properties: Object): T; findWhere(list: Dictionary, properties: Object): T; - reject(list: T[], iterator: Iterator, context?: any): T[]; - reject(list: Dictionary, iterator: Iterator, context?: any): T[]; + reject(list: T[], iterator: Iterator_, context?: any): T[]; + reject(list: Dictionary, iterator: Iterator_, context?: any): T[]; - every(list: T[], iterator?: Iterator, context?: any): boolean; - every(list: Dictionary, iterator?: Iterator, context?: any): boolean; - all(list: T[], iterator?: Iterator, context?: any): boolean; - all(list: Dictionary, iterator?: Iterator, context?: any): boolean; + every(list: T[], iterator?: Iterator_, context?: any): boolean; + every(list: Dictionary, iterator?: Iterator_, context?: any): boolean; + all(list: T[], iterator?: Iterator_, context?: any): boolean; + all(list: Dictionary, iterator?: Iterator_, context?: any): boolean; - some(list: T[], iterator?: Iterator, context?: any): boolean; - some(list: Dictionary, iterator?: Iterator, context?: any): boolean; - any(list: T[], iterator?: Iterator, context?: any): boolean; - any(list: Dictionary, iterator?: Iterator, context?: any): boolean; + some(list: T[], iterator?: Iterator_, context?: any): boolean; + some(list: Dictionary, iterator?: Iterator_, context?: any): boolean; + any(list: T[], iterator?: Iterator_, context?: any): boolean; + any(list: Dictionary, iterator?: Iterator_, context?: any): boolean; contains(list: T[], value: T): boolean; contains(list: Dictionary, value: T): boolean; @@ -470,24 +470,24 @@ module Underscore { pluck(list: any[], propertyName: string): any[]; pluck(list: Dictionary, propertyName: string): any[]; - max(list: T[], iterator?: Iterator, context?: any): T; - max(list: Dictionary, iterator?: Iterator, context?: any): T; + max(list: T[], iterator?: Iterator_, context?: any): T; + max(list: Dictionary, iterator?: Iterator_, context?: any): T; - min(list: T[], iterator?: Iterator, context?: any): T; - min(list: Dictionary, iterator?: Iterator, context?: any): T; + min(list: T[], iterator?: Iterator_, context?: any): T; + min(list: Dictionary, iterator?: Iterator_, context?: any): T; - sortBy(list: T[], iterator: Iterator, context?: any): T[]; - sortBy(list: Dictionary, iterator: Iterator, context?: any): T[]; + sortBy(list: T[], iterator: Iterator_, context?: any): T[]; + sortBy(list: Dictionary, iterator: Iterator_, context?: any): T[]; sortBy(list: T[], propertyName: string): T[]; sortBy(list: Dictionary, propertyName: string): T[]; - groupBy(list: T[], iterator?: Iterator, context?: any): Dictionary; - groupBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; + groupBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; + groupBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; groupBy(list: T[], propertyName: string): Dictionary; groupBy(list: Dictionary, propertyName: string): Dictionary; - countBy(list: T[], iterator?: Iterator, context?: any): Dictionary; - countBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; + countBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; + countBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; countBy(list: T[], propertyName: string): Dictionary; countBy(list: Dictionary, propertyName: string): Dictionary; @@ -529,9 +529,9 @@ module Underscore { difference(list: T[], ...others: T[][]): T[]; uniq(list: T[], isSorted?: boolean): T[]; - uniq(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; unique(list: T[], isSorted?: boolean): T[]; - unique(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; + unique(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; zip(a0: T0[], a1: T1[]): Tuple2[]; zip(a0: T0[], a1: T1[], a2: T2[]): Tuple3[]; @@ -546,7 +546,7 @@ module Underscore { lastIndexOf(list: T[], value: T, fromIndex?: number): number; sortedIndex(list: T[], obj: T, propertyName: string): number; - sortedIndex(list: T[], obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(list: T[], obj: T, iterator?: Iterator_, context?: any): number; range(stop: number): number[]; range(start: number, stop: number, step?: number): number[]; @@ -623,7 +623,7 @@ module Underscore { identity(value: T): T; - times(n: number, iterator: Iterator, context?: any): U[]; + times(n: number, iterator: Iterator_, context?: any): U[]; random(max: number): number; random(min: number, max: number): number; diff --git a/tests/baselines/reference/underscoreTest1.symbols b/tests/baselines/reference/underscoreTest1.symbols index 89815bd2371a6..41b0c8110275a 100644 --- a/tests/baselines/reference/underscoreTest1.symbols +++ b/tests/baselines/reference/underscoreTest1.symbols @@ -9,9 +9,9 @@ declare function alert(x: string): void; >x : Symbol(x, Decl(underscoreTest1_underscoreTests.ts, 3, 23)) _.each([1, 2, 3], (num) => alert(num.toString())); ->_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 5, 19)) >alert : Symbol(alert, Decl(underscoreTest1_underscoreTests.ts, 2, 14)) >num.toString : Symbol(Number.toString, Decl(lib.d.ts, --, --)) @@ -19,9 +19,9 @@ _.each([1, 2, 3], (num) => alert(num.toString())); >toString : Symbol(Number.toString, Decl(lib.d.ts, --, --)) _.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(value.toString())); ->_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >one : Symbol(one, Decl(underscoreTest1_underscoreTests.ts, 6, 8)) >two : Symbol(two, Decl(underscoreTest1_underscoreTests.ts, 6, 16)) >three : Symbol(three, Decl(underscoreTest1_underscoreTests.ts, 6, 24)) @@ -33,16 +33,16 @@ _.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(valu >toString : Symbol(Number.toString, Decl(lib.d.ts, --, --)) _.map([1, 2, 3], (num) => num * 3); ->_.map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) +>_.map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) +>map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 8, 18)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 8, 18)) _.map({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => value * 3); ->_.map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) +>_.map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) +>map : Symbol(Underscore.Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >one : Symbol(one, Decl(underscoreTest1_underscoreTests.ts, 9, 7)) >two : Symbol(two, Decl(underscoreTest1_underscoreTests.ts, 9, 15)) >three : Symbol(three, Decl(underscoreTest1_underscoreTests.ts, 9, 23)) @@ -52,9 +52,9 @@ _.map({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => value * 3); var sum = _.reduce([1, 2, 3], (memo, num) => memo + num, 0); >sum : Symbol(sum, Decl(underscoreTest1_underscoreTests.ts, 11, 3)) ->_.reduce : Symbol(Underscore.Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>_.reduce : Symbol(Underscore.Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->reduce : Symbol(Underscore.Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>reduce : Symbol(Underscore.Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >memo : Symbol(memo, Decl(underscoreTest1_underscoreTests.ts, 11, 31)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 11, 36)) >memo : Symbol(memo, Decl(underscoreTest1_underscoreTests.ts, 11, 31)) @@ -78,17 +78,17 @@ var flat = _.reduceRight(list, (a, b) => a.concat(b), []); var even = _.find([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >even : Symbol(even, Decl(underscoreTest1_underscoreTests.ts, 16, 3)) ->_.find : Symbol(Underscore.Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 77)) +>_.find : Symbol(Underscore.Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 78)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->find : Symbol(Underscore.Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 77)) +>find : Symbol(Underscore.Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 78)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 16, 39)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 16, 39)) var evens = _.filter([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >evens : Symbol(evens, Decl(underscoreTest1_underscoreTests.ts, 18, 3)) ->_.filter : Symbol(Underscore.Static.filter, Decl(underscoreTest1_underscore.ts, 432, 89), Decl(underscoreTest1_underscore.ts, 434, 81)) +>_.filter : Symbol(Underscore.Static.filter, Decl(underscoreTest1_underscore.ts, 432, 90), Decl(underscoreTest1_underscore.ts, 434, 82)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->filter : Symbol(Underscore.Static.filter, Decl(underscoreTest1_underscore.ts, 432, 89), Decl(underscoreTest1_underscore.ts, 434, 81)) +>filter : Symbol(Underscore.Static.filter, Decl(underscoreTest1_underscore.ts, 432, 90), Decl(underscoreTest1_underscore.ts, 434, 82)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 18, 42)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 18, 42)) @@ -105,38 +105,38 @@ var listOfPlays = [{ title: "Cymbeline", author: "Shakespeare", year: 1611 }, { >year : Symbol(year, Decl(underscoreTest1_underscoreTests.ts, 20, 183)) _.where(listOfPlays, { author: "Shakespeare", year: 1611 }); ->_.where : Symbol(Underscore.Static.where, Decl(underscoreTest1_underscore.ts, 437, 91), Decl(underscoreTest1_underscore.ts, 439, 53)) +>_.where : Symbol(Underscore.Static.where, Decl(underscoreTest1_underscore.ts, 437, 92), Decl(underscoreTest1_underscore.ts, 439, 53)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->where : Symbol(Underscore.Static.where, Decl(underscoreTest1_underscore.ts, 437, 91), Decl(underscoreTest1_underscore.ts, 439, 53)) +>where : Symbol(Underscore.Static.where, Decl(underscoreTest1_underscore.ts, 437, 92), Decl(underscoreTest1_underscore.ts, 439, 53)) >listOfPlays : Symbol(listOfPlays, Decl(underscoreTest1_underscoreTests.ts, 20, 3)) >author : Symbol(author, Decl(underscoreTest1_underscoreTests.ts, 21, 22)) >year : Symbol(year, Decl(underscoreTest1_underscoreTests.ts, 21, 45)) var odds = _.reject([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >odds : Symbol(odds, Decl(underscoreTest1_underscoreTests.ts, 23, 3)) ->_.reject : Symbol(Underscore.Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 81)) +>_.reject : Symbol(Underscore.Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 82)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->reject : Symbol(Underscore.Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 81)) +>reject : Symbol(Underscore.Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 82)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 23, 41)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 23, 41)) _.all([true, 1, null, 'yes'], _.identity); ->_.all : Symbol(Underscore.Static.all, Decl(underscoreTest1_underscore.ts, 449, 95), Decl(underscoreTest1_underscore.ts, 450, 83)) +>_.all : Symbol(Underscore.Static.all, Decl(underscoreTest1_underscore.ts, 449, 96), Decl(underscoreTest1_underscore.ts, 450, 84)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->all : Symbol(Underscore.Static.all, Decl(underscoreTest1_underscore.ts, 449, 95), Decl(underscoreTest1_underscore.ts, 450, 83)) +>all : Symbol(Underscore.Static.all, Decl(underscoreTest1_underscore.ts, 449, 96), Decl(underscoreTest1_underscore.ts, 450, 84)) >_.identity : Symbol(Underscore.Static.identity, Decl(underscoreTest1_underscore.ts, 618, 29)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) >identity : Symbol(Underscore.Static.identity, Decl(underscoreTest1_underscore.ts, 618, 29)) _.any([null, 0, 'yes', false]); ->_.any : Symbol(Underscore.Static.any, Decl(underscoreTest1_underscore.ts, 454, 94), Decl(underscoreTest1_underscore.ts, 455, 83)) +>_.any : Symbol(Underscore.Static.any, Decl(underscoreTest1_underscore.ts, 454, 95), Decl(underscoreTest1_underscore.ts, 455, 84)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->any : Symbol(Underscore.Static.any, Decl(underscoreTest1_underscore.ts, 454, 94), Decl(underscoreTest1_underscore.ts, 455, 83)) +>any : Symbol(Underscore.Static.any, Decl(underscoreTest1_underscore.ts, 454, 95), Decl(underscoreTest1_underscore.ts, 455, 84)) _.contains([1, 2, 3], 3); ->_.contains : Symbol(Underscore.Static.contains, Decl(underscoreTest1_underscore.ts, 456, 93), Decl(underscoreTest1_underscore.ts, 458, 50)) +>_.contains : Symbol(Underscore.Static.contains, Decl(underscoreTest1_underscore.ts, 456, 94), Decl(underscoreTest1_underscore.ts, 458, 50)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->contains : Symbol(Underscore.Static.contains, Decl(underscoreTest1_underscore.ts, 456, 93), Decl(underscoreTest1_underscore.ts, 458, 50)) +>contains : Symbol(Underscore.Static.contains, Decl(underscoreTest1_underscore.ts, 456, 94), Decl(underscoreTest1_underscore.ts, 458, 50)) _.invoke([[5, 1, 7], [3, 2, 1]], 'sort'); >_.invoke : Symbol(Underscore.Static.invoke, Decl(underscoreTest1_underscore.ts, 461, 59), Decl(underscoreTest1_underscore.ts, 463, 71)) @@ -159,9 +159,9 @@ _.pluck(stooges, 'name'); >stooges : Symbol(stooges, Decl(underscoreTest1_underscoreTests.ts, 33, 3)) _.max(stooges, (stooge) => stooge.age); ->_.max : Symbol(Underscore.Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 73)) +>_.max : Symbol(Underscore.Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 74)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->max : Symbol(Underscore.Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 73)) +>max : Symbol(Underscore.Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 74)) >stooges : Symbol(stooges, Decl(underscoreTest1_underscoreTests.ts, 33, 3)) >stooge : Symbol(stooge, Decl(underscoreTest1_underscoreTests.ts, 36, 16)) >stooge.age : Symbol(age, Decl(underscoreTest1_underscoreTests.ts, 33, 29)) @@ -172,15 +172,15 @@ var numbers = [10, 5, 100, 2, 1000]; >numbers : Symbol(numbers, Decl(underscoreTest1_underscoreTests.ts, 38, 3)) _.min(numbers); ->_.min : Symbol(Underscore.Static.min, Decl(underscoreTest1_underscore.ts, 470, 83), Decl(underscoreTest1_underscore.ts, 472, 73)) +>_.min : Symbol(Underscore.Static.min, Decl(underscoreTest1_underscore.ts, 470, 84), Decl(underscoreTest1_underscore.ts, 472, 74)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->min : Symbol(Underscore.Static.min, Decl(underscoreTest1_underscore.ts, 470, 83), Decl(underscoreTest1_underscore.ts, 472, 73)) +>min : Symbol(Underscore.Static.min, Decl(underscoreTest1_underscore.ts, 470, 84), Decl(underscoreTest1_underscore.ts, 472, 74)) >numbers : Symbol(numbers, Decl(underscoreTest1_underscoreTests.ts, 38, 3)) _.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)); ->_.sortBy : Symbol(Underscore.Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) +>_.sortBy : Symbol(Underscore.Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->sortBy : Symbol(Underscore.Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) +>sortBy : Symbol(Underscore.Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 41, 30)) >Math.sin : Symbol(Math.sin, Decl(lib.d.ts, --, --)) >Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) @@ -190,9 +190,9 @@ _.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)); // not sure how this is typechecking at all.. Math.floor(e) is number not string..? _([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floor(e)); ->_([1.3, 2.1, 2.4]).groupBy : Symbol(Underscore.WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 77)) +>_([1.3, 2.1, 2.4]).groupBy : Symbol(Underscore.WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 78)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->groupBy : Symbol(Underscore.WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 77)) +>groupBy : Symbol(Underscore.WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 78)) >e : Symbol(e, Decl(underscoreTest1_underscoreTests.ts, 45, 28)) >i : Symbol(i, Decl(underscoreTest1_underscoreTests.ts, 45, 38)) >list : Symbol(list, Decl(underscoreTest1_underscoreTests.ts, 45, 50)) @@ -202,9 +202,9 @@ _([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floo >e : Symbol(e, Decl(underscoreTest1_underscoreTests.ts, 45, 28)) _.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)); ->_.groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>_.groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 46, 28)) >Math.floor : Symbol(Math.floor, Decl(lib.d.ts, --, --)) >Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) @@ -212,14 +212,14 @@ _.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)); >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 46, 28)) _.groupBy(['one', 'two', 'three'], 'length'); ->_.groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>_.groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>groupBy : Symbol(Underscore.Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) _.countBy([1, 2, 3, 4, 5], (num) => num % 2 == 0 ? 'even' : 'odd'); ->_.countBy : Symbol(Underscore.Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) +>_.countBy : Symbol(Underscore.Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->countBy : Symbol(Underscore.Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) +>countBy : Symbol(Underscore.Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 49, 28)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 49, 28)) @@ -312,9 +312,9 @@ _.uniq([1, 2, 1, 3, 1, 4]); >uniq : Symbol(Underscore.Static.uniq, Decl(underscoreTest1_underscore.ts, 525, 56), Decl(underscoreTest1_underscore.ts, 527, 52)) _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]); ->_.zip : Symbol(Underscore.Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>_.zip : Symbol(Underscore.Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->zip : Symbol(Underscore.Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>zip : Symbol(Underscore.Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) _.object(['moe', 'larry', 'curly'], [30, 40, 50]); >_.object : Symbol(Underscore.Static.object, Decl(underscoreTest1_underscore.ts, 535, 41), Decl(underscoreTest1_underscore.ts, 537, 35)) @@ -342,29 +342,29 @@ _.sortedIndex([10, 20, 30, 40, 50], 35); >sortedIndex : Symbol(Underscore.Static.sortedIndex, Decl(underscoreTest1_underscore.ts, 542, 72), Decl(underscoreTest1_underscore.ts, 544, 72)) _.range(10); ->_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) _.range(1, 11); ->_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) _.range(0, 30, 5); ->_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) _.range(0, 30, 5); ->_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) _.range(0); ->_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>_.range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Underscore.Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) /////////////////////////////////////////////////////////////////////////////////////// @@ -516,9 +516,9 @@ var renderNotes = _.after(notes.length, render); >render : Symbol(render, Decl(underscoreTest1_underscoreTests.ts, 127, 3)) _.each(notes, (note) => note.asyncSave({ success: renderNotes })); ->_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>_.each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) +>each : Symbol(Underscore.Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >notes : Symbol(notes, Decl(underscoreTest1_underscoreTests.ts, 126, 3)) >note : Symbol(note, Decl(underscoreTest1_underscoreTests.ts, 129, 15)) >note : Symbol(note, Decl(underscoreTest1_underscoreTests.ts, 129, 15)) @@ -648,15 +648,15 @@ _.clone({ name: 'moe' }); _.chain([1, 2, 3, 200]) >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map(function (num) { return num * num }) .value : Symbol(Underscore.ChainedObject.value, Decl(underscoreTest1_underscore.ts, 234, 46)) ->_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map : Symbol(Underscore.ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 81)) +>_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map : Symbol(Underscore.ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 82)) >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap : Symbol(Underscore.ChainedArray.tap, Decl(underscoreTest1_underscore.ts, 325, 33)) ->_.chain([1, 2, 3, 200]) .filter : Symbol(Underscore.ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 80)) +>_.chain([1, 2, 3, 200]) .filter : Symbol(Underscore.ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 81)) >_.chain : Symbol(Underscore.Static.chain, Decl(underscoreTest1_underscore.ts, 391, 38), Decl(underscoreTest1_underscore.ts, 393, 45), Decl(underscoreTest1_underscore.ts, 394, 60)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) >chain : Symbol(Underscore.Static.chain, Decl(underscoreTest1_underscore.ts, 391, 38), Decl(underscoreTest1_underscore.ts, 393, 45), Decl(underscoreTest1_underscore.ts, 394, 60)) .filter(function (num) { return num % 2 == 0; }) ->filter : Symbol(Underscore.ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 80)) +>filter : Symbol(Underscore.ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 81)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 157, 22)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 157, 22)) @@ -665,7 +665,7 @@ _.chain([1, 2, 3, 200]) >alert : Symbol(alert, Decl(underscoreTest1_underscoreTests.ts, 2, 14)) .map(function (num) { return num * num }) ->map : Symbol(Underscore.ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 81)) +>map : Symbol(Underscore.ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 82)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 159, 19)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 159, 19)) >num : Symbol(num, Decl(underscoreTest1_underscoreTests.ts, 159, 19)) @@ -852,9 +852,9 @@ _.times(3, function (n) { genie.grantWishNumber(n); }); >n : Symbol(n, Decl(underscoreTest1_underscoreTests.ts, 218, 21)) _.random(0, 100); ->_.random : Symbol(Underscore.Static.random, Decl(underscoreTest1_underscore.ts, 622, 79), Decl(underscoreTest1_underscore.ts, 624, 36)) +>_.random : Symbol(Underscore.Static.random, Decl(underscoreTest1_underscore.ts, 622, 80), Decl(underscoreTest1_underscore.ts, 624, 36)) >_ : Symbol(_, Decl(underscoreTest1_underscore.ts, 645, 11)) ->random : Symbol(Underscore.Static.random, Decl(underscoreTest1_underscore.ts, 622, 79), Decl(underscoreTest1_underscore.ts, 624, 36)) +>random : Symbol(Underscore.Static.random, Decl(underscoreTest1_underscore.ts, 622, 80), Decl(underscoreTest1_underscore.ts, 624, 36)) _.mixin({ >_.mixin : Symbol(Underscore.Static.mixin, Decl(underscoreTest1_underscore.ts, 625, 49)) @@ -976,17 +976,17 @@ interface Dictionary { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 0, 21)) } -interface Iterator { ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) ->T : Symbol(T, Decl(underscoreTest1_underscore.ts, 4, 19)) ->U : Symbol(U, Decl(underscoreTest1_underscore.ts, 4, 21)) +interface Iterator_ { +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) +>T : Symbol(T, Decl(underscoreTest1_underscore.ts, 4, 20)) +>U : Symbol(U, Decl(underscoreTest1_underscore.ts, 4, 22)) (value: T, index: any, list: any): U; >value : Symbol(value, Decl(underscoreTest1_underscore.ts, 5, 5)) ->T : Symbol(T, Decl(underscoreTest1_underscore.ts, 4, 19)) +>T : Symbol(T, Decl(underscoreTest1_underscore.ts, 4, 20)) >index : Symbol(index, Decl(underscoreTest1_underscore.ts, 5, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 5, 26)) ->U : Symbol(U, Decl(underscoreTest1_underscore.ts, 4, 21)) +>U : Symbol(U, Decl(underscoreTest1_underscore.ts, 4, 22)) } interface Reducer { @@ -1250,42 +1250,42 @@ module Underscore { >Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - each(iterator: Iterator, context?: any): void; + each(iterator: Iterator_, context?: any): void; >each : Symbol(WrappedArray.each, Decl(underscoreTest1_underscore.ts, 79, 70)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 80, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 80, 41)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 80, 42)) - forEach(iterator: Iterator, context?: any): void; ->forEach : Symbol(WrappedArray.forEach, Decl(underscoreTest1_underscore.ts, 80, 63)) + forEach(iterator: Iterator_, context?: any): void; +>forEach : Symbol(WrappedArray.forEach, Decl(underscoreTest1_underscore.ts, 80, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 81, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 81, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 81, 45)) - map(iterator: Iterator, context?: any): U[]; ->map : Symbol(WrappedArray.map, Decl(underscoreTest1_underscore.ts, 81, 66)) + map(iterator: Iterator_, context?: any): U[]; +>map : Symbol(WrappedArray.map, Decl(underscoreTest1_underscore.ts, 81, 67)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 82, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 82, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 82, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 82, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 82, 41)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 82, 12)) - collect(iterator: Iterator, context?: any): U[]; ->collect : Symbol(WrappedArray.collect, Decl(underscoreTest1_underscore.ts, 82, 61)) + collect(iterator: Iterator_, context?: any): U[]; +>collect : Symbol(WrappedArray.collect, Decl(underscoreTest1_underscore.ts, 82, 62)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 83, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 83, 19)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 83, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 83, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 83, 45)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 83, 16)) reduce(iterator: Reducer, initialValue?: T, context?: any): T; ->reduce : Symbol(WrappedArray.reduce, Decl(underscoreTest1_underscore.ts, 83, 65), Decl(underscoreTest1_underscore.ts, 84, 76)) +>reduce : Symbol(WrappedArray.reduce, Decl(underscoreTest1_underscore.ts, 83, 66), Decl(underscoreTest1_underscore.ts, 84, 76)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 84, 15)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) @@ -1296,7 +1296,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) reduce(iterator: Reducer, initialValue: U, context?: any): U; ->reduce : Symbol(WrappedArray.reduce, Decl(underscoreTest1_underscore.ts, 83, 65), Decl(underscoreTest1_underscore.ts, 84, 76)) +>reduce : Symbol(WrappedArray.reduce, Decl(underscoreTest1_underscore.ts, 83, 66), Decl(underscoreTest1_underscore.ts, 84, 76)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 85, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 85, 18)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) @@ -1399,40 +1399,40 @@ module Underscore { >context : Symbol(context, Decl(underscoreTest1_underscore.ts, 93, 58)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 93, 14)) - find(iterator: Iterator, context?: any): T; + find(iterator: Iterator_, context?: any): T; >find : Symbol(WrappedArray.find, Decl(underscoreTest1_underscore.ts, 93, 77)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 94, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 94, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 94, 45)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - detect(iterator: Iterator, context?: any): T; ->detect : Symbol(WrappedArray.detect, Decl(underscoreTest1_underscore.ts, 94, 63)) + detect(iterator: Iterator_, context?: any): T; +>detect : Symbol(WrappedArray.detect, Decl(underscoreTest1_underscore.ts, 94, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 95, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 95, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 95, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - filter(iterator: Iterator, context?: any): T[]; ->filter : Symbol(WrappedArray.filter, Decl(underscoreTest1_underscore.ts, 95, 65)) + filter(iterator: Iterator_, context?: any): T[]; +>filter : Symbol(WrappedArray.filter, Decl(underscoreTest1_underscore.ts, 95, 66)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 96, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 96, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 96, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - select(iterator: Iterator, context?: any): T[]; ->select : Symbol(WrappedArray.select, Decl(underscoreTest1_underscore.ts, 96, 67)) + select(iterator: Iterator_, context?: any): T[]; +>select : Symbol(WrappedArray.select, Decl(underscoreTest1_underscore.ts, 96, 68)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 97, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 97, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 97, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) where(properties: Object): T[]; ->where : Symbol(WrappedArray.where, Decl(underscoreTest1_underscore.ts, 97, 67)) +>where : Symbol(WrappedArray.where, Decl(underscoreTest1_underscore.ts, 97, 68)) >properties : Symbol(properties, Decl(underscoreTest1_underscore.ts, 98, 14)) >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) @@ -1443,44 +1443,44 @@ module Underscore { >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - reject(iterator: Iterator, context?: any): T[]; + reject(iterator: Iterator_, context?: any): T[]; >reject : Symbol(WrappedArray.reject, Decl(underscoreTest1_underscore.ts, 99, 41)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 100, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 100, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 100, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - every(iterator?: Iterator, context?: any): boolean; ->every : Symbol(WrappedArray.every, Decl(underscoreTest1_underscore.ts, 100, 67)) + every(iterator?: Iterator_, context?: any): boolean; +>every : Symbol(WrappedArray.every, Decl(underscoreTest1_underscore.ts, 100, 68)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 101, 14)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 101, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 101, 47)) - all(iterator?: Iterator, context?: any): boolean; ->all : Symbol(WrappedArray.all, Decl(underscoreTest1_underscore.ts, 101, 71)) + all(iterator?: Iterator_, context?: any): boolean; +>all : Symbol(WrappedArray.all, Decl(underscoreTest1_underscore.ts, 101, 72)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 102, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 102, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 102, 45)) - some(iterator?: Iterator, context?: any): boolean; ->some : Symbol(WrappedArray.some, Decl(underscoreTest1_underscore.ts, 102, 69)) + some(iterator?: Iterator_, context?: any): boolean; +>some : Symbol(WrappedArray.some, Decl(underscoreTest1_underscore.ts, 102, 70)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 103, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 103, 45)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 103, 46)) - any(iterator?: Iterator, context?: any): boolean; ->any : Symbol(WrappedArray.any, Decl(underscoreTest1_underscore.ts, 103, 70)) + any(iterator?: Iterator_, context?: any): boolean; +>any : Symbol(WrappedArray.any, Decl(underscoreTest1_underscore.ts, 103, 71)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 104, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 104, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 104, 45)) contains(value: T): boolean; ->contains : Symbol(WrappedArray.contains, Decl(underscoreTest1_underscore.ts, 104, 69)) +>contains : Symbol(WrappedArray.contains, Decl(underscoreTest1_underscore.ts, 104, 70)) >value : Symbol(value, Decl(underscoreTest1_underscore.ts, 105, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) @@ -1498,60 +1498,60 @@ module Underscore { >pluck : Symbol(WrappedArray.pluck, Decl(underscoreTest1_underscore.ts, 107, 58)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 108, 14)) - max(iterator?: Iterator, context?: any): T; + max(iterator?: Iterator_, context?: any): T; >max : Symbol(WrappedArray.max, Decl(underscoreTest1_underscore.ts, 108, 43)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 109, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 109, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 109, 41)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - min(iterator?: Iterator, context?: any): T; ->min : Symbol(WrappedArray.min, Decl(underscoreTest1_underscore.ts, 109, 59)) + min(iterator?: Iterator_, context?: any): T; +>min : Symbol(WrappedArray.min, Decl(underscoreTest1_underscore.ts, 109, 60)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 110, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 110, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 110, 41)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - sortBy(iterator: Iterator, context?: any): T[]; ->sortBy : Symbol(WrappedArray.sortBy, Decl(underscoreTest1_underscore.ts, 110, 59), Decl(underscoreTest1_underscore.ts, 111, 63)) + sortBy(iterator: Iterator_, context?: any): T[]; +>sortBy : Symbol(WrappedArray.sortBy, Decl(underscoreTest1_underscore.ts, 110, 60), Decl(underscoreTest1_underscore.ts, 111, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 111, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 111, 42)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 111, 43)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) sortBy(propertyName: string): T[]; ->sortBy : Symbol(WrappedArray.sortBy, Decl(underscoreTest1_underscore.ts, 110, 59), Decl(underscoreTest1_underscore.ts, 111, 63)) +>sortBy : Symbol(WrappedArray.sortBy, Decl(underscoreTest1_underscore.ts, 110, 60), Decl(underscoreTest1_underscore.ts, 111, 64)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 112, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - groupBy(iterator?: Iterator, context?: any): Dictionary; ->groupBy : Symbol(WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 77)) + groupBy(iterator?: Iterator_, context?: any): Dictionary; +>groupBy : Symbol(WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 78)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 113, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 113, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 113, 45)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) groupBy(propertyName: string): Dictionary; ->groupBy : Symbol(WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 77)) +>groupBy : Symbol(WrappedArray.groupBy, Decl(underscoreTest1_underscore.ts, 112, 42), Decl(underscoreTest1_underscore.ts, 113, 78)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 114, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - countBy(iterator?: Iterator, context?: any): Dictionary; ->countBy : Symbol(WrappedArray.countBy, Decl(underscoreTest1_underscore.ts, 114, 55), Decl(underscoreTest1_underscore.ts, 115, 80)) + countBy(iterator?: Iterator_, context?: any): Dictionary; +>countBy : Symbol(WrappedArray.countBy, Decl(underscoreTest1_underscore.ts, 114, 55), Decl(underscoreTest1_underscore.ts, 115, 81)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 115, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 115, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 115, 45)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) countBy(propertyName: string): Dictionary; ->countBy : Symbol(WrappedArray.countBy, Decl(underscoreTest1_underscore.ts, 114, 55), Decl(underscoreTest1_underscore.ts, 115, 80)) +>countBy : Symbol(WrappedArray.countBy, Decl(underscoreTest1_underscore.ts, 114, 55), Decl(underscoreTest1_underscore.ts, 115, 81)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 116, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -1655,35 +1655,35 @@ module Underscore { >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 137, 13)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - uniq(isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): U[]; >uniq : Symbol(WrappedArray.uniq, Decl(underscoreTest1_underscore.ts, 136, 42), Decl(underscoreTest1_underscore.ts, 137, 38)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 138, 13)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 138, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 138, 34)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 138, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 138, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 138, 61)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 138, 13)) unique(isSorted?: boolean): T[]; ->unique : Symbol(WrappedArray.unique, Decl(underscoreTest1_underscore.ts, 138, 81), Decl(underscoreTest1_underscore.ts, 139, 40)) +>unique : Symbol(WrappedArray.unique, Decl(underscoreTest1_underscore.ts, 138, 82), Decl(underscoreTest1_underscore.ts, 139, 40)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 139, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) - unique(isSorted: boolean, iterator: Iterator, context?: any): U[]; ->unique : Symbol(WrappedArray.unique, Decl(underscoreTest1_underscore.ts, 138, 81), Decl(underscoreTest1_underscore.ts, 139, 40)) + unique(isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>unique : Symbol(WrappedArray.unique, Decl(underscoreTest1_underscore.ts, 138, 82), Decl(underscoreTest1_underscore.ts, 139, 40)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 140, 15)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 140, 18)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 140, 36)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 140, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 140, 62)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 140, 63)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 140, 15)) zip(...arrays: any[][]): any[][]; ->zip : Symbol(WrappedArray.zip, Decl(underscoreTest1_underscore.ts, 140, 83)) +>zip : Symbol(WrappedArray.zip, Decl(underscoreTest1_underscore.ts, 140, 84)) >arrays : Symbol(arrays, Decl(underscoreTest1_underscore.ts, 141, 12)) object(): any; @@ -1711,18 +1711,18 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 146, 27)) - sortedIndex(obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): number; >sortedIndex : Symbol(WrappedArray.sortedIndex, Decl(underscoreTest1_underscore.ts, 145, 58), Decl(underscoreTest1_underscore.ts, 146, 58)) >obj : Symbol(obj, Decl(underscoreTest1_underscore.ts, 147, 20)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 147, 27)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 147, 56)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 147, 57)) // Methods from Array concat(...items: T[]): T[]; ->concat : Symbol(WrappedArray.concat, Decl(underscoreTest1_underscore.ts, 147, 80)) +>concat : Symbol(WrappedArray.concat, Decl(underscoreTest1_underscore.ts, 147, 81)) >items : Symbol(items, Decl(underscoreTest1_underscore.ts, 149, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 79, 34)) @@ -1789,42 +1789,42 @@ module Underscore { >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - each(iterator: Iterator, context?: any): void; + each(iterator: Iterator_, context?: any): void; >each : Symbol(WrappedDictionary.each, Decl(underscoreTest1_underscore.ts, 162, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 163, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 163, 41)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 163, 42)) - forEach(iterator: Iterator, context?: any): void; ->forEach : Symbol(WrappedDictionary.forEach, Decl(underscoreTest1_underscore.ts, 163, 63)) + forEach(iterator: Iterator_, context?: any): void; +>forEach : Symbol(WrappedDictionary.forEach, Decl(underscoreTest1_underscore.ts, 163, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 164, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 164, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 164, 45)) - map(iterator: Iterator, context?: any): U[]; ->map : Symbol(WrappedDictionary.map, Decl(underscoreTest1_underscore.ts, 164, 66)) + map(iterator: Iterator_, context?: any): U[]; +>map : Symbol(WrappedDictionary.map, Decl(underscoreTest1_underscore.ts, 164, 67)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 165, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 165, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 165, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 165, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 165, 41)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 165, 12)) - collect(iterator: Iterator, context?: any): U[]; ->collect : Symbol(WrappedDictionary.collect, Decl(underscoreTest1_underscore.ts, 165, 61)) + collect(iterator: Iterator_, context?: any): U[]; +>collect : Symbol(WrappedDictionary.collect, Decl(underscoreTest1_underscore.ts, 165, 62)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 166, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 166, 19)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 166, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 166, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 166, 45)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 166, 16)) reduce(iterator: Reducer, initialValue?: T, context?: any): T; ->reduce : Symbol(WrappedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 166, 65), Decl(underscoreTest1_underscore.ts, 167, 76)) +>reduce : Symbol(WrappedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 166, 66), Decl(underscoreTest1_underscore.ts, 167, 76)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 167, 15)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) @@ -1835,7 +1835,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) reduce(iterator: Reducer, initialValue: U, context?: any): U; ->reduce : Symbol(WrappedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 166, 65), Decl(underscoreTest1_underscore.ts, 167, 76)) +>reduce : Symbol(WrappedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 166, 66), Decl(underscoreTest1_underscore.ts, 167, 76)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 168, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 168, 18)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) @@ -1938,40 +1938,40 @@ module Underscore { >context : Symbol(context, Decl(underscoreTest1_underscore.ts, 176, 58)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 176, 14)) - find(iterator: Iterator, context?: any): T; + find(iterator: Iterator_, context?: any): T; >find : Symbol(WrappedDictionary.find, Decl(underscoreTest1_underscore.ts, 176, 77)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 177, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 177, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 177, 45)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - detect(iterator: Iterator, context?: any): T; ->detect : Symbol(WrappedDictionary.detect, Decl(underscoreTest1_underscore.ts, 177, 63)) + detect(iterator: Iterator_, context?: any): T; +>detect : Symbol(WrappedDictionary.detect, Decl(underscoreTest1_underscore.ts, 177, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 178, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 178, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 178, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - filter(iterator: Iterator, context?: any): T[]; ->filter : Symbol(WrappedDictionary.filter, Decl(underscoreTest1_underscore.ts, 178, 65)) + filter(iterator: Iterator_, context?: any): T[]; +>filter : Symbol(WrappedDictionary.filter, Decl(underscoreTest1_underscore.ts, 178, 66)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 179, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 179, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 179, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - select(iterator: Iterator, context?: any): T[]; ->select : Symbol(WrappedDictionary.select, Decl(underscoreTest1_underscore.ts, 179, 67)) + select(iterator: Iterator_, context?: any): T[]; +>select : Symbol(WrappedDictionary.select, Decl(underscoreTest1_underscore.ts, 179, 68)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 180, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 180, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 180, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) where(properties: Object): T[]; ->where : Symbol(WrappedDictionary.where, Decl(underscoreTest1_underscore.ts, 180, 67)) +>where : Symbol(WrappedDictionary.where, Decl(underscoreTest1_underscore.ts, 180, 68)) >properties : Symbol(properties, Decl(underscoreTest1_underscore.ts, 181, 14)) >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) @@ -1982,44 +1982,44 @@ module Underscore { >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - reject(iterator: Iterator, context?: any): T[]; + reject(iterator: Iterator_, context?: any): T[]; >reject : Symbol(WrappedDictionary.reject, Decl(underscoreTest1_underscore.ts, 182, 41)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 183, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 183, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 183, 47)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - every(iterator?: Iterator, context?: any): boolean; ->every : Symbol(WrappedDictionary.every, Decl(underscoreTest1_underscore.ts, 183, 67)) + every(iterator?: Iterator_, context?: any): boolean; +>every : Symbol(WrappedDictionary.every, Decl(underscoreTest1_underscore.ts, 183, 68)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 184, 14)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 184, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 184, 47)) - all(iterator?: Iterator, context?: any): boolean; ->all : Symbol(WrappedDictionary.all, Decl(underscoreTest1_underscore.ts, 184, 71)) + all(iterator?: Iterator_, context?: any): boolean; +>all : Symbol(WrappedDictionary.all, Decl(underscoreTest1_underscore.ts, 184, 72)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 185, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 185, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 185, 45)) - some(iterator?: Iterator, context?: any): boolean; ->some : Symbol(WrappedDictionary.some, Decl(underscoreTest1_underscore.ts, 185, 69)) + some(iterator?: Iterator_, context?: any): boolean; +>some : Symbol(WrappedDictionary.some, Decl(underscoreTest1_underscore.ts, 185, 70)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 186, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 186, 45)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 186, 46)) - any(iterator?: Iterator, context?: any): boolean; ->any : Symbol(WrappedDictionary.any, Decl(underscoreTest1_underscore.ts, 186, 70)) + any(iterator?: Iterator_, context?: any): boolean; +>any : Symbol(WrappedDictionary.any, Decl(underscoreTest1_underscore.ts, 186, 71)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 187, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 187, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 187, 45)) contains(value: T): boolean; ->contains : Symbol(WrappedDictionary.contains, Decl(underscoreTest1_underscore.ts, 187, 69)) +>contains : Symbol(WrappedDictionary.contains, Decl(underscoreTest1_underscore.ts, 187, 70)) >value : Symbol(value, Decl(underscoreTest1_underscore.ts, 188, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) @@ -2037,60 +2037,60 @@ module Underscore { >pluck : Symbol(WrappedDictionary.pluck, Decl(underscoreTest1_underscore.ts, 190, 58)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 191, 14)) - max(iterator?: Iterator, context?: any): T; + max(iterator?: Iterator_, context?: any): T; >max : Symbol(WrappedDictionary.max, Decl(underscoreTest1_underscore.ts, 191, 43)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 192, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 192, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 192, 41)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - min(iterator?: Iterator, context?: any): T; ->min : Symbol(WrappedDictionary.min, Decl(underscoreTest1_underscore.ts, 192, 59)) + min(iterator?: Iterator_, context?: any): T; +>min : Symbol(WrappedDictionary.min, Decl(underscoreTest1_underscore.ts, 192, 60)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 193, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 193, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 193, 41)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - sortBy(iterator: Iterator, context?: any): T[]; ->sortBy : Symbol(WrappedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 193, 59), Decl(underscoreTest1_underscore.ts, 194, 63)) + sortBy(iterator: Iterator_, context?: any): T[]; +>sortBy : Symbol(WrappedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 193, 60), Decl(underscoreTest1_underscore.ts, 194, 64)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 194, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 194, 42)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 194, 43)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) sortBy(propertyName: string): T[]; ->sortBy : Symbol(WrappedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 193, 59), Decl(underscoreTest1_underscore.ts, 194, 63)) +>sortBy : Symbol(WrappedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 193, 60), Decl(underscoreTest1_underscore.ts, 194, 64)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 195, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - groupBy(iterator?: Iterator, context?: any): Dictionary; ->groupBy : Symbol(WrappedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 195, 42), Decl(underscoreTest1_underscore.ts, 196, 77)) + groupBy(iterator?: Iterator_, context?: any): Dictionary; +>groupBy : Symbol(WrappedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 195, 42), Decl(underscoreTest1_underscore.ts, 196, 78)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 196, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 196, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 196, 45)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) groupBy(propertyName: string): Dictionary; ->groupBy : Symbol(WrappedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 195, 42), Decl(underscoreTest1_underscore.ts, 196, 77)) +>groupBy : Symbol(WrappedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 195, 42), Decl(underscoreTest1_underscore.ts, 196, 78)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 197, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) - countBy(iterator?: Iterator, context?: any): Dictionary; ->countBy : Symbol(WrappedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 197, 55), Decl(underscoreTest1_underscore.ts, 198, 80)) + countBy(iterator?: Iterator_, context?: any): Dictionary; +>countBy : Symbol(WrappedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 197, 55), Decl(underscoreTest1_underscore.ts, 198, 81)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 198, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 162, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 198, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 198, 45)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) countBy(propertyName: string): Dictionary; ->countBy : Symbol(WrappedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 197, 55), Decl(underscoreTest1_underscore.ts, 198, 80)) +>countBy : Symbol(WrappedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 197, 55), Decl(underscoreTest1_underscore.ts, 198, 81)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 199, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -2254,46 +2254,46 @@ module Underscore { >Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - each(iterator: Iterator, context?: any): ChainedObject; + each(iterator: Iterator_, context?: any): ChainedObject; >each : Symbol(ChainedArray.each, Decl(underscoreTest1_underscore.ts, 238, 70)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 239, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 239, 41)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 239, 42)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - forEach(iterator: Iterator, context?: any): ChainedObject; ->forEach : Symbol(ChainedArray.forEach, Decl(underscoreTest1_underscore.ts, 239, 78)) + forEach(iterator: Iterator_, context?: any): ChainedObject; +>forEach : Symbol(ChainedArray.forEach, Decl(underscoreTest1_underscore.ts, 239, 79)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 240, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 240, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 240, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - map(iterator: Iterator, context?: any): ChainedArray; ->map : Symbol(ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 81)) + map(iterator: Iterator_, context?: any): ChainedArray; +>map : Symbol(ChainedArray.map, Decl(underscoreTest1_underscore.ts, 240, 82)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 241, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 241, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 241, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 241, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 241, 41)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 241, 12)) - collect(iterator: Iterator, context?: any): ChainedArray; ->collect : Symbol(ChainedArray.collect, Decl(underscoreTest1_underscore.ts, 241, 73)) + collect(iterator: Iterator_, context?: any): ChainedArray; +>collect : Symbol(ChainedArray.collect, Decl(underscoreTest1_underscore.ts, 241, 74)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 242, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 242, 19)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 242, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 242, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 242, 45)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 242, 16)) reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; ->reduce : Symbol(ChainedArray.reduce, Decl(underscoreTest1_underscore.ts, 242, 77), Decl(underscoreTest1_underscore.ts, 243, 91)) +>reduce : Symbol(ChainedArray.reduce, Decl(underscoreTest1_underscore.ts, 242, 78), Decl(underscoreTest1_underscore.ts, 243, 91)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 243, 15)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) @@ -2305,7 +2305,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; ->reduce : Symbol(ChainedArray.reduce, Decl(underscoreTest1_underscore.ts, 242, 77), Decl(underscoreTest1_underscore.ts, 243, 91)) +>reduce : Symbol(ChainedArray.reduce, Decl(underscoreTest1_underscore.ts, 242, 78), Decl(underscoreTest1_underscore.ts, 243, 91)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 244, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 244, 18)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) @@ -2417,44 +2417,44 @@ module Underscore { >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 252, 14)) - find(iterator: Iterator, context?: any): ChainedObject; + find(iterator: Iterator_, context?: any): ChainedObject; >find : Symbol(ChainedArray.find, Decl(underscoreTest1_underscore.ts, 252, 92)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 253, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 253, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 253, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - detect(iterator: Iterator, context?: any): ChainedObject; ->detect : Symbol(ChainedArray.detect, Decl(underscoreTest1_underscore.ts, 253, 78)) + detect(iterator: Iterator_, context?: any): ChainedObject; +>detect : Symbol(ChainedArray.detect, Decl(underscoreTest1_underscore.ts, 253, 79)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 254, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 254, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 254, 47)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - filter(iterator: Iterator, context?: any): ChainedArray; ->filter : Symbol(ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 80)) + filter(iterator: Iterator_, context?: any): ChainedArray; +>filter : Symbol(ChainedArray.filter, Decl(underscoreTest1_underscore.ts, 254, 81)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 255, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 255, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 255, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - select(iterator: Iterator, context?: any): ChainedArray; ->select : Symbol(ChainedArray.select, Decl(underscoreTest1_underscore.ts, 255, 79)) + select(iterator: Iterator_, context?: any): ChainedArray; +>select : Symbol(ChainedArray.select, Decl(underscoreTest1_underscore.ts, 255, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 256, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 256, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 256, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) where(properties: Object): ChainedArray; ->where : Symbol(ChainedArray.where, Decl(underscoreTest1_underscore.ts, 256, 79)) +>where : Symbol(ChainedArray.where, Decl(underscoreTest1_underscore.ts, 256, 80)) >properties : Symbol(properties, Decl(underscoreTest1_underscore.ts, 257, 14)) >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) @@ -2467,49 +2467,49 @@ module Underscore { >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - reject(iterator: Iterator, context?: any): ChainedArray; + reject(iterator: Iterator_, context?: any): ChainedArray; >reject : Symbol(ChainedArray.reject, Decl(underscoreTest1_underscore.ts, 258, 56)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 259, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 259, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 259, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - every(iterator?: Iterator, context?: any): ChainedObject; ->every : Symbol(ChainedArray.every, Decl(underscoreTest1_underscore.ts, 259, 79)) + every(iterator?: Iterator_, context?: any): ChainedObject; +>every : Symbol(ChainedArray.every, Decl(underscoreTest1_underscore.ts, 259, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 260, 14)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 260, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 260, 47)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - all(iterator?: Iterator, context?: any): ChainedObject; ->all : Symbol(ChainedArray.all, Decl(underscoreTest1_underscore.ts, 260, 86)) + all(iterator?: Iterator_, context?: any): ChainedObject; +>all : Symbol(ChainedArray.all, Decl(underscoreTest1_underscore.ts, 260, 87)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 261, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 261, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 261, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - some(iterator?: Iterator, context?: any): ChainedObject; ->some : Symbol(ChainedArray.some, Decl(underscoreTest1_underscore.ts, 261, 84)) + some(iterator?: Iterator_, context?: any): ChainedObject; +>some : Symbol(ChainedArray.some, Decl(underscoreTest1_underscore.ts, 261, 85)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 262, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 262, 45)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 262, 46)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - any(iterator?: Iterator, context?: any): ChainedObject; ->any : Symbol(ChainedArray.any, Decl(underscoreTest1_underscore.ts, 262, 85)) + any(iterator?: Iterator_, context?: any): ChainedObject; +>any : Symbol(ChainedArray.any, Decl(underscoreTest1_underscore.ts, 262, 86)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 263, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 263, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 263, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) contains(value: T): ChainedObject; ->contains : Symbol(ChainedArray.contains, Decl(underscoreTest1_underscore.ts, 263, 84)) +>contains : Symbol(ChainedArray.contains, Decl(underscoreTest1_underscore.ts, 263, 85)) >value : Symbol(value, Decl(underscoreTest1_underscore.ts, 264, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) @@ -2531,63 +2531,63 @@ module Underscore { >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 267, 14)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) - max(iterator?: Iterator, context?: any): ChainedObject; + max(iterator?: Iterator_, context?: any): ChainedObject; >max : Symbol(ChainedArray.max, Decl(underscoreTest1_underscore.ts, 267, 55)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 268, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 268, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 268, 41)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - min(iterator?: Iterator, context?: any): ChainedObject; ->min : Symbol(ChainedArray.min, Decl(underscoreTest1_underscore.ts, 268, 74)) + min(iterator?: Iterator_, context?: any): ChainedObject; +>min : Symbol(ChainedArray.min, Decl(underscoreTest1_underscore.ts, 268, 75)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 269, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 269, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 269, 41)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - sortBy(iterator: Iterator, context?: any): ChainedArray; ->sortBy : Symbol(ChainedArray.sortBy, Decl(underscoreTest1_underscore.ts, 269, 74), Decl(underscoreTest1_underscore.ts, 270, 75)) + sortBy(iterator: Iterator_, context?: any): ChainedArray; +>sortBy : Symbol(ChainedArray.sortBy, Decl(underscoreTest1_underscore.ts, 269, 75), Decl(underscoreTest1_underscore.ts, 270, 76)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 270, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 270, 42)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 270, 43)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) sortBy(propertyName: string): ChainedArray; ->sortBy : Symbol(ChainedArray.sortBy, Decl(underscoreTest1_underscore.ts, 269, 74), Decl(underscoreTest1_underscore.ts, 270, 75)) +>sortBy : Symbol(ChainedArray.sortBy, Decl(underscoreTest1_underscore.ts, 269, 75), Decl(underscoreTest1_underscore.ts, 270, 76)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 271, 15)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; ->groupBy : Symbol(ChainedArray.groupBy, Decl(underscoreTest1_underscore.ts, 271, 54), Decl(underscoreTest1_underscore.ts, 273, 86)) + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>groupBy : Symbol(ChainedArray.groupBy, Decl(underscoreTest1_underscore.ts, 271, 54), Decl(underscoreTest1_underscore.ts, 273, 87)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 273, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 273, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 273, 45)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) groupBy(propertyName: string): ChainedDictionary; ->groupBy : Symbol(ChainedArray.groupBy, Decl(underscoreTest1_underscore.ts, 271, 54), Decl(underscoreTest1_underscore.ts, 273, 86)) +>groupBy : Symbol(ChainedArray.groupBy, Decl(underscoreTest1_underscore.ts, 271, 54), Decl(underscoreTest1_underscore.ts, 273, 87)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 274, 16)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) - countBy(iterator?: Iterator, context?: any): ChainedDictionary; ->countBy : Symbol(ChainedArray.countBy, Decl(underscoreTest1_underscore.ts, 274, 64), Decl(underscoreTest1_underscore.ts, 275, 87)) + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>countBy : Symbol(ChainedArray.countBy, Decl(underscoreTest1_underscore.ts, 274, 64), Decl(underscoreTest1_underscore.ts, 275, 88)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 275, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 275, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 275, 45)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) countBy(propertyName: string): ChainedDictionary; ->countBy : Symbol(ChainedArray.countBy, Decl(underscoreTest1_underscore.ts, 274, 64), Decl(underscoreTest1_underscore.ts, 275, 87)) +>countBy : Symbol(ChainedArray.countBy, Decl(underscoreTest1_underscore.ts, 274, 64), Decl(underscoreTest1_underscore.ts, 275, 88)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 276, 16)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) @@ -2712,38 +2712,38 @@ module Underscore { >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - uniq(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; >uniq : Symbol(ChainedArray.uniq, Decl(underscoreTest1_underscore.ts, 296, 54), Decl(underscoreTest1_underscore.ts, 297, 50)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 298, 13)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 298, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 298, 34)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 298, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 298, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 298, 61)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 298, 13)) unique(isSorted?: boolean): ChainedArray; ->unique : Symbol(ChainedArray.unique, Decl(underscoreTest1_underscore.ts, 298, 93), Decl(underscoreTest1_underscore.ts, 299, 52)) +>unique : Symbol(ChainedArray.unique, Decl(underscoreTest1_underscore.ts, 298, 94), Decl(underscoreTest1_underscore.ts, 299, 52)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 299, 15)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) - unique(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; ->unique : Symbol(ChainedArray.unique, Decl(underscoreTest1_underscore.ts, 298, 93), Decl(underscoreTest1_underscore.ts, 299, 52)) + unique(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; +>unique : Symbol(ChainedArray.unique, Decl(underscoreTest1_underscore.ts, 298, 94), Decl(underscoreTest1_underscore.ts, 299, 52)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 300, 15)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 300, 18)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 300, 36)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 300, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 300, 62)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 300, 63)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 300, 15)) zip(...arrays: any[][]): ChainedArray; ->zip : Symbol(ChainedArray.zip, Decl(underscoreTest1_underscore.ts, 300, 95)) +>zip : Symbol(ChainedArray.zip, Decl(underscoreTest1_underscore.ts, 300, 96)) >arrays : Symbol(arrays, Decl(underscoreTest1_underscore.ts, 301, 12)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) @@ -2777,19 +2777,19 @@ module Underscore { >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 306, 27)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - sortedIndex(obj: T, iterator?: Iterator, context?: any): ChainedObject; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): ChainedObject; >sortedIndex : Symbol(ChainedArray.sortedIndex, Decl(underscoreTest1_underscore.ts, 305, 73), Decl(underscoreTest1_underscore.ts, 306, 73)) >obj : Symbol(obj, Decl(underscoreTest1_underscore.ts, 307, 20)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 307, 27)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 307, 56)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 307, 57)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) // Methods from Array concat(...items: T[]): ChainedArray; ->concat : Symbol(ChainedArray.concat, Decl(underscoreTest1_underscore.ts, 307, 95)) +>concat : Symbol(ChainedArray.concat, Decl(underscoreTest1_underscore.ts, 307, 96)) >items : Symbol(items, Decl(underscoreTest1_underscore.ts, 309, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 238, 34)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) @@ -2905,46 +2905,46 @@ module Underscore { >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - each(iterator: Iterator, context?: any): ChainedObject; + each(iterator: Iterator_, context?: any): ChainedObject; >each : Symbol(ChainedDictionary.each, Decl(underscoreTest1_underscore.ts, 329, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 330, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 330, 41)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 330, 42)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - forEach(iterator: Iterator, context?: any): ChainedObject; ->forEach : Symbol(ChainedDictionary.forEach, Decl(underscoreTest1_underscore.ts, 330, 78)) + forEach(iterator: Iterator_, context?: any): ChainedObject; +>forEach : Symbol(ChainedDictionary.forEach, Decl(underscoreTest1_underscore.ts, 330, 79)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 331, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 331, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 331, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - map(iterator: Iterator, context?: any): ChainedArray; ->map : Symbol(ChainedDictionary.map, Decl(underscoreTest1_underscore.ts, 331, 81)) + map(iterator: Iterator_, context?: any): ChainedArray; +>map : Symbol(ChainedDictionary.map, Decl(underscoreTest1_underscore.ts, 331, 82)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 332, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 332, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 332, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 332, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 332, 41)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 332, 12)) - collect(iterator: Iterator, context?: any): ChainedArray; ->collect : Symbol(ChainedDictionary.collect, Decl(underscoreTest1_underscore.ts, 332, 73)) + collect(iterator: Iterator_, context?: any): ChainedArray; +>collect : Symbol(ChainedDictionary.collect, Decl(underscoreTest1_underscore.ts, 332, 74)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 333, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 333, 19)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 333, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 333, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 333, 45)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 333, 16)) reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; ->reduce : Symbol(ChainedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 333, 77), Decl(underscoreTest1_underscore.ts, 334, 91)) +>reduce : Symbol(ChainedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 333, 78), Decl(underscoreTest1_underscore.ts, 334, 91)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 334, 15)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) @@ -2956,7 +2956,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; ->reduce : Symbol(ChainedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 333, 77), Decl(underscoreTest1_underscore.ts, 334, 91)) +>reduce : Symbol(ChainedDictionary.reduce, Decl(underscoreTest1_underscore.ts, 333, 78), Decl(underscoreTest1_underscore.ts, 334, 91)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 335, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 335, 18)) >Reducer : Symbol(Reducer, Decl(underscoreTest1_underscore.ts, 6, 1)) @@ -3068,44 +3068,44 @@ module Underscore { >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 343, 14)) - find(iterator: Iterator, context?: any): ChainedObject; + find(iterator: Iterator_, context?: any): ChainedObject; >find : Symbol(ChainedDictionary.find, Decl(underscoreTest1_underscore.ts, 343, 92)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 344, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 344, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 344, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - detect(iterator: Iterator, context?: any): ChainedObject; ->detect : Symbol(ChainedDictionary.detect, Decl(underscoreTest1_underscore.ts, 344, 78)) + detect(iterator: Iterator_, context?: any): ChainedObject; +>detect : Symbol(ChainedDictionary.detect, Decl(underscoreTest1_underscore.ts, 344, 79)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 345, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 345, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 345, 47)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - filter(iterator: Iterator, context?: any): ChainedArray; ->filter : Symbol(ChainedDictionary.filter, Decl(underscoreTest1_underscore.ts, 345, 80)) + filter(iterator: Iterator_, context?: any): ChainedArray; +>filter : Symbol(ChainedDictionary.filter, Decl(underscoreTest1_underscore.ts, 345, 81)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 346, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 346, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 346, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - select(iterator: Iterator, context?: any): ChainedArray; ->select : Symbol(ChainedDictionary.select, Decl(underscoreTest1_underscore.ts, 346, 79)) + select(iterator: Iterator_, context?: any): ChainedArray; +>select : Symbol(ChainedDictionary.select, Decl(underscoreTest1_underscore.ts, 346, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 347, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 347, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 347, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) where(properties: Object): ChainedArray; ->where : Symbol(ChainedDictionary.where, Decl(underscoreTest1_underscore.ts, 347, 79)) +>where : Symbol(ChainedDictionary.where, Decl(underscoreTest1_underscore.ts, 347, 80)) >properties : Symbol(properties, Decl(underscoreTest1_underscore.ts, 348, 14)) >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) @@ -3118,49 +3118,49 @@ module Underscore { >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - reject(iterator: Iterator, context?: any): ChainedArray; + reject(iterator: Iterator_, context?: any): ChainedArray; >reject : Symbol(ChainedDictionary.reject, Decl(underscoreTest1_underscore.ts, 349, 56)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 350, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 350, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 350, 47)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - every(iterator?: Iterator, context?: any): ChainedObject; ->every : Symbol(ChainedDictionary.every, Decl(underscoreTest1_underscore.ts, 350, 79)) + every(iterator?: Iterator_, context?: any): ChainedObject; +>every : Symbol(ChainedDictionary.every, Decl(underscoreTest1_underscore.ts, 350, 80)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 351, 14)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 351, 46)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 351, 47)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - all(iterator?: Iterator, context?: any): ChainedObject; ->all : Symbol(ChainedDictionary.all, Decl(underscoreTest1_underscore.ts, 351, 86)) + all(iterator?: Iterator_, context?: any): ChainedObject; +>all : Symbol(ChainedDictionary.all, Decl(underscoreTest1_underscore.ts, 351, 87)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 352, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 352, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 352, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - some(iterator?: Iterator, context?: any): ChainedObject; ->some : Symbol(ChainedDictionary.some, Decl(underscoreTest1_underscore.ts, 352, 84)) + some(iterator?: Iterator_, context?: any): ChainedObject; +>some : Symbol(ChainedDictionary.some, Decl(underscoreTest1_underscore.ts, 352, 85)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 353, 13)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 353, 45)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 353, 46)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) - any(iterator?: Iterator, context?: any): ChainedObject; ->any : Symbol(ChainedDictionary.any, Decl(underscoreTest1_underscore.ts, 353, 85)) + any(iterator?: Iterator_, context?: any): ChainedObject; +>any : Symbol(ChainedDictionary.any, Decl(underscoreTest1_underscore.ts, 353, 86)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 354, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 354, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 354, 45)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) contains(value: T): ChainedObject; ->contains : Symbol(ChainedDictionary.contains, Decl(underscoreTest1_underscore.ts, 354, 84)) +>contains : Symbol(ChainedDictionary.contains, Decl(underscoreTest1_underscore.ts, 354, 85)) >value : Symbol(value, Decl(underscoreTest1_underscore.ts, 355, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) @@ -3182,63 +3182,63 @@ module Underscore { >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 358, 14)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) - max(iterator?: Iterator, context?: any): ChainedObject; + max(iterator?: Iterator_, context?: any): ChainedObject; >max : Symbol(ChainedDictionary.max, Decl(underscoreTest1_underscore.ts, 358, 55)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 359, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 359, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 359, 41)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - min(iterator?: Iterator, context?: any): ChainedObject; ->min : Symbol(ChainedDictionary.min, Decl(underscoreTest1_underscore.ts, 359, 74)) + min(iterator?: Iterator_, context?: any): ChainedObject; +>min : Symbol(ChainedDictionary.min, Decl(underscoreTest1_underscore.ts, 359, 75)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 360, 12)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 360, 40)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 360, 41)) >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) - sortBy(iterator: Iterator, context?: any): ChainedArray; ->sortBy : Symbol(ChainedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 360, 74), Decl(underscoreTest1_underscore.ts, 361, 75)) + sortBy(iterator: Iterator_, context?: any): ChainedArray; +>sortBy : Symbol(ChainedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 360, 75), Decl(underscoreTest1_underscore.ts, 361, 76)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 361, 15)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 361, 42)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 361, 43)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) sortBy(propertyName: string): ChainedArray; ->sortBy : Symbol(ChainedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 360, 74), Decl(underscoreTest1_underscore.ts, 361, 75)) +>sortBy : Symbol(ChainedDictionary.sortBy, Decl(underscoreTest1_underscore.ts, 360, 75), Decl(underscoreTest1_underscore.ts, 361, 76)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 362, 15)) >ChainedArray : Symbol(ChainedArray, Decl(underscoreTest1_underscore.ts, 236, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; ->groupBy : Symbol(ChainedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 362, 54), Decl(underscoreTest1_underscore.ts, 364, 86)) + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>groupBy : Symbol(ChainedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 362, 54), Decl(underscoreTest1_underscore.ts, 364, 87)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 364, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 364, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 364, 45)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) groupBy(propertyName: string): ChainedDictionary; ->groupBy : Symbol(ChainedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 362, 54), Decl(underscoreTest1_underscore.ts, 364, 86)) +>groupBy : Symbol(ChainedDictionary.groupBy, Decl(underscoreTest1_underscore.ts, 362, 54), Decl(underscoreTest1_underscore.ts, 364, 87)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 365, 16)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) - countBy(iterator?: Iterator, context?: any): ChainedDictionary; ->countBy : Symbol(ChainedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 365, 64), Decl(underscoreTest1_underscore.ts, 366, 87)) + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>countBy : Symbol(ChainedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 365, 64), Decl(underscoreTest1_underscore.ts, 366, 88)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 366, 16)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 329, 39)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 366, 44)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 366, 45)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) countBy(propertyName: string): ChainedDictionary; ->countBy : Symbol(ChainedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 365, 64), Decl(underscoreTest1_underscore.ts, 366, 87)) +>countBy : Symbol(ChainedDictionary.countBy, Decl(underscoreTest1_underscore.ts, 365, 64), Decl(underscoreTest1_underscore.ts, 366, 88)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 367, 16)) >ChainedDictionary : Symbol(ChainedDictionary, Decl(underscoreTest1_underscore.ts, 327, 5)) @@ -3373,104 +3373,104 @@ module Underscore { >ChainedObject : Symbol(ChainedObject, Decl(underscoreTest1_underscore.ts, 203, 5)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 395, 14)) - each(list: T[], iterator: Iterator, context?: any): void; ->each : Symbol(Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) + each(list: T[], iterator: Iterator_, context?: any): void; +>each : Symbol(Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 397, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 397, 16)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 397, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 397, 26)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 397, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 397, 55)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 397, 56)) - each(list: Dictionary, iterator: Iterator, context?: any): void; ->each : Symbol(Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 77)) + each(list: Dictionary, iterator: Iterator_, context?: any): void; +>each : Symbol(Static.each, Decl(underscoreTest1_underscore.ts, 395, 43), Decl(underscoreTest1_underscore.ts, 397, 78)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 398, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 398, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 398, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 398, 36)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 398, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 398, 65)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 398, 66)) - forEach(list: T[], iterator: Iterator, context?: any): void; ->forEach : Symbol(Static.forEach, Decl(underscoreTest1_underscore.ts, 398, 87), Decl(underscoreTest1_underscore.ts, 399, 80)) + forEach(list: T[], iterator: Iterator_, context?: any): void; +>forEach : Symbol(Static.forEach, Decl(underscoreTest1_underscore.ts, 398, 88), Decl(underscoreTest1_underscore.ts, 399, 81)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 399, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 399, 19)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 399, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 399, 29)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 399, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 399, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 399, 59)) - forEach(list: Dictionary, iterator: Iterator, context?: any): void; ->forEach : Symbol(Static.forEach, Decl(underscoreTest1_underscore.ts, 398, 87), Decl(underscoreTest1_underscore.ts, 399, 80)) + forEach(list: Dictionary, iterator: Iterator_, context?: any): void; +>forEach : Symbol(Static.forEach, Decl(underscoreTest1_underscore.ts, 398, 88), Decl(underscoreTest1_underscore.ts, 399, 81)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 400, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 400, 19)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 400, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 400, 39)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 400, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 400, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 400, 69)) - map(list: T[], iterator: Iterator, context?: any): U[]; ->map : Symbol(Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) + map(list: T[], iterator: Iterator_, context?: any): U[]; +>map : Symbol(Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 402, 12)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 402, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 402, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 402, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 402, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 402, 12)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 402, 14)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 402, 54)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 402, 55)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 402, 14)) - map(list: Dictionary, iterator: Iterator, context?: any): U[]; ->map : Symbol(Static.map, Decl(underscoreTest1_underscore.ts, 400, 90), Decl(underscoreTest1_underscore.ts, 402, 75)) + map(list: Dictionary, iterator: Iterator_, context?: any): U[]; +>map : Symbol(Static.map, Decl(underscoreTest1_underscore.ts, 400, 91), Decl(underscoreTest1_underscore.ts, 402, 76)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 403, 12)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 403, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 403, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 403, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 403, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 403, 12)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 403, 14)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 403, 64)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 403, 65)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 403, 14)) - collect(list: T[], iterator: Iterator, context?: any): U[]; ->collect : Symbol(Static.collect, Decl(underscoreTest1_underscore.ts, 403, 85), Decl(underscoreTest1_underscore.ts, 404, 79)) + collect(list: T[], iterator: Iterator_, context?: any): U[]; +>collect : Symbol(Static.collect, Decl(underscoreTest1_underscore.ts, 403, 86), Decl(underscoreTest1_underscore.ts, 404, 80)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 404, 16)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 404, 18)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 404, 22)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 404, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 404, 32)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 404, 16)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 404, 18)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 404, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 404, 59)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 404, 18)) - collect(list: Dictionary, iterator: Iterator, context?: any): U[]; ->collect : Symbol(Static.collect, Decl(underscoreTest1_underscore.ts, 403, 85), Decl(underscoreTest1_underscore.ts, 404, 79)) + collect(list: Dictionary, iterator: Iterator_, context?: any): U[]; +>collect : Symbol(Static.collect, Decl(underscoreTest1_underscore.ts, 403, 86), Decl(underscoreTest1_underscore.ts, 404, 80)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 405, 16)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 405, 18)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 405, 22)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 405, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 405, 42)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 405, 16)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 405, 18)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 405, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 405, 69)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 405, 18)) reduce(list: T[], iterator: Reducer, initialValue?: T, context?: any): T; ->reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 407, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 407, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 407, 15)) @@ -3484,7 +3484,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 407, 15)) reduce(list: T[], iterator: Reducer, initialValue: U, context?: any): U; ->reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 408, 15)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 408, 17)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 408, 21)) @@ -3499,7 +3499,7 @@ module Underscore { >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 408, 17)) reduce(list: Dictionary, iterator: Reducer, initialValue?: T, context?: any): T; ->reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 409, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 409, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -3514,7 +3514,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 409, 15)) reduce(list: Dictionary, iterator: Reducer, initialValue: U, context?: any): U; ->reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 89), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) +>reduce : Symbol(Static.reduce, Decl(underscoreTest1_underscore.ts, 405, 90), Decl(underscoreTest1_underscore.ts, 407, 90), Decl(underscoreTest1_underscore.ts, 408, 92), Decl(underscoreTest1_underscore.ts, 409, 100)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 410, 15)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 410, 17)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 410, 21)) @@ -3769,100 +3769,100 @@ module Underscore { >context : Symbol(context, Decl(underscoreTest1_underscore.ts, 427, 82)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 427, 16)) - find(list: T[], iterator: Iterator, context?: any): T; ->find : Symbol(Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 77)) + find(list: T[], iterator: Iterator_, context?: any): T; +>find : Symbol(Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 78)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 429, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 429, 16)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 429, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 429, 26)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 429, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 429, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 429, 59)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 429, 13)) - find(list: Dictionary, iterator: Iterator, context?: any): T; ->find : Symbol(Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 77)) + find(list: Dictionary, iterator: Iterator_, context?: any): T; +>find : Symbol(Static.find, Decl(underscoreTest1_underscore.ts, 427, 101), Decl(underscoreTest1_underscore.ts, 429, 78)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 430, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 430, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 430, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 430, 36)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 430, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 430, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 430, 69)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 430, 13)) - detect(list: T[], iterator: Iterator, context?: any): T; ->detect : Symbol(Static.detect, Decl(underscoreTest1_underscore.ts, 430, 87), Decl(underscoreTest1_underscore.ts, 431, 79)) + detect(list: T[], iterator: Iterator_, context?: any): T; +>detect : Symbol(Static.detect, Decl(underscoreTest1_underscore.ts, 430, 88), Decl(underscoreTest1_underscore.ts, 431, 80)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 431, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 431, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 431, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 431, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 431, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 431, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 431, 61)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 431, 15)) - detect(list: Dictionary, iterator: Iterator, context?: any): T; ->detect : Symbol(Static.detect, Decl(underscoreTest1_underscore.ts, 430, 87), Decl(underscoreTest1_underscore.ts, 431, 79)) + detect(list: Dictionary, iterator: Iterator_, context?: any): T; +>detect : Symbol(Static.detect, Decl(underscoreTest1_underscore.ts, 430, 88), Decl(underscoreTest1_underscore.ts, 431, 80)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 432, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 432, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 432, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 432, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 432, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 432, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 432, 71)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 432, 15)) - filter(list: T[], iterator: Iterator, context?: any): T[]; ->filter : Symbol(Static.filter, Decl(underscoreTest1_underscore.ts, 432, 89), Decl(underscoreTest1_underscore.ts, 434, 81)) + filter(list: T[], iterator: Iterator_, context?: any): T[]; +>filter : Symbol(Static.filter, Decl(underscoreTest1_underscore.ts, 432, 90), Decl(underscoreTest1_underscore.ts, 434, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 434, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 434, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 434, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 434, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 434, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 434, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 434, 61)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 434, 15)) - filter(list: Dictionary, iterator: Iterator, context?: any): T[]; ->filter : Symbol(Static.filter, Decl(underscoreTest1_underscore.ts, 432, 89), Decl(underscoreTest1_underscore.ts, 434, 81)) + filter(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>filter : Symbol(Static.filter, Decl(underscoreTest1_underscore.ts, 432, 90), Decl(underscoreTest1_underscore.ts, 434, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 435, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 435, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 435, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 435, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 435, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 435, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 435, 71)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 435, 15)) - select(list: T[], iterator: Iterator, context?: any): T[]; ->select : Symbol(Static.select, Decl(underscoreTest1_underscore.ts, 435, 91), Decl(underscoreTest1_underscore.ts, 436, 81)) + select(list: T[], iterator: Iterator_, context?: any): T[]; +>select : Symbol(Static.select, Decl(underscoreTest1_underscore.ts, 435, 92), Decl(underscoreTest1_underscore.ts, 436, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 436, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 436, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 436, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 436, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 436, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 436, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 436, 61)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 436, 15)) - select(list: Dictionary, iterator: Iterator, context?: any): T[]; ->select : Symbol(Static.select, Decl(underscoreTest1_underscore.ts, 435, 91), Decl(underscoreTest1_underscore.ts, 436, 81)) + select(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>select : Symbol(Static.select, Decl(underscoreTest1_underscore.ts, 435, 92), Decl(underscoreTest1_underscore.ts, 436, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 437, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 437, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 437, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 437, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 437, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 437, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 437, 71)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 437, 15)) where(list: T[], properties: Object): T[]; ->where : Symbol(Static.where, Decl(underscoreTest1_underscore.ts, 437, 91), Decl(underscoreTest1_underscore.ts, 439, 53)) +>where : Symbol(Static.where, Decl(underscoreTest1_underscore.ts, 437, 92), Decl(underscoreTest1_underscore.ts, 439, 53)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 439, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 439, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 439, 14)) @@ -3871,7 +3871,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 439, 14)) where(list: Dictionary, properties: Object): T[]; ->where : Symbol(Static.where, Decl(underscoreTest1_underscore.ts, 437, 91), Decl(underscoreTest1_underscore.ts, 439, 53)) +>where : Symbol(Static.where, Decl(underscoreTest1_underscore.ts, 437, 92), Decl(underscoreTest1_underscore.ts, 439, 53)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 440, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 440, 17)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -3899,115 +3899,115 @@ module Underscore { >Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 443, 18)) - reject(list: T[], iterator: Iterator, context?: any): T[]; ->reject : Symbol(Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 81)) + reject(list: T[], iterator: Iterator_, context?: any): T[]; +>reject : Symbol(Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 445, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 445, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 445, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 445, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 445, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 445, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 445, 61)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 445, 15)) - reject(list: Dictionary, iterator: Iterator, context?: any): T[]; ->reject : Symbol(Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 81)) + reject(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>reject : Symbol(Static.reject, Decl(underscoreTest1_underscore.ts, 443, 65), Decl(underscoreTest1_underscore.ts, 445, 82)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 446, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 446, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 446, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 446, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 446, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 446, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 446, 71)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 446, 15)) - every(list: T[], iterator?: Iterator, context?: any): boolean; ->every : Symbol(Static.every, Decl(underscoreTest1_underscore.ts, 446, 91), Decl(underscoreTest1_underscore.ts, 448, 85)) + every(list: T[], iterator?: Iterator_, context?: any): boolean; +>every : Symbol(Static.every, Decl(underscoreTest1_underscore.ts, 446, 92), Decl(underscoreTest1_underscore.ts, 448, 86)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 448, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 448, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 448, 14)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 448, 27)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 448, 14)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 448, 60)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 448, 61)) - every(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->every : Symbol(Static.every, Decl(underscoreTest1_underscore.ts, 446, 91), Decl(underscoreTest1_underscore.ts, 448, 85)) + every(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>every : Symbol(Static.every, Decl(underscoreTest1_underscore.ts, 446, 92), Decl(underscoreTest1_underscore.ts, 448, 86)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 449, 14)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 449, 17)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 449, 14)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 449, 37)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 449, 14)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 449, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 449, 71)) - all(list: T[], iterator?: Iterator, context?: any): boolean; ->all : Symbol(Static.all, Decl(underscoreTest1_underscore.ts, 449, 95), Decl(underscoreTest1_underscore.ts, 450, 83)) + all(list: T[], iterator?: Iterator_, context?: any): boolean; +>all : Symbol(Static.all, Decl(underscoreTest1_underscore.ts, 449, 96), Decl(underscoreTest1_underscore.ts, 450, 84)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 450, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 450, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 450, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 450, 25)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 450, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 450, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 450, 59)) - all(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->all : Symbol(Static.all, Decl(underscoreTest1_underscore.ts, 449, 95), Decl(underscoreTest1_underscore.ts, 450, 83)) + all(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>all : Symbol(Static.all, Decl(underscoreTest1_underscore.ts, 449, 96), Decl(underscoreTest1_underscore.ts, 450, 84)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 451, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 451, 15)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 451, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 451, 35)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 451, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 451, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 451, 69)) - some(list: T[], iterator?: Iterator, context?: any): boolean; ->some : Symbol(Static.some, Decl(underscoreTest1_underscore.ts, 451, 93), Decl(underscoreTest1_underscore.ts, 453, 84)) + some(list: T[], iterator?: Iterator_, context?: any): boolean; +>some : Symbol(Static.some, Decl(underscoreTest1_underscore.ts, 451, 94), Decl(underscoreTest1_underscore.ts, 453, 85)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 453, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 453, 16)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 453, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 453, 26)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 453, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 453, 59)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 453, 60)) - some(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->some : Symbol(Static.some, Decl(underscoreTest1_underscore.ts, 451, 93), Decl(underscoreTest1_underscore.ts, 453, 84)) + some(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>some : Symbol(Static.some, Decl(underscoreTest1_underscore.ts, 451, 94), Decl(underscoreTest1_underscore.ts, 453, 85)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 454, 13)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 454, 16)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 454, 13)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 454, 36)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 454, 13)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 454, 69)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 454, 70)) - any(list: T[], iterator?: Iterator, context?: any): boolean; ->any : Symbol(Static.any, Decl(underscoreTest1_underscore.ts, 454, 94), Decl(underscoreTest1_underscore.ts, 455, 83)) + any(list: T[], iterator?: Iterator_, context?: any): boolean; +>any : Symbol(Static.any, Decl(underscoreTest1_underscore.ts, 454, 95), Decl(underscoreTest1_underscore.ts, 455, 84)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 455, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 455, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 455, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 455, 25)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 455, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 455, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 455, 59)) - any(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->any : Symbol(Static.any, Decl(underscoreTest1_underscore.ts, 454, 94), Decl(underscoreTest1_underscore.ts, 455, 83)) + any(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>any : Symbol(Static.any, Decl(underscoreTest1_underscore.ts, 454, 95), Decl(underscoreTest1_underscore.ts, 455, 84)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 456, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 456, 15)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 456, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 456, 35)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 456, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 456, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 456, 69)) contains(list: T[], value: T): boolean; ->contains : Symbol(Static.contains, Decl(underscoreTest1_underscore.ts, 456, 93), Decl(underscoreTest1_underscore.ts, 458, 50)) +>contains : Symbol(Static.contains, Decl(underscoreTest1_underscore.ts, 456, 94), Decl(underscoreTest1_underscore.ts, 458, 50)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 458, 17)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 458, 20)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 458, 17)) @@ -4015,7 +4015,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 458, 17)) contains(list: Dictionary, value: T): boolean; ->contains : Symbol(Static.contains, Decl(underscoreTest1_underscore.ts, 456, 93), Decl(underscoreTest1_underscore.ts, 458, 50)) +>contains : Symbol(Static.contains, Decl(underscoreTest1_underscore.ts, 456, 94), Decl(underscoreTest1_underscore.ts, 458, 50)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 459, 17)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 459, 20)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -4064,77 +4064,77 @@ module Underscore { >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 467, 36)) - max(list: T[], iterator?: Iterator, context?: any): T; ->max : Symbol(Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 73)) + max(list: T[], iterator?: Iterator_, context?: any): T; +>max : Symbol(Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 74)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 469, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 469, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 469, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 469, 25)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 469, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 469, 54)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 469, 55)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 469, 12)) - max(list: Dictionary, iterator?: Iterator, context?: any): T; ->max : Symbol(Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 73)) + max(list: Dictionary, iterator?: Iterator_, context?: any): T; +>max : Symbol(Static.max, Decl(underscoreTest1_underscore.ts, 467, 66), Decl(underscoreTest1_underscore.ts, 469, 74)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 470, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 470, 15)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 470, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 470, 35)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 470, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 470, 64)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 470, 65)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 470, 12)) - min(list: T[], iterator?: Iterator, context?: any): T; ->min : Symbol(Static.min, Decl(underscoreTest1_underscore.ts, 470, 83), Decl(underscoreTest1_underscore.ts, 472, 73)) + min(list: T[], iterator?: Iterator_, context?: any): T; +>min : Symbol(Static.min, Decl(underscoreTest1_underscore.ts, 470, 84), Decl(underscoreTest1_underscore.ts, 472, 74)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 472, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 472, 15)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 472, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 472, 25)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 472, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 472, 54)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 472, 55)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 472, 12)) - min(list: Dictionary, iterator?: Iterator, context?: any): T; ->min : Symbol(Static.min, Decl(underscoreTest1_underscore.ts, 470, 83), Decl(underscoreTest1_underscore.ts, 472, 73)) + min(list: Dictionary, iterator?: Iterator_, context?: any): T; +>min : Symbol(Static.min, Decl(underscoreTest1_underscore.ts, 470, 84), Decl(underscoreTest1_underscore.ts, 472, 74)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 473, 12)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 473, 15)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 473, 12)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 473, 35)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 473, 12)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 473, 64)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 473, 65)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 473, 12)) - sortBy(list: T[], iterator: Iterator, context?: any): T[]; ->sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) + sortBy(list: T[], iterator: Iterator_, context?: any): T[]; +>sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 475, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 475, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 475, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 475, 28)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 475, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 475, 56)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 475, 57)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 475, 15)) - sortBy(list: Dictionary, iterator: Iterator, context?: any): T[]; ->sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) + sortBy(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 476, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 476, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 476, 15)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 476, 38)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 476, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 476, 66)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 476, 67)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 476, 15)) sortBy(list: T[], propertyName: string): T[]; ->sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) +>sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 477, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 477, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 477, 15)) @@ -4142,7 +4142,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 477, 15)) sortBy(list: Dictionary, propertyName: string): T[]; ->sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 83), Decl(underscoreTest1_underscore.ts, 475, 77), Decl(underscoreTest1_underscore.ts, 476, 87), Decl(underscoreTest1_underscore.ts, 477, 56)) +>sortBy : Symbol(Static.sortBy, Decl(underscoreTest1_underscore.ts, 473, 84), Decl(underscoreTest1_underscore.ts, 475, 78), Decl(underscoreTest1_underscore.ts, 476, 88), Decl(underscoreTest1_underscore.ts, 477, 56)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 478, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 478, 18)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -4150,33 +4150,33 @@ module Underscore { >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 478, 38)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 478, 15)) - groupBy(list: T[], iterator?: Iterator, context?: any): Dictionary; ->groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) + groupBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; +>groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 480, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 480, 19)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 480, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 480, 29)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 480, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 480, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 480, 59)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 480, 16)) - groupBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; ->groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) + groupBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; +>groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 481, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 481, 19)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 481, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 481, 39)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 481, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 481, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 481, 69)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 481, 16)) groupBy(list: T[], propertyName: string): Dictionary; ->groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 482, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 482, 19)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 482, 16)) @@ -4185,7 +4185,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 482, 16)) groupBy(list: Dictionary, propertyName: string): Dictionary; ->groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 91), Decl(underscoreTest1_underscore.ts, 481, 101), Decl(underscoreTest1_underscore.ts, 482, 69)) +>groupBy : Symbol(Static.groupBy, Decl(underscoreTest1_underscore.ts, 478, 66), Decl(underscoreTest1_underscore.ts, 480, 92), Decl(underscoreTest1_underscore.ts, 481, 102), Decl(underscoreTest1_underscore.ts, 482, 69)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 483, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 483, 19)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -4194,31 +4194,31 @@ module Underscore { >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 483, 16)) - countBy(list: T[], iterator?: Iterator, context?: any): Dictionary; ->countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) + countBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; +>countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 485, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 485, 19)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 485, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 485, 29)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 485, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 485, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 485, 59)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) - countBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; ->countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) + countBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; +>countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 486, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 486, 19)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 486, 16)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 486, 39)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 486, 16)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 486, 68)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 486, 69)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) countBy(list: T[], propertyName: string): Dictionary; ->countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) +>countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 487, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 487, 19)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 487, 16)) @@ -4226,7 +4226,7 @@ module Underscore { >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) countBy(list: Dictionary, propertyName: string): Dictionary; ->countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 94), Decl(underscoreTest1_underscore.ts, 486, 104), Decl(underscoreTest1_underscore.ts, 487, 72)) +>countBy : Symbol(Static.countBy, Decl(underscoreTest1_underscore.ts, 483, 79), Decl(underscoreTest1_underscore.ts, 485, 95), Decl(underscoreTest1_underscore.ts, 486, 105), Decl(underscoreTest1_underscore.ts, 487, 72)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 488, 16)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 488, 19)) >Dictionary : Symbol(Dictionary, Decl(underscoreTest1_underscore.ts, 0, 0)) @@ -4421,7 +4421,7 @@ module Underscore { >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 527, 26)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 527, 13)) - uniq(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; >uniq : Symbol(Static.uniq, Decl(underscoreTest1_underscore.ts, 525, 56), Decl(underscoreTest1_underscore.ts, 527, 52)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 528, 13)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 528, 15)) @@ -4429,36 +4429,36 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 528, 13)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 528, 29)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 528, 48)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 528, 13)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 528, 15)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 528, 74)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 528, 75)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 528, 15)) unique(list: T[], isSorted?: boolean): T[]; ->unique : Symbol(Static.unique, Decl(underscoreTest1_underscore.ts, 528, 95), Decl(underscoreTest1_underscore.ts, 529, 54)) +>unique : Symbol(Static.unique, Decl(underscoreTest1_underscore.ts, 528, 96), Decl(underscoreTest1_underscore.ts, 529, 54)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 529, 15)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 529, 18)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 529, 15)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 529, 28)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 529, 15)) - unique(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; ->unique : Symbol(Static.unique, Decl(underscoreTest1_underscore.ts, 528, 95), Decl(underscoreTest1_underscore.ts, 529, 54)) + unique(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>unique : Symbol(Static.unique, Decl(underscoreTest1_underscore.ts, 528, 96), Decl(underscoreTest1_underscore.ts, 529, 54)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 530, 15)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 530, 17)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 530, 21)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 530, 15)) >isSorted : Symbol(isSorted, Decl(underscoreTest1_underscore.ts, 530, 31)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 530, 50)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 530, 15)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 530, 17)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 530, 76)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 530, 77)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 530, 17)) zip(a0: T0[], a1: T1[]): Tuple2[]; ->zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) >T0 : Symbol(T0, Decl(underscoreTest1_underscore.ts, 532, 12)) >T1 : Symbol(T1, Decl(underscoreTest1_underscore.ts, 532, 15)) >a0 : Symbol(a0, Decl(underscoreTest1_underscore.ts, 532, 20)) @@ -4470,7 +4470,7 @@ module Underscore { >T1 : Symbol(T1, Decl(underscoreTest1_underscore.ts, 532, 15)) zip(a0: T0[], a1: T1[], a2: T2[]): Tuple3[]; ->zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) >T0 : Symbol(T0, Decl(underscoreTest1_underscore.ts, 533, 12)) >T1 : Symbol(T1, Decl(underscoreTest1_underscore.ts, 533, 15)) >T2 : Symbol(T2, Decl(underscoreTest1_underscore.ts, 533, 19)) @@ -4486,7 +4486,7 @@ module Underscore { >T2 : Symbol(T2, Decl(underscoreTest1_underscore.ts, 533, 19)) zip(a0: T0[], a1: T1[], a2: T2[], a3: T3[]): Tuple4[]; ->zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) >T0 : Symbol(T0, Decl(underscoreTest1_underscore.ts, 534, 12)) >T1 : Symbol(T1, Decl(underscoreTest1_underscore.ts, 534, 15)) >T2 : Symbol(T2, Decl(underscoreTest1_underscore.ts, 534, 19)) @@ -4506,7 +4506,7 @@ module Underscore { >T3 : Symbol(T3, Decl(underscoreTest1_underscore.ts, 534, 23)) zip(...arrays: any[][]): any[][]; ->zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 97), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) +>zip : Symbol(Static.zip, Decl(underscoreTest1_underscore.ts, 530, 98), Decl(underscoreTest1_underscore.ts, 532, 58), Decl(underscoreTest1_underscore.ts, 533, 76), Decl(underscoreTest1_underscore.ts, 534, 94)) >arrays : Symbol(arrays, Decl(underscoreTest1_underscore.ts, 535, 12)) object(list: any[][]): any; @@ -4545,7 +4545,7 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 544, 20)) >propertyName : Symbol(propertyName, Decl(underscoreTest1_underscore.ts, 544, 41)) - sortedIndex(list: T[], obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(list: T[], obj: T, iterator?: Iterator_, context?: any): number; >sortedIndex : Symbol(Static.sortedIndex, Decl(underscoreTest1_underscore.ts, 542, 72), Decl(underscoreTest1_underscore.ts, 544, 72)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 545, 20)) >list : Symbol(list, Decl(underscoreTest1_underscore.ts, 545, 23)) @@ -4553,16 +4553,16 @@ module Underscore { >obj : Symbol(obj, Decl(underscoreTest1_underscore.ts, 545, 33)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 545, 20)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 545, 41)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 545, 20)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 545, 70)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 545, 71)) range(stop: number): number[]; ->range : Symbol(Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >stop : Symbol(stop, Decl(underscoreTest1_underscore.ts, 547, 14)) range(start: number, stop: number, step?: number): number[]; ->range : Symbol(Static.range, Decl(underscoreTest1_underscore.ts, 545, 94), Decl(underscoreTest1_underscore.ts, 547, 38)) +>range : Symbol(Static.range, Decl(underscoreTest1_underscore.ts, 545, 95), Decl(underscoreTest1_underscore.ts, 547, 38)) >start : Symbol(start, Decl(underscoreTest1_underscore.ts, 548, 14)) >stop : Symbol(stop, Decl(underscoreTest1_underscore.ts, 548, 28)) >step : Symbol(step, Decl(underscoreTest1_underscore.ts, 548, 42)) @@ -4833,22 +4833,22 @@ module Underscore { >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 620, 17)) >T : Symbol(T, Decl(underscoreTest1_underscore.ts, 620, 17)) - times(n: number, iterator: Iterator, context?: any): U[]; + times(n: number, iterator: Iterator_, context?: any): U[]; >times : Symbol(Static.times, Decl(underscoreTest1_underscore.ts, 620, 33)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 622, 14)) >n : Symbol(n, Decl(underscoreTest1_underscore.ts, 622, 17)) >iterator : Symbol(iterator, Decl(underscoreTest1_underscore.ts, 622, 27)) ->Iterator : Symbol(Iterator, Decl(underscoreTest1_underscore.ts, 2, 1)) +>Iterator_ : Symbol(Iterator_, Decl(underscoreTest1_underscore.ts, 2, 1)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 622, 14)) ->context : Symbol(context, Decl(underscoreTest1_underscore.ts, 622, 58)) +>context : Symbol(context, Decl(underscoreTest1_underscore.ts, 622, 59)) >U : Symbol(U, Decl(underscoreTest1_underscore.ts, 622, 14)) random(max: number): number; ->random : Symbol(Static.random, Decl(underscoreTest1_underscore.ts, 622, 79), Decl(underscoreTest1_underscore.ts, 624, 36)) +>random : Symbol(Static.random, Decl(underscoreTest1_underscore.ts, 622, 80), Decl(underscoreTest1_underscore.ts, 624, 36)) >max : Symbol(max, Decl(underscoreTest1_underscore.ts, 624, 15)) random(min: number, max: number): number; ->random : Symbol(Static.random, Decl(underscoreTest1_underscore.ts, 622, 79), Decl(underscoreTest1_underscore.ts, 624, 36)) +>random : Symbol(Static.random, Decl(underscoreTest1_underscore.ts, 622, 80), Decl(underscoreTest1_underscore.ts, 624, 36)) >min : Symbol(min, Decl(underscoreTest1_underscore.ts, 625, 15)) >max : Symbol(max, Decl(underscoreTest1_underscore.ts, 625, 27)) diff --git a/tests/baselines/reference/underscoreTest1.types b/tests/baselines/reference/underscoreTest1.types index 97e064fb12c45..afcc807b756bd 100644 --- a/tests/baselines/reference/underscoreTest1.types +++ b/tests/baselines/reference/underscoreTest1.types @@ -10,9 +10,9 @@ declare function alert(x: string): void; _.each([1, 2, 3], (num) => alert(num.toString())); >_.each([1, 2, 3], (num) => alert(num.toString())) : void ->_.each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>_.each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >_ : Underscore.Static ->each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >[1, 2, 3] : number[] >1 : 1 >2 : 2 @@ -28,9 +28,9 @@ _.each([1, 2, 3], (num) => alert(num.toString())); _.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(value.toString())); >_.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(value.toString())) : void ->_.each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>_.each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >_ : Underscore.Static ->each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >{ one: 1, two: 2, three: 3 } : { one: number; two: number; three: number; } >one : number >1 : 1 @@ -50,9 +50,9 @@ _.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(valu _.map([1, 2, 3], (num) => num * 3); >_.map([1, 2, 3], (num) => num * 3) : number[] ->_.map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } +>_.map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >_ : Underscore.Static ->map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } +>map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >[1, 2, 3] : number[] >1 : 1 >2 : 2 @@ -65,9 +65,9 @@ _.map([1, 2, 3], (num) => num * 3); _.map({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => value * 3); >_.map({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => value * 3) : number[] ->_.map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } +>_.map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >_ : Underscore.Static ->map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } +>map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >{ one: 1, two: 2, three: 3 } : { one: number; two: number; three: number; } >one : number >1 : 1 @@ -133,9 +133,9 @@ var flat = _.reduceRight(list, (a, b) => a.concat(b), []); var even = _.find([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >even : number >_.find([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0) : number ->_.find : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } +>_.find : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >_ : Underscore.Static ->find : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } +>find : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >[1, 2, 3, 4, 5, 6] : number[] >1 : 1 >2 : 2 @@ -154,9 +154,9 @@ var even = _.find([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); var evens = _.filter([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >evens : number[] >_.filter([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0) : number[] ->_.filter : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } +>_.filter : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >_ : Underscore.Static ->filter : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } +>filter : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >[1, 2, 3, 4, 5, 6] : number[] >1 : 1 >2 : 2 @@ -212,9 +212,9 @@ _.where(listOfPlays, { author: "Shakespeare", year: 1611 }); var odds = _.reject([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); >odds : number[] >_.reject([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0) : number[] ->_.reject : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } +>_.reject : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >_ : Underscore.Static ->reject : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } +>reject : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >[1, 2, 3, 4, 5, 6] : number[] >1 : 1 >2 : 2 @@ -232,9 +232,9 @@ var odds = _.reject([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); _.all([true, 1, null, 'yes'], _.identity); >_.all([true, 1, null, 'yes'], _.identity) : boolean ->_.all : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } +>_.all : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >_ : Underscore.Static ->all : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } +>all : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >[true, 1, null, 'yes'] : (true | 1 | "yes")[] >true : true >1 : 1 @@ -246,9 +246,9 @@ _.all([true, 1, null, 'yes'], _.identity); _.any([null, 0, 'yes', false]); >_.any([null, 0, 'yes', false]) : boolean ->_.any : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } +>_.any : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >_ : Underscore.Static ->any : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } +>any : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >[null, 0, 'yes', false] : (false | 0 | "yes")[] >null : null >0 : 0 @@ -311,9 +311,9 @@ _.pluck(stooges, 'name'); _.max(stooges, (stooge) => stooge.age); >_.max(stooges, (stooge) => stooge.age) : { name: string; age: number; } ->_.max : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } +>_.max : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >_ : Underscore.Static ->max : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } +>max : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >stooges : { name: string; age: number; }[] >(stooge) => stooge.age : (stooge: { name: string; age: number; }) => number >stooge : { name: string; age: number; } @@ -332,16 +332,16 @@ var numbers = [10, 5, 100, 2, 1000]; _.min(numbers); >_.min(numbers) : number ->_.min : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } +>_.min : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >_ : Underscore.Static ->min : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } +>min : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >numbers : number[] _.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)); >_.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)) : number[] ->_.sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } +>_.sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >_ : Underscore.Static ->sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } +>sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >[1, 2, 3, 4, 5, 6] : number[] >1 : 1 >2 : 2 @@ -361,14 +361,14 @@ _.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)); // not sure how this is typechecking at all.. Math.floor(e) is number not string..? _([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floor(e)); >_([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floor(e)) : Dictionary ->_([1.3, 2.1, 2.4]).groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>_([1.3, 2.1, 2.4]).groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >_([1.3, 2.1, 2.4]) : Underscore.WrappedArray >_ : Underscore.Static >[1.3, 2.1, 2.4] : number[] >1.3 : 1.3 >2.1 : 2.1 >2.4 : 2.4 ->groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >(e: number, i?: number, list?: number[]) => Math.floor(e) : (e: number, i?: number, list?: number[]) => number >e : number >i : number @@ -381,9 +381,9 @@ _([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floo _.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)); >_.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)) : Dictionary ->_.groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>_.groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >_ : Underscore.Static ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >[1.3, 2.1, 2.4] : number[] >1.3 : 1.3 >2.1 : 2.1 @@ -398,9 +398,9 @@ _.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)); _.groupBy(['one', 'two', 'three'], 'length'); >_.groupBy(['one', 'two', 'three'], 'length') : Dictionary ->_.groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>_.groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >_ : Underscore.Static ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >['one', 'two', 'three'] : string[] >'one' : "one" >'two' : "two" @@ -409,9 +409,9 @@ _.groupBy(['one', 'two', 'three'], 'length'); _.countBy([1, 2, 3, 4, 5], (num) => num % 2 == 0 ? 'even' : 'odd'); >_.countBy([1, 2, 3, 4, 5], (num) => num % 2 == 0 ? 'even' : 'odd') : Dictionary ->_.countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>_.countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >_ : Underscore.Static ->countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >[1, 2, 3, 4, 5] : number[] >1 : 1 >2 : 2 @@ -643,9 +643,9 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]); _.uniq([1, 2, 1, 3, 1, 4]); >_.uniq([1, 2, 1, 3, 1, 4]) : number[] ->_.uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>_.uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >_ : Underscore.Static ->uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >[1, 2, 1, 3, 1, 4] : number[] >1 : 1 >2 : 2 @@ -729,9 +729,9 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2); _.sortedIndex([10, 20, 30, 40, 50], 35); >_.sortedIndex([10, 20, 30, 40, 50], 35) : number ->_.sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator, context?: any): number; } +>_.sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator_, context?: any): number; } >_ : Underscore.Static ->sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator, context?: any): number; } +>sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator_, context?: any): number; } >[10, 20, 30, 40, 50] : number[] >10 : 10 >20 : 20 @@ -1017,9 +1017,9 @@ var renderNotes = _.after(notes.length, render); _.each(notes, (note) => note.asyncSave({ success: renderNotes })); >_.each(notes, (note) => note.asyncSave({ success: renderNotes })) : void ->_.each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>_.each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >_ : Underscore.Static ->each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } +>each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >notes : any[] >(note) => note.asyncSave({ success: renderNotes }) : (note: any) => any >note : any @@ -1226,11 +1226,11 @@ _.chain([1, 2, 3, 200]) >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map(function (num) { return num * num }) .value() : number[] >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map(function (num) { return num * num }) .value : () => number[] >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map(function (num) { return num * num }) : Underscore.ChainedArray ->_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map : (iterator: Iterator, context?: any) => Underscore.ChainedArray +>_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) .map : (iterator: Iterator_, context?: any) => Underscore.ChainedArray >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap(alert) : Underscore.ChainedArray >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) .tap : (interceptor: (object: number[]) => void) => Underscore.ChainedArray >_.chain([1, 2, 3, 200]) .filter(function (num) { return num % 2 == 0; }) : Underscore.ChainedArray ->_.chain([1, 2, 3, 200]) .filter : (iterator: Iterator, context?: any) => Underscore.ChainedArray +>_.chain([1, 2, 3, 200]) .filter : (iterator: Iterator_, context?: any) => Underscore.ChainedArray >_.chain([1, 2, 3, 200]) : Underscore.ChainedArray >_.chain : { (list: T[]): Underscore.ChainedArray; (list: Dictionary): Underscore.ChainedDictionary; (obj: T): Underscore.ChainedObject; } >_ : Underscore.Static @@ -1242,7 +1242,7 @@ _.chain([1, 2, 3, 200]) >200 : 200 .filter(function (num) { return num % 2 == 0; }) ->filter : (iterator: Iterator, context?: any) => Underscore.ChainedArray +>filter : (iterator: Iterator_, context?: any) => Underscore.ChainedArray >function (num) { return num % 2 == 0; } : (num: number) => boolean >num : number >num % 2 == 0 : boolean @@ -1257,7 +1257,7 @@ _.chain([1, 2, 3, 200]) >alert : (x: string) => void .map(function (num) { return num * num }) ->map : (iterator: Iterator, context?: any) => Underscore.ChainedArray +>map : (iterator: Iterator_, context?: any) => Underscore.ChainedArray >function (num) { return num * num } : (num: number) => number >num : number >num * num : number @@ -1524,9 +1524,9 @@ var genie; _.times(3, function (n) { genie.grantWishNumber(n); }); >_.times(3, function (n) { genie.grantWishNumber(n); }) : void[] ->_.times : (n: number, iterator: Iterator, context?: any) => U[] +>_.times : (n: number, iterator: Iterator_, context?: any) => U[] >_ : Underscore.Static ->times : (n: number, iterator: Iterator, context?: any) => U[] +>times : (n: number, iterator: Iterator_, context?: any) => U[] >3 : 3 >function (n) { genie.grantWishNumber(n); } : (n: number) => void >n : number @@ -1737,8 +1737,8 @@ interface Dictionary { >T : T } -interface Iterator { ->Iterator : Iterator +interface Iterator_ { +>Iterator_ : Iterator_ >T : T >U : U @@ -2011,35 +2011,35 @@ module Underscore { >Array : T[] >T : T - each(iterator: Iterator, context?: any): void; ->each : (iterator: Iterator, context?: any) => void ->iterator : Iterator ->Iterator : Iterator + each(iterator: Iterator_, context?: any): void; +>each : (iterator: Iterator_, context?: any) => void +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - forEach(iterator: Iterator, context?: any): void; ->forEach : (iterator: Iterator, context?: any) => void ->iterator : Iterator ->Iterator : Iterator + forEach(iterator: Iterator_, context?: any): void; +>forEach : (iterator: Iterator_, context?: any) => void +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - map(iterator: Iterator, context?: any): U[]; ->map : (iterator: Iterator, context?: any) => U[] + map(iterator: Iterator_, context?: any): U[]; +>map : (iterator: Iterator_, context?: any) => U[] >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U - collect(iterator: Iterator, context?: any): U[]; ->collect : (iterator: Iterator, context?: any) => U[] + collect(iterator: Iterator_, context?: any): U[]; +>collect : (iterator: Iterator_, context?: any) => U[] >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -2160,34 +2160,34 @@ module Underscore { >context : any >U : U - find(iterator: Iterator, context?: any): T; ->find : (iterator: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + find(iterator: Iterator_, context?: any): T; +>find : (iterator: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - detect(iterator: Iterator, context?: any): T; ->detect : (iterator: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + detect(iterator: Iterator_, context?: any): T; +>detect : (iterator: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - filter(iterator: Iterator, context?: any): T[]; ->filter : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + filter(iterator: Iterator_, context?: any): T[]; +>filter : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - select(iterator: Iterator, context?: any): T[]; ->select : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + select(iterator: Iterator_, context?: any): T[]; +>select : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T @@ -2204,39 +2204,39 @@ module Underscore { >Object : Object >T : T - reject(iterator: Iterator, context?: any): T[]; ->reject : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + reject(iterator: Iterator_, context?: any): T[]; +>reject : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - every(iterator?: Iterator, context?: any): boolean; ->every : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + every(iterator?: Iterator_, context?: any): boolean; +>every : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - all(iterator?: Iterator, context?: any): boolean; ->all : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + all(iterator?: Iterator_, context?: any): boolean; +>all : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - some(iterator?: Iterator, context?: any): boolean; ->some : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + some(iterator?: Iterator_, context?: any): boolean; +>some : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - any(iterator?: Iterator, context?: any): boolean; ->any : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + any(iterator?: Iterator_, context?: any): boolean; +>any : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any @@ -2259,60 +2259,60 @@ module Underscore { >pluck : (propertyName: string) => any[] >propertyName : string - max(iterator?: Iterator, context?: any): T; ->max : (iterator?: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + max(iterator?: Iterator_, context?: any): T; +>max : (iterator?: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - min(iterator?: Iterator, context?: any): T; ->min : (iterator?: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + min(iterator?: Iterator_, context?: any): T; +>min : (iterator?: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - sortBy(iterator: Iterator, context?: any): T[]; ->sortBy : { (iterator: Iterator, context?: any): T[]; (propertyName: string): T[]; } ->iterator : Iterator ->Iterator : Iterator + sortBy(iterator: Iterator_, context?: any): T[]; +>sortBy : { (iterator: Iterator_, context?: any): T[]; (propertyName: string): T[]; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T sortBy(propertyName: string): T[]; ->sortBy : { (iterator: Iterator, context?: any): T[]; (propertyName: string): T[]; } +>sortBy : { (iterator: Iterator_, context?: any): T[]; (propertyName: string): T[]; } >propertyName : string >T : T - groupBy(iterator?: Iterator, context?: any): Dictionary; ->groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } ->iterator : Iterator ->Iterator : Iterator + groupBy(iterator?: Iterator_, context?: any): Dictionary; +>groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary >T : T groupBy(propertyName: string): Dictionary; ->groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >propertyName : string >Dictionary : Dictionary >T : T - countBy(iterator?: Iterator, context?: any): Dictionary; ->countBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } ->iterator : Iterator ->Iterator : Iterator + countBy(iterator?: Iterator_, context?: any): Dictionary; +>countBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary countBy(propertyName: string): Dictionary; ->countBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>countBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >propertyName : string >Dictionary : Dictionary @@ -2412,32 +2412,32 @@ module Underscore { >T : T uniq(isSorted?: boolean): T[]; ->uniq : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>uniq : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >isSorted : boolean >T : T - uniq(isSorted: boolean, iterator: Iterator, context?: any): U[]; ->uniq : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator, context?: any): U[]; } + uniq(isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>uniq : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >U : U >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U unique(isSorted?: boolean): T[]; ->unique : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>unique : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >isSorted : boolean >T : T - unique(isSorted: boolean, iterator: Iterator, context?: any): U[]; ->unique : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator, context?: any): U[]; } + unique(isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>unique : { (isSorted?: boolean): T[]; (isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >U : U >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -2467,17 +2467,17 @@ module Underscore { >fromIndex : number sortedIndex(obj: T, propertyName: string): number; ->sortedIndex : { (obj: T, propertyName: string): number; (obj: T, iterator?: Iterator, context?: any): number; } +>sortedIndex : { (obj: T, propertyName: string): number; (obj: T, iterator?: Iterator_, context?: any): number; } >obj : T >T : T >propertyName : string - sortedIndex(obj: T, iterator?: Iterator, context?: any): number; ->sortedIndex : { (obj: T, propertyName: string): number; (obj: T, iterator?: Iterator, context?: any): number; } + sortedIndex(obj: T, iterator?: Iterator_, context?: any): number; +>sortedIndex : { (obj: T, propertyName: string): number; (obj: T, iterator?: Iterator_, context?: any): number; } >obj : T >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any @@ -2550,35 +2550,35 @@ module Underscore { >Dictionary : Dictionary >T : T - each(iterator: Iterator, context?: any): void; ->each : (iterator: Iterator, context?: any) => void ->iterator : Iterator ->Iterator : Iterator + each(iterator: Iterator_, context?: any): void; +>each : (iterator: Iterator_, context?: any) => void +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - forEach(iterator: Iterator, context?: any): void; ->forEach : (iterator: Iterator, context?: any) => void ->iterator : Iterator ->Iterator : Iterator + forEach(iterator: Iterator_, context?: any): void; +>forEach : (iterator: Iterator_, context?: any) => void +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - map(iterator: Iterator, context?: any): U[]; ->map : (iterator: Iterator, context?: any) => U[] + map(iterator: Iterator_, context?: any): U[]; +>map : (iterator: Iterator_, context?: any) => U[] >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U - collect(iterator: Iterator, context?: any): U[]; ->collect : (iterator: Iterator, context?: any) => U[] + collect(iterator: Iterator_, context?: any): U[]; +>collect : (iterator: Iterator_, context?: any) => U[] >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -2699,34 +2699,34 @@ module Underscore { >context : any >U : U - find(iterator: Iterator, context?: any): T; ->find : (iterator: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + find(iterator: Iterator_, context?: any): T; +>find : (iterator: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - detect(iterator: Iterator, context?: any): T; ->detect : (iterator: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + detect(iterator: Iterator_, context?: any): T; +>detect : (iterator: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - filter(iterator: Iterator, context?: any): T[]; ->filter : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + filter(iterator: Iterator_, context?: any): T[]; +>filter : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - select(iterator: Iterator, context?: any): T[]; ->select : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + select(iterator: Iterator_, context?: any): T[]; +>select : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T @@ -2743,39 +2743,39 @@ module Underscore { >Object : Object >T : T - reject(iterator: Iterator, context?: any): T[]; ->reject : (iterator: Iterator, context?: any) => T[] ->iterator : Iterator ->Iterator : Iterator + reject(iterator: Iterator_, context?: any): T[]; +>reject : (iterator: Iterator_, context?: any) => T[] +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - every(iterator?: Iterator, context?: any): boolean; ->every : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + every(iterator?: Iterator_, context?: any): boolean; +>every : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - all(iterator?: Iterator, context?: any): boolean; ->all : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + all(iterator?: Iterator_, context?: any): boolean; +>all : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - some(iterator?: Iterator, context?: any): boolean; ->some : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + some(iterator?: Iterator_, context?: any): boolean; +>some : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - any(iterator?: Iterator, context?: any): boolean; ->any : (iterator?: Iterator, context?: any) => boolean ->iterator : Iterator ->Iterator : Iterator + any(iterator?: Iterator_, context?: any): boolean; +>any : (iterator?: Iterator_, context?: any) => boolean +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any @@ -2798,60 +2798,60 @@ module Underscore { >pluck : (propertyName: string) => any[] >propertyName : string - max(iterator?: Iterator, context?: any): T; ->max : (iterator?: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + max(iterator?: Iterator_, context?: any): T; +>max : (iterator?: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - min(iterator?: Iterator, context?: any): T; ->min : (iterator?: Iterator, context?: any) => T ->iterator : Iterator ->Iterator : Iterator + min(iterator?: Iterator_, context?: any): T; +>min : (iterator?: Iterator_, context?: any) => T +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - sortBy(iterator: Iterator, context?: any): T[]; ->sortBy : { (iterator: Iterator, context?: any): T[]; (propertyName: string): T[]; } ->iterator : Iterator ->Iterator : Iterator + sortBy(iterator: Iterator_, context?: any): T[]; +>sortBy : { (iterator: Iterator_, context?: any): T[]; (propertyName: string): T[]; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T sortBy(propertyName: string): T[]; ->sortBy : { (iterator: Iterator, context?: any): T[]; (propertyName: string): T[]; } +>sortBy : { (iterator: Iterator_, context?: any): T[]; (propertyName: string): T[]; } >propertyName : string >T : T - groupBy(iterator?: Iterator, context?: any): Dictionary; ->groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } ->iterator : Iterator ->Iterator : Iterator + groupBy(iterator?: Iterator_, context?: any): Dictionary; +>groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary >T : T groupBy(propertyName: string): Dictionary; ->groupBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>groupBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >propertyName : string >Dictionary : Dictionary >T : T - countBy(iterator?: Iterator, context?: any): Dictionary; ->countBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } ->iterator : Iterator ->Iterator : Iterator + countBy(iterator?: Iterator_, context?: any): Dictionary; +>countBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary countBy(propertyName: string): Dictionary; ->countBy : { (iterator?: Iterator, context?: any): Dictionary; (propertyName: string): Dictionary; } +>countBy : { (iterator?: Iterator_, context?: any): Dictionary; (propertyName: string): Dictionary; } >propertyName : string >Dictionary : Dictionary @@ -3015,38 +3015,38 @@ module Underscore { >Array : T[] >T : T - each(iterator: Iterator, context?: any): ChainedObject; ->each : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + each(iterator: Iterator_, context?: any): ChainedObject; +>each : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - forEach(iterator: Iterator, context?: any): ChainedObject; ->forEach : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + forEach(iterator: Iterator_, context?: any): ChainedObject; +>forEach : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - map(iterator: Iterator, context?: any): ChainedArray; ->map : (iterator: Iterator, context?: any) => ChainedArray + map(iterator: Iterator_, context?: any): ChainedArray; +>map : (iterator: Iterator_, context?: any) => ChainedArray >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >ChainedArray : ChainedArray >U : U - collect(iterator: Iterator, context?: any): ChainedArray; ->collect : (iterator: Iterator, context?: any) => ChainedArray + collect(iterator: Iterator_, context?: any): ChainedArray; +>collect : (iterator: Iterator_, context?: any) => ChainedArray >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -3178,37 +3178,37 @@ module Underscore { >ChainedObject : ChainedObject >U : U - find(iterator: Iterator, context?: any): ChainedObject; ->find : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + find(iterator: Iterator_, context?: any): ChainedObject; +>find : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - detect(iterator: Iterator, context?: any): ChainedObject; ->detect : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + detect(iterator: Iterator_, context?: any): ChainedObject; +>detect : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - filter(iterator: Iterator, context?: any): ChainedArray; ->filter : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + filter(iterator: Iterator_, context?: any): ChainedArray; +>filter : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T - select(iterator: Iterator, context?: any): ChainedArray; ->select : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + select(iterator: Iterator_, context?: any): ChainedArray; +>select : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray @@ -3228,43 +3228,43 @@ module Underscore { >ChainedObject : ChainedObject >T : T - reject(iterator: Iterator, context?: any): ChainedArray; ->reject : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + reject(iterator: Iterator_, context?: any): ChainedArray; +>reject : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T - every(iterator?: Iterator, context?: any): ChainedObject; ->every : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + every(iterator?: Iterator_, context?: any): ChainedObject; +>every : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - all(iterator?: Iterator, context?: any): ChainedObject; ->all : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + all(iterator?: Iterator_, context?: any): ChainedObject; +>all : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - some(iterator?: Iterator, context?: any): ChainedObject; ->some : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + some(iterator?: Iterator_, context?: any): ChainedObject; +>some : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - any(iterator?: Iterator, context?: any): ChainedObject; ->any : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + any(iterator?: Iterator_, context?: any): ChainedObject; +>any : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject @@ -3292,63 +3292,63 @@ module Underscore { >propertyName : string >ChainedArray : ChainedArray - max(iterator?: Iterator, context?: any): ChainedObject; ->max : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + max(iterator?: Iterator_, context?: any): ChainedObject; +>max : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - min(iterator?: Iterator, context?: any): ChainedObject; ->min : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + min(iterator?: Iterator_, context?: any): ChainedObject; +>min : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - sortBy(iterator: Iterator, context?: any): ChainedArray; ->sortBy : { (iterator: Iterator, context?: any): ChainedArray; (propertyName: string): ChainedArray; } ->iterator : Iterator ->Iterator : Iterator + sortBy(iterator: Iterator_, context?: any): ChainedArray; +>sortBy : { (iterator: Iterator_, context?: any): ChainedArray; (propertyName: string): ChainedArray; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T sortBy(propertyName: string): ChainedArray; ->sortBy : { (iterator: Iterator, context?: any): ChainedArray; (propertyName: string): ChainedArray; } +>sortBy : { (iterator: Iterator_, context?: any): ChainedArray; (propertyName: string): ChainedArray; } >propertyName : string >ChainedArray : ChainedArray >T : T // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; ->groupBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } ->iterator : Iterator ->Iterator : Iterator + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>groupBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedDictionary : ChainedDictionary groupBy(propertyName: string): ChainedDictionary; ->groupBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>groupBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } >propertyName : string >ChainedDictionary : ChainedDictionary - countBy(iterator?: Iterator, context?: any): ChainedDictionary; ->countBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } ->iterator : Iterator ->Iterator : Iterator + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>countBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedDictionary : ChainedDictionary countBy(propertyName: string): ChainedDictionary; ->countBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>countBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } >propertyName : string >ChainedDictionary : ChainedDictionary @@ -3468,17 +3468,17 @@ module Underscore { >T : T uniq(isSorted?: boolean): ChainedArray; ->uniq : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; } +>uniq : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; } >isSorted : boolean >ChainedArray : ChainedArray >T : T - uniq(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; ->uniq : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; } + uniq(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; +>uniq : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; } >U : U >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -3486,17 +3486,17 @@ module Underscore { >U : U unique(isSorted?: boolean): ChainedArray; ->unique : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; } +>unique : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; } >isSorted : boolean >ChainedArray : ChainedArray >T : T - unique(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; ->unique : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; } + unique(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; +>unique : { (isSorted?: boolean): ChainedArray; (isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; } >U : U >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -3532,18 +3532,18 @@ module Underscore { >ChainedObject : ChainedObject sortedIndex(obj: T, propertyName: string): ChainedObject; ->sortedIndex : { (obj: T, propertyName: string): ChainedObject; (obj: T, iterator?: Iterator, context?: any): ChainedObject; } +>sortedIndex : { (obj: T, propertyName: string): ChainedObject; (obj: T, iterator?: Iterator_, context?: any): ChainedObject; } >obj : T >T : T >propertyName : string >ChainedObject : ChainedObject - sortedIndex(obj: T, iterator?: Iterator, context?: any): ChainedObject; ->sortedIndex : { (obj: T, propertyName: string): ChainedObject; (obj: T, iterator?: Iterator, context?: any): ChainedObject; } + sortedIndex(obj: T, iterator?: Iterator_, context?: any): ChainedObject; +>sortedIndex : { (obj: T, propertyName: string): ChainedObject; (obj: T, iterator?: Iterator_, context?: any): ChainedObject; } >obj : T >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject @@ -3666,38 +3666,38 @@ module Underscore { >Dictionary : Dictionary >T : T - each(iterator: Iterator, context?: any): ChainedObject; ->each : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + each(iterator: Iterator_, context?: any): ChainedObject; +>each : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - forEach(iterator: Iterator, context?: any): ChainedObject; ->forEach : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + forEach(iterator: Iterator_, context?: any): ChainedObject; +>forEach : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - map(iterator: Iterator, context?: any): ChainedArray; ->map : (iterator: Iterator, context?: any) => ChainedArray + map(iterator: Iterator_, context?: any): ChainedArray; +>map : (iterator: Iterator_, context?: any) => ChainedArray >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >ChainedArray : ChainedArray >U : U - collect(iterator: Iterator, context?: any): ChainedArray; ->collect : (iterator: Iterator, context?: any) => ChainedArray + collect(iterator: Iterator_, context?: any): ChainedArray; +>collect : (iterator: Iterator_, context?: any) => ChainedArray >U : U ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -3829,37 +3829,37 @@ module Underscore { >ChainedObject : ChainedObject >U : U - find(iterator: Iterator, context?: any): ChainedObject; ->find : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + find(iterator: Iterator_, context?: any): ChainedObject; +>find : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - detect(iterator: Iterator, context?: any): ChainedObject; ->detect : (iterator: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + detect(iterator: Iterator_, context?: any): ChainedObject; +>detect : (iterator: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - filter(iterator: Iterator, context?: any): ChainedArray; ->filter : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + filter(iterator: Iterator_, context?: any): ChainedArray; +>filter : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T - select(iterator: Iterator, context?: any): ChainedArray; ->select : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + select(iterator: Iterator_, context?: any): ChainedArray; +>select : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray @@ -3879,43 +3879,43 @@ module Underscore { >ChainedObject : ChainedObject >T : T - reject(iterator: Iterator, context?: any): ChainedArray; ->reject : (iterator: Iterator, context?: any) => ChainedArray ->iterator : Iterator ->Iterator : Iterator + reject(iterator: Iterator_, context?: any): ChainedArray; +>reject : (iterator: Iterator_, context?: any) => ChainedArray +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T - every(iterator?: Iterator, context?: any): ChainedObject; ->every : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + every(iterator?: Iterator_, context?: any): ChainedObject; +>every : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - all(iterator?: Iterator, context?: any): ChainedObject; ->all : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + all(iterator?: Iterator_, context?: any): ChainedObject; +>all : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - some(iterator?: Iterator, context?: any): ChainedObject; ->some : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + some(iterator?: Iterator_, context?: any): ChainedObject; +>some : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject - any(iterator?: Iterator, context?: any): ChainedObject; ->any : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + any(iterator?: Iterator_, context?: any): ChainedObject; +>any : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject @@ -3943,63 +3943,63 @@ module Underscore { >propertyName : string >ChainedArray : ChainedArray - max(iterator?: Iterator, context?: any): ChainedObject; ->max : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + max(iterator?: Iterator_, context?: any): ChainedObject; +>max : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - min(iterator?: Iterator, context?: any): ChainedObject; ->min : (iterator?: Iterator, context?: any) => ChainedObject ->iterator : Iterator ->Iterator : Iterator + min(iterator?: Iterator_, context?: any): ChainedObject; +>min : (iterator?: Iterator_, context?: any) => ChainedObject +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedObject : ChainedObject >T : T - sortBy(iterator: Iterator, context?: any): ChainedArray; ->sortBy : { (iterator: Iterator, context?: any): ChainedArray; (propertyName: string): ChainedArray; } ->iterator : Iterator ->Iterator : Iterator + sortBy(iterator: Iterator_, context?: any): ChainedArray; +>sortBy : { (iterator: Iterator_, context?: any): ChainedArray; (propertyName: string): ChainedArray; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedArray : ChainedArray >T : T sortBy(propertyName: string): ChainedArray; ->sortBy : { (iterator: Iterator, context?: any): ChainedArray; (propertyName: string): ChainedArray; } +>sortBy : { (iterator: Iterator_, context?: any): ChainedArray; (propertyName: string): ChainedArray; } >propertyName : string >ChainedArray : ChainedArray >T : T // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; ->groupBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } ->iterator : Iterator ->Iterator : Iterator + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>groupBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedDictionary : ChainedDictionary groupBy(propertyName: string): ChainedDictionary; ->groupBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>groupBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } >propertyName : string >ChainedDictionary : ChainedDictionary - countBy(iterator?: Iterator, context?: any): ChainedDictionary; ->countBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } ->iterator : Iterator ->Iterator : Iterator + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; +>countBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >ChainedDictionary : ChainedDictionary countBy(propertyName: string): ChainedDictionary; ->countBy : { (iterator?: Iterator, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } +>countBy : { (iterator?: Iterator_, context?: any): ChainedDictionary; (propertyName: string): ChainedDictionary; } >propertyName : string >ChainedDictionary : ChainedDictionary @@ -4134,97 +4134,97 @@ module Underscore { >ChainedObject : ChainedObject >T : T - each(list: T[], iterator: Iterator, context?: any): void; ->each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } + each(list: T[], iterator: Iterator_, context?: any): void; +>each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - each(list: Dictionary, iterator: Iterator, context?: any): void; ->each : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } + each(list: Dictionary, iterator: Iterator_, context?: any): void; +>each : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - forEach(list: T[], iterator: Iterator, context?: any): void; ->forEach : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } + forEach(list: T[], iterator: Iterator_, context?: any): void; +>forEach : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - forEach(list: Dictionary, iterator: Iterator, context?: any): void; ->forEach : { (list: T[], iterator: Iterator, context?: any): void; (list: Dictionary, iterator: Iterator, context?: any): void; } + forEach(list: Dictionary, iterator: Iterator_, context?: any): void; +>forEach : { (list: T[], iterator: Iterator_, context?: any): void; (list: Dictionary, iterator: Iterator_, context?: any): void; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - map(list: T[], iterator: Iterator, context?: any): U[]; ->map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } + map(list: T[], iterator: Iterator_, context?: any): U[]; +>map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U - map(list: Dictionary, iterator: Iterator, context?: any): U[]; ->map : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } + map(list: Dictionary, iterator: Iterator_, context?: any): U[]; +>map : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U - collect(list: T[], iterator: Iterator, context?: any): U[]; ->collect : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } + collect(list: T[], iterator: Iterator_, context?: any): U[]; +>collect : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U - collect(list: Dictionary, iterator: Iterator, context?: any): U[]; ->collect : { (list: T[], iterator: Iterator, context?: any): U[]; (list: Dictionary, iterator: Iterator, context?: any): U[]; } + collect(list: Dictionary, iterator: Iterator_, context?: any): U[]; +>collect : { (list: T[], iterator: Iterator_, context?: any): U[]; (list: Dictionary, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -4530,94 +4530,94 @@ module Underscore { >context : any >U : U - find(list: T[], iterator: Iterator, context?: any): T; ->find : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } + find(list: T[], iterator: Iterator_, context?: any): T; +>find : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - find(list: Dictionary, iterator: Iterator, context?: any): T; ->find : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } + find(list: Dictionary, iterator: Iterator_, context?: any): T; +>find : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - detect(list: T[], iterator: Iterator, context?: any): T; ->detect : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } + detect(list: T[], iterator: Iterator_, context?: any): T; +>detect : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - detect(list: Dictionary, iterator: Iterator, context?: any): T; ->detect : { (list: T[], iterator: Iterator, context?: any): T; (list: Dictionary, iterator: Iterator, context?: any): T; } + detect(list: Dictionary, iterator: Iterator_, context?: any): T; +>detect : { (list: T[], iterator: Iterator_, context?: any): T; (list: Dictionary, iterator: Iterator_, context?: any): T; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - filter(list: T[], iterator: Iterator, context?: any): T[]; ->filter : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + filter(list: T[], iterator: Iterator_, context?: any): T[]; +>filter : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - filter(list: Dictionary, iterator: Iterator, context?: any): T[]; ->filter : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + filter(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>filter : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - select(list: T[], iterator: Iterator, context?: any): T[]; ->select : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + select(list: T[], iterator: Iterator_, context?: any): T[]; +>select : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - select(list: Dictionary, iterator: Iterator, context?: any): T[]; ->select : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + select(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>select : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T @@ -4660,110 +4660,110 @@ module Underscore { >Object : Object >T : T - reject(list: T[], iterator: Iterator, context?: any): T[]; ->reject : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + reject(list: T[], iterator: Iterator_, context?: any): T[]; +>reject : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - reject(list: Dictionary, iterator: Iterator, context?: any): T[]; ->reject : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; } + reject(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>reject : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - every(list: T[], iterator?: Iterator, context?: any): boolean; ->every : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + every(list: T[], iterator?: Iterator_, context?: any): boolean; +>every : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - every(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->every : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + every(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>every : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - all(list: T[], iterator?: Iterator, context?: any): boolean; ->all : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + all(list: T[], iterator?: Iterator_, context?: any): boolean; +>all : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - all(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->all : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + all(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>all : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - some(list: T[], iterator?: Iterator, context?: any): boolean; ->some : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + some(list: T[], iterator?: Iterator_, context?: any): boolean; +>some : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - some(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->some : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + some(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>some : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - any(list: T[], iterator?: Iterator, context?: any): boolean; ->any : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + any(list: T[], iterator?: Iterator_, context?: any): boolean; +>any : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any - any(list: Dictionary, iterator?: Iterator, context?: any): boolean; ->any : { (list: T[], iterator?: Iterator, context?: any): boolean; (list: Dictionary, iterator?: Iterator, context?: any): boolean; } + any(list: Dictionary, iterator?: Iterator_, context?: any): boolean; +>any : { (list: T[], iterator?: Iterator_, context?: any): boolean; (list: Dictionary, iterator?: Iterator_, context?: any): boolean; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any @@ -4825,77 +4825,77 @@ module Underscore { >Dictionary : Dictionary >propertyName : string - max(list: T[], iterator?: Iterator, context?: any): T; ->max : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } + max(list: T[], iterator?: Iterator_, context?: any): T; +>max : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - max(list: Dictionary, iterator?: Iterator, context?: any): T; ->max : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } + max(list: Dictionary, iterator?: Iterator_, context?: any): T; +>max : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - min(list: T[], iterator?: Iterator, context?: any): T; ->min : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } + min(list: T[], iterator?: Iterator_, context?: any): T; +>min : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - min(list: Dictionary, iterator?: Iterator, context?: any): T; ->min : { (list: T[], iterator?: Iterator, context?: any): T; (list: Dictionary, iterator?: Iterator, context?: any): T; } + min(list: Dictionary, iterator?: Iterator_, context?: any): T; +>min : { (list: T[], iterator?: Iterator_, context?: any): T; (list: Dictionary, iterator?: Iterator_, context?: any): T; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - sortBy(list: T[], iterator: Iterator, context?: any): T[]; ->sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } + sortBy(list: T[], iterator: Iterator_, context?: any): T[]; +>sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T - sortBy(list: Dictionary, iterator: Iterator, context?: any): T[]; ->sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } + sortBy(list: Dictionary, iterator: Iterator_, context?: any): T[]; +>sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >T : T sortBy(list: T[], propertyName: string): T[]; ->sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } +>sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >T : T >list : T[] >T : T @@ -4903,7 +4903,7 @@ module Underscore { >T : T sortBy(list: Dictionary, propertyName: string): T[]; ->sortBy : { (list: T[], iterator: Iterator, context?: any): T[]; (list: Dictionary, iterator: Iterator, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } +>sortBy : { (list: T[], iterator: Iterator_, context?: any): T[]; (list: Dictionary, iterator: Iterator_, context?: any): T[]; (list: T[], propertyName: string): T[]; (list: Dictionary, propertyName: string): T[]; } >T : T >list : Dictionary >Dictionary : Dictionary @@ -4911,33 +4911,33 @@ module Underscore { >propertyName : string >T : T - groupBy(list: T[], iterator?: Iterator, context?: any): Dictionary; ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } + groupBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary >T : T - groupBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } + groupBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary >T : T groupBy(list: T[], propertyName: string): Dictionary; ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : T[] >T : T @@ -4946,7 +4946,7 @@ module Underscore { >T : T groupBy(list: Dictionary, propertyName: string): Dictionary; ->groupBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>groupBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : Dictionary >Dictionary : Dictionary @@ -4955,31 +4955,31 @@ module Underscore { >Dictionary : Dictionary >T : T - countBy(list: T[], iterator?: Iterator, context?: any): Dictionary; ->countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } + countBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; +>countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : T[] >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary - countBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; ->countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } + countBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; +>countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : Dictionary >Dictionary : Dictionary >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any >Dictionary : Dictionary countBy(list: T[], propertyName: string): Dictionary; ->countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : T[] >T : T @@ -4987,7 +4987,7 @@ module Underscore { >Dictionary : Dictionary countBy(list: Dictionary, propertyName: string): Dictionary; ->countBy : { (list: T[], iterator?: Iterator, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } +>countBy : { (list: T[], iterator?: Iterator_, context?: any): Dictionary; (list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; (list: T[], propertyName: string): Dictionary; (list: Dictionary, propertyName: string): Dictionary; } >T : T >list : Dictionary >Dictionary : Dictionary @@ -5175,44 +5175,44 @@ module Underscore { >T : T uniq(list: T[], isSorted?: boolean): T[]; ->uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >T : T >list : T[] >T : T >isSorted : boolean >T : T - uniq(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; ->uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } + uniq(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>uniq : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : T[] >T : T >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any >U : U unique(list: T[], isSorted?: boolean): T[]; ->unique : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } +>unique : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >T : T >list : T[] >T : T >isSorted : boolean >T : T - unique(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; ->unique : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; } + unique(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; +>unique : { (list: T[], isSorted?: boolean): T[]; (list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; } >T : T >U : U >list : T[] >T : T >isSorted : boolean ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >U : U >context : any @@ -5298,7 +5298,7 @@ module Underscore { >fromIndex : number sortedIndex(list: T[], obj: T, propertyName: string): number; ->sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator, context?: any): number; } +>sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator_, context?: any): number; } >T : T >list : T[] >T : T @@ -5306,15 +5306,15 @@ module Underscore { >T : T >propertyName : string - sortedIndex(list: T[], obj: T, iterator?: Iterator, context?: any): number; ->sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator, context?: any): number; } + sortedIndex(list: T[], obj: T, iterator?: Iterator_, context?: any): number; +>sortedIndex : { (list: T[], obj: T, propertyName: string): number; (list: T[], obj: T, iterator?: Iterator_, context?: any): number; } >T : T >list : T[] >T : T >obj : T >T : T ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >T : T >context : any @@ -5594,12 +5594,12 @@ module Underscore { >T : T >T : T - times(n: number, iterator: Iterator, context?: any): U[]; ->times : (n: number, iterator: Iterator, context?: any) => U[] + times(n: number, iterator: Iterator_, context?: any): U[]; +>times : (n: number, iterator: Iterator_, context?: any) => U[] >U : U >n : number ->iterator : Iterator ->Iterator : Iterator +>iterator : Iterator_ +>Iterator_ : Iterator_ >U : U >context : any >U : U diff --git a/tests/baselines/reference/unusedDestructuringParameters.js b/tests/baselines/reference/unusedDestructuringParameters.js index ca0ab80b86e4f..c7d24090b2495 100644 --- a/tests/baselines/reference/unusedDestructuringParameters.js +++ b/tests/baselines/reference/unusedDestructuringParameters.js @@ -7,8 +7,16 @@ const f3 = ([_]) => { }; f3([10]); //// [unusedDestructuringParameters.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; var f = function (_a) { - var a = _a[0]; + var _b = __read(_a, 1), a = _b[0]; }; f([1]); var f2 = function (_a) { @@ -16,6 +24,6 @@ var f2 = function (_a) { }; f2({ a: 10 }); var f3 = function (_a) { - var _ = _a[0]; + var _b = __read(_a, 1), _ = _b[0]; }; f3([10]); diff --git a/tests/baselines/reference/unusedParametersWithUnderscore.js b/tests/baselines/reference/unusedParametersWithUnderscore.js index 2899d347c66f3..81f807f78a2e3 100644 --- a/tests/baselines/reference/unusedParametersWithUnderscore.js +++ b/tests/baselines/reference/unusedParametersWithUnderscore.js @@ -24,13 +24,21 @@ var f7 = _ => undefined; var f8 = function (_) { }; //// [unusedParametersWithUnderscore.js] +var __read = (this && this.__read) || function (o, n) { + if (!(m = o.__iterator__)) return o; + var m, i = m.call(o), ar = [], r, e; + try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } + catch (error) { e = { error: error }; } + finally { try { if (m = !(r && r.done) && i["return"]) m.call(i); } finally { if (e) throw e.error; } } + return ar; +}; function f(a, _b, c, ___, d, e___, _f) { } function f2(_c) { var _a = _c._a, __b = _c.__b; } function f3(_c) { - var _a = _c[0], __b = _c[2]; + var _d = __read(_c, 3), _a = _d[0], __b = _d[2]; } function f4() { var arg = []; diff --git a/tests/baselines/reference/useObjectValuesAndEntries1.js b/tests/baselines/reference/useObjectValuesAndEntries1.js index ee2c7115813f7..841601d5b2295 100644 --- a/tests/baselines/reference/useObjectValuesAndEntries1.js +++ b/tests/baselines/reference/useObjectValuesAndEntries1.js @@ -10,10 +10,28 @@ var entries = Object.entries(o); var entries1 = Object.entries(1); // <-- entries: [string, any][] //// [useObjectValuesAndEntries1.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var o = { a: 1, b: 2 }; -for (var _i = 0, _a = Object.values(o); _i < _a.length; _i++) { - var x = _a[_i]; - var y = x; +try { + for (var iterator_1 = { iterator: __values(Object.values(o)) }; __step(iterator_1);) { + var x = iterator_1.result.value; + var y = x; + } +} +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } } var entries = Object.entries(o); var entries1 = Object.entries(1); // <-- entries: [string, any][] +var e_1; diff --git a/tests/baselines/reference/useObjectValuesAndEntries2.js b/tests/baselines/reference/useObjectValuesAndEntries2.js index 31918566844b1..ef75fa829e95f 100644 --- a/tests/baselines/reference/useObjectValuesAndEntries2.js +++ b/tests/baselines/reference/useObjectValuesAndEntries2.js @@ -9,9 +9,27 @@ for (var x of Object.values(o)) { var entries = Object.entries(o); //// [useObjectValuesAndEntries2.js] +var __values = (this && this.__values) || function (o) { + var i = o.__iterator__ || 0, d; + return i ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; +}; +var __step = (this && this.__step) || function (r) { + return !(r.done || (r.done = (r.result = r.iterator.next()).done)); +}; +var __close = (this && this.__close) || function (r) { + var m = !(r && r.done) && r.iterator["return"]; + if (m) return m.call(r.iterator); +}; var o = { a: 1, b: 2 }; -for (var _i = 0, _a = Object.values(o); _i < _a.length; _i++) { - var x = _a[_i]; - var y = x; +try { + for (var iterator_1 = { iterator: __values(Object.values(o)) }; __step(iterator_1);) { + var x = iterator_1.result.value; + var y = x; + } +} +catch (e_1_1) { e_1 = { error: e_1_1 }; } +finally { + try { __close(iterator_1); } finally { if (e_1) throw e_1.error; } } var entries = Object.entries(o); +var e_1; diff --git a/tests/baselines/reference/yieldExpression1.errors.txt b/tests/baselines/reference/yieldExpression1.errors.txt deleted file mode 100644 index 2ab6f60fb76c9..0000000000000 --- a/tests/baselines/reference/yieldExpression1.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/compiler/yieldExpression1.ts(1,9): error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - - -==== tests/cases/compiler/yieldExpression1.ts (1 errors) ==== - function* foo() { - ~ -!!! error TS1220: Generators are only available when targeting ECMAScript 2015 or higher. - yield - } \ No newline at end of file diff --git a/tests/baselines/reference/yieldExpression1.js b/tests/baselines/reference/yieldExpression1.js index e4d5748a7617d..a0ab4a55fa9c5 100644 --- a/tests/baselines/reference/yieldExpression1.js +++ b/tests/baselines/reference/yieldExpression1.js @@ -4,6 +4,40 @@ function* foo() { } //// [yieldExpression1.js] -function* foo() { - yield; +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; + return { next: verb(0), "throw": verb(1), "return": verb(2), __iterator__: function () { return this; } }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +function foo() { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); } diff --git a/tests/baselines/reference/yieldExpression1.symbols b/tests/baselines/reference/yieldExpression1.symbols new file mode 100644 index 0000000000000..7ca4678804740 --- /dev/null +++ b/tests/baselines/reference/yieldExpression1.symbols @@ -0,0 +1,6 @@ +=== tests/cases/compiler/yieldExpression1.ts === +function* foo() { +>foo : Symbol(foo, Decl(yieldExpression1.ts, 0, 0)) + + yield +} diff --git a/tests/baselines/reference/yieldExpression1.types b/tests/baselines/reference/yieldExpression1.types new file mode 100644 index 0000000000000..a60c0309a351b --- /dev/null +++ b/tests/baselines/reference/yieldExpression1.types @@ -0,0 +1,7 @@ +=== tests/cases/compiler/yieldExpression1.ts === +function* foo() { +>foo : () => PseudoIterableIterator + + yield +>yield : any +} diff --git a/tests/cases/compiler/underscoreTest1.ts b/tests/cases/compiler/underscoreTest1.ts index 411bcc58d5f84..dfe10cf02e288 100644 --- a/tests/cases/compiler/underscoreTest1.ts +++ b/tests/cases/compiler/underscoreTest1.ts @@ -3,7 +3,7 @@ interface Dictionary { [x: string]: T; } -interface Iterator { +interface Iterator_ { (value: T, index: any, list: any): U; } @@ -79,10 +79,10 @@ module Underscore { } export interface WrappedArray extends WrappedObject> { - each(iterator: Iterator, context?: any): void; - forEach(iterator: Iterator, context?: any): void; - map(iterator: Iterator, context?: any): U[]; - collect(iterator: Iterator, context?: any): U[]; + each(iterator: Iterator_, context?: any): void; + forEach(iterator: Iterator_, context?: any): void; + map(iterator: Iterator_, context?: any): U[]; + collect(iterator: Iterator_, context?: any): U[]; reduce(iterator: Reducer, initialValue?: T, context?: any): T; reduce(iterator: Reducer, initialValue: U, context?: any): U; foldl(iterator: Reducer, initialValue?: T, context?: any): T; @@ -93,28 +93,28 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): U; foldr(iterator: Reducer, initialValue?: T, context?: any): T; foldr(iterator: Reducer, initialValue: U, context?: any): U; - find(iterator: Iterator, context?: any): T; - detect(iterator: Iterator, context?: any): T; - filter(iterator: Iterator, context?: any): T[]; - select(iterator: Iterator, context?: any): T[]; + find(iterator: Iterator_, context?: any): T; + detect(iterator: Iterator_, context?: any): T; + filter(iterator: Iterator_, context?: any): T[]; + select(iterator: Iterator_, context?: any): T[]; where(properties: Object): T[]; findWhere(properties: Object): T; - reject(iterator: Iterator, context?: any): T[]; - every(iterator?: Iterator, context?: any): boolean; - all(iterator?: Iterator, context?: any): boolean; - some(iterator?: Iterator, context?: any): boolean; - any(iterator?: Iterator, context?: any): boolean; + reject(iterator: Iterator_, context?: any): T[]; + every(iterator?: Iterator_, context?: any): boolean; + all(iterator?: Iterator_, context?: any): boolean; + some(iterator?: Iterator_, context?: any): boolean; + any(iterator?: Iterator_, context?: any): boolean; contains(value: T): boolean; include(value: T): boolean; invoke(methodName: string, ...args: any[]): any[]; pluck(propertyName: string): any[]; - max(iterator?: Iterator, context?: any): T; - min(iterator?: Iterator, context?: any): T; - sortBy(iterator: Iterator, context?: any): T[]; + max(iterator?: Iterator_, context?: any): T; + min(iterator?: Iterator_, context?: any): T; + sortBy(iterator: Iterator_, context?: any): T[]; sortBy(propertyName: string): T[]; - groupBy(iterator?: Iterator, context?: any): Dictionary; + groupBy(iterator?: Iterator_, context?: any): Dictionary; groupBy(propertyName: string): Dictionary; - countBy(iterator?: Iterator, context?: any): Dictionary; + countBy(iterator?: Iterator_, context?: any): Dictionary; countBy(propertyName: string): Dictionary; shuffle(): T[]; toArray(): T[]; @@ -137,16 +137,16 @@ module Underscore { intersection(...arrays: T[][]): T[]; difference(...others: T[][]): T[]; uniq(isSorted?: boolean): T[]; - uniq(isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): U[]; unique(isSorted?: boolean): T[]; - unique(isSorted: boolean, iterator: Iterator, context?: any): U[]; + unique(isSorted: boolean, iterator: Iterator_, context?: any): U[]; zip(...arrays: any[][]): any[][]; object(): any; object(values: any[]): any; indexOf(value: T, isSorted?: boolean): number; lastIndexOf(value: T, fromIndex?: number): number; sortedIndex(obj: T, propertyName: string): number; - sortedIndex(obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): number; // Methods from Array concat(...items: T[]): T[]; join(separator?: string): string; @@ -162,10 +162,10 @@ module Underscore { } export interface WrappedDictionary extends WrappedObject> { - each(iterator: Iterator, context?: any): void; - forEach(iterator: Iterator, context?: any): void; - map(iterator: Iterator, context?: any): U[]; - collect(iterator: Iterator, context?: any): U[]; + each(iterator: Iterator_, context?: any): void; + forEach(iterator: Iterator_, context?: any): void; + map(iterator: Iterator_, context?: any): U[]; + collect(iterator: Iterator_, context?: any): U[]; reduce(iterator: Reducer, initialValue?: T, context?: any): T; reduce(iterator: Reducer, initialValue: U, context?: any): U; foldl(iterator: Reducer, initialValue?: T, context?: any): T; @@ -176,28 +176,28 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): U; foldr(iterator: Reducer, initialValue?: T, context?: any): T; foldr(iterator: Reducer, initialValue: U, context?: any): U; - find(iterator: Iterator, context?: any): T; - detect(iterator: Iterator, context?: any): T; - filter(iterator: Iterator, context?: any): T[]; - select(iterator: Iterator, context?: any): T[]; + find(iterator: Iterator_, context?: any): T; + detect(iterator: Iterator_, context?: any): T; + filter(iterator: Iterator_, context?: any): T[]; + select(iterator: Iterator_, context?: any): T[]; where(properties: Object): T[]; findWhere(properties: Object): T; - reject(iterator: Iterator, context?: any): T[]; - every(iterator?: Iterator, context?: any): boolean; - all(iterator?: Iterator, context?: any): boolean; - some(iterator?: Iterator, context?: any): boolean; - any(iterator?: Iterator, context?: any): boolean; + reject(iterator: Iterator_, context?: any): T[]; + every(iterator?: Iterator_, context?: any): boolean; + all(iterator?: Iterator_, context?: any): boolean; + some(iterator?: Iterator_, context?: any): boolean; + any(iterator?: Iterator_, context?: any): boolean; contains(value: T): boolean; include(value: T): boolean; invoke(methodName: string, ...args: any[]): any[]; pluck(propertyName: string): any[]; - max(iterator?: Iterator, context?: any): T; - min(iterator?: Iterator, context?: any): T; - sortBy(iterator: Iterator, context?: any): T[]; + max(iterator?: Iterator_, context?: any): T; + min(iterator?: Iterator_, context?: any): T; + sortBy(iterator: Iterator_, context?: any): T[]; sortBy(propertyName: string): T[]; - groupBy(iterator?: Iterator, context?: any): Dictionary; + groupBy(iterator?: Iterator_, context?: any): Dictionary; groupBy(propertyName: string): Dictionary; - countBy(iterator?: Iterator, context?: any): Dictionary; + countBy(iterator?: Iterator_, context?: any): Dictionary; countBy(propertyName: string): Dictionary; shuffle(): T[]; toArray(): T[]; @@ -238,10 +238,10 @@ module Underscore { } export interface ChainedArray extends ChainedObject> { - each(iterator: Iterator, context?: any): ChainedObject; - forEach(iterator: Iterator, context?: any): ChainedObject; - map(iterator: Iterator, context?: any): ChainedArray; - collect(iterator: Iterator, context?: any): ChainedArray; + each(iterator: Iterator_, context?: any): ChainedObject; + forEach(iterator: Iterator_, context?: any): ChainedObject; + map(iterator: Iterator_, context?: any): ChainedArray; + collect(iterator: Iterator_, context?: any): ChainedArray; reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldl(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; @@ -252,29 +252,29 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue: U, context?: any): ChainedObject; - find(iterator: Iterator, context?: any): ChainedObject; - detect(iterator: Iterator, context?: any): ChainedObject; - filter(iterator: Iterator, context?: any): ChainedArray; - select(iterator: Iterator, context?: any): ChainedArray; + find(iterator: Iterator_, context?: any): ChainedObject; + detect(iterator: Iterator_, context?: any): ChainedObject; + filter(iterator: Iterator_, context?: any): ChainedArray; + select(iterator: Iterator_, context?: any): ChainedArray; where(properties: Object): ChainedArray; findWhere(properties: Object): ChainedObject; - reject(iterator: Iterator, context?: any): ChainedArray; - every(iterator?: Iterator, context?: any): ChainedObject; - all(iterator?: Iterator, context?: any): ChainedObject; - some(iterator?: Iterator, context?: any): ChainedObject; - any(iterator?: Iterator, context?: any): ChainedObject; + reject(iterator: Iterator_, context?: any): ChainedArray; + every(iterator?: Iterator_, context?: any): ChainedObject; + all(iterator?: Iterator_, context?: any): ChainedObject; + some(iterator?: Iterator_, context?: any): ChainedObject; + any(iterator?: Iterator_, context?: any): ChainedObject; contains(value: T): ChainedObject; include(value: T): ChainedObject; invoke(methodName: string, ...args: any[]): ChainedArray; pluck(propertyName: string): ChainedArray; - max(iterator?: Iterator, context?: any): ChainedObject; - min(iterator?: Iterator, context?: any): ChainedObject; - sortBy(iterator: Iterator, context?: any): ChainedArray; + max(iterator?: Iterator_, context?: any): ChainedObject; + min(iterator?: Iterator_, context?: any): ChainedObject; + sortBy(iterator: Iterator_, context?: any): ChainedArray; sortBy(propertyName: string): ChainedArray; // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; groupBy(propertyName: string): ChainedDictionary; - countBy(iterator?: Iterator, context?: any): ChainedDictionary; + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; countBy(propertyName: string): ChainedDictionary; shuffle(): ChainedArray; toArray(): ChainedArray; @@ -297,16 +297,16 @@ module Underscore { intersection(...arrays: T[][]): ChainedArray; difference(...others: T[][]): ChainedArray; uniq(isSorted?: boolean): ChainedArray; - uniq(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; + uniq(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; unique(isSorted?: boolean): ChainedArray; - unique(isSorted: boolean, iterator: Iterator, context?: any): ChainedArray; + unique(isSorted: boolean, iterator: Iterator_, context?: any): ChainedArray; zip(...arrays: any[][]): ChainedArray; object(): ChainedObject; object(values: any[]): ChainedObject; indexOf(value: T, isSorted?: boolean): ChainedObject; lastIndexOf(value: T, fromIndex?: number): ChainedObject; sortedIndex(obj: T, propertyName: string): ChainedObject; - sortedIndex(obj: T, iterator?: Iterator, context?: any): ChainedObject; + sortedIndex(obj: T, iterator?: Iterator_, context?: any): ChainedObject; // Methods from Array concat(...items: T[]): ChainedArray; join(separator?: string): ChainedObject; @@ -329,10 +329,10 @@ module Underscore { } export interface ChainedDictionary extends ChainedObject> { - each(iterator: Iterator, context?: any): ChainedObject; - forEach(iterator: Iterator, context?: any): ChainedObject; - map(iterator: Iterator, context?: any): ChainedArray; - collect(iterator: Iterator, context?: any): ChainedArray; + each(iterator: Iterator_, context?: any): ChainedObject; + forEach(iterator: Iterator_, context?: any): ChainedObject; + map(iterator: Iterator_, context?: any): ChainedArray; + collect(iterator: Iterator_, context?: any): ChainedArray; reduce(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; reduce(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldl(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; @@ -343,29 +343,29 @@ module Underscore { reduceRight(iterator: Reducer, initialValue: U, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue?: T, context?: any): ChainedObject; foldr(iterator: Reducer, initialValue: U, context?: any): ChainedObject; - find(iterator: Iterator, context?: any): ChainedObject; - detect(iterator: Iterator, context?: any): ChainedObject; - filter(iterator: Iterator, context?: any): ChainedArray; - select(iterator: Iterator, context?: any): ChainedArray; + find(iterator: Iterator_, context?: any): ChainedObject; + detect(iterator: Iterator_, context?: any): ChainedObject; + filter(iterator: Iterator_, context?: any): ChainedArray; + select(iterator: Iterator_, context?: any): ChainedArray; where(properties: Object): ChainedArray; findWhere(properties: Object): ChainedObject; - reject(iterator: Iterator, context?: any): ChainedArray; - every(iterator?: Iterator, context?: any): ChainedObject; - all(iterator?: Iterator, context?: any): ChainedObject; - some(iterator?: Iterator, context?: any): ChainedObject; - any(iterator?: Iterator, context?: any): ChainedObject; + reject(iterator: Iterator_, context?: any): ChainedArray; + every(iterator?: Iterator_, context?: any): ChainedObject; + all(iterator?: Iterator_, context?: any): ChainedObject; + some(iterator?: Iterator_, context?: any): ChainedObject; + any(iterator?: Iterator_, context?: any): ChainedObject; contains(value: T): ChainedObject; include(value: T): ChainedObject; invoke(methodName: string, ...args: any[]): ChainedArray; pluck(propertyName: string): ChainedArray; - max(iterator?: Iterator, context?: any): ChainedObject; - min(iterator?: Iterator, context?: any): ChainedObject; - sortBy(iterator: Iterator, context?: any): ChainedArray; + max(iterator?: Iterator_, context?: any): ChainedObject; + min(iterator?: Iterator_, context?: any): ChainedObject; + sortBy(iterator: Iterator_, context?: any): ChainedArray; sortBy(propertyName: string): ChainedArray; // Should return ChainedDictionary, but expansive recursion not allowed - groupBy(iterator?: Iterator, context?: any): ChainedDictionary; + groupBy(iterator?: Iterator_, context?: any): ChainedDictionary; groupBy(propertyName: string): ChainedDictionary; - countBy(iterator?: Iterator, context?: any): ChainedDictionary; + countBy(iterator?: Iterator_, context?: any): ChainedDictionary; countBy(propertyName: string): ChainedDictionary; shuffle(): ChainedArray; toArray(): ChainedArray; @@ -396,15 +396,15 @@ module Underscore { chain(list: Dictionary): ChainedDictionary; chain(obj: T): ChainedObject; - each(list: T[], iterator: Iterator, context?: any): void; - each(list: Dictionary, iterator: Iterator, context?: any): void; - forEach(list: T[], iterator: Iterator, context?: any): void; - forEach(list: Dictionary, iterator: Iterator, context?: any): void; + each(list: T[], iterator: Iterator_, context?: any): void; + each(list: Dictionary, iterator: Iterator_, context?: any): void; + forEach(list: T[], iterator: Iterator_, context?: any): void; + forEach(list: Dictionary, iterator: Iterator_, context?: any): void; - map(list: T[], iterator: Iterator, context?: any): U[]; - map(list: Dictionary, iterator: Iterator, context?: any): U[]; - collect(list: T[], iterator: Iterator, context?: any): U[]; - collect(list: Dictionary, iterator: Iterator, context?: any): U[]; + map(list: T[], iterator: Iterator_, context?: any): U[]; + map(list: Dictionary, iterator: Iterator_, context?: any): U[]; + collect(list: T[], iterator: Iterator_, context?: any): U[]; + collect(list: Dictionary, iterator: Iterator_, context?: any): U[]; reduce(list: T[], iterator: Reducer, initialValue?: T, context?: any): T; reduce(list: T[], iterator: Reducer, initialValue: U, context?: any): U; @@ -428,15 +428,15 @@ module Underscore { foldr(list: Dictionary, iterator: Reducer, initialValue?: T, context?: any): T; foldr(list: Dictionary, iterator: Reducer, initialValue: U, context?: any): U; - find(list: T[], iterator: Iterator, context?: any): T; - find(list: Dictionary, iterator: Iterator, context?: any): T; - detect(list: T[], iterator: Iterator, context?: any): T; - detect(list: Dictionary, iterator: Iterator, context?: any): T; + find(list: T[], iterator: Iterator_, context?: any): T; + find(list: Dictionary, iterator: Iterator_, context?: any): T; + detect(list: T[], iterator: Iterator_, context?: any): T; + detect(list: Dictionary, iterator: Iterator_, context?: any): T; - filter(list: T[], iterator: Iterator, context?: any): T[]; - filter(list: Dictionary, iterator: Iterator, context?: any): T[]; - select(list: T[], iterator: Iterator, context?: any): T[]; - select(list: Dictionary, iterator: Iterator, context?: any): T[]; + filter(list: T[], iterator: Iterator_, context?: any): T[]; + filter(list: Dictionary, iterator: Iterator_, context?: any): T[]; + select(list: T[], iterator: Iterator_, context?: any): T[]; + select(list: Dictionary, iterator: Iterator_, context?: any): T[]; where(list: T[], properties: Object): T[]; where(list: Dictionary, properties: Object): T[]; @@ -444,18 +444,18 @@ module Underscore { findWhere(list: T[], properties: Object): T; findWhere(list: Dictionary, properties: Object): T; - reject(list: T[], iterator: Iterator, context?: any): T[]; - reject(list: Dictionary, iterator: Iterator, context?: any): T[]; + reject(list: T[], iterator: Iterator_, context?: any): T[]; + reject(list: Dictionary, iterator: Iterator_, context?: any): T[]; - every(list: T[], iterator?: Iterator, context?: any): boolean; - every(list: Dictionary, iterator?: Iterator, context?: any): boolean; - all(list: T[], iterator?: Iterator, context?: any): boolean; - all(list: Dictionary, iterator?: Iterator, context?: any): boolean; + every(list: T[], iterator?: Iterator_, context?: any): boolean; + every(list: Dictionary, iterator?: Iterator_, context?: any): boolean; + all(list: T[], iterator?: Iterator_, context?: any): boolean; + all(list: Dictionary, iterator?: Iterator_, context?: any): boolean; - some(list: T[], iterator?: Iterator, context?: any): boolean; - some(list: Dictionary, iterator?: Iterator, context?: any): boolean; - any(list: T[], iterator?: Iterator, context?: any): boolean; - any(list: Dictionary, iterator?: Iterator, context?: any): boolean; + some(list: T[], iterator?: Iterator_, context?: any): boolean; + some(list: Dictionary, iterator?: Iterator_, context?: any): boolean; + any(list: T[], iterator?: Iterator_, context?: any): boolean; + any(list: Dictionary, iterator?: Iterator_, context?: any): boolean; contains(list: T[], value: T): boolean; contains(list: Dictionary, value: T): boolean; @@ -468,24 +468,24 @@ module Underscore { pluck(list: any[], propertyName: string): any[]; pluck(list: Dictionary, propertyName: string): any[]; - max(list: T[], iterator?: Iterator, context?: any): T; - max(list: Dictionary, iterator?: Iterator, context?: any): T; + max(list: T[], iterator?: Iterator_, context?: any): T; + max(list: Dictionary, iterator?: Iterator_, context?: any): T; - min(list: T[], iterator?: Iterator, context?: any): T; - min(list: Dictionary, iterator?: Iterator, context?: any): T; + min(list: T[], iterator?: Iterator_, context?: any): T; + min(list: Dictionary, iterator?: Iterator_, context?: any): T; - sortBy(list: T[], iterator: Iterator, context?: any): T[]; - sortBy(list: Dictionary, iterator: Iterator, context?: any): T[]; + sortBy(list: T[], iterator: Iterator_, context?: any): T[]; + sortBy(list: Dictionary, iterator: Iterator_, context?: any): T[]; sortBy(list: T[], propertyName: string): T[]; sortBy(list: Dictionary, propertyName: string): T[]; - groupBy(list: T[], iterator?: Iterator, context?: any): Dictionary; - groupBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; + groupBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; + groupBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; groupBy(list: T[], propertyName: string): Dictionary; groupBy(list: Dictionary, propertyName: string): Dictionary; - countBy(list: T[], iterator?: Iterator, context?: any): Dictionary; - countBy(list: Dictionary, iterator?: Iterator, context?: any): Dictionary; + countBy(list: T[], iterator?: Iterator_, context?: any): Dictionary; + countBy(list: Dictionary, iterator?: Iterator_, context?: any): Dictionary; countBy(list: T[], propertyName: string): Dictionary; countBy(list: Dictionary, propertyName: string): Dictionary; @@ -527,9 +527,9 @@ module Underscore { difference(list: T[], ...others: T[][]): T[]; uniq(list: T[], isSorted?: boolean): T[]; - uniq(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; + uniq(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; unique(list: T[], isSorted?: boolean): T[]; - unique(list: T[], isSorted: boolean, iterator: Iterator, context?: any): U[]; + unique(list: T[], isSorted: boolean, iterator: Iterator_, context?: any): U[]; zip(a0: T0[], a1: T1[]): Tuple2[]; zip(a0: T0[], a1: T1[], a2: T2[]): Tuple3[]; @@ -544,7 +544,7 @@ module Underscore { lastIndexOf(list: T[], value: T, fromIndex?: number): number; sortedIndex(list: T[], obj: T, propertyName: string): number; - sortedIndex(list: T[], obj: T, iterator?: Iterator, context?: any): number; + sortedIndex(list: T[], obj: T, iterator?: Iterator_, context?: any): number; range(stop: number): number[]; range(start: number, stop: number, step?: number): number[]; @@ -621,7 +621,7 @@ module Underscore { identity(value: T): T; - times(n: number, iterator: Iterator, context?: any): U[]; + times(n: number, iterator: Iterator_, context?: any): U[]; random(max: number): number; random(min: number, max: number): number; @@ -647,255 +647,255 @@ module Underscore { declare var _: Underscore.Static; // @Filename: underscoreTest1_underscoreTests.ts -/// - -declare var $; -declare function alert(x: string): void; - -_.each([1, 2, 3], (num) => alert(num.toString())); -_.each({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => alert(value.toString())); - -_.map([1, 2, 3], (num) => num * 3); -_.map({ one: 1, two: 2, three: 3 }, (value: number, key?: string) => value * 3); - -var sum = _.reduce([1, 2, 3], (memo, num) => memo + num, 0); - -var list = [[0, 1], [2, 3], [4, 5]]; -var flat = _.reduceRight(list, (a, b) => a.concat(b), []); - -var even = _.find([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); - -var evens = _.filter([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); - -var listOfPlays = [{ title: "Cymbeline", author: "Shakespeare", year: 1611 }, { title: "The Tempest", author: "Shakespeare", year: 1611 }, { title: "Other", author: "Not Shakespeare", year: 2012 }]; -_.where(listOfPlays, { author: "Shakespeare", year: 1611 }); - -var odds = _.reject([1, 2, 3, 4, 5, 6], (num) => num % 2 == 0); - -_.all([true, 1, null, 'yes'], _.identity); - -_.any([null, 0, 'yes', false]); - -_.contains([1, 2, 3], 3); - -_.invoke([[5, 1, 7], [3, 2, 1]], 'sort'); - -var stooges = [{ name: 'moe', age: 40 }, { name: 'larry', age: 50 }, { name: 'curly', age: 60 }]; -_.pluck(stooges, 'name'); - -_.max(stooges, (stooge) => stooge.age); - -var numbers = [10, 5, 100, 2, 1000]; -_.min(numbers); - -_.sortBy([1, 2, 3, 4, 5, 6], (num) => Math.sin(num)); - - -// not sure how this is typechecking at all.. Math.floor(e) is number not string..? -_([1.3, 2.1, 2.4]).groupBy((e: number, i?: number, list?: number[]) => Math.floor(e)); -_.groupBy([1.3, 2.1, 2.4], (num: number) => Math.floor(num)); -_.groupBy(['one', 'two', 'three'], 'length'); - -_.countBy([1, 2, 3, 4, 5], (num) => num % 2 == 0 ? 'even' : 'odd'); - -_.shuffle([1, 2, 3, 4, 5, 6]); - -// (function(){ return _.toArray(arguments).slice(1); })(1, 2, 3, 4); - -_.size({ one: 1, two: 2, three: 3 }); - -/////////////////////////////////////////////////////////////////////////////////////// - -_.first([5, 4, 3, 2, 1]); -_.initial([5, 4, 3, 2, 1]); -_.last([5, 4, 3, 2, 1]); -_.rest([5, 4, 3, 2, 1]); -_.compact([0, 1, false, 2, '', 3]); - -_.flatten([1, 2, 3, 4]); -_.flatten([1, [2]]); - -// typescript doesn't like the elements being different -_.flatten([1, [2], [3, [[4]]]]); -_.flatten([1, [2], [3, [[4]]]], true); -_.without([1, 2, 1, 0, 3, 1, 4], 0, 1); -_.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); -_.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]); -_.difference([1, 2, 3, 4, 5], [5, 2, 10]); -_.uniq([1, 2, 1, 3, 1, 4]); -_.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]); -_.object(['moe', 'larry', 'curly'], [30, 40, 50]); -_.object([['moe', 30], ['larry', 40], ['curly', 50]]); -_.indexOf([1, 2, 3], 2); -_.lastIndexOf([1, 2, 3, 1, 2, 3], 2); -_.sortedIndex([10, 20, 30, 40, 50], 35); -_.range(10); -_.range(1, 11); -_.range(0, 30, 5); -_.range(0, 30, 5); -_.range(0); - -/////////////////////////////////////////////////////////////////////////////////////// - -var func = function (greeting) { return greeting + ': ' + this.name }; -// need a second var otherwise typescript thinks func signature is the above func type, -// instead of the newly returned _bind => func type. -var func2 = _.bind(func, { name: 'moe' }, 'hi'); -func2(); - -var buttonView = { - label: 'underscore', - onClick: function () { alert('clicked: ' + this.label); }, - onHover: function () { alert('hovering: ' + this.label); } -}; -_.bindAll(buttonView); -$('#underscore_button').bind('click', buttonView.onClick); - -var fibonacci = _.memoize(function (n) { - return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2); -}); - -var log = _.bind((message?: string, ...rest: string[]) => { }, Date); -_.delay(log, 1000, 'logged later'); - -_.defer(function () { alert('deferred'); }); - -var updatePosition = () => alert('updating position...'); -var throttled = _.throttle(updatePosition, 100); -$(null).scroll(throttled); - -var calculateLayout = () => alert('calculating layout...'); -var lazyLayout = _.debounce(calculateLayout, 300); -$(null).resize(lazyLayout); - -var createApplication = () => alert('creating application...'); -var initialize = _.once(createApplication); -initialize(); -initialize(); - -var notes: any[]; -var render = () => alert("rendering..."); -var renderNotes = _.after(notes.length, render); -_.each(notes, (note) => note.asyncSave({ success: renderNotes })); - -var hello = function (name) { return "hello: " + name; }; -hello = _.wrap(hello, (func, arg) => { return "before, " + func(arg) + ", after"; }); -hello("moe"); - -var greet = function (name) { return "hi: " + name; }; -var exclaim = function (statement) { return statement + "!"; }; -var welcome = _.compose(exclaim, greet); -welcome('moe'); - -/////////////////////////////////////////////////////////////////////////////////////// - -_.keys({ one: 1, two: 2, three: 3 }); -_.values({ one: 1, two: 2, three: 3 }); -_.pairs({ one: 1, two: 2, three: 3 }); -_.invert({ Moe: "Moses", Larry: "Louis", Curly: "Jerome" }); -_.functions(_); -_.extend({ name: 'moe' }, { age: 50 }); -_.pick({ name: 'moe', age: 50, userid: 'moe1' }, 'name', 'age'); -_.omit({ name: 'moe', age: 50, userid: 'moe1' }, 'userid'); - -var iceCream = { flavor: "chocolate" }; -_.defaults(iceCream, { flavor: "vanilla", sprinkles: "lots" }); - -_.clone({ name: 'moe' }); - -_.chain([1, 2, 3, 200]) - .filter(function (num) { return num % 2 == 0; }) - .tap(alert) - .map(function (num) { return num * num }) - .value(); - -_.has({ a: 1, b: 2, c: 3 }, "b"); - -var moe = { name: 'moe', luckyNumbers: [13, 27, 34] }; -var clone = { name: 'moe', luckyNumbers: [13, 27, 34] }; -moe == clone; -_.isEqual(moe, clone); - -_.isEmpty([1, 2, 3]); -_.isEmpty({}); - -_.isElement($('body')[0]); - -(function () { return _.isArray(arguments); })(); -_.isArray([1, 2, 3]); - -_.isObject({}); -_.isObject(1); - - -// (() => { return _.isArguments(arguments); })(1, 2, 3); -_.isArguments([1, 2, 3]); - -_.isFunction(alert); - -_.isString("moe"); - -_.isNumber(8.4 * 5); - -_.isFinite(-101); - -_.isFinite(-Infinity); - -_.isBoolean(null); - -_.isDate(new Date()); - -_.isRegExp(/moe/); - -_.isNaN(NaN); -isNaN(undefined); -_.isNaN(undefined); - -_.isNull(null); -_.isNull(undefined); - -_.isUndefined((null).missingVariable); - -/////////////////////////////////////////////////////////////////////////////////////// - -var underscore = _.noConflict(); - -var moe2 = { name: 'moe' }; -moe2 === _.identity(moe); - -var genie; - -_.times(3, function (n) { genie.grantWishNumber(n); }); - -_.random(0, 100); - -_.mixin({ - capitalize: function (string) { - return string.charAt(0).toUpperCase() + string.substring(1).toLowerCase(); - } -}); -(_("fabio")).capitalize(); - -_.uniqueId('contact_'); - -_.escape('Curly, Larry & Moe'); - -var object = { cheese: 'crumpets', stuff: function () { return 'nonsense'; } }; -_.result(object, 'cheese'); - -_.result(object, 'stuff'); - -var compiled = _.template("hello: <%= name %>"); -compiled({ name: 'moe' }); -var list2 = "<% _.each(people, function(name) { %>
  • <%= name %>
  • <% }); %>"; -_.template(list2, { people: ['moe', 'curly', 'larry'] }); -var template = _.template("<%- value %>"); -template({ value: '