Skip to content

Commit 339535d

Browse files
authored
Merge pull request #2599 from H2rmone/master
fix(classes): replace [[FunctionKind]] with [[IsClassConstructor]]
2 parents 094b829 + 5f972c8 commit 339535d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/01-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The result of this definition is about the same. So, there are indeed reasons wh
144144

145145
Still, there are important differences.
146146

147-
1. First, a function created by `class` is labelled by a special internal property `[[FunctionKind]]:"classConstructor"`. So it's not entirely the same as creating it manually.
147+
1. First, a function created by `class` is labelled by a special internal property `[[IsClassConstructor]]: true`. So it's not entirely the same as creating it manually.
148148

149149
The language checks for that property in a variety of places. For example, unlike a regular function, it must be called with `new`:
150150

0 commit comments

Comments
 (0)