| Index: src/d8.h
|
| ===================================================================
|
| --- src/d8.h (revision 1618)
|
| +++ src/d8.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2009 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -130,6 +130,17 @@
|
| static Handle<Value> Quit(const Arguments& args);
|
| static Handle<Value> Version(const Arguments& args);
|
| static Handle<Value> Load(const Arguments& args);
|
| + // system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will run
|
| + // the command, passing the arguments to the program. The standard output of
|
| + // the program will be picked up and returned as a multiline string. If
|
| + // timeout1 is present then it should be a number. -1 indicates no timeout
|
| + // and a positive number is used as a timeout in milliseconds that limits the
|
| + // time spent waiting between receiving output characters from the program.
|
| + // timeout2, if present, should be a number indicating the limit in
|
| + // milliseconds on the total running time of the program. Exceptions are
|
| + // thrown on timeouts or other errors or if the exit status of the program
|
| + // indicates an error.
|
| + static Handle<Value> System(const Arguments& args);
|
|
|
| static Handle<Context> utility_context() { return utility_context_; }
|
|
|
|
|