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

Not support for Enhanced Object Literals #33

Closed
rainjay opened this issue Nov 29, 2017 · 3 comments · Fixed by #39
Closed

Not support for Enhanced Object Literals #33

rainjay opened this issue Nov 29, 2017 · 3 comments · Fixed by #39

Comments

@rainjay
Copy link

rainjay commented Nov 29, 2017

var obj = {
    foo (a, b) { },
    bar (x, y) {},
    *quux (x, y) {}
}

var serializedObj = serialize(obj)
deserialize(serializedObj)
// will got Uncaught SyntaxError
@okuryu
Copy link
Collaborator

okuryu commented Dec 11, 2017

Sure, patch welcome.

@kwolfy
Copy link
Contributor

kwolfy commented Jul 1, 2018

@okuryu I've sent pr with patch. Check it please

@okuryu
Copy link
Collaborator

okuryu commented Dec 24, 2018

Fixed in #39, and published serialize-javascript@1.6.0. Thanks!

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 a pull request may close this issue.

3 participants