diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-11-10 19:19:58 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-10 18:11:26 +0000 |
commit | d5f637fa215ecc8b33b0b0b8592defc735fb3b80 (patch) | |
tree | be855610810496d5488ab8d2e80c484809c149b4 /Userland/Libraries/LibJS/Tests/syntax | |
parent | ad5061bb7a7d020bcea4f0c361600091ac5b9f62 (diff) | |
download | serenity-d5f637fa215ecc8b33b0b0b8592defc735fb3b80.zip |
LibJS: Do not parse async methods with a new line after the "async"
This was already checked in normal function expressions, but was
missing for Object Expressions.
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/syntax')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/syntax/async-await.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Tests/syntax/async-await.js b/Userland/Libraries/LibJS/Tests/syntax/async-await.js index 6173c7d05a..33224aa86d 100644 --- a/Userland/Libraries/LibJS/Tests/syntax/async-await.js +++ b/Userland/Libraries/LibJS/Tests/syntax/async-await.js @@ -16,7 +16,7 @@ describe("parsing object literal async functions", () => { test("simple", () => { expect(`x = { async foo() { } }`).toEval(); expect(`x = { async - foo() { } }`).toEval(); + foo() { } }`).not.toEval(); }); test("await expression", () => { expect(`x = { foo() { await bar(); } }`).not.toEval(); |