From bdfa1ce0f7a8fe863f4f328e48ce212605e0250b Mon Sep 17 00:00:00 2001 From: Alexander Savin Date: Tue, 10 Oct 2017 15:33:35 +0300 Subject: [PATCH] Update core.js types: add PropertyDescriptor, update Object, Function, Proxy and setTimeout/setInterval --- lib/core.js | 36 +- newtests/array_literal_tuple_spread/test.js | 4 +- newtests/autocomplete/test.js | 488 ++++++++++---------- tests/arrows/arrows.exp | 8 +- tests/autocomplete/autocomplete.exp | 28 +- tests/compose/compose.exp | 4 +- tests/core_tests/core_tests.exp | 32 +- tests/date/date.exp | 288 ++++++------ tests/dump-types/dump-types.exp | 8 +- tests/fetch/fetch.exp | 32 +- tests/function/function.exp | 4 +- tests/generators/generators.exp | 8 +- tests/iterable/iterable.exp | 24 +- tests/object_api/object_api.exp | 24 +- tests/object_is/object_is.exp | 4 +- tests/overload/overload.exp | 20 +- tests/promises/promises.exp | 16 +- tests/symbol/symbol.exp | 4 +- 18 files changed, 523 insertions(+), 509 deletions(-) diff --git a/lib/core.js b/lib/core.js index e092eb678b9..9325c01e5db 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,8 +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 preventExtensions(o: T): T; + static seal(o: T): T; static setPrototypeOf(o: any, proto: ?Object): bool; static values(object: any): Array; hasOwnProperty(prop: any): boolean; @@ -94,6 +107,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; @@ -729,8 +743,8 @@ declare function unescape(str: string): string; declare function clearInterval(intervalId?: number): void; declare function clearTimeout(timeoutId?: any): void; -declare function setTimeout(callback: any, ms?: number, ...args: Array): number; -declare function setInterval(callback: any, ms?: number, ...args: Array): number; +declare function setTimeout(callback: Function, ms?: number, ...args: Array): number; +declare function setInterval(callback: Function, ms?: number, ...args: Array): number; /* Reflect API */ @@ -757,8 +771,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 7e605498ac6..1ee5dd5463e 100644 --- a/newtests/array_literal_tuple_spread/test.js +++ b/newtests/array_literal_tuple_spread/test.js @@ -264,8 +264,8 @@ export default suite(({addFile, addFiles, addCode}) => [ 3: const arr: Array = [..."hello"]; ^^^^^^^^^^^^^ array type Type argument \`T\` is incompatible: - 288: @@iterator(): Iterator; - ^^^^^^ string. This type is incompatible with. See lib: [LIB] core.js:288 + 302: @@iterator(): Iterator; + ^^^^^^ string. This type is incompatible with. See lib: [LIB] core.js:302 3: const arr: Array = [..."hello"]; ^^^^^^ number `, diff --git a/newtests/autocomplete/test.js b/newtests/autocomplete/test.js index deec5984b6d..656c65f0ccc 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": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -67,8 +67,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -95,8 +95,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -118,8 +118,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -131,8 +131,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -144,8 +144,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -205,8 +205,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 288, - "endline": 288, + "line": 302, + "endline": 302, "start": 5, "end": 34 }, @@ -223,8 +223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 289, - "endline": 289, + "line": 303, + "endline": 303, "start": 5, "end": 32 }, @@ -241,8 +241,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 290, - "endline": 290, + "line": 304, + "endline": 304, "start": 5, "end": 31 }, @@ -259,8 +259,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 291, - "endline": 291, + "line": 305, + "endline": 305, "start": 5, "end": 37 }, @@ -277,8 +277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 292, - "endline": 292, + "line": 306, + "endline": 306, "start": 5, "end": 38 }, @@ -295,8 +295,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 293, - "endline": 293, + "line": 307, + "endline": 307, "start": 5, "end": 45 }, @@ -317,8 +317,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 295, - "endline": 295, + "line": 309, + "endline": 309, "start": 5, "end": 62 }, @@ -339,8 +339,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 296, - "endline": 296, + "line": 310, + "endline": 310, "start": 5, "end": 62 }, @@ -361,8 +361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 297, - "endline": 297, + "line": 311, + "endline": 311, "start": 5, "end": 60 }, @@ -383,8 +383,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 298, - "endline": 298, + "line": 312, + "endline": 312, "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": 336, + "endline": 336, "start": 13, "end": 18 }, @@ -411,8 +411,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 299, - "endline": 299, + "line": 313, + "endline": 313, "start": 5, "end": 30 }, @@ -437,8 +437,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 300, - "endline": 300, + "line": 314, + "endline": 314, "start": 5, "end": 91 }, @@ -455,8 +455,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 301, - "endline": 301, + "line": 315, + "endline": 315, "start": 5, "end": 50 }, @@ -473,8 +473,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 302, - "endline": 302, + "line": 316, + "endline": 316, "start": 5, "end": 38 }, @@ -495,8 +495,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 303, - "endline": 303, + "line": 317, + "endline": 317, "start": 5, "end": 60 }, @@ -517,8 +517,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 304, - "endline": 304, + "line": 318, + "endline": 318, "start": 5, "end": 62 }, @@ -535,8 +535,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 305, - "endline": 305, + "line": 319, + "endline": 319, "start": 5, "end": 33 }, @@ -557,8 +557,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 306, - "endline": 306, + "line": 320, + "endline": 320, "start": 5, "end": 124 }, @@ -575,8 +575,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 307, - "endline": 307, + "line": 321, + "endline": 321, "start": 5, "end": 43 }, @@ -597,8 +597,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 308, - "endline": 308, + "line": 322, + "endline": 322, "start": 5, "end": 47 }, @@ -619,8 +619,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 309, - "endline": 309, + "line": 323, + "endline": 323, "start": 5, "end": 69 }, @@ -641,8 +641,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 310, - "endline": 310, + "line": 324, + "endline": 324, "start": 5, "end": 64 }, @@ -663,8 +663,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 311, - "endline": 311, + "line": 325, + "endline": 325, "start": 5, "end": 49 }, @@ -685,8 +685,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 312, - "endline": 312, + "line": 326, + "endline": 326, "start": 5, "end": 50 }, @@ -698,8 +698,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 313, - "endline": 313, + "line": 327, + "endline": 327, "start": 5, "end": 31 }, @@ -711,8 +711,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 314, - "endline": 314, + "line": 328, + "endline": 328, "start": 5, "end": 31 }, @@ -724,8 +724,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 315, - "endline": 315, + "line": 329, + "endline": 329, "start": 5, "end": 25 }, @@ -737,8 +737,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 321, - "endline": 321, + "line": 335, + "endline": 335, "start": 5, "end": 22 }, @@ -750,8 +750,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 316, - "endline": 316, + "line": 330, + "endline": 330, "start": 5, "end": 25 }, @@ -763,8 +763,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 317, - "endline": 317, + "line": 331, + "endline": 331, "start": 5, "end": 18 }, @@ -776,8 +776,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 318, - "endline": 318, + "line": 332, + "endline": 332, "start": 5, "end": 22 }, @@ -789,8 +789,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 319, - "endline": 319, + "line": 333, + "endline": 333, "start": 5, "end": 23 }, @@ -802,8 +802,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 320, - "endline": 320, + "line": 334, + "endline": 334, "start": 5, "end": 21 } @@ -834,8 +834,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 140, - "endline": 140, + "line": 154, + "endline": 154, "start": 5, "end": 50 }, @@ -852,8 +852,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 141, - "endline": 141, + "line": 155, + "endline": 155, "start": 5, "end": 44 }, @@ -874,8 +874,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 142, - "endline": 142, + "line": 156, + "endline": 156, "start": 5, "end": 92 }, @@ -892,8 +892,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 143, - "endline": 143, + "line": 157, + "endline": 157, "start": 5, "end": 43 }, @@ -910,8 +910,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 144, - "endline": 144, + "line": 158, + "endline": 158, "start": 5, "end": 36 }, @@ -923,8 +923,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 145, - "endline": 145, + "line": 159, + "endline": 159, "start": 5, "end": 21 } @@ -950,8 +950,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 107, - "endline": 107, + "line": 121, + "endline": 121, "start": 5, "end": 22 }, @@ -963,8 +963,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 106, - "endline": 106, + "line": 120, + "endline": 120, "start": 5, "end": 22 } @@ -1005,8 +1005,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1023,8 +1023,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -1041,8 +1041,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -1054,8 +1054,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -1067,8 +1067,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -1080,8 +1080,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -1112,8 +1112,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1130,8 +1130,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -1148,8 +1148,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -1161,8 +1161,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -1174,8 +1174,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -1187,8 +1187,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -1223,8 +1223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 94, - "endline": 94, + "line": 107, + "endline": 107, "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": 111, + "endline": 111, "start": 16, "end": 18 }, @@ -1255,8 +1255,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 95, - "endline": 95, + "line": 108, + "endline": 108, "start": 11, "end": 33 }, @@ -1277,8 +1277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 96, - "endline": 96, + "line": 109, + "endline": 109, "start": 11, "end": 33 }, @@ -1287,8 +1287,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "null | Function", "func_details": null, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 112, + "endline": 112, "start": 13, "end": 27 }, @@ -1305,8 +1305,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1323,8 +1323,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "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": 113, + "endline": 113, "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": 114, + "endline": 114, "start": 11, "end": 16 }, @@ -1361,8 +1361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -1374,8 +1374,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -1387,8 +1387,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -1400,8 +1400,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -1436,8 +1436,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 94, - "endline": 94, + "line": 107, + "endline": 107, "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": 111, + "endline": 111, "start": 16, "end": 18 }, @@ -1468,8 +1468,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 95, - "endline": 95, + "line": 108, + "endline": 108, "start": 11, "end": 33 }, @@ -1490,8 +1490,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 96, - "endline": 96, + "line": 109, + "endline": 109, "start": 11, "end": 33 }, @@ -1500,8 +1500,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "null | Function", "func_details": null, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 112, + "endline": 112, "start": 13, "end": 27 }, @@ -1518,8 +1518,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1536,8 +1536,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "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": 113, + "endline": 113, "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": 114, + "endline": 114, "start": 11, "end": 16 }, @@ -1574,8 +1574,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -1587,8 +1587,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -1600,8 +1600,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -1613,8 +1613,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -1695,8 +1695,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 140, - "endline": 140, + "line": 154, + "endline": 154, "start": 5, "end": 50 }, @@ -1713,8 +1713,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 141, - "endline": 141, + "line": 155, + "endline": 155, "start": 5, "end": 44 }, @@ -1735,8 +1735,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 142, - "endline": 142, + "line": 156, + "endline": 156, "start": 5, "end": 92 }, @@ -1753,8 +1753,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 143, - "endline": 143, + "line": 157, + "endline": 157, "start": 5, "end": 43 }, @@ -1771,8 +1771,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 144, - "endline": 144, + "line": 158, + "endline": 158, "start": 5, "end": 36 }, @@ -1784,8 +1784,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 145, - "endline": 145, + "line": 159, + "endline": 159, "start": 5, "end": 21 } @@ -1826,8 +1826,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1844,8 +1844,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -1862,8 +1862,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -1875,8 +1875,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -1888,8 +1888,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -1901,8 +1901,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } @@ -1951,8 +1951,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -1969,8 +1969,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -1997,8 +1997,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -2010,8 +2010,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -2023,8 +2023,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -2036,8 +2036,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 }, @@ -2078,8 +2078,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -2096,8 +2096,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -2114,8 +2114,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -2127,8 +2127,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -2140,8 +2140,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -2153,8 +2153,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 }, @@ -2195,8 +2195,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -2213,8 +2213,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -2231,8 +2231,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -2244,8 +2244,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -2257,8 +2257,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -2270,8 +2270,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 }, @@ -2532,8 +2532,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 50, - "endline": 50, + "line": 63, + "endline": 63, "start": 5, "end": 38 }, @@ -2550,8 +2550,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 51, - "endline": 51, + "line": 64, + "endline": 64, "start": 5, "end": 34 }, @@ -2578,8 +2578,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 52, - "endline": 52, + "line": 65, + "endline": 65, "start": 5, "end": 44 }, @@ -2601,8 +2601,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 53, - "endline": 53, + "line": 66, + "endline": 66, "start": 5, "end": 28 }, @@ -2614,8 +2614,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 54, - "endline": 54, + "line": 67, + "endline": 67, "start": 5, "end": 22 }, @@ -2627,8 +2627,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 55, - "endline": 55, + "line": 68, + "endline": 68, "start": 5, "end": 21 } diff --git a/tests/arrows/arrows.exp b/tests/arrows/arrows.exp index 0591f98e283..866df9f4fdf 100644 --- a/tests/arrows/arrows.exp +++ b/tests/arrows/arrows.exp @@ -13,13 +13,13 @@ Error: advanced_arrows.js:11 Error: arrows.js:7 7: images = images.sort((a, b) => (a.width - b.width) + ""); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of -269: sort(compareFn?: (a: T, b: T) => number): Array; - ^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:269 +283: sort(compareFn?: (a: T, b: T) => number): Array; + ^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:283 This parameter is incompatible: 7: images = images.sort((a, b) => (a.width - b.width) + ""); ^^^^^^^^^^^^^^^^^^^^^^^^ string. This type is incompatible with - 269: sort(compareFn?: (a: T, b: T) => number): Array; - ^^^^^^ number. See lib: /core.js:269 + 283: sort(compareFn?: (a: T, b: T) => number): Array; + ^^^^^^ number. See lib: /core.js:283 Found 3 errors diff --git a/tests/autocomplete/autocomplete.exp b/tests/autocomplete/autocomplete.exp index b9a9d882da6..0ea48d7169e 100644 --- a/tests/autocomplete/autocomplete.exp +++ b/tests/autocomplete/autocomplete.exp @@ -6,23 +6,23 @@ str string toLocaleString () => string toString () => string valueOf () => Object -foo.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"num","type":"number","func_details":null,"path":"foo.js","line":6,"endline":6,"start":8,"end":10},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"str","type":"string","func_details":null,"path":"foo.js","line":7,"endline":7,"start":8,"end":14},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} +foo.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"num","type":"number","func_details":null,"path":"foo.js","line":6,"endline":6,"start":8,"end":10},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"str","type":"string","func_details":null,"path":"foo.js","line":7,"endline":7,"start":8,"end":14},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} bar.js = {"error":"not enough type information to autocomplete","result":[]} qux.js = {"result":[{"name":"x","type":"number","func_details":null,"path":"qux.js","line":3,"endline":3,"start":14,"end":19}]} -str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":322,"endline":322,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":21}]} -num.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":140,"endline":140,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":141,"endline":141,"start":5,"end":44},{"name":"toLocaleString","type":"(locales?: string | Array, options?: {currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}) => string","func_details":{"return_type":"string","params":[{"name":"locales?","type":"string | Array"},{"name":"options?","type":"{currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}"}]},"path":"[LIB] core.js","line":142,"endline":142,"start":5,"end":92},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":143,"endline":143,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":144,"endline":144,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":145,"endline":145,"start":5,"end":21}]} -bool.js = {"result":[{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":107,"endline":107,"start":5,"end":22},{"name":"valueOf","type":"() => boolean","func_details":{"return_type":"boolean","params":[]},"path":"[LIB] core.js","line":106,"endline":106,"start":5,"end":22}]} -union.js = {"result":[{"name":"bar","type":"string","func_details":null,"path":"union.js","line":3,"endline":3,"start":36,"end":41},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} -object_builtins.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} -function_builtins.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":94,"endline":94,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":97,"endline":97,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":95,"endline":95,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":96,"endline":96,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":98,"endline":98,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":99,"endline":99,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":100,"endline":100,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} -fun.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":94,"endline":94,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":97,"endline":97,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":95,"endline":95,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":96,"endline":96,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":98,"endline":98,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":99,"endline":99,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":100,"endline":100,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} +str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":336,"endline":336,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":324,"endline":324,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":325,"endline":325,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":326,"endline":326,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":327,"endline":327,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":328,"endline":328,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":329,"endline":329,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":335,"endline":335,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":330,"endline":330,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":331,"endline":331,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":332,"endline":332,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":333,"endline":333,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":334,"endline":334,"start":5,"end":21}]} +num.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":154,"endline":154,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":155,"endline":155,"start":5,"end":44},{"name":"toLocaleString","type":"(locales?: string | Array, options?: {currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}) => string","func_details":{"return_type":"string","params":[{"name":"locales?","type":"string | Array"},{"name":"options?","type":"{currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}"}]},"path":"[LIB] core.js","line":156,"endline":156,"start":5,"end":92},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":157,"endline":157,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":158,"endline":158,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":159,"endline":159,"start":5,"end":21}]} +bool.js = {"result":[{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":121,"endline":121,"start":5,"end":22},{"name":"valueOf","type":"() => boolean","func_details":{"return_type":"boolean","params":[]},"path":"[LIB] core.js","line":120,"endline":120,"start":5,"end":22}]} +union.js = {"result":[{"name":"bar","type":"string","func_details":null,"path":"union.js","line":3,"endline":3,"start":36,"end":41},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} +object_builtins.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} +function_builtins.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":107,"endline":107,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":111,"endline":111,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":108,"endline":108,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":109,"endline":109,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":112,"endline":112,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":113,"endline":113,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":114,"endline":114,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} +fun.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":107,"endline":107,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":111,"endline":111,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":108,"endline":108,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":109,"endline":109,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":112,"endline":112,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":113,"endline":113,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":114,"endline":114,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} this.js = {"result":[{"name":"bar","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"this.js","line":6,"endline":6,"start":3,"end":10},{"name":"baz","type":"string","func_details":null,"path":"this.js","line":5,"endline":5,"start":8,"end":13},{"name":"hello","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"this.js","line":7,"endline":9,"start":3,"end":3}]} -typeparams.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":140,"endline":140,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":141,"endline":141,"start":5,"end":44},{"name":"toLocaleString","type":"(locales?: string | Array, options?: {currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}) => string","func_details":{"return_type":"string","params":[{"name":"locales?","type":"string | Array"},{"name":"options?","type":"{currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}"}]},"path":"[LIB] core.js","line":142,"endline":142,"start":5,"end":92},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":143,"endline":143,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":144,"endline":144,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":145,"endline":145,"start":5,"end":21}]} -generics.js = {"result":[{"name":"cn","type":"C","func_details":null,"path":"generics.js","line":5,"endline":5,"start":23,"end":31},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21}]} -optional.js = {"result":[{"name":"f","type":"(x?: string) => void","func_details":{"return_type":"void","params":[{"name":"x?","type":"string"}]},"path":"optional.js","line":3,"endline":3,"start":36,"end":55},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"o","type":"{x?: string}","func_details":null,"path":"optional.js","line":3,"endline":3,"start":61,"end":74},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21},{"name":"x","type":"string | void","func_details":null,"path":"optional.js","line":3,"endline":3,"start":25,"end":30}]} -jsx1.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx1.js","line":6,"endline":6,"start":15,"end":20}]} -jsx2.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":50,"endline":50,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":51,"endline":51,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":52,"endline":52,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":15,"end":20},{"name":"y","type":"string","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":26,"end":31}]} +typeparams.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":154,"endline":154,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":155,"endline":155,"start":5,"end":44},{"name":"toLocaleString","type":"(locales?: string | Array, options?: {currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}) => string","func_details":{"return_type":"string","params":[{"name":"locales?","type":"string | Array"},{"name":"options?","type":"{currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}"}]},"path":"[LIB] core.js","line":156,"endline":156,"start":5,"end":92},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":157,"endline":157,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":158,"endline":158,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":159,"endline":159,"start":5,"end":21}]} +generics.js = {"result":[{"name":"cn","type":"C","func_details":null,"path":"generics.js","line":5,"endline":5,"start":23,"end":31},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21}]} +optional.js = {"result":[{"name":"f","type":"(x?: string) => void","func_details":{"return_type":"void","params":[{"name":"x?","type":"string"}]},"path":"optional.js","line":3,"endline":3,"start":36,"end":55},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"o","type":"{x?: string}","func_details":null,"path":"optional.js","line":3,"endline":3,"start":61,"end":74},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21},{"name":"x","type":"string | void","func_details":null,"path":"optional.js","line":3,"endline":3,"start":25,"end":30}]} +jsx1.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx1.js","line":6,"endline":6,"start":15,"end":20}]} +jsx2.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":63,"endline":63,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":64,"endline":64,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":65,"endline":65,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":66,"endline":66,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":67,"endline":67,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":68,"endline":68,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":15,"end":20},{"name":"y","type":"string","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":26,"end":31}]} customfun.js = {"result":[{"name":"objectGetPrototypeOf","type":"(o: any) => any","func_details":{"return_type":"any","params":[{"name":"o","type":"any"}]},"path":"customfun.js","line":8,"endline":8,"start":1,"end":55},{"name":"objectAssign","type":"(target: any, ...sources: Array) => any","func_details":{"return_type":"any","params":[{"name":"target","type":"any"},{"name":"...sources","type":"Array"}]},"path":"customfun.js","line":9,"endline":9,"start":1,"end":39},{"name":"mixin","type":"(...objects: Array) => [class: Object]","func_details":{"return_type":"[class: Object]","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":7,"endline":7,"start":1,"end":38},{"name":"mergeInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":6,"endline":6,"start":1,"end":46},{"name":"mergeDeepInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":5,"endline":5,"start":1,"end":54},{"name":"merge","type":"(...objects: Array) => Object","func_details":{"return_type":"Object","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":4,"endline":4,"start":1,"end":38},{"name":"idx","type":"","func_details":{"return_type":"?IdxResult","params":[{"name":"obj","type":"IdxObject"},{"name":"pathCallback","type":""}]},"path":"customfun.js","line":3,"endline":3,"start":1,"end":34},{"name":"exports","type":"{}","func_details":null,"path":"","line":0,"endline":0,"start":1,"end":0}]} issue-1368.js = {"result":[{"name":"extended","type":"string","func_details":null,"path":"issue-1368.js","line":11,"endline":11,"start":13,"end":18},{"name":"method","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"issue-1368.js","line":18,"endline":21,"start":3,"end":3},{"name":"prop","type":"number","func_details":null,"path":"issue-1368.js","line":3,"endline":3,"start":9,"end":14}]} -if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":322,"endline":322,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":21}]} +if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":336,"endline":336,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":324,"endline":324,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":325,"endline":325,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":326,"endline":326,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":327,"endline":327,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":328,"endline":328,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":329,"endline":329,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":335,"endline":335,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":330,"endline":330,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":331,"endline":331,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":332,"endline":332,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":333,"endline":333,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":334,"endline":334,"start":5,"end":21}]} override.js = {"result":[{"name":"bar","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"override.js","line":10,"endline":11,"start":3,"end":0},{"name":"foo","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":8,"endline":8,"start":3,"end":34},{"name":"override","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":9,"endline":9,"start":3,"end":35}]} diff --git a/tests/compose/compose.exp b/tests/compose/compose.exp index 01952b503b2..a013b867e4b 100644 --- a/tests/compose/compose.exp +++ b/tests/compose/compose.exp @@ -37,8 +37,8 @@ Error: basic.js:15 Error: recompose.js:23 23: c: Math.round(props.p), // Error: string ~> number ^^^^^^^ string. This type is incompatible with the expected param type of -184: round(x: number): number; - ^^^^^^ number. See lib: /core.js:184 +198: round(x: number): number; + ^^^^^^ number. See lib: /core.js:198 Error: spread.js:6 6: declare var fns3: Array<(O) => $PropertyType>; diff --git a/tests/core_tests/core_tests.exp b/tests/core_tests/core_tests.exp index 61d2dea7868..4a08b2d1f15 100644 --- a/tests/core_tests/core_tests.exp +++ b/tests/core_tests/core_tests.exp @@ -3,16 +3,16 @@ Error: map.js:23 ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^^^ string. This type is incompatible with -542: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:542 +556: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:556 Error: map.js:23 23: let x = new Map(['foo', 123]); // error ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^ number. This type is incompatible with -542: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:542 +556: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:556 Error: map.js:24 24: let y: Map = new Map([['foo', 123]]); // error @@ -47,16 +47,16 @@ Error: map.js:30 Error: regexp.js:26 26: RegExp('foo', 'z'); // error ^^^ string literal `z`. This type is incompatible with -333: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ character set `gimsuy`. See lib: /core.js:333 +347: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ character set `gimsuy`. See lib: /core.js:347 26: RegExp('foo', 'z'); // error ^^^ `z` is not a member of the set Error: regexp.js:27 27: new RegExp('foo', 'z'); // error ^^^ string literal `z`. This type is incompatible with -335: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ character set `gimsuy`. See lib: /core.js:335 +349: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ character set `gimsuy`. See lib: /core.js:349 27: new RegExp('foo', 'z'); // error ^^^ `z` is not a member of the set @@ -65,32 +65,32 @@ Error: weakset.js:19 ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -580: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:580 +594: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:594 Error: weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -580: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:580 +594: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:594 Error: weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -580: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:580 +594: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:594 Error: weakset.js:36 36: let ws5 = new WeakSet(numbers()); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 29: function* numbers(): Iterable { ^^^^^^ number. This type is incompatible with -580: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:580 +594: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:594 Found 13 errors diff --git a/tests/date/date.exp b/tests/date/date.exp index 7ab43c5cdb6..9f97a4277c7 100644 --- a/tests/date/date.exp +++ b/tests/date/date.exp @@ -10,37 +10,37 @@ Error: date.js:18 18: new Date({}); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 18: new Date({}); ^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 367: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:19 19: new Date(2015, '6'); @@ -48,37 +48,37 @@ Error: date.js:19 19: new Date(2015, '6'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 19: new Date(2015, '6'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 19: new Date(2015, '6'); ^^^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 19: new Date(2015, '6'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 19: new Date(2015, '6'); ^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:20 20: new Date(2015, 6, '18'); @@ -86,37 +86,37 @@ Error: date.js:20 20: new Date(2015, 6, '18'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 20: new Date(2015, 6, '18'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 20: new Date(2015, 6, '18'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 20: new Date(2015, 6, '18'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 20: new Date(2015, 6, '18'); ^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:21 21: new Date(2015, 6, 18, '11'); @@ -124,37 +124,37 @@ Error: date.js:21 21: new Date(2015, 6, 18, '11'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 21: new Date(2015, 6, 18, '11'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:22 22: new Date(2015, 6, 18, 11, '55'); @@ -162,37 +162,37 @@ Error: date.js:22 22: new Date(2015, 6, 18, 11, '55'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 22: new Date(2015, 6, 18, 11, '55'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); @@ -200,37 +200,37 @@ Error: date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); @@ -238,37 +238,37 @@ Error: date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Error: date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); @@ -276,37 +276,37 @@ Error: date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^ unused function argument - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ number. This type is incompatible with the expected param type of - 368: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^^^^^ unused function argument - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:383 Error: date.js:26 26: new Date('2015', 6); @@ -314,37 +314,37 @@ Error: date.js:26 26: new Date('2015', 6); ^^^^ intersection Member 1: - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:380 Error: 26: new Date('2015', 6); ^^^^^^ unused function argument - 366: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:366 + 380: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:380 Member 2: - 367: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:381 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 367: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:367 + 381: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:381 Member 3: - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:382 Error: 26: new Date('2015', 6); ^ unused function argument - 368: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:368 + 382: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:382 Member 4: - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:383 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 369: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:369 + 383: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:383 Found 10 errors diff --git a/tests/dump-types/dump-types.exp b/tests/dump-types/dump-types.exp index 2c7886b0f43..96d4b6331fc 100644 --- a/tests/dump-types/dump-types.exp +++ b/tests/dump-types/dump-types.exp @@ -1278,8 +1278,8 @@ "def_loc":{ "source":"[LIB] core.js", "type":"LibFile", - "start":{"line":13,"column":24,"offset":358}, - "end":{"line":13,"column":27,"offset":362} + "start":{"line":13,"column":24,"offset":354}, + "end":{"line":13,"column":27,"offset":358} }, "path":"test.js", "line":12, @@ -3555,8 +3555,8 @@ "def_loc":{ "source":"[LIB] core.js", "type":"LibFile", - "start":{"line":13,"column":24,"offset":358}, - "end":{"line":13,"column":27,"offset":362} + "start":{"line":13,"column":24,"offset":354}, + "end":{"line":13,"column":27,"offset":358} }, "path":"test.js", "line":12, diff --git a/tests/fetch/fetch.exp b/tests/fetch/fetch.exp index dc7aa4cc773..92c1fb62e1e 100644 --- a/tests/fetch/fetch.exp +++ b/tests/fetch/fetch.exp @@ -293,8 +293,8 @@ Error: request.js:8 Error: request.js:24 24: h.text().then((t: Buffer) => t); // incorrect ^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of -598: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:598 +612: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:612 This parameter is incompatible: 998: text(): Promise; ^^^^^^ string. This type is incompatible with. See lib: /bom.js:998 @@ -304,8 +304,8 @@ Error: request.js:24 Error: request.js:26 26: h.arrayBuffer().then((ab: Buffer) => ab); // incorrect ^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of -598: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:598 +612: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:612 This parameter is incompatible: 26: h.arrayBuffer().then((ab: Buffer) => ab); // incorrect ^^^^^^ Buffer. This type is incompatible with @@ -497,8 +497,8 @@ Error: response.js:30 923: type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView; ^^^^^^^^^^^^^^^^ union: $TypedArray | DataView. See lib: /bom.js:923 Member 1: - 628: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:628 + 642: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:642 Error: v 30: const i: Response = new Response({ @@ -507,11 +507,11 @@ Error: response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 628: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:628 + 642: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:642 Member 2: - 628: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:628 + 642: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:642 Error: v 30: const i: Response = new Response({ @@ -520,14 +520,14 @@ Error: response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 628: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:628 + 642: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:642 Error: response.js:42 42: h.text().then((t: Buffer) => t); // incorrect ^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of -598: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:598 +612: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:612 This parameter is incompatible: 972: text(): Promise; ^^^^^^ string. This type is incompatible with. See lib: /bom.js:972 @@ -537,8 +537,8 @@ Error: response.js:42 Error: response.js:44 44: h.arrayBuffer().then((ab: Buffer) => ab); // incorrect ^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of -598: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:598 +612: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:612 This parameter is incompatible: 44: h.arrayBuffer().then((ab: Buffer) => ab); // incorrect ^^^^^^ Buffer. This type is incompatible with diff --git a/tests/function/function.exp b/tests/function/function.exp index f3ada9faf3d..d22f1504720 100644 --- a/tests/function/function.exp +++ b/tests/function/function.exp @@ -39,8 +39,8 @@ Error: apply.js:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `apply` 1: function test(a: string, b: number): number { ^^^^^^ number. This type is incompatible with -288: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:288 +302: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:302 Error: apply.js:32 32: (test.call.apply(test, [0, 123, 'foo']): void); diff --git a/tests/generators/generators.exp b/tests/generators/generators.exp index fbd2501d14f..01eb7fe77a6 100644 --- a/tests/generators/generators.exp +++ b/tests/generators/generators.exp @@ -67,8 +67,8 @@ Error: class.js:122 Error: class.js:125 125: examples.delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -500: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:500 +514: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:514 Error: class.js:128 128: (x : string) // error: number ~> string @@ -171,8 +171,8 @@ Error: generators.js:87 Error: generators.js:94 94: delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -500: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:500 +514: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:514 Error: generators.js:100 100: (x : string) // error: number ~> string diff --git a/tests/iterable/iterable.exp b/tests/iterable/iterable.exp index a66c034d2c7..dbe9ce25074 100644 --- a/tests/iterable/iterable.exp +++ b/tests/iterable/iterable.exp @@ -19,30 +19,30 @@ Error: caching_bug.js:21 Error: iterator_result.js:23 23: return { done, value: "still going..." }; // Error string ~> void ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object literal. This type is incompatible with -494: | { done: false, value: Yield }; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type. See lib: /core.js:494 +508: | { done: false, value: Yield }; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type. See lib: /core.js:508 Property `done` is incompatible: 23: return { done, value: "still going..." }; // Error string ~> void ^^^^ boolean. Expected boolean literal `false`, got `true` instead - 494: | { done: false, value: Yield }; - ^^^^^ boolean literal `false`. See lib: /core.js:494 + 508: | { done: false, value: Yield }; + ^^^^^ boolean literal `false`. See lib: /core.js:508 Error: iterator_result.js:25 25: return { done }; // Error void ~> string ^^^^^^^^ object literal. This type is incompatible with -493: | { done: true, value?: Return } - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type. See lib: /core.js:493 +507: | { done: true, value?: Return } + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type. See lib: /core.js:507 Property `done` is incompatible: 25: return { done }; // Error void ~> string ^^^^ boolean. Expected boolean literal `true`, got `false` instead - 493: | { done: true, value?: Return } - ^^^^ boolean literal `true`. See lib: /core.js:493 + 507: | { done: true, value?: Return } + ^^^^ boolean literal `true`. See lib: /core.js:507 Error: map.js:13 13: function mapTest4(map: Map): Iterable { ^^^^^^ string. This type is incompatible with -541: @@iterator(): Iterator<[K, V]>; - ^^^^^^ tuple type. See lib: /core.js:541 +555: @@iterator(): Iterator<[K, V]>; + ^^^^^^ tuple type. See lib: /core.js:555 Error: set.js:13 13: function setTest4(set: Set): Iterable { @@ -53,8 +53,8 @@ Error: set.js:13 Error: string.js:5 5: ("hi": Iterable); // Error - string is a Iterable ^^^^^^ number. This type is incompatible with -288: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:288 +302: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:302 Found 8 errors diff --git a/tests/object_api/object_api.exp b/tests/object_api/object_api.exp index 11f5c15f00c..52a0c4b6bf1 100644 --- a/tests/object_api/object_api.exp +++ b/tests/object_api/object_api.exp @@ -102,8 +102,8 @@ Error: object_prototype.js:39 39: var xToString2 : () => number = x.toString; // error ^^^^^^^^^^^^ function type This parameter is incompatible: - 54: toString(): string; - ^^^^^^ string. This type is incompatible with. See lib: /core.js:54 + 67: toString(): string; + ^^^^^^ string. This type is incompatible with. See lib: /core.js:67 39: var xToString2 : () => number = x.toString; // error ^^^^^^ number @@ -122,14 +122,14 @@ Error: object_prototype.js:49 Error: object_prototype.js:51 51: (123).toString('foo'); // error ^^^^^ string. This type is incompatible with the expected param type of -144: toString(radix?: number): string; - ^^^^^^ number. See lib: /core.js:144 +158: toString(radix?: number): string; + ^^^^^^ number. See lib: /core.js:158 Error: object_prototype.js:52 52: (123).toString(null); // error ^^^^ null. This type is incompatible with the expected param type of -144: toString(radix?: number): string; - ^^^^^^ number. See lib: /core.js:144 +158: toString(radix?: number): string; + ^^^^^^ number. See lib: /core.js:158 Error: object_prototype.js:68 68: b.hasOwnProperty = function() { return false; }; @@ -149,8 +149,8 @@ Error: object_prototype.js:72 72: var xHasOwnProperty2 : (prop: string) => number = x.hasOwnProperty; // error ^^^^^^^^^^^^^^^^^^^^^^^^ function type This parameter is incompatible: - 50: hasOwnProperty(prop: any): boolean; - ^^^^^^^ boolean. This type is incompatible with. See lib: /core.js:50 + 63: hasOwnProperty(prop: any): boolean; + ^^^^^^^ boolean. This type is incompatible with. See lib: /core.js:63 72: var xHasOwnProperty2 : (prop: string) => number = x.hasOwnProperty; // error ^^^^^^ number @@ -178,8 +178,8 @@ Error: object_prototype.js:98 97: var xPropertyIsEnumerable2 : (prop: string) => number = ^^^^^^^^^^^^^^^^^^^^^^^^ function type This parameter is incompatible: - 52: propertyIsEnumerable(prop: any): boolean; - ^^^^^^^ boolean. This type is incompatible with. See lib: /core.js:52 + 65: propertyIsEnumerable(prop: any): boolean; + ^^^^^^^ boolean. This type is incompatible with. See lib: /core.js:65 97: var xPropertyIsEnumerable2 : (prop: string) => number = ^^^^^^ number @@ -225,8 +225,8 @@ Error: object_prototype.js:151 151: var xToLocaleString2 : () => number = x.toLocaleString; // error ^^^^^^^^^^^^ function type This parameter is incompatible: - 407: toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; - ^^^^^^ string. This type is incompatible with. See lib: /core.js:407 + 421: toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; + ^^^^^^ string. This type is incompatible with. See lib: /core.js:421 151: var xToLocaleString2 : () => number = x.toLocaleString; // error ^^^^^^ number diff --git a/tests/object_is/object_is.exp b/tests/object_is/object_is.exp index 1a6908d2278..e374a76e081 100644 --- a/tests/object_is/object_is.exp +++ b/tests/object_is/object_is.exp @@ -7,8 +7,8 @@ Error: object_is.js:20 Error: object_is.js:22 22: var d: boolean = Object.is('a', 'b', 'c'); // Error - 'c' is unused ^^^ unused function argument - 41: static is(a: any, b: any): boolean; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 2 arguments. See lib: /core.js:41 + 54: static is(a: any, b: any): boolean; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 2 arguments. See lib: /core.js:54 Found 2 errors diff --git a/tests/overload/overload.exp b/tests/overload/overload.exp index fe7b48fd13f..37ea37d48cf 100644 --- a/tests/overload/overload.exp +++ b/tests/overload/overload.exp @@ -19,24 +19,24 @@ Error: overload.js:7 Error: overload.js:7 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with the expected param type of -301: match(regexp: string | RegExp): ?Array; - ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:301 +315: match(regexp: string | RegExp): ?Array; + ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:315 Member 1: - 301: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:301 + 315: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:315 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 301: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:301 + 315: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:315 Member 2: - 301: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:301 + 315: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:315 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 301: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:301 + 315: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:315 Error: overload.js:8 8: var x2: number = "".match(/pattern/)[0]; diff --git a/tests/promises/promises.exp b/tests/promises/promises.exp index bbd45756341..44be797e786 100644 --- a/tests/promises/promises.exp +++ b/tests/promises/promises.exp @@ -37,22 +37,22 @@ Error: all.js:19 Error: all.js:24 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ undefined (too few arguments, expected default/rest parameters). This type is incompatible with -608: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^^ $Iterable. See lib: /core.js:608 +622: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^^ $Iterable. See lib: /core.js:622 Property `@@iterator` is incompatible: - 608: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:608 + 622: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:622 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ undefined (too few arguments, expected default/rest parameters) Error: all.js:27 27: Promise.all(0); // Error: expected array instead of number ^ number. This type is incompatible with -608: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^^ $Iterable. See lib: /core.js:608 +622: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^^ $Iterable. See lib: /core.js:622 Property `@@iterator` is incompatible: - 608: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:608 + 622: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:622 27: Promise.all(0); // Error: expected array instead of number ^ number diff --git a/tests/symbol/symbol.exp b/tests/symbol/symbol.exp index fcb36855eb4..3f3e9eccc3f 100644 --- a/tests/symbol/symbol.exp +++ b/tests/symbol/symbol.exp @@ -1,8 +1,8 @@ Error: symbol.js:4 4: var WAT = Symbol('foo', 'bar'); // Error - unused argument ^^^^^ unused function argument - 73: static (value?:any): Symbol; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:73 + 86: static (value?:any): Symbol; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:86 Found 1 error