mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Update Dart dependency and patch dart_controller to account for non-backwards compatible API update
Patch originally by chinmaygarde. R=chinmaygarde@google.com Review URL: https://codereview.chromium.org/1185233002.
This commit is contained in:
parent
6db8f15d3c
commit
8887090320
@ -18,21 +18,17 @@ void InitDartVM() {
|
||||
const char** argv = nullptr;
|
||||
|
||||
CHECK(Dart_SetVMFlags(argc, argv));
|
||||
CHECK(Dart_Initialize(blink::kDartVmIsolateSnapshotBuffer,
|
||||
nullptr, // Isolate created callback.
|
||||
nullptr, // Isolate interrupt callback.
|
||||
nullptr, // Unhandled exception callback.
|
||||
nullptr, // Isolate shutdown callback.
|
||||
// File IO callbacks.
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr));
|
||||
CHECK(Dart_Initialize(blink::kDartVmIsolateSnapshotBuffer, nullptr, nullptr,
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr));
|
||||
}
|
||||
|
||||
Dart_Isolate CreateDartIsolate() {
|
||||
CHECK(blink::kDartIsolateSnapshotBuffer);
|
||||
char* error = nullptr;
|
||||
Dart_Isolate isolate =
|
||||
Dart_CreateIsolate("http://example.com", "main",
|
||||
blink::kDartIsolateSnapshotBuffer, nullptr, &error);
|
||||
Dart_Isolate isolate = Dart_CreateIsolate("http://example.com", "main",
|
||||
blink::kDartIsolateSnapshotBuffer,
|
||||
nullptr, nullptr, &error);
|
||||
|
||||
CHECK(isolate) << error;
|
||||
CHECK(!LogIfError(Dart_SetLibraryTagHandler(HandleLibraryTag)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user