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

Unified Diff: runtime/vm/compiler_test.cc

Issue 1854243002: VM: Evaluate-in-frame should happen in the scope of the method class, not the receiver class. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/compiler_test.cc
diff --git a/runtime/vm/compiler_test.cc b/runtime/vm/compiler_test.cc
index 8dd7c2f135c95eb3d89c58322b97b531804bd938..3eda03d1464c9c9eab16c9c5fdae574738683553 100644
--- a/runtime/vm/compiler_test.cc
+++ b/runtime/vm/compiler_test.cc
@@ -174,7 +174,9 @@ TEST_CASE(EvalExpression) {
String& expr_text = String::Handle();
expr_text = String::New("apa + ' ${calc(10)}' + dot");
Object& val = Object::Handle();
- val = Instance::Cast(obj).Evaluate(expr_text,
+ const Class& receiver_cls = Class::Handle(obj.clazz());
+ val = Instance::Cast(obj).Evaluate(receiver_cls,
+ expr_text,
Array::empty_array(),
Array::empty_array());
EXPECT(!val.IsNull());
« no previous file with comments | « runtime/observatory/tests/service/evaluate_activation_in_method_class_test.dart ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698