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
|
// It's one of those object destructurings, the value is its own name
|
||||||
a.push(new AST_ObjectKeyVal({
|
a.push(new AST_ObjectKeyVal({
|
||||||
start: start,
|
start: start,
|
||||||
|
quote: start.quote,
|
||||||
end: start,
|
end: start,
|
||||||
key: name,
|
key: name,
|
||||||
value: new AST_SymbolRef({
|
value: new AST_SymbolRef({
|
||||||
@@ -1667,6 +1668,7 @@ function parse($TEXT, options) {
|
|||||||
expect(":");
|
expect(":");
|
||||||
a.push(new AST_ObjectKeyVal({
|
a.push(new AST_ObjectKeyVal({
|
||||||
start : start,
|
start : start,
|
||||||
|
quote : start.quote,
|
||||||
key : name,
|
key : name,
|
||||||
value : expression(false),
|
value : expression(false),
|
||||||
end : prev()
|
end : prev()
|
||||||
|
|||||||
@@ -73,9 +73,9 @@ typeof_arrow_functions: {
|
|||||||
evaluate: true
|
evaluate: true
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
typeof (x) => null;
|
var foo = typeof (x) => null;
|
||||||
}
|
}
|
||||||
expect_exact: "\"function\";"
|
expect_exact: "var foo=\"function\";"
|
||||||
}
|
}
|
||||||
|
|
||||||
template_strings: {
|
template_strings: {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
parenthesis_strings_in_parenthesis: {
|
parenthesis_strings_in_parenthesis: {
|
||||||
input: {
|
input: {
|
||||||
('(');
|
var foo = ('(');
|
||||||
a(')');
|
a(')');
|
||||||
|
|
||||||
}
|
}
|
||||||
expect_exact: '"(";a(")");'
|
expect_exact: 'var foo="(";a(")");'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user