blob: 5cb87a2e01d0517ff4a327eaa88eb7a83e52b8a1 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/tonic/dart_io.h"
#include "dart/runtime/bin/io_natives.h"
#include "dart/runtime/include/dart_api.h"
#include "lib/tonic/converter/dart_converter.h"
using tonic::ToDart;
namespace blink {
void DartIO::InitForIsolate() {
DART_CHECK_VALID(Dart_SetNativeResolver(Dart_LookupLibrary(ToDart("dart:io")),
dart::bin::IONativeLookup,
dart::bin::IONativeSymbol));
}
} // namespace blink