Chromium Code Reviews| Index: runtime/bin/dartutils.cc |
| =================================================================== |
| --- runtime/bin/dartutils.cc (revision 21785) |
| +++ runtime/bin/dartutils.cc (working copy) |
| @@ -391,6 +391,9 @@ |
| return Dart_LoadScriptFromSnapshot(text_buffer, len); |
| } else { |
| Dart_Handle source = Dart_NewStringFromUTF8(text_buffer, len); |
| + if (Dart_IsError(source)) { |
| + return source; |
| + } |
| return Dart_LoadScript(resolved_script_uri, source, 0, 0); |
|
Mads Ager (google)
2013/04/22 13:05:41
I thought all of the APIs had the property that th
Ivan Posva
2013/04/22 13:12:42
Dart_LoadScript does return an error if it gets un
Mads Ager (google)
2013/04/22 13:13:48
I see. Thanks! :)
|
| } |
| } |