From c256ea7d71ab1ed208c312fa57a29cc6187b3ce3 Mon Sep 17 00:00:00 2001 From: Catrope Date: Thu, 10 May 2012 12:04:57 -0700 Subject: [PATCH] Fix fatal error in parse.js Trying something trivial like echo 'Hello world' | node parse.js would throw TypeError: Function.prototype.apply: Arguments list has wrong type Change-Id: Ia0a1154b0f3edbfb1f228a1d2072fced1b147141 --- modules/parser/mediawiki.TokenTransformManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/parser/mediawiki.TokenTransformManager.js b/modules/parser/mediawiki.TokenTransformManager.js index c1dcbb844a..7820130258 100644 --- a/modules/parser/mediawiki.TokenTransformManager.js +++ b/modules/parser/mediawiki.TokenTransformManager.js @@ -200,7 +200,7 @@ function AsyncTokenTransformManager ( env, isInclude, pipeFactory, phaseEndRank, this.pipeFactory = pipeFactory; this.phaseEndRank = phaseEndRank; this.attributeType = attributeType; - this.setFrame( null, null, {} ); + this.setFrame( null, null, [] ); this._construct(); }