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

Unified Diff: runtime/vm/dart_entry_test.cc

Issue 1569213003: Eliminate phase parameter in constructors (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/vm/dart_entry.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry_test.cc
diff --git a/runtime/vm/dart_entry_test.cc b/runtime/vm/dart_entry_test.cc
index 5f939ed1d76771d73d683278f0844229d4c83406..a661d5bc735878c161fdd69dadd505ae8bd45122 100644
--- a/runtime/vm/dart_entry_test.cc
+++ b/runtime/vm/dart_entry_test.cc
@@ -89,10 +89,8 @@ TEST_CASE(InvokeDynamic_CompileError) {
// Invoke the constructor.
const Instance& instance = Instance::Handle(Instance::New(cls));
- const Array& constructor_arguments = Array::Handle(Array::New(2));
+ const Array& constructor_arguments = Array::Handle(Array::New(1));
constructor_arguments.SetAt(0, instance);
- constructor_arguments.SetAt(
- 1, Smi::Handle(Smi::New(Function::kCtorPhaseAll)));
String& constructor_name = String::Handle(Symbols::New("A."));
Function& constructor =
Function::Handle(cls.LookupConstructor(constructor_name));
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698