You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/ecma/error.reserved-words.expect.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,18 @@ function useThing(fn) {
24
24
```
25
25
Found 1 error:
26
26
27
-
Error: Expected a non-reserved identifier name
28
-
29
-
`this` is a reserved word in JavaScript and cannot be used as an identifier name.
27
+
Error: `this` is not supported syntax
28
+
29
+
React Compiler does not support compiling functions that use `this`
30
+
31
+
error.reserved-words.ts:8:28
32
+
6 |
33
+
7 | if (ref.current === null) {
34
+
> 8 | ref.current = function (this: unknown, ...args) {
0 commit comments