Bug 127484

Summary: jsc-cli REPL should allow multi-line input
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 127432    

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;
})();

or:

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

would be possible.