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

[Bugfix beta] Prevent Ember from erroring when the errorThrown property ... #10215

Merged
merged 1 commit into from
Jan 14, 2015

Conversation

bmac
Copy link
Member

@bmac bmac commented Jan 14, 2015

... is a sting literal

This can happen when Ember Data receives an ajax request with an error code and a response string such as 401 and "Unauthorized". See emberjs/data#2694

It appears on Chrome and Safari if you attempt to assign a property to a string literal in strict mode you will get a type error. According to this V8 issue this is per spec. https://code.google.com/p/v8/issues/detail?id=3725

stefanpenner added a commit that referenced this pull request Jan 14, 2015
[Bugfix beta] Prevent Ember from erroring when the errorThrown property ...
@stefanpenner stefanpenner merged commit c0f38aa into emberjs:master Jan 14, 2015
@bmac bmac deleted the assign-to-string-error branch January 14, 2015 16:40
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.

2 participants