Open Bug 1105756 Opened 11 years ago Updated 3 years ago

yielding a generator rejecting a promise does not fail a test

Categories

(Toolkit :: Async Tooling, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: tomasz, Unassigned)

Details

Attachments

(2 files)

Attached file browser_test_wrong.js
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 Build ID: 20141115160330 Steps to reproduce: See the attached test file. yielding a generator should be the same as yielding a generator wrapped in a Task.spawn. But it isn't. This causes hidden errors in tests (?). Actual results: Test passes. Expected results: Test should fail.
Attached file browser_test.js
This test works as expected.
The reason I expect those two to work the same is hg.mozilla.org/mozilla-central/file/cef590a6f946/toolkit/modules/Task.jsm#l73.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: