Closed Bug 816833 Opened 12 years ago Closed 4 years ago

Web Console `print` misbehaving

Categories

(DevTools :: Console, defect, P5)

x86_64
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rnewman, Unassigned)

Details

--
[19:32:14.222] for (let [x, v] of Iterator({"a": 1, "b": 2})) { print(x + " = " + v); }
[19:32:14.224] b = 2
--
[19:33:36.668] let sum = 0;
[19:33:36.669] undefined
--
[19:33:45.203] for (let [x, v] of Iterator({"a": 1, "b": 2})) { sum += v; }
[19:33:45.205] 3
[19:33:46.587] sum
[19:33:46.589] 3
--
[19:35:43.024] (function () { print("a"); print("b"); })();
[19:35:43.026] undefined


19:34:28 <@gavin> oh, if I do it in the Web Console I see what you see, yeah



console.log works fine.

2012-11-29 Nightly, Mac 10.8.2.
need to retest this.

Richard, is this still a problem for you?
Flags: needinfo?(rnewman)
Priority: -- → P3
Not a problem in that it's not blocking me. I haven't reverified the bug since I filed it.
Flags: needinfo?(rnewman)
Product: Firefox → DevTools
Still an issue with: 

```js
for (let [x, v] of Object.entries({a: 1, b: 2, c: 3})) { 
  print(x + " = " + v); 
}
```

this only prints: "c = 3", so the first calls are mangled.
Not a high priority though since `print` isn't used much those days.
Priority: P3 → P5

print was removed in Bug 1613845

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