Fix versions implementation (flutter/engine#7726)

This commit is contained in:
Dan Field
2019-02-07 08:53:31 -08:00
committed by GitHub
parent da2ed68d76
commit 82b3db0523
2 changed files with 2 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ void GetVersions(Dart_NativeArguments args) {
}
void Versions::RegisterNatives(tonic::DartLibraryNatives* natives) {
natives->Register({{"Versions_getVersions", GetVersions, 1, true}});
natives->Register({{"Versions_getVersions", GetVersions, 0, true}});
}
} // namespace blink

View File

@@ -2,13 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// HACK: pretend to be dart.ui in order to access its internals
library dart.ui;
import 'dart:ui';
import 'package:test/test.dart';
part '../../lib/ui/versions.dart';
bool _isNotEmpty(String s) {
if (s == null || s.isEmpty) {
return false;