Nicholas Yang
0da305bee5
Adjusted baseline for tests.
2019-04-30 00:53:08 -04:00
Nicholas Yang
39321a55d8
Adjusted tests to correct baseline with new __rest
2019-04-30 00:53:08 -04:00
Nicholas Yang
9b32742f22
Modified __rest output in test baselines.
2019-04-30 00:53:08 -04:00
Nicholas Yang
80d8e660d7
Added a Object.prototype.propertyIsEnumerable check to __rest to prevent enumerable symbols from sneaking through.
2019-04-30 00:53:08 -04:00
Anders Hejlsberg
31551fd0ae
Only instantiate types if we need to
2019-04-29 17:17:16 -07:00
Anders Hejlsberg
a539887893
Merge pull request #31150 from Microsoft/fixReadonlyIndexedAccess
...
Fix readonly indexed access used in indexed access type
2019-04-29 16:59:13 -07:00
Ron Buckton
2d8527f3f0
Merge pull request #30779 from Microsoft/relateDiscriminants
...
Relate source types covered by a target discriminated union
2019-04-29 16:58:27 -07:00
Ron Buckton
26fd6dafa6
Relate a source type that is sufficiently covered by a target discriminated union
2019-04-29 15:46:37 -07:00
Klaus Meinhardt
de9b91f46a
simplify pragma comment parsing ( #31144 )
...
* simplify pragma parsing
* use emptyArray
2019-04-29 14:17:48 -07:00
Sheetal Nandi
7e135e7060
Merge pull request #31165 from Microsoft/targetAffectsEmit
...
Target affects emit hence mark the option so that all files are reemitted when target changes
2019-04-29 14:16:33 -07:00
Sheetal Nandi
1e22110991
Merge branch 'master' into cacheParseConfigFile
2019-04-29 13:08:30 -07:00
Sheetal Nandi
fb21e70d71
Target affects emit hence mark the option so that all files are reemitted when target changes
...
Fixes #31118
2019-04-29 13:05:31 -07:00
Ron Buckton
7423c6973c
Merge pull request #31142 from Microsoft/binderPerf
...
Fix binder performance regression
2019-04-29 11:52:35 -07:00
TypeScript Bot
47d908161f
Update user baselines ( #31161 )
2019-04-29 11:03:35 -07:00
Anders Hejlsberg
64174b9b95
Accept new baselines
2019-04-28 14:12:06 -07:00
Anders Hejlsberg
bbce336268
Add additional tests
2019-04-28 14:12:00 -07:00
Anders Hejlsberg
6d60f699ca
Accept new baselines
2019-04-28 13:59:05 -07:00
Anders Hejlsberg
3050c62251
Add regression test
2019-04-28 13:58:58 -07:00
Anders Hejlsberg
9c401b4dbb
Remove over-eager check of AccessFlags.Writing in getIndexedAccessType
2019-04-28 13:56:11 -07:00
Ron Buckton
57a8ee1507
Fix binder performance regression
2019-04-27 16:47:27 -07:00
Anders Hejlsberg
ed75e1d07e
Accept new baselines
2019-04-27 16:22:20 -07:00
Anders Hejlsberg
4f38aa88c2
Add regression test
2019-04-27 16:22:11 -07:00
Anders Hejlsberg
0759bc67a4
Fix inference to indexed access type containing substitution type
2019-04-27 16:19:50 -07:00
Anders Hejlsberg
19bdaf8644
Accept new baselines
2019-04-27 09:56:17 -07:00
Anders Hejlsberg
078375765b
Add regression test
2019-04-27 09:56:11 -07:00
Anders Hejlsberg
5a567ad56d
Properly instantiate true type when extends type is any or unknown
2019-04-27 09:56:01 -07:00
Anders Hejlsberg
4051d73cb0
Accept new baselines
2019-04-27 07:51:12 -07:00
Anders Hejlsberg
53cbea7846
Add tests
2019-04-27 07:51:05 -07:00
Wenlu Wang
454b4280b1
check more case for empty binding patten ( #25263 )
...
* check more case for empty binding patten
* refactor binding pattern checking getWidenedType
* fix spelling
* fix merge and rebase
2019-04-26 14:00:04 -07:00
Sheetal Nandi
d4c2fdc6fd
Make changes to public API
2019-04-26 13:59:04 -07:00
Clay Miller
d934401265
Change the type of 'uriComponent' (passed to 'encodeURIComponent') from 'string' to 'string | number | boolean'. Fixes #18159 ( #31103 )
...
- According to the ECMAScript 5.1 spec (§15.1.3.4), 'encodeURIComponent' invokes the abstract operation 'ToString': https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3.4
- In the spec (§9.8), 'ToString' accepts an 'Undefined', 'Null', 'Boolean', 'Number', 'String' or 'Object' argument: https://www.ecma-international.org/ecma-262/5.1/#sec-9.8
- TypeScript’s 'StringConstructor' accepts an argument with type 'any': b0100100a1/lib/lib.es5.d.ts (L518)
2019-04-26 13:07:14 -07:00
Sheetal Nandi
5940eb843a
Enable caches while watch mode compilation
2019-04-26 09:15:53 -07:00
Sheetal Nandi
94ee0dc769
Merge pull request #31100 from Microsoft/tsBuildCacheModuleResolution
...
Cache module resolutions across tsbuild to be able to resolve the modules faster
2019-04-26 07:33:59 -07:00
Jack Williams
0949ad1130
Fix #24991 : Weaken narrowing for == ( #29840 )
...
Spelling
2019-04-25 19:30:03 -07:00
Andrew Branch
67a9029fdf
Update existing baseline
2019-04-25 17:35:21 -07:00
Anders Hejlsberg
3e79e8d18d
Accept new baselines
2019-04-25 17:33:01 -07:00
Anders Hejlsberg
be88d53ab3
Only defer function type inference when contextual type is function type
2019-04-25 17:32:27 -07:00
Andrew Branch
0eb286274d
Update error code in baseline
2019-04-25 17:31:25 -07:00
Andrew Branch
e81fa2198d
Emit error on class fields named "constructor"
2019-04-25 17:30:41 -07:00
Anders Hejlsberg
95413f0a24
Merge pull request #31000 from Microsoft/ignoreStringIndexSignaturesOnly
...
Ignore string (but keep numeric) index signatures from constraints
2019-04-25 17:01:46 -07:00
Andrew Branch
9f601ff154
Change error code
2019-04-25 16:15:00 -07:00
Andrew Branch
b1b0a821f2
Add baselines
2019-04-25 15:56:24 -07:00
Andrew Branch
c5e6913ede
Add grammar error on quoted constructors for TS 3.5
2019-04-25 15:44:23 -07:00
Klaus Meinhardt
d865ea774a
resolveName: remove useless case ( #28669 )
...
PropertySignature cannot occur in a class.
The condition inside the clause required the parent to be a class, so it was never true.
This removes the case clause and the part of the condition that is now useless.
2019-04-25 15:43:43 -07:00
Max Heiber
f9d12ed54b
fix 31012 allow noEmitOnError with isolatedModules ( #34 ) ( #31043 )
...
fix #31012
Since the purpose of isolatedModules: true is to
do extra validation to ensure that separate
compilation is safe
Allowing emit in the presence of errors is
compatible with that intention.
Signed-off-by: Max Heiber <max.heiber@gmail.com>
2019-04-25 15:31:03 -07:00
amaksimovich2
5b79b942e8
add action for enabling experimentalDescorators option in user config… ( #30484 )
...
* add action for enabling experimentalDescorators option in user config file, change error message for this case #29035
* add missing changes in tests
* Add "experimental decorators" tests for jsconfig file
2019-04-25 14:55:04 -07:00
Wenlu Wang
b8e3c41ee1
fix jsdoc iterator on expression of export assignment ( #30558 )
2019-04-25 14:53:06 -07:00
Ryan Cavanaugh
867c992021
Update pull_request_template.md
2019-04-25 14:45:44 -07:00
Kagami Sascha Rosylight
1a75d525fa
add ES2020 matchAll APIs ( #30936 )
2019-04-25 14:11:50 -07:00
Sheetal Nandi
9bb8373327
Accept API changes
2019-04-25 14:06:49 -07:00