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

Unified Diff: sdk/lib/_internal/js_runtime/lib/preambles/d8.js

Issue 2987563003: Land D8 6.1.0 again, avoid using D8 Worker (Closed)
Patch Set: status Created 3 years, 5 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 | tests/corelib/corelib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/preambles/d8.js
diff --git a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
index be4ad33908d8824d1320d538cb7afcc6e2ad8db2..75c0c459003976edd60f515b01f5719fc2d4ab09 100644
--- a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
+++ b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
@@ -334,4 +334,9 @@ if (typeof global != "undefined") self = global; // Node.js.
array[i] = Math.random() * 256;
}
}};
+
+ // D8 Workers are not sufficiently compatible with browser Workers
+ // so pretend they don't exist.
+ // TODO(30217): Try to use D8's worker.
+ delete self.Worker;
})(self);
« no previous file with comments | « no previous file | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698