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

Unified Diff: src/d8.cc

Issue 7866: Misc (Closed)
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/globals.h » ('j') | src/globals.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index e69e3d95201725de62bc581bc957bb6fd9ec7ab0..af6eb4cf2d968d89a05ebcdf4fc2c1a6d1527020 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -237,11 +237,10 @@ void Shell::Initialize() {
// Install the debugger object in the utility scope
i::Debug::Load();
- i::JSObject* raw_debug = i::Debug::debug_context()->global();
- i::JSGlobalObject* debug = i::JSGlobalObject::cast(raw_debug);
- debug->set_security_token(i::Heap::undefined_value());
+ i::Debug::debug_context()->set_security_token(i::Heap::undefined_value());
+ i::JSObject* debug = i::Debug::debug_context()->global();
utility_context_->Global()->Set(String::New("$debug"),
- Utils::ToLocal(&raw_debug));
+ Utils::ToLocal(&debug));
// Run the d8 shell utility script in the utility context
int source_index = i::NativesCollection<i::D8>::GetIndex("d8");
« no previous file with comments | « include/v8.h ('k') | src/globals.h » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698