Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Issue 7193011: d8 drops into a shell if no files are passed on command line (Closed)

Created:
9 years, 6 months ago by wingo
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

d8 drops into a shell if no files are passed on command line Fixes regression introduced in r8241. BUG= TEST=Run ./d8 --print_code -- should drop into shell. Committed: http://code.google.com/p/v8/source/detail?r=8378

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M src/d8.cc View 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mads Ager (chromium)
Yang, could you have a look at this?
9 years, 6 months ago (2011-06-21 14:19:31 UTC) #1
Mads Ager (chromium)
Changing CC from chromium-reviews to v8-dev.
9 years, 6 months ago (2011-06-21 14:20:49 UTC) #2
Yang
On 2011/06/21 14:20:49, Mads Ager wrote: > Changing CC from chromium-reviews to v8-dev. Can't we ...
9 years, 6 months ago (2011-06-21 16:12:25 UTC) #3
wingo
9 years, 6 months ago (2011-06-22 08:20:04 UTC) #4
On 2011/06/21 16:12:25, yangguo wrote:
> Can't we use one flag (FLAG_run_shell) instead of having two flags indicating
> basically the same thing? I suggest getting rid of run_shell altogether and
just
> keep using FLAG_run_shell.
> 
> Other than that, LGTM.

Well, you need to check for --shell *or* for lack of non-option arguments. 
Hence the two variables.

I agree that it's not the best situation, but d8.cc has gotten quite crufty. 
I'm happy to poke at it, but a larger refactor would take more feedback, and
fixing the shell probably takes priority, no?

In any case I am not a committer, so the next step is not up to me :)

Thanks for the review,

Andy

Powered by Google App Engine
This is Rietveld 408576698