The Wayback Machine - http://web.archive.org/web/20201029172445/https://github.com/yahoo/serialize-javascript/issues/46
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

extract same refs of object #46

Open
harvey-woo opened this issue Apr 24, 2019 · 0 comments
Open

extract same refs of object #46

harvey-woo opened this issue Apr 24, 2019 · 0 comments

Comments

@harvey-woo
Copy link

@harvey-woo harvey-woo commented Apr 24, 2019

It's very nice if support extracting same refs of object, for example

var obj = {}
serialize({b: obj, c: obj})

get

(function() { var a = {}; return {"b": a, "c": a} })()
harvey-woo added a commit to harvey-woo/serialize-javascript that referenced this issue Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.