Qt 4 does not support ECMA5-compatible Function.prototype.apply
markwpiper opened this issue · 1 comments
markwpiper commented
When using Javascript against Qt 4.x Function.prototype.apply does not work correctly with array-like arguments (tested with Qt: 4.8.7 / WebKit: 534.34 / QtWebKit: 2.2.4)
This can result in seeing the JS error message:
"TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply'"
This is fixed in Qt 5.x.
While this is not a capybara-webkit bug, I wanted to document the issue here in case other people see the same issue against Qt 4.x since 4.x is currently still the default Qt installation on Mac homebrew.
This is the same issue described in https://bugs.webkit.org/show_bug.cgi?id=109307
markwpiper commented
Closing since this is fixed in Qt 5.x