-
Notifications
You must be signed in to change notification settings - Fork 161
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
window.Function.constructor should be equal overriden window.Function #913
Comments
I'm working on this |
The problem appears because we override the window.Function object. <script>
var f = function () {
};
switch (f.constructor) {
case Function:
alert('OK');
break;
default:
alert('FAIL');
}
</script> raises As a workaround we can process a |
It seems I've found a fix for this, I'll create a pull request tomorrow |
…ss#913) (DevExpress#929) * the constructor field of a function should return wrapped Function object (closes DevExpress#913) * linting fixed * Update test name * test refactoring
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. |
page: http://todomvc.com/examples/humble
error:
Uncaught Error: interface conversion: interface is map[string]interface {}, not func(...interface {}) *js.Object
reproduced in playground. Tested in Chrome but should be check in other browsers
The text was updated successfully, but these errors were encountered: