Skip to content

Commit

Permalink
Merge pull request #2 from taion/null-prototype
Browse files Browse the repository at this point in the history
Use null-prototype objects
  • Loading branch information
taion committed Apr 29, 2016
2 parents b4137fc + 94eb5a5 commit 08621ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function parseLiteral(ast) {
case Kind.FLOAT:
return parseFloat(ast.value);
case Kind.OBJECT: {
const value = {};
const value = Object.create(null);
ast.fields.forEach(field => {
value[field.name.value] = parseLiteral(field.value);
});
Expand Down

0 comments on commit 08621ce

Please sign in to comment.