Sheetal Nandi
dd49c28116
Merge pull request #8014 from Microsoft/strictBlockScopeFunction
...
Make function block scoped in strict mode and report error in es5 for block scope level declaration of function
2016-04-11 16:48:35 -07:00
Sheetal Nandi
9d35468d17
Test case for failing scenario of wrongly reporting error of parameter of private method when no implicit any is speicified
2016-04-11 15:06:09 -07:00
Sheetal Nandi
4b0cb640c3
Test cases for functions with same name present in the outerscope
2016-04-11 14:09:27 -07:00
Sheetal Nandi
141dbb8986
Adding test cases for errors resulting because class/modules are strict
2016-04-11 12:20:21 -07:00
Sheetal Nandi
f2c8e5c85e
Add test cases for function declarations in block scope
2016-04-11 12:20:00 -07:00
Vladimir Matveev
e5e7d47782
merge with origin/master
2016-04-08 14:38:47 -07:00
Sheetal Nandi
1d2730790e
Report implicit any errors on destructuring parameter declarations
...
Handles #6935
2016-04-08 12:22:07 -07:00
Daniel Rosenwasser
9b6f8d1b7a
Merge pull request #7924 from Microsoft/correctStrictPrologueCheck
...
Emit "use strict" if a prologue only contains "use strict" somewhere inside of it
2016-04-07 12:37:33 -07:00
Nathan Shively-Sanders
3704ad74d1
Merge pull request #6739 from Microsoft/this-function-types
...
This function types
2016-04-07 10:31:01 -07:00
Daniel Rosenwasser
26e1d8dee0
Added test.
2016-04-07 00:41:40 -07:00
Yui
988063e9cf
Move PropertyKey from es5 to es2015.core
...
* Move propertyKey definition to es2015.core
* Update baselines to reflect how one will use --lib
2016-04-05 11:08:26 -07:00
Yui
11887ccc29
Adjustmodularize lib
...
* Merge array, function, math, number, object, regexp, string into es2015.core
* Update baselines
* Add node.d.ts; need to fix head of the output
* Update unittests from add node as an option for --lib
* Move interface declaration into NodeJS namespace
* Add console into Node.d.ts
* Add compiler baseline-tests for using --lib node
* Change name from full.es2015 to es6. This is a es6 library file used when no --lib is specified and --target is es6
* Remove add node.d.ts into src/lib
Remove node.d.ts
Revert "Update unittests from add node as an option for --lib"
This reverts commit 51692736803d3f75905af695bed07249d3daf24b.
Revert "Add compiler baseline-tests for using --lib node"
This reverts commit 17e437b4c7afb5046539bc71cc32d9084b6f57a2.
2016-04-04 22:02:12 -07:00
Sheetal Nandi
8b203ec237
Merge pull request #7813 from Microsoft/exportDefaultAssignmentExpression
...
Fix declaration file for default temp var name in declaration file during bundling
2016-04-04 13:59:13 -07:00
Sheetal Nandi
75ef6772bf
Test cases for when default temp var is inserted for export default in the declaration file
2016-04-04 13:34:05 -07:00
Mohamed Hegazy
5fe809bc2c
Merge pull request #7713 from Microsoft/Fix7703
...
Fix #7703 : make arrow function span the first line instead of the whole function body
2016-04-04 11:54:53 -07:00
Vladimir Matveev
12d90f3be9
added tests
2016-04-01 12:41:45 -07:00
Nathan Shively-Sanders
ce68932475
Merge branch 'master' into this-function-types
2016-03-31 10:46:03 -07:00
Yui
68bdbe04e7
Merge pull request #7715 from Microsoft/6974AddLibImplementation
...
6974 add lib implementation
2016-03-30 14:22:41 -07:00
Nathan Shively-Sanders
0113ad5250
Error on all uses of this that are implicitly any
...
Previously it was only an error inside an function.
2016-03-30 13:31:10 -07:00
Anton Tolmachev
7ce43d4716
Fix #7101
2016-03-29 22:53:30 +03:00
Mohamed Hegazy
155f4879de
Review comments
2016-03-29 11:51:04 -07:00
Kanchalai Tanglertsampan
eff81b933c
Add compiler-baseline tests and associated baselines for --lib flag
...
Add --lib compiler tests and baselines
Remove old compiler baselines
2016-03-28 14:48:56 -07:00
Nathan Shively-Sanders
9e5f26048b
Merge branch 'master' into this-function-types
2016-03-28 10:12:25 -07:00
Nathan Shively-Sanders
a91cdccfc5
Add --noImplicitThis flag
...
It's basically another --noImplicitAny error, but one that would break
large amount of JavaScript-style code.
2016-03-25 16:37:28 -07:00
Mohamed Hegazy
bdb741e92a
Fix #7629 : Check if errros are needed before reporting them in enumRelatedTo
2016-03-25 12:39:43 -07:00
Vladimir Matveev
4e06457b1d
Merge pull request #7595 from Microsoft/revertParseCompilerOptionsFromJson
...
revert changes in the signature of 'convertCompilerOptionsFromJson'
2016-03-21 16:07:31 -07:00
Vladimir Matveev
e052eb1cda
Merge pull request #7621 from Microsoft/dropInferenceLimit
...
drop inference depth limit
2016-03-21 15:36:36 -07:00
Vladimir Matveev
134a253f57
added API sample to tests
2016-03-21 15:20:59 -07:00
Vladimir Matveev
6f37d31e18
drop inference limit
2016-03-21 15:15:41 -07:00
Vladimir Matveev
3691261db4
partially revert #7583
2016-03-18 22:26:52 -07:00
Vladimir Matveev
32178acdfe
Merge pull request #7583 from Microsoft/colliding-local-import
...
check if import collides with exported local name
2016-03-18 12:21:51 -07:00
Vladimir Matveev
5ed389b6b4
check if import collides with exported local name
2016-03-18 10:29:01 -07:00
Mohamed Hegazy
f0b3ff16e3
Merge pull request #7532 from Microsoft/declarationEmitFixes2
...
Remove members from getAccessibleSymbolChain walk
2016-03-17 15:50:27 -07:00
Vladimir Matveev
51e8f7dd7a
Merge pull request #7555 from Microsoft/destructuring-variable-declarations
...
Destructuring in variable declarations when module kind is not ES6
2016-03-17 10:37:34 -07:00
Vladimir Matveev
57d9a5ada5
emit top level classes as class expressions when target=ES6 and module=System
2016-03-16 21:56:53 -07:00
Vladimir Matveev
3ede567fbc
use downlevel destructuring for exported variables for target=ES6 if module kind is not ES6
2016-03-16 16:40:35 -07:00
Mohamed Hegazy
e0ab009a98
Remove members from getAccessibleSymbolChain walk
2016-03-16 13:45:38 -07:00
Vladimir Matveev
e0a79bcd63
don't check that return statement has expression in constructors
2016-03-13 15:31:55 -07:00
Anil Anar
cde06b6585
Fix #7397 : Remove error checks for noEmit and out* compiler options combined.
2016-03-12 19:20:18 +01:00
Vladimir Matveev
489bf921ff
Merge pull request #7464 from Microsoft/capturedLetConstInDestructuringAssignment
...
correctly recognize captured loop variables in destructuring assignment
2016-03-10 10:17:19 -08:00
Vladimir Matveev
7344d9ca47
correctly recognize captured loop variables in destructuring assignment
2016-03-10 09:59:09 -08:00
Bill Ticehurst
3ebf0fc383
Fixed default import from export equals
...
(cherry picked from commit c4a10cfcdd51f831c3039e305c1c465a85c93b0b)
2016-03-09 19:13:14 -08:00
Nathan Shively-Sanders
fa22250110
Merge branch 'master' into this-function-types
2016-03-09 13:36:42 -08:00
Nathan Shively-Sanders
4012587808
Update baselines: 'this' in object literal methods
2016-03-09 13:08:09 -08:00
Vladimir Matveev
5d5fee2ef1
Merge pull request #7450 from Microsoft/noImplicitReturnsInAsync
...
unwrap promised typed in async function before doing 'noImplicitRetur…
2016-03-09 12:42:10 -08:00
Anders Hejlsberg
614afb740d
Merge pull request #7448 from Microsoft/optimizeInstantiation
...
Skip unnecessary instatiation of anonymous types
2016-03-09 12:40:32 -08:00
Anders Hejlsberg
4f441bd553
Adding comment to test
2016-03-09 11:37:40 -08:00
Vladimir Matveev
907ce8fb38
unwrap promised typed in async function before doing 'noImplicitReturns' check
2016-03-09 11:23:55 -08:00
Anders Hejlsberg
1d181360cc
Adding tests
2016-03-09 11:03:40 -08:00
Oskar Segersvärd
2e23010437
Add three tests
2016-03-09 18:43:21 +01:00