Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[easy] Don't parse JSON files with strict mode
Summary:Strict mode does indeed address the octals difference between JS objects and JSON, but it also limits the ability to write duplicate properties in JSON (sometimes used as a way of writing comments in JSON). While ES6 does permit duplicate object properties again, ES5 had the restriction -- so rather than removing the error from the parser entirely I figured we'd just stay conservative. I could be swayed here if someone feels strongly about this. Reviewed By: gabelevi Differential Revision: D3207718 fb-gh-sync-id: a1eb27979f3e6599f9a2ed5ffcff557db8b0198e fbshipit-source-id: a1eb27979f3e6599f9a2ed5ffcff557db8b0198e
- Loading branch information