Index: runtime/lib/isolate.cc |
diff --git a/runtime/lib/isolate.cc b/runtime/lib/isolate.cc |
index 337fec151f855859e5fd4a2197e43a868a337abf..7e4ce042d807660dfff8dc515453dd960c2d5cdd 100644 |
--- a/runtime/lib/isolate.cc |
+++ b/runtime/lib/isolate.cc |
@@ -340,11 +340,12 @@ DEFINE_NATIVE_ENTRY(Isolate_spawnUri, 12) { |
GET_NATIVE_ARGUMENT(String, packageRoot, arguments->NativeArgAt(10)); |
GET_NATIVE_ARGUMENT(String, packageConfig, arguments->NativeArgAt(11)); |
- if (Dart::snapshot_kind() == Snapshot::kAppAOT) { |
+ if (Dart::vm_snapshot_kind() == Snapshot::kAppAOT) { |
const Array& args = Array::Handle(Array::New(1)); |
args.SetAt( |
- 0, String::Handle(String::New( |
- "Isolate.spawnUri not supported when using AOT compilation"))); |
+ 0, |
+ String::Handle(String::New( |
+ "Isolate.spawnUri is not supported when using AOT compilation"))); |
Exceptions::ThrowByType(Exceptions::kUnsupported, args); |
UNREACHABLE(); |
} |