Bug 142660

Summary: Web Inspector: console.assert should show assertion conditional expression when possible
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: graouts, inspector-bugzilla-changes, jonowells, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Joseph Pecoraro 2015-03-13 00:32:03 PDT
* SUMMARY
console.assert should show assertion conditional expression when possible.

This information would be useful to show in the "Pause Reason" section and assert console message/warning.

For example:

  console.assert(false);        // condition: "false"
  console.assert(foo.bar);      // condition: "foo.bar"
  console.assert(x, "Message"); // condition: "x", message: "Message"
Comment 1 Radar WebKit Bug Importer 2015-03-13 00:32:29 PDT
<rdar://problem/20150022>
Comment 2 Timothy Hatcher 2015-03-13 08:53:18 PDT
Maybe Saam could help us with this?