1999 Commits

Author SHA1 Message Date
Andrew Casey
76c7336bea Add @checkJs: true to JS bind error tests 2017-06-02 13:30:32 -07:00
Andrew Casey
1576f96a47 Add regression tests
Report unreachable code in JS files when --checkjs is passed, but not
otherwise.
2017-06-02 13:30:32 -07:00
Nathan Shively-Sanders
3831804cdf Test:reference ambient block scoped vars in different file 2017-05-11 12:37:49 -07:00
Nathan Shively-Sanders
7b660c8f36 Test: no declare in declaration tmp in namespace 2017-05-10 12:45:48 -07:00
Nathan Shively-Sanders
1e39e6c32c Clean up test a little 2017-05-08 13:37:44 -07:00
Nathan Shively-Sanders
a11e0a7bcf Update test with trickier case from #15616 2017-05-08 13:37:38 -07:00
Ron Buckton
e3d54c3b47 Add check for tslib __await helper 2017-05-04 14:02:08 -07:00
Nathan Shively-Sanders
53c1caaf60 Test:index constraint check on js class expression 2017-05-04 13:01:34 -07:00
Ron Buckton
8531b7ae9f Do not rename references to class inside of the class body function 2017-05-01 10:43:38 -07:00
Nathan Shively-Sanders
f3737dd97a Test ES2015 transform of accessors w/captured this 2017-05-01 10:42:41 -07:00
Anders Hejlsberg
85d4593033 Add regression test 2017-04-22 17:09:20 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Ron Buckton
6c176138ca Fix loop block scope binding in generator 2017-04-19 17:06:12 -07:00
Nathan Shively-Sanders
a8593996f9 Merge pull request #15258 from Microsoft/mergeSymbol-uses-first-decl-not-valueDecl
mergeSymbol uses first declaration, not valueDeclaration
2017-04-19 08:47:43 -07:00
Mohamed Hegazy
8c33a792b3 Do not query for bind errors if skipLibCheck or skipDefaultLibCheck is set 2017-04-18 16:19:58 -07:00
Nathan Shively-Sanders
eba15f41e4 Test:type alias merged w/interface-namespace errors
Previously it crashed when it assumed valueDeclaration was always
defined.
2017-04-18 16:19:05 -07:00
Nathan Shively-Sanders
2e43c869b4 Merge pull request #15257 from Microsoft/unknown-properties-are-assignable-to-Object-in-union
Unknown properties are assignable to `Object` in union
2017-04-18 15:21:46 -07:00
Nathan Shively-Sanders
8ab22217c1 Test:Unknown properties are assignable to Object in union
Add test and accept baselines
2017-04-18 14:58:27 -07:00
Mohamed Hegazy
6de4693118 Merge pull request #15240 from Microsoft/fixCrashFindingLocals
Check if container has locals before looking up properties
2017-04-18 14:40:26 -07:00
Mohamed Hegazy
e6ecfa46f0 Merge pull request #15229 from Microsoft/Fix15220
Fix #15220: Check for file on diagnostics before getting line map
2017-04-18 14:39:54 -07:00
Mohamed Hegazy
b7c416cdeb Check if container has locals before looking up properties 2017-04-17 16:26:49 -07:00
Nathan Shively-Sanders
aaf861af96 Remove TODO from test now that it's done 2017-04-17 15:25:36 -07:00
Nathan Shively-Sanders
42ac23a585 Test: typeof can refer to block-scoped var before declaration 2017-04-17 15:20:36 -07:00
Mohamed Hegazy
4546b0dd8e Make sure we have a node for the error in cases of special property assignment 2017-04-17 13:15:27 -07:00
Nathan Shively-Sanders
e5416b5dcc Merge pull request #15075 from Microsoft/fix-exponential-expanding-array-assignment
Evolving array element type ignores contextual type
2017-04-17 08:26:06 -07:00
Nathan Shively-Sanders
959187607d serializeTypeNode handles object
This was just overlooked earlier.
2017-04-14 09:28:31 -07:00
Nathan Shively-Sanders
d53b3ac43c Merge pull request #15032 from Microsoft/fix-anon-class-this-reference-caching
Do not walk up control flow containers for `this`
2017-04-13 15:10:01 -07:00
Nathan Shively-Sanders
8a599f662f Merge pull request #14090 from Microsoft/es5-emit-param-initialiser-before-object-rest
ES5:Emit parameter initialiser before object rest destructuring
2017-04-13 13:43:13 -07:00
Nathan Shively-Sanders
b2199bd23c Test:order of directives, initialisers, object spread destructuring 2017-04-13 10:35:50 -07:00
Anders Hejlsberg
014845a637 Merge pull request #15057 from Microsoft/fixExcessPropertyCheck
Fix excess property check
2017-04-12 15:54:32 -10:00
Nathan Shively-Sanders
11f715c724 Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Nathan Shively-Sanders
1671a06655 Test: object literal assignments->expanding arrays
Previously, the compiler would run out of memory for more than 13 or 14
of these assignments.
2017-04-07 11:14:16 -07:00
Anders Hejlsberg
69c30a0126 Add regression tests 2017-04-06 12:57:03 -07:00
Nathan Shively-Sanders
3029b8fe38 Merge pull request #14935 from Microsoft/allow-extending-from-any
Allow extending from any
2017-04-06 09:18:01 -07:00
Nathan Shively-Sanders
f635042255 Improve test and comments
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00
Nathan Shively-Sanders
6879bc1ea1 Test that spread removes readonly from properties 2017-04-05 13:45:51 -07:00
Nathan Shively-Sanders
e09533d19d Update test comments to match property names 2017-04-05 13:08:21 -07:00
Yui
8941e5f7b0 Merge pull request #15006 from Microsoft/master-14895
[Master] Emit parenthesis around propert/element access expression of casted object literal expression
2017-04-05 13:03:24 -07:00
Nathan Shively-Sanders
db3431e3af Add this narrowing test and update previous test 2017-04-05 11:06:14 -07:00
Kanchalai Tanglertsampan
33524bd18c Update test and baseline 2017-04-05 10:26:28 -07:00
Ron Buckton
41fb0aaf6c Merge pull request #14995 from Microsoft/cleanupLiteralEmit
Clean up literal emit
2017-04-04 22:10:46 -07:00
Anders Hejlsberg
9d2b57ad9e Merge pull request #15011 from Microsoft/limitDeepInstantiations
Limit deep generic type instantiations
2017-04-04 20:28:33 -07:00
Anders Hejlsberg
90648fd9eb Merge pull request #14991 from Microsoft/fixTypeRelationStackOverflow
Fix type relation stack overflow
2017-04-04 20:28:16 -07:00
Anders Hejlsberg
68ab129fac Add regression test 2017-04-04 14:53:48 -07:00
Nathan Shively-Sanders
4214aed37d Test:static inits can refer to later static methods 2017-04-04 14:50:42 -07:00
Kanchalai Tanglertsampan
0a194f91a0 Emit parenthesis around propert/element access expression of casted object literal expression 2017-04-04 11:15:03 -07:00
Nathan Shively-Sanders
013d52a44d Merge pull request #14952 from Microsoft/fix-scope-checks-of-class-properties
Fix scope checks of class properties
2017-04-04 08:45:31 -07:00
Andy Hanson
24b09d8502 Only bind JSDoc typedefs in JavaScript files 2017-04-03 15:00:40 -07:00
Ron Buckton
fd081f40a8 Clean up literal emit 2017-04-03 14:17:03 -07:00
Anders Hejlsberg
545a7f2987 Merge branch 'master' into fixTypeRelationStackOverflow
# Conflicts:
#	tests/baselines/reference/mappedTypeRelationships.errors.txt
2017-04-03 12:46:04 -07:00