Bug 127484
Summary: | jsc-cli REPL should allow multi-line input | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mark Hahnenberg <mhahnenberg> |
Component: | JavaScriptCore | Assignee: | Mark Hahnenberg <mhahnenberg> |
Status: | NEW | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 127432 |
Mark Hahnenberg
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |