Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index c84d32ae7da7e2ecd89c072a72f38d81a5bd0dd5..b85a13411825d71211dc5dc58c241037cc9f4f7c 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -735,11 +735,13 @@ bool ScopeIterator::SetClosureVariableValue(Handle<String> variable_name, |
bool ScopeIterator::SetScriptVariableValue(Handle<String> variable_name, |
Handle<Object> new_value) { |
+ Handle<String> internalized_variable_name = |
+ isolate_->factory()->InternalizeString(variable_name); |
Handle<Context> context = CurrentContext(); |
Handle<ScriptContextTable> script_contexts( |
context->global_object()->native_context()->script_context_table()); |
ScriptContextTable::LookupResult lookup_result; |
- if (ScriptContextTable::Lookup(script_contexts, variable_name, |
+ if (ScriptContextTable::Lookup(script_contexts, internalized_variable_name, |
&lookup_result)) { |
Handle<Context> script_context = ScriptContextTable::GetContext( |
script_contexts, lookup_result.context_index); |