Bug 156767

Summary: Replace $vm.printValue() with $vm.value().
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, keith_miller, msaboff, saam
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. saam: review+

Description Mark Lam 2016-04-19 16:11:30 PDT
When debugging with $vm, this change allows us to do this:

    $vm.print("myObj = " + myObj + "\n");

... instead of having to do this:

    $vm.print("myObj = ");
    $vm.printValue(myObj);
    $vm.print("\n");
Comment 1 Mark Lam 2016-04-19 16:17:51 PDT
(In reply to comment #0)
> When debugging with $vm, this change allows us to do this:
> 
>     $vm.print("myObj = " + myObj + "\n");

I meant this change allows us to do this:

    $vm.print("myObj = " + $vm.value(myObj) + "\n");
Comment 2 Mark Lam 2016-04-19 16:19:50 PDT
Created attachment 276772 [details]
proposed patch.
Comment 3 Mark Lam 2016-04-19 16:32:11 PDT
Thanks for the review.  Landed in r199745: <http://trac.webkit.org/r199745>.