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    276           _aIgnoredRules.clear();
   277    277       },
   278    278   
   279    279       reactivateRule: function (sRuleId) {
   280    280           _aIgnoredRules.delete(sRuleId);
   281    281       },
   282    282   
   283         -    listRules: function (sFilter=null) {
          283  +    listRules: function* (sFilter=null) {
   284    284           // generator: returns tuple (sOption, sLineId, sRuleId)
   285    285           try {
   286    286               for (let [sOption, lRuleGroup] of this._getRules(true)) {
   287    287                   for (let [x1, x2, sLineId, sRuleId, x3, x4] of lRuleGroup) {
   288    288                       if (!sFilter || sRuleId.test(sFilter)) {
   289    289                           yield [sOption, sLineId, sRuleId];
   290    290                       }