Some snapshot-specific fixes/improvements.

This commit is contained in:
atanasovg
2016-01-22 11:20:54 +02:00
parent f930914fa8
commit f5eb34466e
3 changed files with 44 additions and 11 deletions

View File

@ -83,6 +83,11 @@ function _generateAmpMap(): any {
return ampCodes;
}
// android-specific implementation, which pre-populates the map to get it saved into the heap blob
if (global.__snapshot) {
_ampCodes = _generateAmpMap();
}
function _HandleAmpEntities(found: string, decimalValue: string, hexValue: string, wordValue: string): string {
if (wordValue) {