From 94eb5a5e20edf853e8aeac53b69d87d0ae25fae0 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Fri, 29 Apr 2016 18:16:47 -0400 Subject: [PATCH] Use null-prototype objects --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });