Fixes to prevent failing tests after merging master
* Add missing quote properties to AST_ObjectKeyVal * Avoid test results being interpret as directives
This commit is contained in:
@@ -1654,6 +1654,7 @@ function parse($TEXT, options) {
|
||||
// It's one of those object destructurings, the value is its own name
|
||||
a.push(new AST_ObjectKeyVal({
|
||||
start: start,
|
||||
quote: start.quote,
|
||||
end: start,
|
||||
key: name,
|
||||
value: new AST_SymbolRef({
|
||||
@@ -1667,6 +1668,7 @@ function parse($TEXT, options) {
|
||||
expect(":");
|
||||
a.push(new AST_ObjectKeyVal({
|
||||
start : start,
|
||||
quote : start.quote,
|
||||
key : name,
|
||||
value : expression(false),
|
||||
end : prev()
|
||||
|
||||
Reference in New Issue
Block a user