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

Unified Diff: sdk/lib/_internal/lib/isolate_helper.dart

Issue 23686021: Add property base to the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed more review comments Created 7 years, 3 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 | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/isolate_helper.dart
diff --git a/sdk/lib/_internal/lib/isolate_helper.dart b/sdk/lib/_internal/lib/isolate_helper.dart
index d8fcff4ad29d0eb0e027368b1c361ae4769a2a82..81aa332222eab6595db85abdc191ee01bb91451d 100644
--- a/sdk/lib/_internal/lib/isolate_helper.dart
+++ b/sdk/lib/_internal/lib/isolate_helper.dart
@@ -424,17 +424,6 @@ class IsolateNatives {
/// Associates an ID with a native worker object.
static final Expando<int> workerIds = new Expando<int>();
- static bool get isD8 {
- return JS('bool',
- 'typeof version == "function"'
- ' && typeof os == "object" && "system" in os');
- }
-
- static bool get isJsshell {
- return JS('bool',
- 'typeof version == "function" && typeof system == "function"');
- }
-
/**
* The src url for the script tag that loaded this code. Used to create
* JavaScript workers.
@@ -444,8 +433,8 @@ class IsolateNatives {
if (currentScript != null) {
return JS('String', 'String(#.src)', currentScript);
}
- if (isD8) return computeThisScriptD8();
- if (isJsshell) return computeThisScriptJsshell();
+ if (Primitives.isD8) return computeThisScriptD8();
+ if (Primitives.isJsshell) return computeThisScriptJsshell();
return null;
}
« no previous file with comments | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698