Skip to content

Commit db66f7f

Browse files
committed
{fix} support {} in destructuring
1 parent 0f96f97 commit db66f7f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.yarn/versions/82bbe188.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
releases:
2+
"@ngx-playwright/test": patch

packages/test/src/parse-arguments.js

+5
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ function _getDestructuredArguments(fn) {
134134
const args = [];
135135

136136
maybeConsume(WHITESPACE);
137+
138+
if (maybeConsume("}")) {
139+
return /** @type {any} */ (args);
140+
}
141+
137142
// eslint-disable-next-line no-constant-condition
138143
while (true) {
139144
if (peek() === ".") {

0 commit comments

Comments
 (0)