Index: sdk/lib/_internal/js_runtime/lib/regexp_helper.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/regexp_helper.dart b/sdk/lib/_internal/js_runtime/lib/regexp_helper.dart |
index e99810aa1da9f282514de2fff2b43a159ec7de5b..9b44116c08cb9de956679643545747993d6e6b04 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/regexp_helper.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/regexp_helper.dart |
@@ -82,8 +82,8 @@ class JSSyntaxRegExp implements RegExp { |
static makeNative( |
String source, bool multiLine, bool caseSensitive, bool global) { |
checkString(source); |
- String m = multiLine ? 'm' : ''; |
- String i = caseSensitive ? '' : 'i'; |
+ String m = multiLine == true ? 'm' : ''; |
+ String i = caseSensitive == true ? '' : 'i'; |
String g = global ? 'g' : ''; |
// We're using the JavaScript's try catch instead of the Dart one |
// to avoid dragging in Dart runtime support just because of using |