From 348fd9e7d04405919aaa7fa6ddafd54fac16174f Mon Sep 17 00:00:00 2001 From: Archkon <180910180+Archkon@users.noreply.github.com> Date: Sun, 28 Sep 2025 00:47:19 +0800 Subject: [PATCH] remove invalid JS according to newest spec which will cause SyntaxError: The left-hand side of a for-of loop may not be 'async' refer to https://tc39.es/ecma262/#sec-for-in-and-for-of-statements --- js-quirks.md | 1 - 1 file changed, 1 deletion(-) diff --git a/js-quirks.md b/js-quirks.md index 20c621c92..8e334f461 100644 --- a/js-quirks.md +++ b/js-quirks.md @@ -361,7 +361,6 @@ to make it a little less confusing.) ```js for (async of => {};;) {} - for (async of []) {} ``` In the first line, `async` is a keyword and `of` is an identifier;