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

Unified Diff: runtime/bin/builtin_nolib.cc

Issue 10574037: Add dart:web to VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/builtin.cc ('k') | runtime/bin/dartutils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_nolib.cc
===================================================================
--- runtime/bin/builtin_nolib.cc (revision 8989)
+++ runtime/bin/builtin_nolib.cc (working copy)
@@ -17,13 +17,16 @@
{ DartUtils::kUriLibURL, NULL, false },
{ DartUtils::kCryptoLibURL, NULL, false },
{ DartUtils::kIOLibURL, NULL, true },
- { DartUtils::kUtfLibURL, NULL, false }
+ { DartUtils::kUtfLibURL, NULL, false },
+ { DartUtils::kWebLibURL, web_source_, false }
};
Dart_Handle Builtin::Source(BuiltinLibraryId id) {
- UNREACHABLE();
- return Dart_Null();
+ ASSERT((sizeof(builtin_libraries_) / sizeof(builtin_lib_props)) ==
+ kInvalidLibrary);
+ ASSERT(id == kWebLibrary);
+ return Dart_NewString(builtin_libraries_[id].source_);
}
« no previous file with comments | « runtime/bin/builtin.cc ('k') | runtime/bin/dartutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698