TypeScript/tests/cases/conformance
Nathan Shively-Sanders 98ec1e8730
Fix commonjs export= merging (#27368) (#27371)
I'm surprised we haven't seen more of this; I suspect it's because the
mixed `module.exports=` + `export.foo=` pattern isn't that common.
However, it'll happen any time that the exported symbol is unknown;
getCommonJsExportEquals blithely clones unknownSymbol and proceeds to
stick the `exports.foo=` properties onto it.

This causes problems later, because the compiler checks for
unknownSymbol with `===`. The fix is to not stick properties onto a
clone of unknownSymbol. This makes the correct errors appear and removes
the crash.
2018-09-26 12:40:30 -07:00
..
ambient
async Fix prologue order in async function 2018-06-07 13:34:16 -07:00
classes
constEnums
controlFlow Add tests 2018-09-17 13:01:53 -07:00
declarationEmit Use semver ranges 2018-08-28 17:24:02 -07:00
decorators
dynamicImport Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
emitter
enums disallow nan and infinity in enum member 2018-05-04 10:28:59 +08:00
es6 Destructuring declaration prefers type annotation type (#25282) 2018-06-28 10:41:38 -07:00
es7 Allow trailing commas after-rest elements in destructuring 2018-06-04 14:58:30 -07:00
es2017
es2018
es2019/importMeta Specify ESNext module in test. 2018-04-27 18:17:49 -07:00
expressions When --noImplicitAny is enabled, don't report errors suggesting that a 'void' function can be 'new'ed (#26579) 2018-08-21 10:02:02 -07:00
externalModules fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
functions Add tests 2018-09-11 06:43:17 -07:00
interfaces
internalModules
jsdoc Fix crash in use-before-def checking of enum tag (#27350) (#27354) 2018-09-26 09:05:18 -07:00
jsx Support LibraryManagedAttributes<TComponent, TAttributes> JSX namespace type (#24422) 2018-06-29 18:45:29 -07:00
moduleResolution Use semver ranges 2018-08-28 17:24:02 -07:00
parser Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
references
salsa Fix commonjs export= merging (#27368) (#27371) 2018-09-26 12:40:30 -07:00
scanner include leading non-ASCII horizontal whitespace in SyntaxKind.WhitespaceTrivia token 2018-08-25 13:15:56 -04:00
statements add grammar check for labeled declaration (#25317) 2018-07-18 15:37:27 -06:00
Symbols
types Merge pull request #27271 from Microsoft/fix24570-3 2018-09-21 12:28:18 -07:00
typings
fixSignatureCaching.ts Property assignments in Typescript (#26368) 2018-08-15 15:25:25 -07:00