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

ignore the functions #9

Open
tevel opened this issue Apr 7, 2018 · 3 comments
Open

ignore the functions #9

tevel opened this issue Apr 7, 2018 · 3 comments

Comments

@tevel
Copy link

tevel commented Apr 7, 2018

Please take a look at this problem:
sveltejs/sapper#230

It would be great to be able ignore functions instead of throwing exception

@aldarund
Copy link

@Rich-Harris do u consider option to ignore functions/symbols and throw warning instead of error or its wont be in this lib by design?

@Rich-Harris
Copy link
Owner

It's by design. For the use case that this library is intended for, there's no point in serializing values with less than 100% fidelity

@coyotte508
Copy link

@tevel you can do:

Object.defineProperty(store, "t", {enumerable: false, configurable: true, value: t});

It won't be transferred.

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