InternalError: too much recursion

RESOLVED WONTFIX

Status

()

Core
JavaScript Engine
RESOLVED WONTFIX
3 years ago
3 years ago

People

(Reporter: Spandan Veggalam, Unassigned)

Tracking

42 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150629114049

Steps to reproduce:

mozilla-central revision 892594bdad30 (build with: --enable-optimize --enable-posix-nspr-emulation --enable-valgrind --enable-gczeal --enable-debug)

options('strict_mode');
var g = newGlobal();
var dbg = new Debugger(g);
dbg.onEnterFrame = function(f) {
    if (g[0] > 2) return;
    f.eval("1");
};
g.eval("1234");


Actual results:

InternalError: too much recursion 



Expected results:

There is no recursion in this fragment. With strict mode most of times, it results in crash.

Comment 1

3 years ago
There is recursion in this example.

onEnterFrame is called Debugger eval frames as well, so the |f.eval("1")| actually recursively calls the onEnterFrame hook that's set.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
(Reporter)

Updated

3 years ago
Resolution: INVALID → WONTFIX
Spandan, why are you changing the resolution of multiple bugs from INVALID to WONTFIX? As I understand it, WONTFIX means it's a bug which will never be fixed for some reason, but this was not a bug in the first place.
(Reporter)

Comment 3

3 years ago
I was told by a person, that bugs which are not considered for development must be WONTFIX. So thats the reason, changed the status of the '--fuzzing-safe and recursion bugs' reported by me.
That is not untrue, however INVALID means we don't consider something a bug *at all*. WONTFIX means we consider it a bug, but have decided not to fix it for whatever (legitimate) reason.
You need to log in before you can comment on or make changes to this bug.