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

Unified Diff: runtime/vm/dart_entry.cc

Issue 9691005: Implement spawnFunction from the new isolate api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
Index: runtime/vm/dart_entry.cc
===================================================================
--- runtime/vm/dart_entry.cc (revision 5367)
+++ runtime/vm/dart_entry.cc (working copy)
@@ -116,10 +116,10 @@
RawObject* DartLibraryCalls::ExceptionCreate(
+ const Library& lib,
const String& class_name,
const GrowableArray<const Object*>& arguments) {
- const Library& core_lib = Library::Handle(Library::CoreLibrary());
- const Class& cls = Class::Handle(core_lib.LookupClass(class_name));
+ const Class& cls = Class::Handle(lib.LookupClass(class_name));
ASSERT(!cls.IsNull());
// For now, we only support a non-parameterized or raw type.
const Instance& exception_object = Instance::Handle(Instance::New(cls));

Powered by Google App Engine
This is Rietveld 408576698