zhuangzhineng / chromedevtools

Automatically exported from code.google.com/p/chromedevtools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Functions that have a .splice method log like arrays #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SDK/Debugger version:
Eclipse version:
Google Chrome/V8 Embedder + version:
[For WebKit (WIP) protocol] Backend version:
OS + version:

What steps will reproduce the problem?
  var f = function() {};
  f.splice = function() {};
  console.log(f);
  console.dir(f);
  console.info(f);
  console.warn(f);
  console.error(f);

What is the expected result?
  f should log as function() {}

What happens instead?
  f logs as []

Original issue reported on code.google.com by rya...@gmail.com on 8 Mar 2014 at 5:41

GoogleCodeExporter commented 9 years ago
This may not be relevant here. I meant to (and later did) post this as a Chrome 
Developer Tools issue: 
https://code.google.com/p/chromium/issues/detail?id=350644

Original comment by rya...@gmail.com on 8 Mar 2014 at 6:25