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

Unified Diff: runtime/bin/platform_patch.dart

Issue 1591573004: - Fix Isolate.spawn when running from snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Cleanup. Created 4 years, 11 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 | runtime/lib/internal_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_patch.dart
diff --git a/runtime/bin/platform_patch.dart b/runtime/bin/platform_patch.dart
index 50439c5002803d8eb191f1b1cdb7617b721b2ac6..577bbb6dffcd67677533290438c93ccc362cf8a5 100644
--- a/runtime/bin/platform_patch.dart
+++ b/runtime/bin/platform_patch.dart
@@ -26,4 +26,19 @@ patch class _Platform {
=> VMLibraryHooks.packageRootString;
/* patch */ static String _packageConfig()
=> VMLibraryHooks.packageConfigString;
+
+ // This script singleton is written to by the embedder if applicable.
+ /* patch */ static void set _nativeScript(String path) {
+ if (path.startsWith('http:') ||
+ path.startsWith('https:') ||
+ path.startsWith('package:') ||
+ path.startsWith('dart:') ||
+ path.startsWith('data:') ||
+ path.startsWith('file:')) {
+ script = Uri.parse(path);
+ } else {
+ script = Uri.base.resolveUri(new Uri.file(path));
+ }
+ VMLibraryHooks.platformScript = script;
+ }
}
« no previous file with comments | « no previous file | runtime/lib/internal_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698