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

Unified Diff: runtime/bin/dartutils.cc

Issue 11195017: Allow package: imports inside isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addresses Siva's comments. Created 8 years, 2 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 | « runtime/bin/dartutils.h ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index 35dadfc87b322bc90820b131831061864e9e3fcf..3e40dede01210da3967bd79913c3e1a24ae54969 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -343,17 +343,12 @@ static Dart_Handle ReadSource(Dart_Handle script_uri,
Dart_Handle DartUtils::LoadScript(const char* script_uri,
- bool resolve_script,
Dart_Handle builtin_lib) {
Dart_Handle resolved_script_uri;
- if (resolve_script) {
- resolved_script_uri = ResolveScriptUri(Dart_NewString(script_uri),
- builtin_lib);
- if (Dart_IsError(resolved_script_uri)) {
- return resolved_script_uri;
- }
- } else {
- resolved_script_uri = Dart_NewString(script_uri);
+ resolved_script_uri = ResolveScriptUri(Dart_NewString(script_uri),
+ builtin_lib);
+ if (Dart_IsError(resolved_script_uri)) {
+ return resolved_script_uri;
}
Dart_Handle source = ReadSource(resolved_script_uri, builtin_lib);
if (Dart_IsError(source)) {
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698