Closed fauna5 closed 9 years ago
Do we know when this is getting fixed? We just ran into the issue again.
@janhancic no timings ATM. I've added https://github.com/BladeRunnerJS/brjs/issues/935 (which covers several issues in Topiarist) to our 1.0 release milestone.
Hi @fauna5, I was unable to replicate this issue using exactly the code you provided. Can you see what I might have done wrong?
@janhancic, I don't suppose you know how to replicate this issue as the code provided by @fauna5 doesn't seem to work for me.
That's odd. Are you testing on IE8? I don't have any code handy that would trigger that bug right now. And unfortunately don't have the time to digg it up.
Yes, I tested it in IE8. Well, let us know if you encounter it again. :)
This could be related to http://yourls.caplin.com/c where there is a stack overflow in IE8 for modules with dependencies chains deeper than 12.
A comment from the internal related issue:
In bootstrap.js
, the mergePackageBlock
and requireAll
functions are appended to the window object.
In IE8, functions on the window object are limited to 12 calls in a single call stack. This means any modules with a dependency chain of 13 or greater depth will cause a maximum call stack error, as requireAll will be called 13 or more times.
I have spoken to @fauna5 and seeing as how we could not reproduce the failure, this will be closed as a non-issue.
The code example works fine in all other IEs and chrome, firefox. However in IE8 it throws an error. Whilst it is a wierd inheritance hierarchy, the inconsistency in IE8 is something a developer can spend ages trying to work out.
Switching these two lines: topiarist.extend(test.ClassImplementor, test.Class); topiarist.inherit(test.ClassImplementor, test.CommonImplement);
to topiarist.extend(test.ClassImplementor, test.CommonImplement); topiarist.inherit(test.ClassImplementor, test.Class);
fixes the issue. Again painful to work out on your own.