Skip to content

Commit 6c25579

Browse files
authored
SyntaxError: unexpected token: identifier の説明修正 (#1223)
次の Issue の修正案です。 #1217 `unexpected token: identifier` を直接に表現する意図です。
1 parent 37e5641 commit 6c25579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/basic/read-eval-print/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ console.log(1);
263263
264264
| メッセージ | 意味 |
265265
| -- | -- |
266-
| `SyntaxError: unexpected token: identifier` | エラーの種類は`SyntaxError`で、予期しないものが識別子(変数名)に指定されている |
266+
| `SyntaxError: unexpected token: identifier` | エラーの種類は`SyntaxError`で、予期しない識別子(変数名 `a`)が指定されている |
267267
| `index.js:1:6` | 例外が`index.js`の1行目6列目で発生したこと |
268268

269269
プログラムをパースする際に`index.js:1:6`で予期しない(構文として解釈できない)識別子が見つかったため、構文エラーが発生したという意味になります。

0 commit comments

Comments
 (0)