GWicke has uploaded a new change for review.

Change subject: Fix a few OOM errors
......................................................................

Fix a few OOM errors

Async returns with ret.tokens being a string were processed character-wise,
which quickly led to out-of-error conditions.

For now we work around this by wrapping the returned string in an array and
pass it on, but eventually we should investigate the emitters of these
unexpected results.

The switch parser function in particular seemed to emit a chunk which was
forced through toString(), something to investigate later.

No changes in parserTests, but pages like [[:en:Serie A 2011-12]] are now
round-tripping.

Change-Id: I9231f35663313319a17dd7096a7bb0ec91f34a94
---
M js/lib/mediawiki.TokenTransformManager.js
1 file changed, 39 insertions(+), 30 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/73/29873/1
--
To view, visit https://gerrit.wikimedia.org/r/29873
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9231f35663313319a17dd7096a7bb0ec91f34a94
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to