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

Unified Diff: lib/isolate.cc

Issue 11639007: Cleanup the exceptions create code to use Arrays instead GrowableArrays so (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « lib/integers.cc ('k') | lib/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate.cc
===================================================================
--- lib/isolate.cc (revision 16288)
+++ lib/isolate.cc (working copy)
@@ -149,15 +149,15 @@
static void ThrowIllegalArgException(const String& message) {
- GrowableArray<const Object*> args(1);
- args.Add(&message);
+ const Array& args = Array::Handle(Array::New(1));
+ args.SetAt(0, message);
Exceptions::ThrowByType(Exceptions::kArgument, args);
}
static void ThrowIsolateSpawnException(const String& message) {
- GrowableArray<const Object*> args(1);
- args.Add(&message);
+ const Array& args = Array::Handle(Array::New(1));
+ args.SetAt(0, message);
Exceptions::ThrowByType(Exceptions::kIsolateSpawn, args);
}
« no previous file with comments | « lib/integers.cc ('k') | lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698