aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js
index eba833dc..af631149 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1365,7 +1365,7 @@ function parse($TEXT, options) {
if (type == "name" && !is("punc", ":")) {
var key = new AST_SymbolAccessor({
start: S.token,
- name: as_property_name(),
+ name: "" + as_property_name(),
end: prev()
});
if (name == "get") {
@@ -1391,7 +1391,7 @@ function parse($TEXT, options) {
a.push(new AST_ObjectKeyVal({
start : start,
quote : start.quote,
- key : name,
+ key : "" + name,
value : expression(false),
end : prev()
}));