Fix ProgramNode parameter handling under IE
This commit is contained in:
@@ -12,11 +12,13 @@ var AST = {
|
||||
ProgramNode: function(statements, inverseStrip, inverse, locInfo) {
|
||||
var inverseLocationInfo, firstInverseNode;
|
||||
if (arguments.length === 3) {
|
||||
locInfo = inverse;
|
||||
inverse = null;
|
||||
locInfo = arguments[arguments.length - 1];
|
||||
} else if (arguments.length === 2 ) {
|
||||
locInfo = arguments[1];
|
||||
} else if (arguments.length === 2) {
|
||||
locInfo = inverseStrip;
|
||||
inverseStrip = null;
|
||||
}
|
||||
|
||||
LocationInfo.call(this, locInfo);
|
||||
this.type = "program";
|
||||
this.statements = statements;
|
||||
|
||||
Reference in New Issue
Block a user