Chromium Code Reviews| Index: vm/dart_api_impl.cc |
| =================================================================== |
| --- vm/dart_api_impl.cc (revision 1553) |
| +++ vm/dart_api_impl.cc (working copy) |
| @@ -399,6 +399,9 @@ |
| source_str, |
| RawScript::kScript, |
| &result); |
| + if (!Dart_IsError(result)) { |
| + library.SetLoaded(); |
| + } |
|
turnidge
2011/11/16 00:51:36
Does it make sense to move this into CompileSource
siva
2011/11/16 18:57:31
CompileSource is also called from Dart_LoadSource
|
| return result; |
| } |
| @@ -518,6 +521,9 @@ |
| source_str, |
| RawScript::kLibrary, |
| &result); |
| + if (!Dart_IsError(result)) { |
| + library.SetLoaded(); |
| + } |
| return result; |
| } |