Bug 147163 - Web Inspector: console.log("%d", 0) or console.log("%d", "str") show nothing, expected Number or NaN
Summary: Web Inspector: console.log("%d", 0) or console.log("%d", "str") show nothing,...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-07-21 14:45 PDT by Joseph Pecoraro
Modified: 2015-07-21 19:36 PDT (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.72 KB, patch)
2015-07-21 14:47 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] Proposed Fix (1.72 KB, patch)
2015-07-21 14:48 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-07-21 14:45:15 PDT
* SUMMARY
console.log("%d", 0) or console.log("%d", "str") show nothing, expected Number of NaN

Seems like falsey values are getting overlooked.

* STEPS TO REPRODUCE
1. console.log("%d", 0)
  => expected 0
2. console.log("%d", "str")
  => expected NaN
Comment 1 Radar WebKit Bug Importer 2015-07-21 14:45:29 PDT
<rdar://problem/21928471>
Comment 2 Joseph Pecoraro 2015-07-21 14:47:07 PDT
Created attachment 257205 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2015-07-21 14:48:49 PDT
Created attachment 257206 [details]
[PATCH] Proposed Fix
Comment 4 WebKit Commit Bot 2015-07-21 19:36:37 PDT
Comment on attachment 257206 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 257206

Committed r187147: <http://trac.webkit.org/changeset/187147>
Comment 5 WebKit Commit Bot 2015-07-21 19:36:40 PDT
All reviewed patches have been landed.  Closing bug.