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

feat: option to not serialize functions #32

Closed
AndersDJohnson opened this issue Oct 25, 2017 · 4 comments
Closed

feat: option to not serialize functions #32

AndersDJohnson opened this issue Oct 25, 2017 · 4 comments

Comments

@AndersDJohnson
Copy link

No description provided.

@dehypnosis
Copy link

+1+1+1+1

@dehypnosis
Copy link

dehypnosis commented Dec 8, 2017

who guys made any forked version?

Found a cheap workaround for now...

const obj = { func: [Function] };
obj.func.toString = () => null;

serialize(obj); // got no exception

@redonkulus
Copy link
Collaborator

Feel free to open a PR for this change and we can review it.

@AndersDJohnson AndersDJohnson changed the title Support option to not serialize functions feat: option to not serialize functions Jan 1, 2019
@okuryu
Copy link
Collaborator

okuryu commented Sep 4, 2019

The new option ignoreFunction is available in v2.1.0. Thanks!
https://github.com/yahoo/serialize-javascript#optionsignorefunction

@okuryu okuryu closed this as completed Sep 4, 2019
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

No branches or pull requests

4 participants