diff --git a/lib/core.js b/lib/core.js index d347f5742f9..371cdbee20f 100644 --- a/lib/core.js +++ b/lib/core.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ /* JS primitives - cf. http://typescript.codeplex.com/sourcecontrol/latest#typings/lib.d.ts + cf. https://github.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts */ declare var NaN: number; @@ -21,6 +21,19 @@ declare function decodeURIComponent(encodedURIComponent: string): string; declare function encodeURI(uri: string): string; declare function encodeURIComponent(uriComponent: string): string; +type PropertyDescriptor = { + enumerable?: boolean; + configurable?: boolean; + writable?: boolean; + value?: T; + get?: () => T; + set?: (value: T) => void; +}; + +type PropertyDescriptorMap = { + [s: string]: PropertyDescriptor; +} + // TODO: instance declare class Object { static (o: ?void): {[key: any]: any}; @@ -29,12 +42,12 @@ declare class Object { static (o: string): String; static (o: T): T; static assign: Object$Assign; - static create(o: any, properties?: any): any; // compiler magic - static defineProperties(o: any, properties: any): any; - static defineProperty(o: any, p: any, attributes: any): any; + static create(o: any, properties?: PropertyDescriptorMap): any; // compiler magic + static defineProperties(o: any, properties: PropertyDescriptorMap): any; + static defineProperty(o: any, p: any, attributes: PropertyDescriptor): any; static entries(object: any): Array<[string, mixed]>; static freeze(o: T): T; - static getOwnPropertyDescriptor(o: any, p: any): any; + static getOwnPropertyDescriptor(o: any, p: any): PropertyDescriptor | void; static getOwnPropertyNames(o: any): Array; static getOwnPropertySymbols(o: any): Symbol[]; static getPrototypeOf: Object$GetPrototypeOf; @@ -43,9 +56,8 @@ declare class Object { static isFrozen(o: any): boolean; static isSealed(o: any): boolean; static keys(o: any): Array; - static preventExtensions(o: any): any; - static seal(o: any): any; - static setPrototypeOf(o: any, proto: ?Object): any; + static preventExtensions(o: T): T; + static seal(o: T): T; static values(object: any): Array; hasOwnProperty(prop: any): boolean; isPrototypeOf(o: any): boolean; @@ -94,6 +106,7 @@ declare class Function { apply: Function$Prototype$Apply; // (thisArg: any, argArray?: any) => any bind: Function$Prototype$Bind; // (thisArg: any, ...argArray: Array) => any; call: Function$Prototype$Call; // (thisArg: any, ...argArray: Array) => any + toString(): string; arguments: any; caller: Function | null; length: number; @@ -767,8 +780,8 @@ type Proxy$traps = { setPrototypeOf?: (target: T, prototype: Object|null) => boolean; isExtensible?: (target: T) => boolean; preventExtensions?: (target: T) => boolean; - getOwnPropertyDescriptor?: (target: T, property: string) => void | Object; - defineProperty?: (target: T, property: string, descriptor: Object) => boolean; + getOwnPropertyDescriptor?: (target: T, property: string) => void | PropertyDescriptor; + defineProperty?: (target: T, property: string, descriptor: PropertyDescriptor) => boolean; has?: (target: T, key: string) => boolean; get?: (target: T, property: string, receiver: Proxy) => any; set?: (target: T, property: string, value: any, receiver: Proxy) => boolean; diff --git a/newtests/array_literal_tuple_spread/test.js b/newtests/array_literal_tuple_spread/test.js index f7b71e2dfff..28bb7f7edaa 100644 --- a/newtests/array_literal_tuple_spread/test.js +++ b/newtests/array_literal_tuple_spread/test.js @@ -325,8 +325,8 @@ export default suite(({addFile, addFiles, addCode}) => [ 3: const arr: Array = [..."hello"]; ^^^^^^^^^^^^ Cannot assign array literal to \`arr\` because string [1] is incompatible with number [2] in array element. References: - 288: @@iterator(): Iterator; - ^^^^^^ [1]. See lib: [LIB] core.js:288 + 301: @@iterator(): Iterator; + ^^^^^^ [1]. See lib: [LIB] core.js:301 3: const arr: Array = [..."hello"]; ^^^^^^ [2] `, diff --git a/newtests/autocomplete/test.js b/newtests/autocomplete/test.js index ba58c290f87..f5a726da642 100644 --- a/newtests/autocomplete/test.js +++ b/newtests/autocomplete/test.js @@ -49,8 +49,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -67,8 +67,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -95,8 +95,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -118,8 +118,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -131,8 +131,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -144,8 +144,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -205,8 +205,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 288, - "endline": 288, + "line": 301, + "endline": 301, "start": 5, "end": 34 }, @@ -223,8 +223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 289, - "endline": 289, + "line": 302, + "endline": 302, "start": 5, "end": 32 }, @@ -241,8 +241,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 290, - "endline": 290, + "line": 303, + "endline": 303, "start": 5, "end": 31 }, @@ -259,8 +259,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 291, - "endline": 291, + "line": 304, + "endline": 304, "start": 5, "end": 37 }, @@ -277,8 +277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 292, - "endline": 292, + "line": 305, + "endline": 305, "start": 5, "end": 38 }, @@ -295,8 +295,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 293, - "endline": 293, + "line": 306, + "endline": 306, "start": 5, "end": 45 }, @@ -317,8 +317,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 295, - "endline": 295, + "line": 308, + "endline": 308, "start": 5, "end": 62 }, @@ -339,8 +339,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 296, - "endline": 296, + "line": 309, + "endline": 309, "start": 5, "end": 62 }, @@ -361,8 +361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 297, - "endline": 297, + "line": 310, + "endline": 310, "start": 5, "end": 60 }, @@ -383,8 +383,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 298, - "endline": 298, + "line": 311, + "endline": 311, "start": 5, "end": 64 }, @@ -393,8 +393,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 322, - "endline": 322, + "line": 335, + "endline": 335, "start": 13, "end": 18 }, @@ -411,8 +411,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 299, - "endline": 299, + "line": 312, + "endline": 312, "start": 5, "end": 30 }, @@ -437,8 +437,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 300, - "endline": 300, + "line": 313, + "endline": 313, "start": 5, "end": 91 }, @@ -455,8 +455,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 301, - "endline": 301, + "line": 314, + "endline": 314, "start": 5, "end": 50 }, @@ -473,8 +473,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 302, - "endline": 302, + "line": 315, + "endline": 315, "start": 5, "end": 38 }, @@ -495,8 +495,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 303, - "endline": 303, + "line": 316, + "endline": 316, "start": 5, "end": 60 }, @@ -517,8 +517,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 304, - "endline": 304, + "line": 317, + "endline": 317, "start": 5, "end": 62 }, @@ -535,8 +535,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 305, - "endline": 305, + "line": 318, + "endline": 318, "start": 5, "end": 33 }, @@ -557,8 +557,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 306, - "endline": 306, + "line": 319, + "endline": 319, "start": 5, "end": 124 }, @@ -575,8 +575,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 307, - "endline": 307, + "line": 320, + "endline": 320, "start": 5, "end": 43 }, @@ -597,8 +597,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 308, - "endline": 308, + "line": 321, + "endline": 321, "start": 5, "end": 47 }, @@ -619,8 +619,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 309, - "endline": 309, + "line": 322, + "endline": 322, "start": 5, "end": 69 }, @@ -641,8 +641,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 310, - "endline": 310, + "line": 323, + "endline": 323, "start": 5, "end": 64 }, @@ -663,8 +663,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 311, - "endline": 311, + "line": 324, + "endline": 324, "start": 5, "end": 49 }, @@ -685,8 +685,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 312, - "endline": 312, + "line": 325, + "endline": 325, "start": 5, "end": 50 }, @@ -698,8 +698,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 313, - "endline": 313, + "line": 326, + "endline": 326, "start": 5, "end": 31 }, @@ -711,8 +711,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 314, - "endline": 314, + "line": 327, + "endline": 327, "start": 5, "end": 31 }, @@ -724,8 +724,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 315, - "endline": 315, + "line": 328, + "endline": 328, "start": 5, "end": 25 }, @@ -737,8 +737,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 321, - "endline": 321, + "line": 334, + "endline": 334, "start": 5, "end": 22 }, @@ -750,8 +750,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 316, - "endline": 316, + "line": 329, + "endline": 329, "start": 5, "end": 25 }, @@ -763,8 +763,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 317, - "endline": 317, + "line": 330, + "endline": 330, "start": 5, "end": 18 }, @@ -776,8 +776,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 318, - "endline": 318, + "line": 331, + "endline": 331, "start": 5, "end": 22 }, @@ -789,8 +789,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 319, - "endline": 319, + "line": 332, + "endline": 332, "start": 5, "end": 23 }, @@ -802,8 +802,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 320, - "endline": 320, + "line": 333, + "endline": 333, "start": 5, "end": 21 } @@ -834,8 +834,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 140, - "endline": 140, + "line": 153, + "endline": 153, "start": 5, "end": 50 }, @@ -852,8 +852,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 141, - "endline": 141, + "line": 154, + "endline": 154, "start": 5, "end": 44 }, @@ -874,8 +874,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 142, - "endline": 142, + "line": 155, + "endline": 155, "start": 5, "end": 92 }, @@ -892,8 +892,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 143, - "endline": 143, + "line": 156, + "endline": 156, "start": 5, "end": 43 }, @@ -910,8 +910,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 144, - "endline": 144, + "line": 157, + "endline": 157, "start": 5, "end": 36 }, @@ -923,8 +923,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 145, - "endline": 145, + "line": 158, + "endline": 158, "start": 5, "end": 21 } @@ -950,8 +950,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 107, - "endline": 107, + "line": 120, + "endline": 120, "start": 5, "end": 22 }, @@ -963,8 +963,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 106, - "endline": 106, + "line": 119, + "endline": 119, "start": 5, "end": 22 } @@ -1005,8 +1005,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1023,8 +1023,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1041,8 +1041,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -1054,8 +1054,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -1067,8 +1067,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -1080,8 +1080,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -1112,8 +1112,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1130,8 +1130,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1148,8 +1148,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -1161,8 +1161,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -1174,8 +1174,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -1187,8 +1187,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -1223,8 +1223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 94, - "endline": 94, + "line": 106, + "endline": 106, "start": 12, "end": 35 }, @@ -1233,8 +1233,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "any", "func_details": null, "path": "[LIB] core.js", - "line": 97, - "endline": 97, + "line": 110, + "endline": 110, "start": 16, "end": 18 }, @@ -1255,8 +1255,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 95, - "endline": 95, + "line": 107, + "endline": 107, "start": 11, "end": 33 }, @@ -1277,8 +1277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 96, - "endline": 96, + "line": 108, + "endline": 108, "start": 11, "end": 33 }, @@ -1287,8 +1287,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "Function | null", "func_details": null, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 111, + "endline": 111, "start": 13, "end": 27 }, @@ -1305,8 +1305,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1323,8 +1323,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1333,8 +1333,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 99, - "endline": 99, + "line": 112, + "endline": 112, "start": 13, "end": 18 }, @@ -1343,8 +1343,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "string", "func_details": null, "path": "[LIB] core.js", - "line": 100, - "endline": 100, + "line": 113, + "endline": 113, "start": 11, "end": 16 }, @@ -1361,8 +1361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -1374,8 +1374,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -1387,8 +1387,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -1400,8 +1400,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -1436,8 +1436,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 94, - "endline": 94, + "line": 106, + "endline": 106, "start": 12, "end": 35 }, @@ -1446,8 +1446,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "any", "func_details": null, "path": "[LIB] core.js", - "line": 97, - "endline": 97, + "line": 110, + "endline": 110, "start": 16, "end": 18 }, @@ -1468,8 +1468,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 95, - "endline": 95, + "line": 107, + "endline": 107, "start": 11, "end": 33 }, @@ -1490,8 +1490,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 96, - "endline": 96, + "line": 108, + "endline": 108, "start": 11, "end": 33 }, @@ -1500,8 +1500,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "Function | null", "func_details": null, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 111, + "endline": 111, "start": 13, "end": 27 }, @@ -1518,8 +1518,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1536,8 +1536,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1546,8 +1546,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 99, - "endline": 99, + "line": 112, + "endline": 112, "start": 13, "end": 18 }, @@ -1556,8 +1556,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "string", "func_details": null, "path": "[LIB] core.js", - "line": 100, - "endline": 100, + "line": 113, + "endline": 113, "start": 11, "end": 16 }, @@ -1574,8 +1574,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -1587,8 +1587,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -1600,8 +1600,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -1613,8 +1613,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -1695,8 +1695,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 140, - "endline": 140, + "line": 153, + "endline": 153, "start": 5, "end": 50 }, @@ -1713,8 +1713,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 141, - "endline": 141, + "line": 154, + "endline": 154, "start": 5, "end": 44 }, @@ -1735,8 +1735,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 142, - "endline": 142, + "line": 155, + "endline": 155, "start": 5, "end": 92 }, @@ -1753,8 +1753,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 143, - "endline": 143, + "line": 156, + "endline": 156, "start": 5, "end": 43 }, @@ -1771,8 +1771,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 144, - "endline": 144, + "line": 157, + "endline": 157, "start": 5, "end": 36 }, @@ -1784,8 +1784,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 145, - "endline": 145, + "line": 158, + "endline": 158, "start": 5, "end": 21 } @@ -1826,8 +1826,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1844,8 +1844,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1862,8 +1862,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -1875,8 +1875,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -1888,8 +1888,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -1901,8 +1901,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } @@ -1951,8 +1951,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -1969,8 +1969,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -1997,8 +1997,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -2010,8 +2010,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -2023,8 +2023,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -2036,8 +2036,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 }, @@ -2078,8 +2078,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -2096,8 +2096,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -2114,8 +2114,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -2127,8 +2127,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -2140,8 +2140,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -2153,8 +2153,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 }, @@ -2195,8 +2195,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -2213,8 +2213,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -2231,8 +2231,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -2244,8 +2244,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -2257,8 +2257,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -2270,8 +2270,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 }, @@ -2532,8 +2532,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 62, + "endline": 62, "start": 5, "end": 38 }, @@ -2550,8 +2550,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 63, + "endline": 63, "start": 5, "end": 34 }, @@ -2578,8 +2578,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 64, + "endline": 64, "start": 5, "end": 44 }, @@ -2601,8 +2601,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 65, + "endline": 65, "start": 5, "end": 28 }, @@ -2614,8 +2614,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 66, + "endline": 66, "start": 5, "end": 22 }, @@ -2627,8 +2627,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 67, + "endline": 67, "start": 5, "end": 21 } diff --git a/newtests/tuples/test.js b/newtests/tuples/test.js index 2eeeeae7a0e..5a847215d88 100644 --- a/newtests/tuples/test.js +++ b/newtests/tuples/test.js @@ -78,8 +78,8 @@ export default suite(({addFile, addFiles, addCode}) => [ 3: function foo(x: [1,2]): string { return x.length; } ^^^^^^^^ Cannot return \`x.length\` because number [1] is incompatible with string [2]. References: - 235: +length: number; - ^^^^^^ [1]. See lib: [LIB] core.js:235 + 248: +length: number; + ^^^^^^ [1]. See lib: [LIB] core.js:248 3: function foo(x: [1,2]): string { return x.length; } ^^^^^^ [2] `, @@ -103,8 +103,8 @@ export default suite(({addFile, addFiles, addCode}) => [ 6: readOnlyRef.push(123); ^^^^ Cannot call \`readOnlyRef.push\` because property \`push\` is missing in \`$ReadOnlyArray\` [1]. References: - 207: forEach(callbackfn: (value: T, index: number, array: $ReadOnlyArray) => any, thisArg?: any): void; - ^^^^^^^^^^^^^^^^^ [1]. See lib: [LIB] core.js:207 + 220: forEach(callbackfn: (value: T, index: number, array: $ReadOnlyArray) => any, thisArg?: any): void; + ^^^^^^^^^^^^^^^^^ [1]. See lib: [LIB] core.js:220 test.js:7 7: (readOnlyRef[0]: 1); diff --git a/tests/arrows/arrows.exp b/tests/arrows/arrows.exp index 48a86018a83..b0f064325a7 100644 --- a/tests/arrows/arrows.exp +++ b/tests/arrows/arrows.exp @@ -45,8 +45,8 @@ References: arrows.js:7:36 7| images = images.sort((a, b) => (a.width - b.width) + ""); ^^^^^^^^^^^^^^^^^^^^^^^^ [1] - /core.js:269:38 - 269| sort(compareFn?: (a: T, b: T) => number): Array; + /core.js:282:38 + 282| sort(compareFn?: (a: T, b: T) => number): Array; ^^^^^^ [2] diff --git a/tests/async/async.exp b/tests/async/async.exp index b462f08e861..70699c3f512 100644 --- a/tests/async/async.exp +++ b/tests/async/async.exp @@ -10,8 +10,8 @@ References: async.js:11:30 11| async function f1(): Promise { ^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -30,8 +30,8 @@ References: async.js:30:48 30| async function f4(p: Promise): Promise { ^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -100,8 +100,8 @@ References: async2.js:57:13 57| : Promise { // error, number != void ^^^^^^ [1] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [2] @@ -134,8 +134,8 @@ References: async_return_void.js:3:32 3| async function foo1(): Promise { ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -151,8 +151,8 @@ References: async_return_void.js:7:32 7| async function foo2(): Promise { ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -171,8 +171,8 @@ References: async_return_void.js:11:32 11| async function foo3(): Promise { ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] diff --git a/tests/async_iteration/async_iteration.exp b/tests/async_iteration/async_iteration.exp index 1e3a038f182..ef11b7eed0e 100644 --- a/tests/async_iteration/async_iteration.exp +++ b/tests/async_iteration/async_iteration.exp @@ -99,8 +99,8 @@ Cannot cast `result.value` to string because: ^^^^^^^^^^^^ References: - /core.js:493:28 - 493| | { done: true, +value?: Return } + /core.js:506:28 + 506| | { done: true, +value?: Return } ^^^^^^ [1] return.js:20:20 20| (result.value: string); // error: number | void ~> string diff --git a/tests/autocomplete/autocomplete.exp b/tests/autocomplete/autocomplete.exp index 91c906d15fe..4920e17e93b 100644 --- a/tests/autocomplete/autocomplete.exp +++ b/tests/autocomplete/autocomplete.exp @@ -13,8 +13,8 @@ foo.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -23,8 +23,8 @@ foo.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -43,8 +43,8 @@ foo.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -63,8 +63,8 @@ foo.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -73,8 +73,8 @@ foo.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -83,8 +83,8 @@ foo.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -112,8 +112,8 @@ str.js = { "type":"() => Iterator", "func_details":{"return_type":"Iterator","params":[]}, "path":"[LIB] core.js", - "line":288, - "endline":288, + "line":301, + "endline":301, "start":5, "end":34 }, @@ -122,8 +122,8 @@ str.js = { "type":"(name: string) => string", "func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]}, "path":"[LIB] core.js", - "line":289, - "endline":289, + "line":302, + "endline":302, "start":5, "end":32 }, @@ -132,8 +132,8 @@ str.js = { "type":"(pos: number) => string", "func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]}, "path":"[LIB] core.js", - "line":290, - "endline":290, + "line":303, + "endline":303, "start":5, "end":31 }, @@ -142,8 +142,8 @@ str.js = { "type":"(index: number) => number", "func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]}, "path":"[LIB] core.js", - "line":291, - "endline":291, + "line":304, + "endline":304, "start":5, "end":37 }, @@ -152,8 +152,8 @@ str.js = { "type":"(index: number) => number", "func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]}, "path":"[LIB] core.js", - "line":292, - "endline":292, + "line":305, + "endline":305, "start":5, "end":38 }, @@ -162,8 +162,8 @@ str.js = { "type":"(...strings: string[]) => string", "func_details":{"return_type":"string","params":[{"name":"...strings","type":"string[]"}]}, "path":"[LIB] core.js", - "line":293, - "endline":293, + "line":306, + "endline":306, "start":5, "end":45 }, @@ -175,8 +175,8 @@ str.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":295, - "endline":295, + "line":308, + "endline":308, "start":5, "end":62 }, @@ -188,8 +188,8 @@ str.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":296, - "endline":296, + "line":309, + "endline":309, "start":5, "end":62 }, @@ -201,8 +201,8 @@ str.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":297, - "endline":297, + "line":310, + "endline":310, "start":5, "end":60 }, @@ -214,8 +214,8 @@ str.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":298, - "endline":298, + "line":311, + "endline":311, "start":5, "end":64 }, @@ -224,8 +224,8 @@ str.js = { "type":"number", "func_details":null, "path":"[LIB] core.js", - "line":322, - "endline":322, + "line":335, + "endline":335, "start":13, "end":18 }, @@ -234,8 +234,8 @@ str.js = { "type":"(href: string) => string", "func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]}, "path":"[LIB] core.js", - "line":299, - "endline":299, + "line":312, + "endline":312, "start":5, "end":30 }, @@ -251,8 +251,8 @@ str.js = { ] }, "path":"[LIB] core.js", - "line":300, - "endline":300, + "line":313, + "endline":313, "start":5, "end":91 }, @@ -264,8 +264,8 @@ str.js = { "params":[{"name":"regexp","type":"string | RegExp"}] }, "path":"[LIB] core.js", - "line":301, - "endline":301, + "line":314, + "endline":314, "start":5, "end":50 }, @@ -274,8 +274,8 @@ str.js = { "type":"(format?: string) => string", "func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]}, "path":"[LIB] core.js", - "line":302, - "endline":302, + "line":315, + "endline":315, "start":5, "end":38 }, @@ -287,8 +287,8 @@ str.js = { "params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}] }, "path":"[LIB] core.js", - "line":303, - "endline":303, + "line":316, + "endline":316, "start":5, "end":60 }, @@ -300,8 +300,8 @@ str.js = { "params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}] }, "path":"[LIB] core.js", - "line":304, - "endline":304, + "line":317, + "endline":317, "start":5, "end":62 }, @@ -310,8 +310,8 @@ str.js = { "type":"(count: number) => string", "func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]}, "path":"[LIB] core.js", - "line":305, - "endline":305, + "line":318, + "endline":318, "start":5, "end":33 }, @@ -329,8 +329,8 @@ str.js = { ] }, "path":"[LIB] core.js", - "line":306, - "endline":306, + "line":319, + "endline":319, "start":5, "end":124 }, @@ -339,8 +339,8 @@ str.js = { "type":"(regexp: (string | RegExp)) => number", "func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]}, "path":"[LIB] core.js", - "line":307, - "endline":307, + "line":320, + "endline":320, "start":5, "end":43 }, @@ -352,8 +352,8 @@ str.js = { "params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}] }, "path":"[LIB] core.js", - "line":308, - "endline":308, + "line":321, + "endline":321, "start":5, "end":47 }, @@ -368,8 +368,8 @@ str.js = { ] }, "path":"[LIB] core.js", - "line":309, - "endline":309, + "line":322, + "endline":322, "start":5, "end":69 }, @@ -381,8 +381,8 @@ str.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":310, - "endline":310, + "line":323, + "endline":323, "start":5, "end":64 }, @@ -394,8 +394,8 @@ str.js = { "params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}] }, "path":"[LIB] core.js", - "line":311, - "endline":311, + "line":324, + "endline":324, "start":5, "end":49 }, @@ -407,8 +407,8 @@ str.js = { "params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}] }, "path":"[LIB] core.js", - "line":312, - "endline":312, + "line":325, + "endline":325, "start":5, "end":50 }, @@ -417,8 +417,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":313, - "endline":313, + "line":326, + "endline":326, "start":5, "end":31 }, @@ -427,8 +427,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":314, - "endline":314, + "line":327, + "endline":327, "start":5, "end":31 }, @@ -437,8 +437,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":315, - "endline":315, + "line":328, + "endline":328, "start":5, "end":25 }, @@ -447,8 +447,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":321, - "endline":321, + "line":334, + "endline":334, "start":5, "end":22 }, @@ -457,8 +457,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":316, - "endline":316, + "line":329, + "endline":329, "start":5, "end":25 }, @@ -467,8 +467,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":317, - "endline":317, + "line":330, + "endline":330, "start":5, "end":18 }, @@ -477,8 +477,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":318, - "endline":318, + "line":331, + "endline":331, "start":5, "end":22 }, @@ -487,8 +487,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":319, - "endline":319, + "line":332, + "endline":332, "start":5, "end":23 }, @@ -497,8 +497,8 @@ str.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":320, - "endline":320, + "line":333, + "endline":333, "start":5, "end":21 } @@ -511,8 +511,8 @@ num.js = { "type":"(fractionDigits?: number) => string", "func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]}, "path":"[LIB] core.js", - "line":140, - "endline":140, + "line":153, + "endline":153, "start":5, "end":50 }, @@ -521,8 +521,8 @@ num.js = { "type":"(fractionDigits?: number) => string", "func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]}, "path":"[LIB] core.js", - "line":141, - "endline":141, + "line":154, + "endline":154, "start":5, "end":44 }, @@ -537,8 +537,8 @@ num.js = { ] }, "path":"[LIB] core.js", - "line":142, - "endline":142, + "line":155, + "endline":155, "start":5, "end":92 }, @@ -547,8 +547,8 @@ num.js = { "type":"(precision?: number) => string", "func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]}, "path":"[LIB] core.js", - "line":143, - "endline":143, + "line":156, + "endline":156, "start":5, "end":43 }, @@ -557,8 +557,8 @@ num.js = { "type":"(radix?: number) => string", "func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]}, "path":"[LIB] core.js", - "line":144, - "endline":144, + "line":157, + "endline":157, "start":5, "end":36 }, @@ -567,8 +567,8 @@ num.js = { "type":"() => number", "func_details":{"return_type":"number","params":[]}, "path":"[LIB] core.js", - "line":145, - "endline":145, + "line":158, + "endline":158, "start":5, "end":21 } @@ -581,8 +581,8 @@ bool.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":107, - "endline":107, + "line":120, + "endline":120, "start":5, "end":22 }, @@ -591,8 +591,8 @@ bool.js = { "type":"() => boolean", "func_details":{"return_type":"boolean","params":[]}, "path":"[LIB] core.js", - "line":106, - "endline":106, + "line":119, + "endline":119, "start":5, "end":22 } @@ -615,8 +615,8 @@ union.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -625,8 +625,8 @@ union.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -635,8 +635,8 @@ union.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -645,8 +645,8 @@ union.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -655,8 +655,8 @@ union.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -665,8 +665,8 @@ union.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -679,8 +679,8 @@ object_builtins.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -689,8 +689,8 @@ object_builtins.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -699,8 +699,8 @@ object_builtins.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -709,8 +709,8 @@ object_builtins.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -719,8 +719,8 @@ object_builtins.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -729,8 +729,8 @@ object_builtins.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -746,8 +746,8 @@ function_builtins.js = { "params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}] }, "path":"[LIB] core.js", - "line":94, - "endline":94, + "line":106, + "endline":106, "start":12, "end":35 }, @@ -756,8 +756,8 @@ function_builtins.js = { "type":"any", "func_details":null, "path":"[LIB] core.js", - "line":97, - "endline":97, + "line":110, + "endline":110, "start":16, "end":18 }, @@ -769,8 +769,8 @@ function_builtins.js = { "params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"any[]"}] }, "path":"[LIB] core.js", - "line":95, - "endline":95, + "line":107, + "endline":107, "start":11, "end":33 }, @@ -782,8 +782,8 @@ function_builtins.js = { "params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"any[]"}] }, "path":"[LIB] core.js", - "line":96, - "endline":96, + "line":108, + "endline":108, "start":11, "end":33 }, @@ -792,8 +792,8 @@ function_builtins.js = { "type":"Function | null", "func_details":null, "path":"[LIB] core.js", - "line":98, - "endline":98, + "line":111, + "endline":111, "start":13, "end":27 }, @@ -802,8 +802,8 @@ function_builtins.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -812,8 +812,8 @@ function_builtins.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -822,8 +822,8 @@ function_builtins.js = { "type":"number", "func_details":null, "path":"[LIB] core.js", - "line":99, - "endline":99, + "line":112, + "endline":112, "start":13, "end":18 }, @@ -832,8 +832,8 @@ function_builtins.js = { "type":"string", "func_details":null, "path":"[LIB] core.js", - "line":100, - "endline":100, + "line":113, + "endline":113, "start":11, "end":16 }, @@ -842,8 +842,8 @@ function_builtins.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -852,8 +852,8 @@ function_builtins.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -862,8 +862,8 @@ function_builtins.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -872,8 +872,8 @@ function_builtins.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -889,8 +889,8 @@ fun.js = { "params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}] }, "path":"[LIB] core.js", - "line":94, - "endline":94, + "line":106, + "endline":106, "start":12, "end":35 }, @@ -899,8 +899,8 @@ fun.js = { "type":"any", "func_details":null, "path":"[LIB] core.js", - "line":97, - "endline":97, + "line":110, + "endline":110, "start":16, "end":18 }, @@ -912,8 +912,8 @@ fun.js = { "params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"any[]"}] }, "path":"[LIB] core.js", - "line":95, - "endline":95, + "line":107, + "endline":107, "start":11, "end":33 }, @@ -925,8 +925,8 @@ fun.js = { "params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"any[]"}] }, "path":"[LIB] core.js", - "line":96, - "endline":96, + "line":108, + "endline":108, "start":11, "end":33 }, @@ -935,8 +935,8 @@ fun.js = { "type":"Function | null", "func_details":null, "path":"[LIB] core.js", - "line":98, - "endline":98, + "line":111, + "endline":111, "start":13, "end":27 }, @@ -945,8 +945,8 @@ fun.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -955,8 +955,8 @@ fun.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -965,8 +965,8 @@ fun.js = { "type":"number", "func_details":null, "path":"[LIB] core.js", - "line":99, - "endline":99, + "line":112, + "endline":112, "start":13, "end":18 }, @@ -975,8 +975,8 @@ fun.js = { "type":"string", "func_details":null, "path":"[LIB] core.js", - "line":100, - "endline":100, + "line":113, + "endline":113, "start":11, "end":16 }, @@ -985,8 +985,8 @@ fun.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -995,8 +995,8 @@ fun.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -1005,8 +1005,8 @@ fun.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -1015,8 +1015,8 @@ fun.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -1063,8 +1063,8 @@ typeparams.js = { "type":"(fractionDigits?: number) => string", "func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]}, "path":"[LIB] core.js", - "line":140, - "endline":140, + "line":153, + "endline":153, "start":5, "end":50 }, @@ -1073,8 +1073,8 @@ typeparams.js = { "type":"(fractionDigits?: number) => string", "func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]}, "path":"[LIB] core.js", - "line":141, - "endline":141, + "line":154, + "endline":154, "start":5, "end":44 }, @@ -1089,8 +1089,8 @@ typeparams.js = { ] }, "path":"[LIB] core.js", - "line":142, - "endline":142, + "line":155, + "endline":155, "start":5, "end":92 }, @@ -1099,8 +1099,8 @@ typeparams.js = { "type":"(precision?: number) => string", "func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]}, "path":"[LIB] core.js", - "line":143, - "endline":143, + "line":156, + "endline":156, "start":5, "end":43 }, @@ -1109,8 +1109,8 @@ typeparams.js = { "type":"(radix?: number) => string", "func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]}, "path":"[LIB] core.js", - "line":144, - "endline":144, + "line":157, + "endline":157, "start":5, "end":36 }, @@ -1119,8 +1119,8 @@ typeparams.js = { "type":"() => number", "func_details":{"return_type":"number","params":[]}, "path":"[LIB] core.js", - "line":145, - "endline":145, + "line":158, + "endline":158, "start":5, "end":21 } @@ -1143,8 +1143,8 @@ generics.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -1153,8 +1153,8 @@ generics.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -1163,8 +1163,8 @@ generics.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -1173,8 +1173,8 @@ generics.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -1183,8 +1183,8 @@ generics.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -1193,8 +1193,8 @@ generics.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } @@ -1217,8 +1217,8 @@ optional.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -1227,8 +1227,8 @@ optional.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -1247,8 +1247,8 @@ optional.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -1257,8 +1257,8 @@ optional.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -1267,8 +1267,8 @@ optional.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -1277,8 +1277,8 @@ optional.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 }, @@ -1301,8 +1301,8 @@ jsx1.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -1311,8 +1311,8 @@ jsx1.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -1321,8 +1321,8 @@ jsx1.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -1331,8 +1331,8 @@ jsx1.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -1341,8 +1341,8 @@ jsx1.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -1351,8 +1351,8 @@ jsx1.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 }, @@ -1375,8 +1375,8 @@ jsx2.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -1385,8 +1385,8 @@ jsx2.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -1395,8 +1395,8 @@ jsx2.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -1405,8 +1405,8 @@ jsx2.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -1415,8 +1415,8 @@ jsx2.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -1425,8 +1425,8 @@ jsx2.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 }, @@ -1595,8 +1595,8 @@ if.js = { "type":"() => Iterator", "func_details":{"return_type":"Iterator","params":[]}, "path":"[LIB] core.js", - "line":288, - "endline":288, + "line":301, + "endline":301, "start":5, "end":34 }, @@ -1605,8 +1605,8 @@ if.js = { "type":"(name: string) => string", "func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]}, "path":"[LIB] core.js", - "line":289, - "endline":289, + "line":302, + "endline":302, "start":5, "end":32 }, @@ -1615,8 +1615,8 @@ if.js = { "type":"(pos: number) => string", "func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]}, "path":"[LIB] core.js", - "line":290, - "endline":290, + "line":303, + "endline":303, "start":5, "end":31 }, @@ -1625,8 +1625,8 @@ if.js = { "type":"(index: number) => number", "func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]}, "path":"[LIB] core.js", - "line":291, - "endline":291, + "line":304, + "endline":304, "start":5, "end":37 }, @@ -1635,8 +1635,8 @@ if.js = { "type":"(index: number) => number", "func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]}, "path":"[LIB] core.js", - "line":292, - "endline":292, + "line":305, + "endline":305, "start":5, "end":38 }, @@ -1645,8 +1645,8 @@ if.js = { "type":"(...strings: string[]) => string", "func_details":{"return_type":"string","params":[{"name":"...strings","type":"string[]"}]}, "path":"[LIB] core.js", - "line":293, - "endline":293, + "line":306, + "endline":306, "start":5, "end":45 }, @@ -1658,8 +1658,8 @@ if.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":295, - "endline":295, + "line":308, + "endline":308, "start":5, "end":62 }, @@ -1671,8 +1671,8 @@ if.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":296, - "endline":296, + "line":309, + "endline":309, "start":5, "end":62 }, @@ -1684,8 +1684,8 @@ if.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":297, - "endline":297, + "line":310, + "endline":310, "start":5, "end":60 }, @@ -1697,8 +1697,8 @@ if.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":298, - "endline":298, + "line":311, + "endline":311, "start":5, "end":64 }, @@ -1707,8 +1707,8 @@ if.js = { "type":"number", "func_details":null, "path":"[LIB] core.js", - "line":322, - "endline":322, + "line":335, + "endline":335, "start":13, "end":18 }, @@ -1717,8 +1717,8 @@ if.js = { "type":"(href: string) => string", "func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]}, "path":"[LIB] core.js", - "line":299, - "endline":299, + "line":312, + "endline":312, "start":5, "end":30 }, @@ -1734,8 +1734,8 @@ if.js = { ] }, "path":"[LIB] core.js", - "line":300, - "endline":300, + "line":313, + "endline":313, "start":5, "end":91 }, @@ -1747,8 +1747,8 @@ if.js = { "params":[{"name":"regexp","type":"string | RegExp"}] }, "path":"[LIB] core.js", - "line":301, - "endline":301, + "line":314, + "endline":314, "start":5, "end":50 }, @@ -1757,8 +1757,8 @@ if.js = { "type":"(format?: string) => string", "func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]}, "path":"[LIB] core.js", - "line":302, - "endline":302, + "line":315, + "endline":315, "start":5, "end":38 }, @@ -1770,8 +1770,8 @@ if.js = { "params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}] }, "path":"[LIB] core.js", - "line":303, - "endline":303, + "line":316, + "endline":316, "start":5, "end":60 }, @@ -1783,8 +1783,8 @@ if.js = { "params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}] }, "path":"[LIB] core.js", - "line":304, - "endline":304, + "line":317, + "endline":317, "start":5, "end":62 }, @@ -1793,8 +1793,8 @@ if.js = { "type":"(count: number) => string", "func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]}, "path":"[LIB] core.js", - "line":305, - "endline":305, + "line":318, + "endline":318, "start":5, "end":33 }, @@ -1812,8 +1812,8 @@ if.js = { ] }, "path":"[LIB] core.js", - "line":306, - "endline":306, + "line":319, + "endline":319, "start":5, "end":124 }, @@ -1822,8 +1822,8 @@ if.js = { "type":"(regexp: (string | RegExp)) => number", "func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]}, "path":"[LIB] core.js", - "line":307, - "endline":307, + "line":320, + "endline":320, "start":5, "end":43 }, @@ -1835,8 +1835,8 @@ if.js = { "params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}] }, "path":"[LIB] core.js", - "line":308, - "endline":308, + "line":321, + "endline":321, "start":5, "end":47 }, @@ -1851,8 +1851,8 @@ if.js = { ] }, "path":"[LIB] core.js", - "line":309, - "endline":309, + "line":322, + "endline":322, "start":5, "end":69 }, @@ -1864,8 +1864,8 @@ if.js = { "params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}] }, "path":"[LIB] core.js", - "line":310, - "endline":310, + "line":323, + "endline":323, "start":5, "end":64 }, @@ -1877,8 +1877,8 @@ if.js = { "params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}] }, "path":"[LIB] core.js", - "line":311, - "endline":311, + "line":324, + "endline":324, "start":5, "end":49 }, @@ -1890,8 +1890,8 @@ if.js = { "params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}] }, "path":"[LIB] core.js", - "line":312, - "endline":312, + "line":325, + "endline":325, "start":5, "end":50 }, @@ -1900,8 +1900,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":313, - "endline":313, + "line":326, + "endline":326, "start":5, "end":31 }, @@ -1910,8 +1910,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":314, - "endline":314, + "line":327, + "endline":327, "start":5, "end":31 }, @@ -1920,8 +1920,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":315, - "endline":315, + "line":328, + "endline":328, "start":5, "end":25 }, @@ -1930,8 +1930,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":321, - "endline":321, + "line":334, + "endline":334, "start":5, "end":22 }, @@ -1940,8 +1940,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":316, - "endline":316, + "line":329, + "endline":329, "start":5, "end":25 }, @@ -1950,8 +1950,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":317, - "endline":317, + "line":330, + "endline":330, "start":5, "end":18 }, @@ -1960,8 +1960,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":318, - "endline":318, + "line":331, + "endline":331, "start":5, "end":22 }, @@ -1970,8 +1970,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":319, - "endline":319, + "line":332, + "endline":332, "start":5, "end":23 }, @@ -1980,8 +1980,8 @@ if.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":320, - "endline":320, + "line":333, + "endline":333, "start":5, "end":21 } @@ -2038,8 +2038,8 @@ class.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":50, - "endline":50, + "line":62, + "endline":62, "start":5, "end":38 }, @@ -2048,8 +2048,8 @@ class.js = { "type":"(o: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]}, "path":"[LIB] core.js", - "line":51, - "endline":51, + "line":63, + "endline":63, "start":5, "end":34 }, @@ -2068,8 +2068,8 @@ class.js = { "type":"(prop: any) => boolean", "func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]}, "path":"[LIB] core.js", - "line":52, - "endline":52, + "line":64, + "endline":64, "start":5, "end":44 }, @@ -2078,8 +2078,8 @@ class.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":53, - "endline":53, + "line":65, + "endline":65, "start":5, "end":28 }, @@ -2088,8 +2088,8 @@ class.js = { "type":"() => string", "func_details":{"return_type":"string","params":[]}, "path":"[LIB] core.js", - "line":54, - "endline":54, + "line":66, + "endline":66, "start":5, "end":22 }, @@ -2098,8 +2098,8 @@ class.js = { "type":"() => Object", "func_details":{"return_type":"Object","params":[]}, "path":"[LIB] core.js", - "line":55, - "endline":55, + "line":67, + "endline":67, "start":5, "end":21 } diff --git a/tests/compose/compose.exp b/tests/compose/compose.exp index a741ba443e0..e012e13a144 100644 --- a/tests/compose/compose.exp +++ b/tests/compose/compose.exp @@ -7,8 +7,8 @@ Cannot cast `compose(...)(...)` to empty because string [1] is incompatible with ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:144:31 - 144| toString(radix?: number): string; + /core.js:157:31 + 157| toString(radix?: number): string; ^^^^^^ [1] basic.js:6:34 6| (compose(n => n.toString())(42): empty); // Error: string ~> empty @@ -24,8 +24,8 @@ Cannot cast `composeReverse(...)(...)` to empty because string [1] is incompatib ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:144:31 - 144| toString(radix?: number): string; + /core.js:157:31 + 157| toString(radix?: number): string; ^^^^^^ [1] basic.js:8:41 8| (composeReverse(n => n.toString())(42): empty); // Error: string ~> empty @@ -62,8 +62,8 @@ Cannot perform arithmetic operation because string [1] is not a number. ^ References: - /core.js:144:31 - 144| toString(radix?: number): string; + /core.js:157:31 + 157| toString(radix?: number): string; ^^^^^^ [1] @@ -80,8 +80,8 @@ Cannot cast `composeReverse(...)(...)` to empty because string [1] is incompatib ----^ References: - /core.js:144:31 - 144| toString(radix?: number): string; + /core.js:157:31 + 157| toString(radix?: number): string; ^^^^^^ [1] basic.js:18:8 18| )(42): empty); // Error: string ~> empty @@ -100,8 +100,8 @@ References: recompose.js:20:8 20| p: `${props.p * 3}`, ^^^^^^^^^^^^^^^^ [1] - /core.js:184:14 - 184| round(x: number): number; + /core.js:197:14 + 197| round(x: number): number; ^^^^^^ [2] diff --git a/tests/computed_props/computed_props.exp b/tests/computed_props/computed_props.exp index 1ecd368a022..52081d5b849 100644 --- a/tests/computed_props/computed_props.exp +++ b/tests/computed_props/computed_props.exp @@ -114,8 +114,8 @@ Cannot assign `arr[0]()` to `y` because number [1] is incompatible with string [ ^^^^^^^^ References: - /core.js:275:13 - 275| length: number; + /core.js:288:13 + 288| length: number; ^^^^^^ [1] test7.js:5:8 5| var y: string = arr[0](); // error: number ~> string diff --git a/tests/core_tests/core_tests.exp b/tests/core_tests/core_tests.exp index 3a48844e0dd..3b455fa876a 100644 --- a/tests/core_tests/core_tests.exp +++ b/tests/core_tests/core_tests.exp @@ -14,11 +14,11 @@ References: map.js:23:22 23| let x = new Map(['foo', 123]); // error ^^^^^ [1] - /core.js:542:37 - 542| constructor(iterable: ?Iterable<[K, V]>): void; + /core.js:555:37 + 555| constructor(iterable: ?Iterable<[K, V]>): void; ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] map.js:23:29 23| let x = new Map(['foo', 123]); // error @@ -42,8 +42,8 @@ References: map.js:24:16 24| let y: Map = new Map([['foo', 123]]); // error ^^^^^^ [2] - /core.js:540:19 - 540| declare class Map { + /core.js:553:19 + 553| declare class Map { ^ [3] map.js:24:51 24| let y: Map = new Map([['foo', 123]]); // error @@ -51,8 +51,8 @@ References: map.js:24:24 24| let y: Map = new Map([['foo', 123]]); // error ^^^^^^ [5] - /core.js:540:22 - 540| declare class Map { + /core.js:553:22 + 553| declare class Map { ^ [6] @@ -67,8 +67,8 @@ Cannot cast `x.get(...)` to boolean because: ^^^^^^^^^^^^ References: - /core.js:547:22 - 547| get(key: K): V | void; + /core.js:560:22 + 560| get(key: K): V | void; ^^^^ [1] map.js:29:20 29| (x.get('foo'): boolean); // error, string | void @@ -102,8 +102,8 @@ since `z` is not a member of the set. ^^^ [1] References: - /core.js:330:21 - 330| type RegExp$flags = $CharSet<"gimsuy"> + /core.js:343:21 + 343| type RegExp$flags = $CharSet<"gimsuy"> ^^^^^^^^^^^^^^^^^^ [2] @@ -117,8 +117,8 @@ since `z` is not a member of the set. ^^^ [1] References: - /core.js:330:21 - 330| type RegExp$flags = $CharSet<"gimsuy"> + /core.js:343:21 + 343| type RegExp$flags = $CharSet<"gimsuy"> ^^^^^^^^^^^^^^^^^^ [2] @@ -140,11 +140,11 @@ References: weakset.js:19:24 19| let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ [1] - /core.js:580:26 - 580| declare class WeakSet { + /core.js:593:26 + 593| declare class WeakSet { ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] weakset.js:19:27 19| let ws3 = new WeakSet([1, 2, 3]); // error, must be objects @@ -167,11 +167,11 @@ References: weakset.js:29:31 29| function* numbers(): Iterable { ^^^^^^ [1] - /core.js:580:26 - 580| declare class WeakSet { + /core.js:593:26 + 593| declare class WeakSet { ^^^^^^ [2] - /core.js:502:22 - 502| interface $Iterable<+Yield,+Return,-Next> { + /core.js:515:22 + 515| interface $Iterable<+Yield,+Return,-Next> { ^^^^^ [3] diff --git a/tests/date/date.exp b/tests/date/date.exp index a2bc4999264..9518ac0f914 100644 --- a/tests/date/date.exp +++ b/tests/date/date.exp @@ -7,8 +7,8 @@ Cannot assign `d.getTime()` to `x` because number [1] is incompatible with strin ^^^^^^^^^^^ References: - /core.js:378:16 - 378| getTime(): number; + /core.js:391:16 + 391| getTime(): number; ^^^^^^ [1] date.js:2:7 2| var x:string = d.getTime(); @@ -30,14 +30,14 @@ References: date.js:18:10 18| new Date({}); ^^ [1] - /core.js:367:28 - 367| constructor(timestamp: number): void; + /core.js:380:28 + 380| constructor(timestamp: number): void; ^^^^^^ [2] - /core.js:368:29 - 368| constructor(dateString: string): void; + /core.js:381:29 + 381| constructor(dateString: string): void; ^^^^^^ [3] - /core.js:369:23 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:23 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [4] @@ -53,8 +53,8 @@ References: date.js:19:16 19| new Date(2015, '6'); ^^^ [1] - /core.js:369:38 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:38 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -70,8 +70,8 @@ References: date.js:20:19 20| new Date(2015, 6, '18'); ^^^^ [1] - /core.js:369:52 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:52 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -87,8 +87,8 @@ References: date.js:21:23 21| new Date(2015, 6, 18, '11'); ^^^^ [1] - /core.js:369:67 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:67 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -104,8 +104,8 @@ References: date.js:22:27 22| new Date(2015, 6, 18, 11, '55'); ^^^^ [1] - /core.js:369:84 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:84 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -121,8 +121,8 @@ References: date.js:23:31 23| new Date(2015, 6, 18, 11, 55, '42'); ^^^^ [1] - /core.js:369:101 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:101 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -138,8 +138,8 @@ References: date.js:24:35 24| new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^^ [1] - /core.js:369:123 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:123 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] @@ -156,17 +156,17 @@ Cannot call `Date` because: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:366:5 - 366| constructor(): void; + /core.js:379:5 + 379| constructor(): void; ^^^^^^^^^^^^^^^^^^^ [1] - /core.js:367:5 - 367| constructor(timestamp: number): void; + /core.js:380:5 + 380| constructor(timestamp: number): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /core.js:368:5 - 368| constructor(dateString: string): void; + /core.js:381:5 + 381| constructor(dateString: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /core.js:369:5 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:5 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -182,8 +182,8 @@ References: date.js:26:10 26| new Date('2015', 6); ^^^^^^ [1] - /core.js:369:23 - 369| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + /core.js:382:23 + 382| constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; ^^^^^^ [2] diff --git a/tests/dictionary/dictionary.exp b/tests/dictionary/dictionary.exp index 5b942e87465..f9fd2f051e3 100644 --- a/tests/dictionary/dictionary.exp +++ b/tests/dictionary/dictionary.exp @@ -69,8 +69,8 @@ Cannot cast `o.toString()` to boolean because string [1] is incompatible with bo ^^^^^^^^^^^^ References: - /core.js:54:17 - 54| toString(): string; + /core.js:66:17 + 66| toString(): string; ^^^^^^ [1] dictionary.js:94:18 94| (o.toString(): boolean); // error: string ~> boolean diff --git a/tests/fetch/fetch.exp b/tests/fetch/fetch.exp index b50c82ff78a..86a80cca382 100644 --- a/tests/fetch/fetch.exp +++ b/tests/fetch/fetch.exp @@ -13,8 +13,8 @@ References: fetch.js:12:18 12| const b: Promise = fetch(myRequest); // incorrect ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -33,8 +33,8 @@ References: /bom.js:1002:76 1002| declare function fetch(input: RequestInfo, init?: RequestOptions): Promise; ^^^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -502,11 +502,11 @@ References: /bom.js:924:62 924| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView; ^^^^^^^^^^^ [5] - /core.js:628:25 - 628| type $ArrayBufferView = $TypedArray | DataView; + /core.js:641:25 + 641| type $ArrayBufferView = $TypedArray | DataView; ^^^^^^^^^^^ [6] - /core.js:628:39 - 628| type $ArrayBufferView = $TypedArray | DataView; + /core.js:641:39 + 641| type $ArrayBufferView = $TypedArray | DataView; ^^^^^^^^ [7] diff --git a/tests/forof/forof.exp b/tests/forof/forof.exp index bbb722937d1..541f629b22c 100644 --- a/tests/forof/forof.exp +++ b/tests/forof/forof.exp @@ -41,8 +41,8 @@ Cannot cast `x` to number because string [1] is incompatible with number [2]. ^ References: - /core.js:288:28 - 288| @@iterator(): Iterator; + /core.js:301:28 + 301| @@iterator(): Iterator; ^^^^^^ [1] forof.js:25:9 25| (x: number); // Error - string ~> number @@ -58,8 +58,8 @@ Cannot cast `elem` to number because tuple type [1] is incompatible with number ^^^^ References: - /core.js:541:28 - 541| @@iterator(): Iterator<[K, V]>; + /core.js:554:28 + 554| @@iterator(): Iterator<[K, V]>; ^^^^^^ [1] forof.js:32:12 32| (elem: number); // Error - tuple ~> number @@ -75,8 +75,8 @@ Cannot cast `elem` to number because tuple type [1] is incompatible with number ^^^^ References: - /core.js:541:28 - 541| @@iterator(): Iterator<[K, V]>; + /core.js:554:28 + 554| @@iterator(): Iterator<[K, V]>; ^^^^^^ [1] forof.js:39:12 39| (elem: number); // Error - tuple ~> number diff --git a/tests/function/function.exp b/tests/function/function.exp index 9f3958f9d49..cbf14e88b10 100644 --- a/tests/function/function.exp +++ b/tests/function/function.exp @@ -100,8 +100,8 @@ Cannot call `test.apply` because string [1] is incompatible with number [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:288:28 - 288| @@iterator(): Iterator; + /core.js:301:28 + 301| @@iterator(): Iterator; ^^^^^^ [1] apply.js:1:29 1| function test(a: string, b: number): number { @@ -492,16 +492,16 @@ Error -------------------------------------------------------------------------- Cannot cast `x.length` to undefined because number [1] is incompatible with undefined [2]. function.js:37:6 - 37| (x.length: void); // error, it's a number - ^^^^^^^^ + 37| (x.length: void); // error, it's a number + ^^^^^^^^ References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [1] + /core.js:112:13 + 112| length: number; + ^^^^^^ [1] function.js:37:16 - 37| (x.length: void); // error, it's a number - ^^^^ [2] + 37| (x.length: void); // error, it's a number + ^^^^ [2] Error ------------------------------------------------------------------------------------------------- function.js:38:6 @@ -509,16 +509,16 @@ Error -------------------------------------------------------------------------- Cannot cast `y.length` to undefined because number [1] is incompatible with undefined [2]. function.js:38:6 - 38| (y.length: void); // error, it's a number - ^^^^^^^^ + 38| (y.length: void); // error, it's a number + ^^^^^^^^ References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [1] + /core.js:112:13 + 112| length: number; + ^^^^^^ [1] function.js:38:16 - 38| (y.length: void); // error, it's a number - ^^^^ [2] + 38| (y.length: void); // error, it's a number + ^^^^ [2] Error ------------------------------------------------------------------------------------------------- function.js:39:6 @@ -526,16 +526,16 @@ Error -------------------------------------------------------------------------- Cannot cast `z.length` to undefined because number [1] is incompatible with undefined [2]. function.js:39:6 - 39| (z.length: void); // error, it's a number - ^^^^^^^^ + 39| (z.length: void); // error, it's a number + ^^^^^^^^ References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [1] + /core.js:112:13 + 112| length: number; + ^^^^^^ [1] function.js:39:16 - 39| (z.length: void); // error, it's a number - ^^^^ [2] + 39| (z.length: void); // error, it's a number + ^^^^ [2] Error ------------------------------------------------------------------------------------------------- function.js:41:6 @@ -547,8 +547,8 @@ Cannot cast `x.name` to undefined because string [1] is incompatible with undefi ^^^^^^ References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [1] function.js:41:14 41| (x.name: void); // error, it's a string @@ -564,8 +564,8 @@ Cannot cast `y.name` to undefined because string [1] is incompatible with undefi ^^^^^^ References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [1] function.js:42:14 42| (y.name: void); // error, it's a string @@ -581,8 +581,8 @@ Cannot cast `z.name` to undefined because string [1] is incompatible with undefi ^^^^^^ References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [1] function.js:43:14 43| (z.name: void); // error, it's a string @@ -594,13 +594,13 @@ Error -------------------------------------------------------------------------- Cannot assign `'foo'` to `x.length` because string [1] is incompatible with number [2]. function.js:48:16 - 48| x.length = 'foo'; // error, it's a number - ^^^^^ [1] + 48| x.length = 'foo'; // error, it's a number + ^^^^^ [1] References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [2] + /core.js:112:13 + 112| length: number; + ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ function.js:49:16 @@ -608,13 +608,13 @@ Error -------------------------------------------------------------------------- Cannot assign `'foo'` to `y.length` because string [1] is incompatible with number [2]. function.js:49:16 - 49| y.length = 'foo'; // error, it's a number - ^^^^^ [1] + 49| y.length = 'foo'; // error, it's a number + ^^^^^ [1] References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [2] + /core.js:112:13 + 112| length: number; + ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ function.js:50:16 @@ -622,13 +622,13 @@ Error -------------------------------------------------------------------------- Cannot assign `'foo'` to `z.length` because string [1] is incompatible with number [2]. function.js:50:16 - 50| z.length = 'foo'; // error, it's a number - ^^^^^ [1] + 50| z.length = 'foo'; // error, it's a number + ^^^^^ [1] References: - /core.js:99:13 - 99| length: number; - ^^^^^^ [2] + /core.js:112:13 + 112| length: number; + ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ function.js:52:14 @@ -640,8 +640,8 @@ Cannot assign `123` to `x.name` because number [1] is incompatible with string [ ^^^ [1] References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [2] @@ -654,8 +654,8 @@ Cannot assign `123` to `y.name` because number [1] is incompatible with string [ ^^^ [1] References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [2] @@ -668,8 +668,8 @@ Cannot assign `123` to `z.name` because number [1] is incompatible with string [ ^^^ [1] References: - /core.js:100:11 - 100| name: string; + /core.js:113:11 + 113| name: string; ^^^^^^ [2] diff --git a/tests/generators/generators.exp b/tests/generators/generators.exp index e1275019c3f..c581bbb0fc5 100644 --- a/tests/generators/generators.exp +++ b/tests/generators/generators.exp @@ -41,8 +41,8 @@ References: class.js:23:39 23| *stmt_return_err(): Generator { ^^^^^^ [2] - /core.js:507:29 - 507| interface Generator<+Yield,+Return,-Next> { + /core.js:520:29 + 520| interface Generator<+Yield,+Return,-Next> { ^^^^^^ [3] @@ -107,14 +107,14 @@ of property `@@iterator`. ^^ References: - /core.js:500:38 - 500| type Iterator<+T> = $Iterator; + /core.js:513:38 + 513| type Iterator<+T> = $Iterator; ^^^^ [1] class.js:125:42 125| examples.delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ [2] - /core.js:496:37 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:37 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^ [3] @@ -280,8 +280,8 @@ References: generators.js:22:46 22| function *stmt_return_err(): Generator { ^^^^^^ [2] - /core.js:507:29 - 507| interface Generator<+Yield,+Return,-Next> { + /core.js:520:29 + 520| interface Generator<+Yield,+Return,-Next> { ^^^^^^ [3] @@ -397,14 +397,14 @@ of property `@@iterator`. ^^ References: - /core.js:500:38 - 500| type Iterator<+T> = $Iterator; + /core.js:513:38 + 513| type Iterator<+T> = $Iterator; ^^^^ [1] generators.js:94:33 94| delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ [2] - /core.js:496:37 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:37 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^ [3] @@ -514,8 +514,8 @@ Cannot cast `refuse_return_result.value` to string because: ^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:493:28 - 493| | { done: true, +value?: Return } + /core.js:506:28 + 506| | { done: true, +value?: Return } ^^^^^^ [1] return.js:20:32 20| (refuse_return_result.value: string); // error: number | void ~> string diff --git a/tests/iterable/iterable.exp b/tests/iterable/iterable.exp index dfab584b942..a9a558c58be 100644 --- a/tests/iterable/iterable.exp +++ b/tests/iterable/iterable.exp @@ -14,8 +14,8 @@ References: array.js:7:19 7| (["hi"]: Iterable); // Error string ~> number ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] @@ -35,8 +35,8 @@ References: array.js:8:22 8| (["hi", 1]: Iterable); // Error number ~> string ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] @@ -56,8 +56,8 @@ References: caching_bug.js:21:62 21| function miss_the_cache(x: Array): Iterable { return x; } ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] @@ -73,8 +73,8 @@ References: iterator_result.js:17:40 17| function makeIterator(coin_flip: () => boolean ): Iterator { ^^^^^^^ [1] - /core.js:494:13 - 494| | { done: false, +value: Yield }; + /core.js:507:13 + 507| | { done: false, +value: Yield }; ^^^^^ [2] @@ -90,8 +90,8 @@ References: iterator_result.js:17:40 17| function makeIterator(coin_flip: () => boolean ): Iterator { ^^^^^^^ [1] - /core.js:493:13 - 493| | { done: true, +value?: Return } + /core.js:506:13 + 506| | { done: true, +value?: Return } ^^^^ [2] @@ -105,14 +105,14 @@ value of property `@@iterator`. ^^^ References: - /core.js:541:28 - 541| @@iterator(): Iterator<[K, V]>; + /core.js:554:28 + 554| @@iterator(): Iterator<[K, V]>; ^^^^^^ [1] map.js:13:55 13| function mapTest4(map: Map): Iterable { ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] @@ -132,8 +132,8 @@ References: set.js:13:47 13| function setTest4(set: Set): Iterable { ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] @@ -147,14 +147,14 @@ return value of property `@@iterator`. ^^^^ References: - /core.js:288:28 - 288| @@iterator(): Iterator; + /core.js:301:28 + 301| @@iterator(): Iterator; ^^^^^^ [1] string.js:5:17 5| ("hi": Iterable); // Error - string is a Iterable ^^^^^^ [2] - /core.js:496:22 - 496| interface $Iterator<+Yield,+Return,-Next> { + /core.js:509:22 + 509| interface $Iterator<+Yield,+Return,-Next> { ^^^^^ [3] diff --git a/tests/lib/lib.exp b/tests/lib/lib.exp index 90e3c2b73fe..ee087cfe9c2 100644 --- a/tests/lib/lib.exp +++ b/tests/lib/lib.exp @@ -24,8 +24,8 @@ Cannot assign `Number.MAX_VALUE` to `y` because number [1] is incompatible with ^^^^^^^^^^^^^^^^ References: - /core.js:126:23 - 126| static MAX_VALUE: number; + /core.js:139:23 + 139| static MAX_VALUE: number; ^^^^^^ [1] libtest.js:2:7 2| var y:string = Number.MAX_VALUE; @@ -41,8 +41,8 @@ Cannot assign `new TypeError().name` to `z` because string [1] is incompatible w ^^^^^^^^^^^^^^^^^^^^ References: - /core.js:442:11 - 442| name: string; + /core.js:455:11 + 455| name: string; ^^^^^^ [1] libtest.js:3:7 3| var z:number = new TypeError().name; diff --git a/tests/misc/misc.exp b/tests/misc/misc.exp index 10c7622eb56..f2a43b69067 100644 --- a/tests/misc/misc.exp +++ b/tests/misc/misc.exp @@ -134,8 +134,8 @@ Cannot return `x.length` because number [1] is incompatible with string [2]. ^^^^^^^^ References: - /core.js:275:13 - 275| length: number; + /core.js:288:13 + 288| length: number; ^^^^^^ [1] F.js:4:33 4| function foo(x: Array): string { @@ -179,8 +179,8 @@ Cannot assign `"duck"` to `b.length` because string [1] is incompatible with num ^^^^^^ [1] References: - /core.js:275:13 - 275| length: number; + /core.js:288:13 + 288| length: number; ^^^^^^ [2] diff --git a/tests/number_constants/number_constants.exp b/tests/number_constants/number_constants.exp index 908dca87d72..785f9f27317 100644 --- a/tests/number_constants/number_constants.exp +++ b/tests/number_constants/number_constants.exp @@ -7,8 +7,8 @@ Cannot assign `Number.MAX_SAFE_INTEGER` to `b` because number [1] is incompatibl ^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:125:30 - 125| static MAX_SAFE_INTEGER: number; + /core.js:138:30 + 138| static MAX_SAFE_INTEGER: number; ^^^^^^ [1] number_constants.js:2:8 2| var b: string = Number.MAX_SAFE_INTEGER; @@ -24,8 +24,8 @@ Cannot assign `Number.MIN_SAFE_INTEGER` to `d` because number [1] is incompatibl ^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:127:30 - 127| static MIN_SAFE_INTEGER: number; + /core.js:140:30 + 140| static MIN_SAFE_INTEGER: number; ^^^^^^ [1] number_constants.js:4:8 4| var d: string = Number.MIN_SAFE_INTEGER; @@ -41,8 +41,8 @@ Cannot assign `Number.MAX_VALUE` to `f` because number [1] is incompatible with ^^^^^^^^^^^^^^^^ References: - /core.js:126:23 - 126| static MAX_VALUE: number; + /core.js:139:23 + 139| static MAX_VALUE: number; ^^^^^^ [1] number_constants.js:6:8 6| var f: string = Number.MAX_VALUE; @@ -58,8 +58,8 @@ Cannot assign `Number.MIN_VALUE` to `h` because number [1] is incompatible with ^^^^^^^^^^^^^^^^ References: - /core.js:128:23 - 128| static MIN_VALUE: number; + /core.js:141:23 + 141| static MIN_VALUE: number; ^^^^^^ [1] number_constants.js:8:8 8| var h: string = Number.MIN_VALUE; @@ -75,8 +75,8 @@ Cannot assign `Number.NaN` to `j` because number [1] is incompatible with string ^^^^^^^^^^ References: - /core.js:129:17 - 129| static NaN: number; + /core.js:142:17 + 142| static NaN: number; ^^^^^^ [1] number_constants.js:10:8 10| var j: string = Number.NaN; @@ -92,8 +92,8 @@ Cannot assign `Number.EPSILON` to `l` because number [1] is incompatible with st ^^^^^^^^^^^^^^ References: - /core.js:124:21 - 124| static EPSILON: number; + /core.js:137:21 + 137| static EPSILON: number; ^^^^^^ [1] number_constants.js:12:8 12| var l: string = Number.EPSILON; diff --git a/tests/object_api/object_api.exp b/tests/object_api/object_api.exp index 875ef1e164c..10159cef629 100644 --- a/tests/object_api/object_api.exp +++ b/tests/object_api/object_api.exp @@ -198,8 +198,8 @@ Cannot call method `doesNotExist` because property `doesNotExist` is missing in ^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:25:15 - 25| declare class Object { + /core.js:38:15 + 38| declare class Object { ^^^^^^ [1] @@ -220,8 +220,8 @@ Cannot assign `x.toString` to `xToString` because function type [1] is incompati ^^^^^^^^^^ References: - /core.js:54:5 - 54| toString(): string; + /core.js:66:5 + 66| toString(): string; ^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:38:17 38| var xToString : number = x.toString; // error @@ -237,8 +237,8 @@ Cannot assign `x.toString` to `xToString2` because string [1] is incompatible wi ^^^^^^^^^^ References: - /core.js:54:17 - 54| toString(): string; + /core.js:66:17 + 66| toString(): string; ^^^^^^ [1] object_prototype.js:39:24 39| var xToString2 : () => number = x.toString; // error @@ -254,8 +254,8 @@ Cannot assign `y.toString` to `yToString` because function type [1] is incompati ^^^^^^^^^^ References: - /core.js:54:5 - 54| toString(): string; + /core.js:66:5 + 66| toString(): string; ^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:43:17 43| var yToString : number = y.toString; // error @@ -285,8 +285,8 @@ Cannot call `123.toString` with `'foo'` bound to `radix` because string [1] is i ^^^^^ [1] References: - /core.js:144:22 - 144| toString(radix?: number): string; + /core.js:157:22 + 157| toString(radix?: number): string; ^^^^^^ [2] @@ -299,8 +299,8 @@ Cannot call `123.toString` with `null` bound to `radix` because null [1] is inco ^^^^ [1] References: - /core.js:144:22 - 144| toString(radix?: number): string; + /core.js:157:22 + 157| toString(radix?: number): string; ^^^^^^ [2] @@ -321,8 +321,8 @@ Cannot assign `x.hasOwnProperty` to `xHasOwnProperty` because function type [1] ^^^^^^^^^^^^^^^^ References: - /core.js:50:5 - 50| hasOwnProperty(prop: any): boolean; + /core.js:62:5 + 62| hasOwnProperty(prop: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:71:23 71| var xHasOwnProperty : number = x.hasOwnProperty; // error @@ -339,8 +339,8 @@ value. ^^^^^^^^^^^^^^^^ References: - /core.js:50:32 - 50| hasOwnProperty(prop: any): boolean; + /core.js:62:32 + 62| hasOwnProperty(prop: any): boolean; ^^^^^^^ [1] object_prototype.js:72:42 72| var xHasOwnProperty2 : (prop: string) => number = x.hasOwnProperty; // error @@ -356,8 +356,8 @@ Cannot assign `y.hasOwnProperty` to `yHasOwnProperty` because function type [1] ^^^^^^^^^^^^^^^^ References: - /core.js:50:5 - 50| hasOwnProperty(prop: any): boolean; + /core.js:62:5 + 62| hasOwnProperty(prop: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:76:23 76| var yHasOwnProperty : number = y.hasOwnProperty; // error @@ -382,8 +382,8 @@ number [2]. ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:52:5 - 52| propertyIsEnumerable(prop: any): boolean; + /core.js:64:5 + 64| propertyIsEnumerable(prop: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:96:29 96| var xPropertyIsEnumerable : number = x.propertyIsEnumerable; // error @@ -400,8 +400,8 @@ in the return value. ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:52:38 - 52| propertyIsEnumerable(prop: any): boolean; + /core.js:64:38 + 64| propertyIsEnumerable(prop: any): boolean; ^^^^^^^ [1] object_prototype.js:97:48 97| var xPropertyIsEnumerable2 : (prop: string) => number = @@ -418,8 +418,8 @@ number [2]. ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:52:5 - 52| propertyIsEnumerable(prop: any): boolean; + /core.js:64:5 + 64| propertyIsEnumerable(prop: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:102:29 102| var yPropertyIsEnumerable : number = y.propertyIsEnumerable; // error @@ -443,8 +443,8 @@ Cannot assign `x.valueOf` to `xValueOf` because function type [1] is incompatibl ^^^^^^^^^ References: - /core.js:411:5 - 411| valueOf(): number; + /core.js:424:5 + 424| valueOf(): number; ^^^^^^^^^^^^^^^^^ [1] object_prototype.js:122:16 122| var xValueOf : number = x.valueOf; // error @@ -460,8 +460,8 @@ Cannot assign `y.valueOf` to `yValueOf` because function type [1] is incompatibl ^^^^^^^^^ References: - /core.js:55:5 - 55| valueOf(): Object; + /core.js:67:5 + 67| valueOf(): Object; ^^^^^^^^^^^^^^^^^ [1] object_prototype.js:126:16 126| var yValueOf : number = y.valueOf; // error @@ -485,8 +485,8 @@ Cannot assign `x.toLocaleString` to `xToLocaleString` because function type [1] ^^^^^^^^^^^^^^^^ References: - /core.js:407:5 - 407| toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; + /core.js:420:5 + 420| toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:150:23 150| var xToLocaleString : number = x.toLocaleString; // error @@ -503,8 +503,8 @@ value. ^^^^^^^^^^^^^^^^ References: - /core.js:407:85 - 407| toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; + /core.js:420:85 + 420| toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; ^^^^^^ [1] object_prototype.js:151:30 151| var xToLocaleString2 : () => number = x.toLocaleString; // error @@ -520,8 +520,8 @@ Cannot assign `y.toLocaleString` to `yToLocaleString` because function type [1] ^^^^^^^^^^^^^^^^ References: - /core.js:53:5 - 53| toLocaleString(): string; + /core.js:65:5 + 65| toLocaleString(): string; ^^^^^^^^^^^^^^^^^^^^^^^^ [1] object_prototype.js:155:23 155| var yToLocaleString : number = y.toLocaleString; // error @@ -537,8 +537,8 @@ Cannot cast `o1_proto.toString` to empty because function type [1] is incompatib ^^^^^^^^^^^^^^^^^ References: - /core.js:54:5 - 54| toString(): string; + /core.js:66:5 + 66| toString(): string; ^^^^^^^^^^^^^^^^^^ [1] proto.js:3:21 3| (o1_proto.toString: empty); // error: function ~> empty diff --git a/tests/object_is/object_is.exp b/tests/object_is/object_is.exp index 920352741ff..9437c7d0ff4 100644 --- a/tests/object_is/object_is.exp +++ b/tests/object_is/object_is.exp @@ -7,8 +7,8 @@ Cannot assign `Object.is(...)` to `b` because boolean [1] is incompatible with s ^^^^^^^^^^^^^^^^^^^ References: - /core.js:41:32 - 41| static is(a: any, b: any): boolean; + /core.js:54:32 + 54| static is(a: any, b: any): boolean; ^^^^^^^ [1] object_is.js:20:8 20| var b: string = Object.is('a', 'a'); @@ -24,8 +24,8 @@ Cannot call method `is` because no more than 2 arguments are expected by functio ^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:41:5 - 41| static is(a: any, b: any): boolean; + /core.js:54:5 + 54| static is(a: any, b: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] diff --git a/tests/objects/objects.exp b/tests/objects/objects.exp index 83ac9f93f6a..014a6246221 100644 --- a/tests/objects/objects.exp +++ b/tests/objects/objects.exp @@ -128,8 +128,8 @@ Cannot cast `Object(...)` to `Number` because object type [1] is incompatible wi ^^^^^^^^^^^^^^^^^ References: - /core.js:26:24 - 26| static (o: ?void): {[key: any]: any}; + /core.js:39:24 + 39| static (o: ?void): {[key: any]: any}; ^^^^^^^^^^^^^^^^^ [1] conversion.js:10:21 10| (Object(undefined): Number); // error @@ -145,8 +145,8 @@ Cannot call `z.charAt` because property `charAt` is missing in `Number` [1]. ^^^^^^^^^^^ References: - /core.js:28:25 - 28| static (o: number): Number; + /core.js:41:25 + 41| static (o: number): Number; ^^^^^^ [1] @@ -277,8 +277,8 @@ Cannot cast `y['hasOwnProperty']` to string because function type [1] is incompa ^^^^^^^^^^^^^^^^^^^ References: - /core.js:50:5 - 50| hasOwnProperty(prop: any): boolean; + /core.js:62:5 + 62| hasOwnProperty(prop: any): boolean; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] objects.js:18:23 18| (y['hasOwnProperty']: string); // error, prototype method is not a string diff --git a/tests/overload/overload.exp b/tests/overload/overload.exp index d0a94ce4fc7..699b7dcf0b8 100644 --- a/tests/overload/overload.exp +++ b/tests/overload/overload.exp @@ -29,8 +29,8 @@ Cannot assign `"".match(...)[0]` to `x1` because string [1] is incompatible with ^^^^^^^^^^^^^^ References: - /core.js:301:44 - 301| match(regexp: string | RegExp): ?Array; + /core.js:314:44 + 314| match(regexp: string | RegExp): ?Array; ^^^^^^ [1] overload.js:7:9 7| var x1: number = "".match(0)[0]; @@ -46,8 +46,8 @@ Cannot get `"".match(...)[0]` because an indexer property is missing in null or ^^^^^^^^^^^^^^ References: - /core.js:301:37 - 301| match(regexp: string | RegExp): ?Array; + /core.js:314:37 + 314| match(regexp: string | RegExp): ?Array; ^^^^^^^^^^^^^^ [1] @@ -60,8 +60,8 @@ Cannot call `"".match` with `0` bound to `regexp` because number [1] is incompat ^ [1] References: - /core.js:301:19 - 301| match(regexp: string | RegExp): ?Array; + /core.js:314:19 + 314| match(regexp: string | RegExp): ?Array; ^^^^^^ [2] @@ -74,8 +74,8 @@ Cannot assign `"".match(...)[0]` to `x2` because string [1] is incompatible with ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:301:44 - 301| match(regexp: string | RegExp): ?Array; + /core.js:314:44 + 314| match(regexp: string | RegExp): ?Array; ^^^^^^ [1] overload.js:8:9 8| var x2: number = "".match(/pattern/)[0]; @@ -91,8 +91,8 @@ Cannot get `"".match(...)[0]` because an indexer property is missing in null or ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:301:37 - 301| match(regexp: string | RegExp): ?Array; + /core.js:314:37 + 314| match(regexp: string | RegExp): ?Array; ^^^^^^^^^^^^^^ [1] @@ -105,8 +105,8 @@ Cannot assign `"".split(...)[0]` to `x4` because string [1] is incompatible with ^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:309:63 - 309| split(separator?: string | RegExp, limit?: number): Array; + /core.js:322:63 + 322| split(separator?: string | RegExp, limit?: number): Array; ^^^^^^ [1] overload.js:10:9 10| var x4: number = "".split(/pattern/)[0]; diff --git a/tests/promises/promises.exp b/tests/promises/promises.exp index bf5903e6849..55d71f01382 100644 --- a/tests/promises/promises.exp +++ b/tests/promises/promises.exp @@ -84,8 +84,8 @@ Cannot call `Promise.all` because property `@@iterator` is missing in undefined ^^^^^^^^^^^^^ [1] References: - /core.js:608:19 - 608| static all>(promises: T): Promise<$TupleMap>; + /core.js:621:19 + 621| static all>(promises: T): Promise<$TupleMap>; ^^^^^^^^^^^^^^^ [2] @@ -99,8 +99,8 @@ in `$Iterable` [2]. ^ [1] References: - /core.js:608:19 - 608| static all>(promises: T): Promise<$TupleMap>; + /core.js:621:19 + 621| static all>(promises: T): Promise<$TupleMap>; ^^^^^^^^^^^^^^^ [2] @@ -399,8 +399,8 @@ References: resolve_void.js:3:29 3| (Promise.resolve(): Promise); // error ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] @@ -420,8 +420,8 @@ References: resolve_void.js:5:38 5| (Promise.resolve(undefined): Promise); // error ^^^^^^ [2] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [3] diff --git a/tests/react_hocs/react_hocs.exp b/tests/react_hocs/react_hocs.exp index ccc87ef4266..f9368facc04 100644 --- a/tests/react_hocs/react_hocs.exp +++ b/tests/react_hocs/react_hocs.exp @@ -31,8 +31,8 @@ References: Bad.js:8:8 8| bar: number, ^^^^^^ [1] - /core.js:144:31 - 144| toString(radix?: number): string; + /core.js:157:31 + 157| toString(radix?: number): string; ^^^^^^ [2] diff --git a/tests/refinements/refinements.exp b/tests/refinements/refinements.exp index 394c9ee1423..0884ed45f8b 100644 --- a/tests/refinements/refinements.exp +++ b/tests/refinements/refinements.exp @@ -2560,8 +2560,8 @@ Cannot get `x[0]` because an indexer property is missing in `Boolean` [1]. ^^^^ References: - /core.js:103:15 - 103| declare class Boolean { + /core.js:116:15 + 116| declare class Boolean { ^^^^^^^ [1] diff --git a/tests/regexp/regexp.exp b/tests/regexp/regexp.exp index 1547e7e6fe8..d36b733a1ec 100644 --- a/tests/regexp/regexp.exp +++ b/tests/regexp/regexp.exp @@ -7,8 +7,8 @@ Cannot assign `patt.test(...)` to `match` because boolean [1] is incompatible wi ^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /core.js:345:27 - 345| test(string: string): boolean; + /core.js:358:27 + 358| test(string: string): boolean; ^^^^^^^ [1] regexp.js:2:11 2| var match:number = patt.test("Hello world!"); diff --git a/tests/return/return.exp b/tests/return/return.exp index aacc59a5dcd..42b72a6ca9b 100644 --- a/tests/return/return.exp +++ b/tests/return/return.exp @@ -43,8 +43,8 @@ References: implicit.js:7:30 7| async function g2(): Promise {} ^^^^^^ [1] - /core.js:591:24 - 591| declare class Promise<+R> { + /core.js:604:24 + 604| declare class Promise<+R> { ^ [2] diff --git a/tests/symbol/symbol.exp b/tests/symbol/symbol.exp index d992a02f5e1..8342ee1c217 100644 --- a/tests/symbol/symbol.exp +++ b/tests/symbol/symbol.exp @@ -7,8 +7,8 @@ Cannot call `Symbol` because no more than 1 argument is expected by function typ ^^^^^^^^^^^^^^^^^^^^ References: - /core.js:73:3 - 73| static (value?:any): Symbol; + /core.js:85:3 + 85| static (value?:any): Symbol; ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] diff --git a/tests/union/union.exp b/tests/union/union.exp index 6ee5f9eb371..2fbb4c6e324 100644 --- a/tests/union/union.exp +++ b/tests/union/union.exp @@ -7,8 +7,8 @@ Cannot call `str.toFixed` because property `toFixed` is missing in `String` [1]. ^^^^^^^^^^^^^ References: - /core.js:141:39 - 141| toFixed(fractionDigits?: number): string; + /core.js:154:39 + 154| toFixed(fractionDigits?: number): string; ^^^^^^ [1]