| Index: runtime/lib/string_base.dart
|
| diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
|
| index 0698863195828191baf7a3af39db8f558aa5b829..9bc0264668ca62738d6ba57352f6d7e42a90c012 100644
|
| --- a/runtime/lib/string_base.dart
|
| +++ b/runtime/lib/string_base.dart
|
| @@ -42,7 +42,7 @@ class _StringBase {
|
|
|
| int get length native "String_getLength";
|
|
|
| - bool isEmpty() {
|
| + bool get isEmpty {
|
| return this.length === 0;
|
| }
|
|
|
| @@ -84,7 +84,7 @@ class _StringBase {
|
| }
|
|
|
| bool _substringMatches(int start, String other) {
|
| - if (other.isEmpty()) return true;
|
| + if (other.isEmpty) return true;
|
| if ((start < 0) || (start >= this.length)) {
|
| return false;
|
| }
|
| @@ -109,7 +109,7 @@ class _StringBase {
|
| }
|
|
|
| int indexOf(String other, [int start = 0]) {
|
| - if (other.isEmpty()) {
|
| + if (other.isEmpty) {
|
| return start < this.length ? start : this.length;
|
| }
|
| if ((start < 0) || (start >= this.length)) {
|
| @@ -126,7 +126,7 @@ class _StringBase {
|
|
|
| int lastIndexOf(String other, [int start = null]) {
|
| if (start == null) start = length - 1;
|
| - if (other.isEmpty()) {
|
| + if (other.isEmpty) {
|
| return min(this.length, start);
|
| }
|
| if (start >= this.length) {
|
|
|