| Index: src/d8.cc
|
| ===================================================================
|
| --- src/d8.cc (revision 7006)
|
| +++ src/d8.cc (working copy)
|
| @@ -127,11 +127,13 @@
|
| } else {
|
| Handle<Value> result = script->Run();
|
| if (result.IsEmpty()) {
|
| + ASSERT(try_catch.HasCaught());
|
| // Print errors that happened during execution.
|
| if (report_exceptions && !i::FLAG_debugger)
|
| ReportException(&try_catch);
|
| return false;
|
| } else {
|
| + ASSERT(!try_catch.HasCaught());
|
| if (print_result && !result->IsUndefined()) {
|
| // If all went well and the result wasn't undefined then print
|
| // the returned value.
|
| @@ -403,7 +405,7 @@
|
| void Shell::Initialize() {
|
| Shell::counter_map_ = new CounterMap();
|
| // Set up counters
|
| - if (i::FLAG_map_counters != NULL)
|
| + if (i::StrLength(i::FLAG_map_counters) != 0)
|
| MapCounters(i::FLAG_map_counters);
|
| if (i::FLAG_dump_counters) {
|
| V8::SetCounterFunction(LookupCounter);
|
| @@ -423,6 +425,12 @@
|
| global_template->Set(String::New("quit"), FunctionTemplate::New(Quit));
|
| global_template->Set(String::New("version"), FunctionTemplate::New(Version));
|
|
|
| +#ifdef LIVE_OBJECT_LIST
|
| + global_template->Set(String::New("lol_is_enabled"), Boolean::New(true));
|
| +#else
|
| + global_template->Set(String::New("lol_is_enabled"), Boolean::New(false));
|
| +#endif
|
| +
|
| Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
|
| AddOSMethods(os_templ);
|
| global_template->Set(String::New("os"), os_templ);
|
|
|