2
Vote

An unhandled exception of type 'System.StackOverflowException' occurred in Noesis.Javascript.dll

description

I got this error when compile my project, could you please give me some advises?
I have attached my JS file, and my codes are very simple as bellow:
        using (JavascriptContext context = new JavascriptContext())
        {
            context.SetParameter("window", new SystemConsole());

            string spath = @"D:\Workshop\Noesis.Javascript v0.7 - Binaries\Sample\WindowsFormsApplication1\WindowsFormsApplication1\JS\sjcl.rsa.core.js";
            sJs = System.IO.File.ReadAllText(spath);
            context.Run(sJs); 
        }

file attachments

comments

oliverbock wrote Jan 11, 2013 at 4:00 AM

It probably is what it says it is - a stack overflow. Either it is due to a bug in JavaScript.NET or it is because there is actually a stack overflow in your script.

Try a one-line script to see if that works. If so then you will need to work out which bit of the script is the problem.

wrote Feb 21, 2013 at 11:54 PM

Viamo wrote Apr 19, 2015 at 5:31 PM

This code also throw System.StackOverflowException
Object.prototype.Set = function(){};
And this
var a = {};
var b = {};
a.b = b;
b.a = a;
And this
var a = {};
a.a = a;

wrote Apr 19, 2015 at 5:33 PM