diff --git a/src/index.js b/src/index.js index bb74a58..dae3fc1 100644 --- a/src/index.js +++ b/src/index.js @@ -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); });