Closed Bug 1280835 Opened 8 years ago Closed 8 years ago

Console mishandles either bound or self-hosted functions, unclear which

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1280818

People

(Reporter: bzbarsky, Unassigned)

Details

Testcase:

  <script>
  var log = console.log.bind(console);
  log("a");
  </script>

This comes up in the console with a location of "(unknown)".

For extra badness, doing this:

  <script>
  function f() {
    var trace = console.log.bind(console);
    trace();
  }
  f();
  </script>

shows not only a location of "(unknown)" but also an empty stacktrace.
Is this a duplicate of Bug 1280818?
Flags: needinfo?(bzbarsky)
Yes, I thought I'd marked it so....
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(bzbarsky)
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.