Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fails on ES6 method syntax in ClientFunction arguments (closes #1279) #1280

Merged
merged 3 commits into from
Mar 2, 2017

Conversation

inikulin
Copy link
Contributor

@inikulin inikulin commented Mar 1, 2017

Copy link
Contributor

@AndreyBelym AndreyBelym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 404633b have passed. See details:

Copy link
Collaborator

@kirovboris kirovboris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/r-

@@ -7,6 +7,7 @@ import { ClientFunctionAPIError } from '../../errors/runtime';
import MESSAGE from '../../errors/runtime/message';

const ANONYMOUS_FN_RE = /^function\*?\s*\(/;
const ES6_OBJ_METHOD_NAME_RE = /^([A-Za-z\*\$]+)\s*\(/;
Copy link
Collaborator

@kirovboris kirovboris Mar 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this regex too weak for function name, e.g. you can use _ or numbers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@kirovboris
Copy link
Collaborator

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 8216927 have failed. See details:

@kirovboris
Copy link
Collaborator

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 8216927 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 8216927 have passed. See details:

@inikulin inikulin merged commit 0f8b559 into DevExpress:master Mar 2, 2017
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this pull request Dec 18, 2019
…vExpress#1279) (DevExpress#1280)

* Fix fails on ES6 method syntax in ClientFunction arguments (closes DevExpress#1279)

* Fix ES6 method determination

* Use other solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants