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

Unified Diff: src/runtime/runtime-debug.cc

Issue 1062143002: Create result array of %DebugGetLoadedScripts outside the debug context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | test/mjsunit/regress/regress-crbug-474297.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-debug.cc
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
index b4e1fe90c4859e202f8f4dbd6581d02747bb94a7..baa550829cb0ed79effd4e24a5db54cd06ba9a18 100644
--- a/src/runtime/runtime-debug.cc
+++ b/src/runtime/runtime-debug.cc
@@ -2338,9 +2338,12 @@ RUNTIME_FUNCTION(Runtime_DebugGetLoadedScripts) {
HandleScope scope(isolate);
DCHECK(args.length() == 0);
- DebugScope debug_scope(isolate->debug());
- // Fill the script objects.
- Handle<FixedArray> instances = isolate->debug()->GetLoadedScripts();
+ Handle<FixedArray> instances;
+ {
+ DebugScope debug_scope(isolate->debug());
+ // Fill the script objects.
+ instances = isolate->debug()->GetLoadedScripts();
+ }
// Convert the script objects to proper JS objects.
for (int i = 0; i < instances->length(); i++) {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-474297.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698