0cf100dcf8
* Add constructor functions to aliasable expressions Fixes #35228, at least the crash. There are still a couple of errors that are probably incorrect. Note that isJSConstructor relies on parent pointers and the ability to merge symbols, so I had to move isAliasSymbolDeclaration (back?) to the checker. * add simple test case * remove errors in test * fix bad merge
15 lines
297 B
TypeScript
15 lines
297 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: es5
|
|
// @outDir: ./out
|
|
// @declaration: true
|
|
// @filename: jsDeclarationsExportAssignedConstructorFunction.js
|
|
/** @constructor */
|
|
module.exports.MyClass = function() {
|
|
this.x = 1
|
|
}
|
|
module.exports.MyClass.prototype = {
|
|
a: function() {
|
|
}
|
|
}
|