Skip to content

Commit 1e1266f

Browse files
nshahanCommit Queue
authored and
Commit Queue
committed
[ddc] Sync dart_library.js from internal
Fixes: #52372 Change-Id: I9cc76c685b9234118a66fa38d2d4e03c2d3fc434 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306916 Commit-Queue: Nicholas Shahan <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]>
1 parent 56cb8de commit 1e1266f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/dev_compiler/lib/js/legacy/dart_library.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ if (!self.dart_library) {
303303
_libraries.forEach(function(value, key, map) {
304304
debuggerLibraries.push(value.load(_firstStartedAppName));
305305
});
306-
debuggerLibraries.__proto__ = null;
306+
Object.setPrototypeOf(debuggerLibraries, null);
307307
return debuggerLibraries;
308308
};
309309

@@ -714,7 +714,7 @@ if (!self.deferred_loader) {
714714
let module = stack.pop();
715715
if (seen.has(module)) continue;
716716
seen.add(module);
717-
stack = stack.concat(self.deferred_loader.moduleGraph.get(moduleId));
717+
stack = stack.concat(self.deferred_loader.moduleGraph.get(module));
718718
}
719719
let dependencies = [];
720720
seen.forEach(module => {
@@ -833,4 +833,3 @@ if (!self.deferred_loader) {
833833
self.deferred_loader.loadIds = new Set();
834834
};
835835
}
836-

0 commit comments

Comments
 (0)