aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js
index ec82d47d..37f06df7 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1308,6 +1308,10 @@ function parse($TEXT, options) {
});
});
+ var create_accessor = embed_tokens(function() {
+ return function_(AST_Accessor);
+ });
+
var object_ = embed_tokens(function() {
expect("{");
var first = true, a = [];
@@ -1324,7 +1328,7 @@ function parse($TEXT, options) {
a.push(new AST_ObjectGetter({
start : start,
key : as_atom_node(),
- value : function_(AST_Accessor),
+ value : create_accessor(),
end : prev()
}));
continue;
@@ -1333,7 +1337,7 @@ function parse($TEXT, options) {
a.push(new AST_ObjectSetter({
start : start,
key : as_atom_node(),
- value : function_(AST_Accessor),
+ value : create_accessor(),
end : prev()
}));
continue;