Commit 1cfab76
authored
Only functions can be constructor functions (#27369)
`@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 commit 1cfab76
File tree
4 files changed
+61
-6
lines changed- src/compiler
- tests
- baselines/reference
- cases/conformance/jsdoc
4 files changed
+61
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20284 | 20284 | | |
20285 | 20285 | | |
20286 | 20286 | | |
20287 | | - | |
| 20287 | + | |
| 20288 | + | |
| 20289 | + | |
| 20290 | + | |
| 20291 | + | |
| 20292 | + | |
| 20293 | + | |
20288 | 20294 | | |
20289 | 20295 | | |
20290 | 20296 | | |
20291 | 20297 | | |
20292 | | - | |
20293 | | - | |
20294 | | - | |
20295 | | - | |
| 20298 | + | |
20296 | 20299 | | |
20297 | 20300 | | |
20298 | | - | |
20299 | 20301 | | |
20300 | 20302 | | |
20301 | 20303 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments