Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

parse error(s) swallowed #33

Closed
JakobJingleheimer opened this issue Mar 18, 2019 · 2 comments
Closed

parse error(s) swallowed #33

JakobJingleheimer opened this issue Mar 18, 2019 · 2 comments

Comments

@JakobJingleheimer
Copy link
Contributor

The loader catches the parse error and then swallows JSON5's error:

// src/index.js:15
  throw new Error('Error parsing JSON5', (e));

This is not valid as the Error constructor takes only 1 argument: message?: string

@alexander-akait
Copy link
Member

@jshado1 thanks for issue, PR welcome

@JakobJingleheimer
Copy link
Contributor Author

JakobJingleheimer commented Mar 18, 2019

Sure, I have a fix locally. I'll send it over tonight.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants