Closed Bug 641742 Opened 13 years ago Closed 5 years ago

Generators break Firebug

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: johnjbarton, Unassigned)

References

Details

(Whiteboard: [firebug-p3])

As far as I am able to tell, calling the magic function "next()" on the object returned by calling a function with the keyword 'yield' causes jsd to stop working properly.

Test Case
http://getfirebug.com/tests/content//branches/1.8/script/yield/simpleGenerator.html

Instructions are the page. 

When get to step 7 I see the following in Firebug tracing:
into interruptHook pc:17 frameLineId: 10110@13^0 vs 10110@13^0 running 10110 of http://getfirebug.com/tests/content//branches/1.8/script/yield/simpleGenerator.html at 13.17
8
		into interruptHook pc:20 frameLineId: 10110@13^0 vs 10110@13^0 running 10110 of http://getfirebug.com/tests/content//branches/1.8/script/yield/simpleGenerator.html at 13.20
9
		into interruptHook pc:23 frameLineId: 10110@13^0 vs 10110@13^0 running 10110 of http://getfirebug.com/tests/content//branches/1.8/script/yield/simpleGenerator.html at 13.23
10
		into interruptHook pc:26 frameLineId: 10110@13^0 vs 10110@13^0 running 10110 of http://getfirebug.com/tests/content//branches/1.8/script/yield/simpleGenerator.html at 13.26
11
		fbs.onError (-5) with this.showStackTrace=false and this.breakOnErrors=false kind=Uncaught-Exception msg=uncaught exception: [object StopIteration]@:0.0

Which means that we hit the interrupt handler 4 times with PC 17, 20, 23, and 26, then the next event is the StopIteration at line 19. No function callbacks seem to appear.
In addition we need special case code to mark the function that creates a Generator so we can special case the debugger for this thing.
Whiteboard: [firebug-p3]
Actually this hardly makes sense to me. After the trace above jsd is working. So I guess another explanation would be "jsd breaks generators".
Blocks: 641436
Component: JavaScript Debugging/Profiling APIs → JavaScript Engine

Firebug is EOL, therefore resolving as Invalid.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.