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

Separate fn.apply and stringify checks #3444

Closed
wants to merge 1 commit into from

Conversation

misteroneill
Copy link
Member

Description

This fixes #3442 which was introduced by #3356.

IE10 correctly supports console.*.apply, but should also get the "stringification" treatment (because it uselessly logs [object Object] and similar). This avoids an issue where an "Invalid calling object" was triggered when trying to call console method(s) from a cached reference (without a proper context object).

Specific Changes proposed

  • Split out the logic around whether console.*.apply is supported and whether or not arguments should be stringified.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

IE10 correctly supports console.*.apply, but should also get the
stringification treatment (because it uselessly logs "[object Object]"
and similar). This avoids an issue where an "Invalid calling object" was
triggered when trying to call console method(s) from a cached value.
@misteroneill
Copy link
Member Author

Also: I tested (again) this change in all supported IE versions and it worked as expected.

@gkatsev
Copy link
Member

gkatsev commented Jul 19, 2016

LGTM

@gkatsev gkatsev added confirmed patch This PR can be added to a patch release. labels Jul 19, 2016
@gkatsev gkatsev closed this in 5b15feb Jul 20, 2016
@misteroneill misteroneill deleted the fix-3442 branch July 21, 2016 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed patch This PR can be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logByType issue in IE10
2 participants