| Summary: | Display return values in nicer way in the jsc REPL and add a prettyPrint function | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Saam Barati <saam> | ||||||||||
| Component: | JavaScriptCore | Assignee: | Saam Barati <saam> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, tsavell, tzagallo, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=231095 | ||||||||||||
| Bug Depends on: | 231116 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
Created attachment 439555 [details]
Patch
(In reply to Saam Barati from comment #0) > print strings with quotes around them, and arrays with brackets. > > Currently, print("[1]") looks like print("1") looks like print(1), which is > not a great user experience. I meant to say print([1]) for the first example. Comment on attachment 439555 [details]
Patch
r=me
Created attachment 439621 [details]
patch
Comment on attachment 439621 [details]
patch
r=me
Created attachment 439651 [details]
patch for landing
Committed r283293 (242318@main): <https://commits.webkit.org/242318@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439651 [details]. this patch broke 20 tes262 tests, tracking in https://bugs.webkit.org/show_bug.cgi?id=231095 Re-opened since this is blocked by bug 231116 Created attachment 440096 [details]
patch
Comment on attachment 440096 [details]
patch
r=me
Committed r283527 (242494@main): <https://commits.webkit.org/242494@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440096 [details]. |
print strings with quotes around them, and arrays with brackets. Currently, print("[1]") looks like print("1") looks like print(1), which is not a great user experience.