Bug 142660 - Web Inspector: console.assert should show assertion conditional expression when possible
Summary: Web Inspector: console.assert should show assertion conditional expression wh...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-13 00:32 PDT by Joseph Pecoraro
Modified: 2016-12-13 15:38 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?