19530 Commits

Author SHA1 Message Date
Kagami Sascha Rosylight
13c72b786e Merge remote-tracking branch 'upstream/master' into es2019 2019-02-08 06:55:56 +09:00
Ron Buckton
b9ca653cf6 Merge branch 'async-es2018' of https://github.com/saschanaz/TypeScript into saschanaz-async-es2018 2019-02-07 13:27:25 -08:00
Ron Buckton
61d13b740e
Merge pull request #29726 from bmeurer/modifierFlagsCache
Make modifierFlagsCache mandatory for Node objects
2019-02-07 12:13:46 -08:00
Benedikt Meurer
d3e23884c4 Fix linter warnings. 2019-02-07 20:39:03 +01:00
Ron Buckton
a94c383b71
Merge pull request #27292 from kpreisser/fix26090
Align the ShimMap iterator behavior with native Maps
2019-02-07 11:17:22 -08:00
Kagami Sascha Rosylight
b3c179540a String.prototype.{trimStart,trimEnd} hit stage 4 2019-02-08 00:51:23 +09:00
Kagami Sascha Rosylight
f525a89e87 Array.prototype.{flat,flatMap} hit stage 4 2019-02-08 00:10:34 +09:00
kpreisser
5043bf72f5 PR feedback. 2019-02-07 09:01:27 +01:00
Kagami Sascha Rosylight
40a4bd0a95 revive esnext.symbol 2019-02-07 10:45:44 +09:00
Kagami Sascha Rosylight
582526929b restore flags 2019-02-07 10:27:50 +09:00
Kagami Sascha Rosylight
a8823f5169
Merge branch 'master' into es2019 2019-02-07 10:08:26 +09:00
Kagami Sascha Rosylight
5a6dc081f6 revive esnext.asynciterable 2019-02-07 10:01:36 +09:00
Wesley Wigham
8e5dcfbde5
Add try priors as finally lock label andecedents rather than pre finally label antecedents (#29790) 2019-02-06 16:59:26 -08:00
Kagami Sascha Rosylight
2c4589d5a9 Merge remote-tracking branch 'upstream/master' into async-es2018 2019-02-07 09:51:26 +09:00
Mine Starks
c03af51186
Merge pull request #29785 from jessetrinity/add-auto-quotepreference
Add explicit "auto" quotePreference
2019-02-06 15:43:41 -08:00
Kagami Sascha Rosylight
6249b4c704 Remove ES2018 transforms for ES2018 target (#26315)
* rename esnext.ts as es2018.ts

* remove ES2018 transforms for ES2018 target

* change target from esnext to es2018

* rename tests
2019-02-06 15:35:52 -08:00
Jesse Trinity
7fd1e62a63 accepted new baselines 2019-02-06 14:37:26 -08:00
Jesse Trinity
f0a6154e9b Added auto setting to quotePreference 2019-02-06 14:37:26 -08:00
Anders Hejlsberg
d9ee86723a
Merge pull request #29740 from Microsoft/fixCircularMappedArrayTuple
Fix issues related to circular mapped array and tuple types
2019-02-06 13:24:19 -08:00
Benedikt Meurer
0c7a7df09d Also initialize transformFlags properly in NodeObjects. 2019-02-06 20:57:02 +01:00
Nathan Shively-Sanders
33af4ea250
assertNever no longer crashes on string input (#29764) 2019-02-06 08:57:24 -08:00
Benedikt Meurer
fb65adbd23 Fix initialization of TokenOrIdentifierObject#transformFlags.
This should start with `TransformFlags.None` just like in the `Node`
constructor in `src/compiler/utilities.ts`.
2019-02-06 16:51:32 +01:00
Daniel Rosenwasser
4505eea92d
Merge pull request #29766 from Microsoft/USE-ALL-THE-ES2015-NAMES-WESLEY-WHAT-IS-SO-HARD-ABOUT-THAT
Expand "set your lib" suggestions to other commonly used ES2015 declarations
2019-02-05 18:31:16 -08:00
Daniel Rosenwasser
3382a2ea54 Give good error messages on more types. 2019-02-05 18:01:41 -08:00
Ryan Cavanaugh
eed9db5ec5
Merge pull request #28465 from alangpierce/enforce-const-enum-access-for-isolatedmodules
Change isolatedModules to allow const enum declaration and disallow access
2019-02-05 16:36:58 -08:00
Klaus Meinhardt
12edac0925 getEffectiveBaseTypeNode: only use JSDoc augments if there is extends (#29349) 2019-02-05 15:51:55 -08:00
Anders Hejlsberg
7c096576bc
Merge pull request #29756 from Microsoft/fixStrictPropertyInitialization
Revert change to strict property initialization checks
2019-02-05 15:10:30 -08:00
Anders Hejlsberg
2256d761a2 Revert change to strict property initialization checks 2019-02-05 12:40:25 -08:00
Ryan Cavanaugh
1ec8a71949
Merge pull request #29711 from jack-williams/switch-on-unknown
Fix #29710: Narrow unknown in switch
2019-02-05 09:08:52 -08:00
Anders Hejlsberg
ee10c247b7 Less aggressive logic for detecting circular mapped arrays and tuples 2019-02-04 17:36:09 -08:00
Nathan Shively-Sanders
2f9218f346
DOM update February 2019 (#29690)
* DOM update February 2019

* Update some baselines

* Update mappedTypeRecursiveInference baselines
2019-02-04 15:25:41 -08:00
Ryan Cavanaugh
4ff71ecb98
Merge pull request #29696 from Microsoft/filter-unknown
Use unknown for array predicates' return types
2019-02-04 13:26:29 -08:00
Ron Buckton
55762271af
Merge pull request #29695 from Microsoft/fixDtsTypeReferenceEmit
Fix type reference dts emit failure
2019-02-04 13:03:07 -08:00
Anders Hejlsberg
b7c5c073f8
Merge pull request #29714 from Microsoft/fixInstanceofTypeofControlFlow
Fix instanceof and typeof control flow
2019-02-04 12:22:52 -08:00
Anders Hejlsberg
f86b635122
Merge pull request #29705 from Microsoft/fixParametersAndReturnType
Less restrictive Parameters<T> and ReturnType<T>
2019-02-04 12:08:29 -08:00
Ron Buckton
4756373967 Merge branch 'master' into fixDtsTypeReferenceEmit 2019-02-04 11:39:16 -08:00
Benedikt Meurer
97c557eb04 Make modifierFlagsCache mandatory for Node objects
The `modifierFlagsCache` property is among the top properties that cause
megamorphic stub cache misses when having `tsc` build itself. This is
because it's added sort of randomly to a whole lot of different objects,
at arbitrary points after their initialization.

This also means that `modifierFlagsCache` is often not present on the
instances, which means that when missing on the megamorphic stub cache,
Node/V8 has to compute `NonExistent` handlers for the relevant inline
caches.

It's a lot cheaper to just make sure that the property is always
existent on the instance, and ideally also at the same offset. This
change ensures exactly that.

Drive-by-fix: Also make sure that `transformFlags` (and `parent`)
is always at the same offset for `Node` objects.
2019-02-04 14:46:27 +01:00
Anders Hejlsberg
415c725bb9 Make exception for synthetic 'this.x' in narrowTypeByInstanceof 2019-02-03 15:23:07 -08:00
Jack Williams
25f9a1fec2 Fix lint errors 2019-02-03 22:44:15 +00:00
Jack Williams
54801cbd17 Merge branch 'master' into switch-on-unknown 2019-02-03 22:36:40 +00:00
Anders Hejlsberg
343e0f7fd9 Fix NarrowTypeByTypeof, NarrowTypeByInstanceof, isPropertyInitializedInConstructor 2019-02-03 08:19:22 -08:00
Jack Williams
3d0c7f3156 Narrow unknown in switch 2019-02-03 16:07:21 +00:00
Ryan Cavanaugh
0a041ee536
Merge pull request #28270 from AnyhowStep/json-parse-reviver-stringify-replacer-better-declaration
JSON.parse(), JSON.stringify() more specific declarations for #6955
2019-02-02 12:10:56 -08:00
Anders Hejlsberg
e7ad76ddc8 Less restrictive constraints in Parameters and ReturnType types 2019-02-02 09:28:21 -08:00
Alan Pierce
942b020081 Merge remote-tracking branch 'origin/master' into enforce-const-enum-access-for-isolatedmodules 2019-02-01 18:52:22 -08:00
Ryan Cavanaugh
efbe630a13
Use unknown for array predicates' return types 2019-02-01 17:05:04 -08:00
Ron Buckton
4b84f56b21 Fix type reference dts emit failure 2019-02-01 16:09:17 -08:00
Ryan Cavanaugh
a856a64a5c
Merge pull request #29446 from fuafa/infer-js-doc
fix quick fix infer parameter types from usage in js file
2019-02-01 13:55:31 -08:00
Ryan Cavanaugh
f81ea89564
Merge pull request #29136 from ajafff/usedbeforedeclaration-objectspread
property is used before its initialization: check more nodes
2019-02-01 13:46:37 -08:00
Anders Hejlsberg
607f2ea4de
Merge pull request #29478 from Microsoft/fixContextualReturnTypes
Infer contextual types from generic return types
2019-02-01 12:31:08 -08:00