https://bugzilla.wikimedia.org/show_bug.cgi?id=35814

       Web browser: ---
             Bug #: 35814
           Summary: Uncaught RangeError: Maximum call stack size exceeded
                    when loading ResourceLoader module with many
                    dependencies
           Product: MediaWiki
           Version: 1.19
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I am trying to build modular client-side code for my extension with
ResourceLoader. When there were less chains of modules, I was able to sort out
my JS prototypes. Now I am having trouble with many modules. An attempt of
loading module causes the following error in Chrome console:

Uncaught RangeError: Maximum call stack size exceeded

without providing any info, which module causes it. No code line, no stack
trace is available.

Is it possible to maintain separate virtual call stack of module dependencies
in ResourceLoader to limit the recursion in ResourceLoader gracefully with more
explanative diagnostic message? I cannot even get with console.log() at the
start of each module, it doesn't get there (RangeError happens before my
console.log() prints).

I hope to get advice from ResourceLoader / JS guru, if possible. Maybe the
correct way to debug the dependence chains (I've checked them few times, yet
the recursion is still infinite).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to