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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 10854176: - Merge function lists when patching classes (no more duplicates). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 10747)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -5479,6 +5479,7 @@
const char* kLibraryChars =
"#library('patched_library');\n"
"class A {\n"
+ " final fvalue;\n"
" var _f;\n"
" callFunc(x, y) => x(y);\n"
" external method(var value);\n"
@@ -5492,6 +5493,7 @@
const char* kPatchChars =
"patch class A {\n"
" var _g;\n"
+ " A() : fvalue = 13;\n"
" get _field() => _g;\n"
" patch method(var value) {\n"
" int closeYourEyes(var eggs) { return eggs * -1; }\n"
@@ -5547,6 +5549,10 @@
Dart_Handle test_script = Dart_LoadScript(script_url, source);
EXPECT_VALID(test_script);
+ // Make sure that we can compile all of the patched code.
+ result = Dart_CompileAll();
+ EXPECT_VALID(result);
+
result = Dart_Invoke(test_script, Dart_NewString("e1"), 0, NULL);
EXPECT_ERROR(result, "External implementation missing");
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698