Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

decamelizeKeys fails in chrome 51 #38

Closed
bdwain opened this issue May 11, 2017 · 3 comments
Closed

decamelizeKeys fails in chrome 51 #38

bdwain opened this issue May 11, 2017 · 3 comments

Comments

@bdwain
Copy link

bdwain commented May 11, 2017

I'm not totally sure if this is a bug in chrome 51 or in this library, but in chrome 52, i get this result

window.humps.decamelizeKeys({fooBar: 123})
Object {foo_bar: 123}

and in chrome 51, i get this

window.humps.decamelizeKeys({fooBar: 123})
Object {foobar: 123}

chrome 50 seems fine so it's just 51

@bdwain
Copy link
Author

bdwain commented May 11, 2017

i actually think this is something else related to my setup. sorry for the confusion.

@bdwain bdwain closed this as completed May 11, 2017
@IcyFermion
Copy link

I've encountered the same issue, wonder how you fixed if?

@bdwain
Copy link
Author

bdwain commented Jul 22, 2017

@IcyFermion assuming you are running into the same issue, it was addressed here mishoo/UglifyJS#1964

the latest version of uglifyjs should fix it. if not, you need to turn off the reduce_vars option

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants