Index: runtime/lib/bool.cc |
diff --git a/runtime/lib/bool.cc b/runtime/lib/bool.cc |
index d57574568dd127bfdfcd15ee92b40bbc6cd3f9ad..b4d69f536eebc34eff7a7fea9136f03c385402b6 100644 |
--- a/runtime/lib/bool.cc |
+++ b/runtime/lib/bool.cc |
@@ -21,6 +21,7 @@ DEFINE_NATIVE_ENTRY(Bool_fromEnvironment, 3) { |
GET_NON_NULL_NATIVE_ARGUMENT(String, name, arguments->NativeArgAt(1)); |
GET_NATIVE_ARGUMENT(Bool, default_value, arguments->NativeArgAt(2)); |
// Call the embedder to supply us with the environment. |
+ Dart_EnterScope(); |
Ivan Posva
2014/03/04 18:27:21
You are mixing external Dart API with internal acc
Anders Johnsen
2014/03/05 08:03:52
Yep, what I realized :)
Note that in the main iso
|
Dart_EnvironmentCallback callback = isolate->environment_callback(); |
if (callback != NULL) { |
Dart_Handle result = callback(Api::NewHandle(isolate, name.raw())); |
@@ -40,6 +41,7 @@ DEFINE_NATIVE_ENTRY(Bool_fromEnvironment, 3) { |
String::Handle(String::New("Illegal environment value"))); |
} |
} |
+ Dart_ExitScope(); |
return default_value.raw(); |
} |