Remove block around initialize code

* In strict mode code, functions can only be declared at top level or
   immediately within another function.  This means functions defined in
   the initializer would throw.
redux
Arlo Breault 9 years ago
parent b079a056a2
commit 7285ccfd4e

@ -1147,7 +1147,7 @@ function generateJavascript(ast, options) {
} }
if (ast.initializer) { if (ast.initializer) {
parts.push(indent4("{" + ast.initializer.code + "}")); parts.push(indent4(ast.initializer.code));
parts.push(''); parts.push('');
} }

@ -4893,7 +4893,7 @@ module.exports = (function() {
return s0; return s0;
} }
{
var OPS_TO_PREFIXED_TYPES = { var OPS_TO_PREFIXED_TYPES = {
"$": "text", "$": "text",
"&": "simple_and", "&": "simple_and",
@ -4940,7 +4940,7 @@ module.exports = (function() {
function buildList(first, rest, index) { function buildList(first, rest, index) {
return [first].concat(extractList(rest, index)); return [first].concat(extractList(rest, index));
} }
}
peg$result = peg$startRuleFunction(); peg$result = peg$startRuleFunction();

Loading…
Cancel
Save