This project is read-only.

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


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);

file attachments


oliverbock wrote Jan 11, 2013 at 5: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 22, 2013 at 12:54 AM

Viamo wrote Apr 19, 2015 at 6: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 6:33 PM