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

Unified Diff: runtime/bin/test_extension.c

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/bin/io_natives.cc ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/test_extension.c
===================================================================
--- runtime/bin/test_extension.c (revision 31283)
+++ runtime/bin/test_extension.c (working copy)
@@ -32,11 +32,17 @@
/* Native resolver for the extension library. */
-Dart_NativeFunction ResolveName(Dart_Handle name, int argc) {
+Dart_NativeFunction ResolveName(Dart_Handle name,
+ int argc,
+ bool* auto_setup_scope) {
/* assert(Dart_IsString(name)); */
const char* c_name;
Dart_Handle check_error;
+ if (auto_setup_scope == NULL) {
+ return NULL;
+ }
+ *auto_setup_scope = true;
check_error = Dart_StringToCString(name, &c_name);
if (Dart_IsError(check_error)) {
Dart_PropagateError(check_error);
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698