https://github.com/Microsoft/TypeScript
Revision 1cfab760e14e9f291c7176d95f81d716dc3dd37d authored by Nathan Shively-Sanders on 08 October 2018, 17:01:04 UTC, committed by GitHub on 08 October 2018, 17:01:04 UTC
`@constructor` put on anything incorrectly makes it a JS constructor. This
is a problem for actual constructors, because getJSClassType doesn't
work on actual classes. The fix is to make isJSConstructor require that
its declaration is a function.
1 parent 95dc1f2
History
Tip revision: 1cfab760e14e9f291c7176d95f81d716dc3dd37d authored by Nathan Shively-Sanders on 08 October 2018, 17:01:04 UTC
Only functions can be constructor functions (#27369)
Tip revision: 1cfab76
File Mode Size
.github
.vscode
bin
doc
lib
scripts
src
tests
.editorconfig -rw-r--r-- 188 bytes
.gitattributes -rw-r--r-- 42 bytes
.gitignore -rw-r--r-- 2.0 KB
.gitmodules -rw-r--r-- 2.0 KB
.mailmap -rw-r--r-- 18.6 KB
.npmignore -rw-r--r-- 312 bytes
.npmrc -rw-r--r-- 18 bytes
.travis.yml -rw-r--r-- 407 bytes
AUTHORS.md -rw-r--r-- 6.0 KB
CONTRIBUTING.md -rw-r--r-- 9.3 KB
CopyrightNotice.txt -rw-r--r-- 819 bytes
Gulpfile.js -rw-r--r-- 26.6 KB
Jakefile.js -rw-r--r-- 33.4 KB
LICENSE.txt -rw-r--r-- 9.0 KB
README.md -rw-r--r-- 4.8 KB
ThirdPartyNoticeText.txt -rw-r--r-- 36.9 KB
package.json -rw-r--r-- 3.5 KB
tslint.json -rw-r--r-- 4.7 KB

README.md

back to top