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

Unified Diff: src/bootstrapper.cc

Issue 2589083002: [debugger] sunset --expose-debug-as flag. (Closed)
Patch Set: Created 4 years 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 | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 1264ac0d4a3e778523622f4094c3dfd01300c7dd..e20baf0ec8e6975961807fb487cc88df78825f90 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -4076,25 +4076,6 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) {
Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate);
JSObject::AddProperty(Error, name, stack_trace_limit, NONE);
- // Expose the debug global object in global if a name for it is specified.
- if (FLAG_expose_debug_as != NULL && strlen(FLAG_expose_debug_as) != 0) {
- // If loading fails we just bail out without installing the
- // debugger but without tanking the whole context.
- Debug* debug = isolate->debug();
- if (!debug->Load()) return true;
- Handle<Context> debug_context = debug->debug_context();
- // Set the security token for the debugger context to the same as
- // the shell native context to allow calling between these (otherwise
- // exposing debug global object doesn't make much sense).
- debug_context->set_security_token(native_context->security_token());
- Handle<String> debug_string =
- factory->InternalizeUtf8String(FLAG_expose_debug_as);
- uint32_t index;
- if (debug_string->AsArrayIndex(&index)) return true;
- Handle<Object> global_proxy(debug_context->global_proxy(), isolate);
- JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM);
- }
-
WasmJs::Install(isolate, global);
return true;
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698