Skip to content

Make error handling environment agnostic #9

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arnaudjuracek
Copy link

The only thing preventing this library to be used in a browser environment seems to be the process.exit used to throw an error when a SVG command is not recognised, because the process API is not available in the browser environment.

Instead of terminating the process, throwing an error allows the user to choose its own method of handling the error, and avoid using the process API.

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 this pull request may close these issues.

1 participant