Overview
| Comment: | [core][js] remove useless logs |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | core |
| Files: | files | file ages | folders |
| SHA3-256: |
8beaa4879a35b33f415aacf05609e6fc |
| User & Date: | olr on 2017-09-19 11:36:24 |
| Other Links: | manifest | tags |
Context
|
2017-09-20
| ||
| 05:11 | [fr] pt: prendre contact check-in: 22e0a299c6 user: olr tags: trunk, fr | |
|
2017-09-19
| ||
| 11:36 | [core][js] remove useless logs check-in: 8beaa4879a user: olr tags: trunk, core | |
| 11:34 | [core][fx][js] Binary dictionary as a hexadecimal string instead of a list of integers (JavaScript crap again: Mozilla’s parser can’t deal with file bigger than 4 Mb) check-in: 9b380a48ce user: olr tags: trunk, core, fx | |
Changes
Modified gc_core/js/ibdawg.js from [5baf4dbff2] to [cbe1b04772].
| ︙ | ︙ | |||
38 39 40 41 42 43 44 |
/*
Bug workaround.
Mozilla’s JS parser sucks. Can’t read file bigger than 4 Mb!
So we convert huge hexadecimal string to list of numbers…
https://github.com/mozilla/addons-linter/issues/1361
*/
| < < | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
/*
Bug workaround.
Mozilla’s JS parser sucks. Can’t read file bigger than 4 Mb!
So we convert huge hexadecimal string to list of numbers…
https://github.com/mozilla/addons-linter/issues/1361
*/
let lTemp = [];
for (let i = 0; i < this.byDic.length; i+=2) {
lTemp.push(parseInt(this.byDic.slice(i, i+2), 16));
}
this.byDic = lTemp;
/* end of bug workaround */
if (!this.sHeader.startsWith("/pyfsa/")) {
throw TypeError("# Error. Not a pyfsa binary dictionary. Header: " + this.sHeader);
}
if (!(this.nVersion == "1" || this.nVersion == "2" || this.nVersion == "3")) {
throw RangeError("# Error. Unknown dictionary version: " + this.nVersion);
|
| ︙ | ︙ |