1628 Commits

Author SHA1 Message Date
Dom Chen
0365c96e37 Fix #11660: wrong reports that block-scoped variable used before its … (#11692)
* Fix #11660: wrong reports that block-scoped variable used before its declaration

* Fix code style in checker.ts

* Add unit test for #11660

* Fix the unit test for #11660
2016-10-19 13:07:49 -07:00
Ryan Cavanaugh
58ed72fd9a Fixes #10624 2016-10-19 11:30:17 -07:00
Vladimir Matveev
ff17eeda8f check heritage clause for the presence of entry with Extends keyword (#11711) 2016-10-18 11:35:22 -07:00
Sheetal Nandi
e72414ecab Merge branch 'master' into requireAsFunctionInExternalModule 2016-10-17 16:13:51 -07:00
Vladimir Matveev
ebba1c3d1a fix flow in finally blocks 2016-10-16 20:57:51 -07:00
Ron Buckton
db76a9ca07 More tests 2016-10-15 17:29:03 -07:00
Ron Buckton
7f6faaa884 Merge branch 'master' into fix11295 2016-10-15 14:34:04 -07:00
Andrej Baran
17d60d5d8f Merged master into es2017-target 2016-10-15 08:31:22 +02:00
Ron Buckton
980a894787 Fix emit issue regarding null/undefined in type annotations 2016-10-14 18:10:34 -07:00
Andrej Baran
7352e97121 Cleanup ES2017 async tests 2016-10-15 01:16:11 +02:00
Anders Hejlsberg
c876d92b79 Merge branch 'master' into controlFlowArrays
# Conflicts:
#	src/compiler/checker.ts
2016-10-14 07:48:18 -07:00
Andrej Baran
86784a5eef Get rid of ES6 completely 2016-10-14 10:54:54 +02:00
Mohamed Hegazy
fc641b93be Merge branch 'slawomir-10758-always-strict' 2016-10-13 16:57:06 -07:00
Mohamed Hegazy
2920f82804 Add error reporting for using --noImplicitUseStrict with --options.alwaysStrict 2016-10-13 16:54:09 -07:00
Anders Hejlsberg
bfa4197ffe Update tests 2016-10-13 13:29:08 -07:00
Anders Hejlsberg
a27a68f8eb Add additional tests 2016-10-13 09:44:50 -07:00
Anders Hejlsberg
620b3f91e1 Fix test 2016-10-13 09:44:37 -07:00
Andrej Baran
a500fd9211 Merge branch 'master' into es2017-target 2016-10-13 14:02:54 +02:00
Andrej Baran
f42c791502 Don't use es8. Add es2016 target.
Rename es7 to es2016. Update getDefaultLibFileName for new targets.
2016-10-12 21:28:11 +02:00
Anders Hejlsberg
e9858de363 Add test 2016-10-11 10:28:13 -07:00
Slawomir Sadziak
ea808f52fe Fix #10758 Add compiler option to parse in strict mode
* add unit test to ensure "use strict" is not added twice
 * fix code
2016-10-10 12:15:34 +02:00
Slawomir Sadziak
29a85e02ab Fix #10758 Add compiler option to parse in strict mode
* add compiler option alwaysStrict
 * compile in strict mode when option is set
 * emit "use strict"
2016-10-10 00:03:33 +02:00
Anders Hejlsberg
d202b1c037 Add test 2016-10-08 15:27:49 -07:00
Sheetal Nandi
d543028226 Add test case for narrowed const in object literal and class expression method 2016-10-07 17:46:13 -07:00
Anders Hejlsberg
2f5af2e04b Add additional test 2016-10-06 17:02:33 -07:00
Anders Hejlsberg
b8d5226c80 Merge branch 'master' into controlFlowArrays 2016-10-06 14:36:08 -07:00
Anders Hejlsberg
44c475f6bb Merge pull request #11263 from Microsoft/controlFlowLetVar
Control flow analysis for implicit any variables
2016-10-06 14:23:38 -07:00
Anders Hejlsberg
a9c2b23df5 Add tests 2016-10-06 13:33:28 -07:00
Sheetal Nandi
dc374731d9 Adding test for #10073 2016-10-06 10:22:35 -07:00
Sheetal Nandi
8e4efb6cd9 Added test case for enums 2016-10-05 17:40:01 -07:00
Andrej Baran
d16e846ab4 ES8/ES2017 target tests 2016-10-06 01:13:11 +02:00
Sheetal Nandi
32de4d7f08 Another test case 2016-10-05 11:33:44 -07:00
Sheetal Nandi
c40234fe96 Adding test for emit of metadata for string literal union 2016-10-05 11:33:44 -07:00
Yui
a31415d5b0 Merge pull request #11228 from Microsoft/master_11192
[Master] Fix 11192
2016-10-05 10:55:34 -07:00
Vladimir Matveev
ebb17e8019 do not apply subtype reduction if type set contains enum literals fro… (#11368)
* do not apply subtype reduction if type set contains enum literals from the same enum

* do not re-read symbol for the first enum

* addressed PR feedback
2016-10-04 16:32:16 -07:00
Sheetal Nandi
a70624d415 Add test when require is just a function in external module 2016-10-04 12:17:03 -07:00
Daniel Rosenwasser
a0fc9059f9 Merge pull request #11252 from Microsoft/mapOnTuples
Add overloads for 'map' on tuple types
2016-10-03 20:07:30 -07:00
Ron Buckton
e70f4ac6b2 Merge pull request #11291 from Microsoft/fix11177
Fix crash with nested generators
2016-10-03 19:06:28 -07:00
Vladimir Matveev
4800464ed6 do not reset current flow after processing finally block if it was unreachable (#11310)
* do not reset current flow after processing finally block if it was unreachable

* fix tests
2016-10-03 11:03:28 -07:00
Anders Hejlsberg
dd63c46cc3 Update tests and baselines 2016-10-03 10:52:28 -07:00
Anders Hejlsberg
6c2344ee35 Add comments to tests 2016-10-03 09:01:53 -07:00
Ron Buckton
a747a4da81 Fix crash with nested generators 2016-09-30 17:29:24 -07:00
Ron Buckton
d1ac8dde0b Merge pull request #11288 from Microsoft/fix11236
Visit VariableDeclaration initializer in converted loop
2016-09-30 16:51:58 -07:00
Ron Buckton
6c1cec5c3a Visit vardecl initializer in converted loop 2016-09-30 15:46:35 -07:00
Ron Buckton
8d47511733 Merge branch 'master' into noEmitExtraVars 2016-09-30 14:34:48 -07:00
Ron Buckton
ae7f1be427 Do not emit extra var decls for merged enums/namespaces 2016-09-30 14:20:06 -07:00
Andy
631ab0abab Merge pull request #11246 from Microsoft/export_in_function
Ensure that `checkGrammarModuleElementContext` reliably returns `true` when there is bad grammar
2016-09-30 06:03:15 -07:00
Daniel Rosenwasser
02b9917cd8 Merge remote-tracking branch 'origin/master' into useReturnedThisFromSuperCalls 2016-09-29 20:33:42 -07:00
Anders Hejlsberg
d8ec85775a Add tests 2016-09-29 15:11:51 -07:00
Andy Hanson
228ddde66e Ensure that checkGrammarModuleElementContext reliably returns true when there is bad grammar. 2016-09-29 06:15:48 -07:00