Bug 127484 - jsc-cli REPL should allow multi-line input
Summary: jsc-cli REPL should allow multi-line input
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Hahnenberg
Depends on:
Blocks: 127432
  Show dependency treegraph
Reported: 2014-01-23 08:39 PST by Mark Hahnenberg
Modified: 2014-01-23 08:40 PST (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hahnenberg 2014-01-23 08:39:02 PST
Legacy jsc allows this, and it's a feature of many other modern REPLs too. Not 100% sure how to do it. Maybe doing paren and brace matching will get us most of the way there. So things like:

(function() {
  return 42;


var f = function(a, b) {
  return a + b;

would be possible.