Closed Bug 1148759 Opened 10 years ago Closed 10 years ago

Printing a promise result of generator ceases the execution

Categories

(DevTools :: Console, defect)

36 Branch
x86_64
Linux
defect
Not set
major

Tracking

(firefox36 affected, firefox37 ?, firefox38 ?, firefox39 ?, firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox36 --- affected
firefox37 --- ?
firefox38 --- ?
firefox39 --- ?
firefox40 --- fixed

People

(Reporter: czerny.jakub, Assigned: fitzgen)

References

Details

(Keywords: regression)

Attachments

(2 files)

Attached file demo.js
First two block in attachment works ok. The last (third) block prints just > "before" but node.js (0.12 with --harmony flag) outputs > before > { value: {}, done: false } > after > { value: undefined, done: true } as expected. I.e. line > console.log(result); ceases the execution.
Component: General → JavaScript Engine
Product: Firefox → Core
Following error is shown in browser console. TypeError: this.objectActor.preview is undefined > let { ownProperties, safeGetterValues } = this.objectActor.preview; Last good revision: 77b00f3cc7c7 First bad revision: 2add539cd09a Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=77b00f3cc7c7&tochange=2add539cd09a maybe a regression from bug 1033153? it adds the code. https://hg.mozilla.org/mozilla-central/rev/2548cc70c191
Flags: needinfo?(nfitzgerald)
Simpler testcase: console.log({ x: Promise.resolve() }); So basically the problem is in prettyprinting an object with a property value that's a Promise.
Blocks: 1033153
Component: JavaScript Engine → Developer Tools: Console
Keywords: regression
Product: Core → Firefox
Or even simpler, open the console and type: ({ x: Promise.resolve() })
Assignee: nobody → nfitzgerald
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(nfitzgerald)
Attachment #8588925 - Flags: review?(past)
Attachment #8588925 - Flags: review?(past) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: