kevingadd/JSIL — Issue #41: PrintStackTrace send requests to server
Author: matra774
Created: 2011-12-03 02:11:35+00:00
State: open

In the latest version, printStackTrace() function is used when defining interfcaes, types etc. What is the purpuse of this function.

In IE; it sends a ajax requests to unexstings files. The filenames also contains line numbers together with files and for such requests IIS returns 404. Samle urls:

http://localhost/Scripts/JSIL.Bootstrap.js:971
http://localhost/Scripts/JSIL.Bootstrap.js:953
http://localhost/Scripts/JSIL.Bootstrap.js:971

This slows down the page a lot ;-)¸

The only point where __CallStack__ is used is in JSIL.RegisterName (which is called by JSIL.MakeXXX) to notify the user where name was previously defined.

The JS call stack is:

printStackTrace.implementation.ajax() at JSIL.Core.js:242
printStackTrace.implementation.getSource() at JSIL.Core.js:299
printStackTrace.implementation.guessAnonymousFunction() at JSIL.Core.js:322
printStackTrace.implementation.guessAnonymousFunctions() at JSIL.Core.js:311
printStackTrace() at JSIL.Core.js:50
JSIL.MakeInterface() at JSIL.Core.js:1598
(anonymous function)() at JSIL.Linq,%20Version=0.0.0.0,%20Culture=neutral,%20PublicKeyToken=null.js:5

Please note, that line number are probably wrong, because I have added some new functions to JSIL.Core.