Bug 147163

Summary: Web Inspector: console.log("%d", 0) or console.log("%d", "str") show nothing, expected Number or NaN
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, tobi+webkit, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix
none
[PATCH] Proposed Fix none

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.