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

Script processing hungs for multiple left-hand function assignment case #866

Closed
georgiy-abbasov opened this issue Oct 17, 2016 · 8 comments
Assignees
Labels
!IMPORTANT! STATE: Auto-locked Issues that were automatically locked by the Lock bot TYPE: bug
Milestone

Comments

@georgiy-abbasov
Copy link
Contributor

It's reproducing in all browsers in hammerhead-playground
http://screencast.com/t/5ROkcM3Fety

@churkin churkin added this to the Sprint #1 milestone Oct 18, 2016
@miherlosev
Copy link
Contributor

I'm working on this

@miherlosev miherlosev self-assigned this Oct 28, 2016
@miherlosev
Copy link
Contributor

Unhandled error inside processScript.

Script for reproduce:

var b = {};
b.onerror = b.onload = function (a) {
    location = a;
};

Call stack:

TypeError: ExprGen[$expr.type] is not a function
    at exprToJs (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:2005:24)
    at Object.generateExpressionStatement [as ExpressionStatement] (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:1657:22)
    at Object.generateBlockStatement [as BlockStatement] (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:1490:32)
    at generateFunctionBody (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:643:28)
    at Object.generateFunctionExpression [as FunctionExpression] (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:1205:9)
    at Object.generateCallExpression [as CallExpression] (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:1058:31)
    at Object.generateCallExpression [as CallExpression] (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:1058:31)
    at run (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:2028:92)
    at generate (C:\Hammerhead_github\lib\processing\script\tools\esotope.js:2114:12)
    at getCode (C:\Hammerhead_github\lib\processing\script\index.js:89:38)

@churkin churkin self-assigned this Oct 31, 2016
@miherlosev miherlosev removed their assignment Oct 31, 2016
@churkin churkin modified the milestones: Sprint #2, Sprint #1 Nov 2, 2016
@miherlosev miherlosev modified the milestones: Sprint #3, Sprint #2 Dec 1, 2016
@LavrovArtem LavrovArtem assigned LavrovArtem and unassigned churkin Dec 23, 2016
LavrovArtem added a commit to LavrovArtem/testcafe-hammerhead that referenced this issue Dec 23, 2016
@mathieudutour
Copy link

Any idea about when this fix will get published?

@AlexanderMoskovkin
Copy link
Contributor

The fix will be included in the next TestCafe version (0.12.0), we plan to publish it in the next one-two weeks. But we can publish a daily-build version with the fix today.

@mathieudutour
Copy link

That'd be awesome 👍

@AlexanderMoskovkin
Copy link
Contributor

Ok, will do it soon, I'll notify you

@churkin
Copy link
Contributor

churkin commented Jan 9, 2017

@mathieudutour I have published new testcafe release https://github.com/DevExpress/testcafe/releases/tag/v0.12.0-alpha4 that contains this fix.

@miherlosev miherlosev changed the title Browsers get stuck while searching on 'http://yahoo.com' Script processing hung for multiple left-hand function assignment Jan 12, 2017
@miherlosev miherlosev changed the title Script processing hung for multiple left-hand function assignment Script processing hung for multiple left-hand function assignment case Jan 12, 2017
@churkin churkin changed the title Script processing hung for multiple left-hand function assignment case Script processing hungs for multiple left-hand function assignment case Jan 19, 2017
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this issue Feb 28, 2019
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked Issues that were automatically locked by the Lock bot label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
!IMPORTANT! STATE: Auto-locked Issues that were automatically locked by the Lock bot TYPE: bug
Projects
None yet
Development

No branches or pull requests

6 participants