trifleJS icon indicating copy to clipboard operation
trifleJS copied to clipboard

StackOverflowException returning self-referenced objects to the console.

Open sdesalas opened this issue 10 years ago • 0 comments

stackoverflowerror

STEPS TO REPRODUCE:

  1. Run TrifleJS.exe on REPL (no arguments)
  2. Enter trifle.trifle = trifle
  3. StackOverflowException occurs

MORE INFO:

This issue actually occurs in the Noesis.Javascript.dll dependency, the parameter conversion from V8 to C# does not take infinite recursions into account.

POSSIBLE FIX:

Recurse over objects inside V8 and remove self-references before passing back to C#.

sdesalas avatar Nov 07 '13 00:11 sdesalas