kevingadd/JSIL — Issue #70: Wrong interface order declaration on generated JS
Author: sejerpz
Created: 2012-02-15 16:01:30+00:00
State: open

On linux with mono the js debugger of chrome complains about missing interfaces (usually is ISerializable) in mscorlib assembly JS file.

What happens is that the interface is defined in the bottom of the file, but it's used before the script reach the definition (e.g. when defining the Delegate class).
Maybe there's a problem in DeclareType ( https://github.com/kevingadd/JSIL/blob/master/JSIL/AssemblyTranslator.cs#L630 ), because it writes the required JS code but it doesn't respect the dependency order of classes and interfaces.

N.B.
I managed to reproduce this bug on linux with mono (= modified JSIL sources by me), but not on windows, so maybe this bug was introduced by myself ;)

On a side note is there an IRC channel for JSIL? It would be easier to discuss this type of things.