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

parse '{}' instead of empty object in app.js to avoid SyntaxError #1204

Merged
merged 1 commit into from
Apr 17, 2018

Conversation

dunxtand
Copy link
Contributor

What?

Right now, if no contextJSON argument is passed to the stencilBootstrap function, JSON.parse will try to parse an empty object, which will throw a SyntaxError because the argument supplied is not a string.

Tickets / Documentation

N/A

Screenshots (if appropriate)

N/A

@bigbot
Copy link

bigbot commented Apr 17, 2018

Autotagging @bigcommerce/storefront-team @davidchin

@mattolson mattolson merged commit d55344e into bigcommerce:master Apr 17, 2018
Ubersmake added a commit that referenced this pull request Apr 23, 2018
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.

None yet

3 participants