Grammalecte  Check-in [8029dad20a]

Overview
Comment:[core][js] don’t forget to define the function as generator
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | webext2
Files: files | file ages | folders
SHA3-256: 8029dad20a76bccaff8f212d589af6be9a00f2ad72538445315b429068731bbe
User & Date: olr on 2017-08-04 05:21:27
Other Links: branch diff | manifest | tags
Context
2017-08-04
05:44
[core][js] use strict + remove useless vars + remove warnings check-in: 7aa5eaf131 user: olr tags: core, webext2
05:21
[core][js] don’t forget to define the function as generator check-in: 8029dad20a user: olr tags: core, webext2
05:18
[fx] unknown key in manifest check-in: 4151e87ea3 user: olr tags: fx, webext2
Changes

Modified gc_core/js/lang_core/gc_engine.js from [ff4d262785] to [5d601e4457].

276
277
278
279
280
281
282
283

284
285
286
287
288
289
290
276
277
278
279
280
281
282

283
284
285
286
287
288
289
290







-
+







        _aIgnoredRules.clear();
    },

    reactivateRule: function (sRuleId) {
        _aIgnoredRules.delete(sRuleId);
    },

    listRules: function (sFilter=null) {
    listRules: function* (sFilter=null) {
        // generator: returns tuple (sOption, sLineId, sRuleId)
        try {
            for (let [sOption, lRuleGroup] of this._getRules(true)) {
                for (let [x1, x2, sLineId, sRuleId, x3, x4] of lRuleGroup) {
                    if (!sFilter || sRuleId.test(sFilter)) {
                        yield [sOption, sLineId, sRuleId];
                    }