acorn-6to5
Advanced tools
Comparing version 0.9.1-8 to 0.9.1-9
@@ -5,3 +5,3 @@ { | ||
"main": "acorn.js", | ||
"version": "0.9.1-8", | ||
"version": "0.9.1-9", | ||
"maintainers": [ | ||
@@ -8,0 +8,0 @@ { |
@@ -7,2 +7,106 @@ if (typeof exports != "undefined") { | ||
// Pretzel map | ||
test("arr.map(:toUpperCase)", { | ||
type: "Program", | ||
start: 0, | ||
end: 21, | ||
body: [{ | ||
type: "ExpressionStatement", | ||
start: 0, | ||
end: 21, | ||
expression: { | ||
type: "CallExpression", | ||
start: 0, | ||
end: 21, | ||
callee: { | ||
type: "MemberExpression", | ||
start: 0, | ||
end: 7, | ||
object: { | ||
type: "Identifier", | ||
start: 0, | ||
end: 3, | ||
name: "arr" | ||
}, | ||
property: { | ||
type: "Identifier", | ||
start: 4, | ||
end: 7, | ||
name: "map" | ||
}, | ||
computed: false | ||
}, | ||
arguments: [{ | ||
type: "PretzelMapExpression", | ||
start: 8, | ||
end: 20, | ||
callee: { | ||
type: "Identifier", | ||
start: 9, | ||
end: 20, | ||
name: "toUpperCase" | ||
}, | ||
arguments: [] | ||
}] | ||
} | ||
}] | ||
}, { | ||
playground: true | ||
}); | ||
test("arr.map(:toFixed(2))", { | ||
type: "Program", | ||
start: 0, | ||
end: 20, | ||
body: [{ | ||
type: "ExpressionStatement", | ||
start: 0, | ||
end: 20, | ||
expression: { | ||
type: "CallExpression", | ||
start: 0, | ||
end: 20, | ||
callee: { | ||
type: "MemberExpression", | ||
start: 0, | ||
end: 7, | ||
object: { | ||
type: "Identifier", | ||
start: 0, | ||
end: 3, | ||
name: "arr" | ||
}, | ||
property: { | ||
type: "Identifier", | ||
start: 4, | ||
end: 7, | ||
name: "map" | ||
}, | ||
computed: false | ||
}, | ||
arguments: [{ | ||
type: "PretzelMapExpression", | ||
start: 8, | ||
end: 19, | ||
callee: { | ||
type: "Identifier", | ||
start: 9, | ||
end: 16, | ||
name: "toFixed" | ||
}, | ||
arguments: [{ | ||
type: "Literal", | ||
start: 17, | ||
end: 18, | ||
value: 2, | ||
raw: "2" | ||
}] | ||
}] | ||
} | ||
}] | ||
}, { | ||
playground: true | ||
}); | ||
// Memoization assignment operator | ||
@@ -9,0 +113,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3384169
94839