Index: runtime/vm/scanner.cc |
diff --git a/runtime/vm/scanner.cc b/runtime/vm/scanner.cc |
index f7ae4ac59525fca9ca450cce9d6fa356af548dbb..cd8abf52caec381b3fd507429e6290fbc8c5e4d8 100644 |
--- a/runtime/vm/scanner.cc |
+++ b/runtime/vm/scanner.cc |
@@ -484,9 +484,7 @@ void Scanner::ScanEscapedCodePoint(int32_t* code_point) { |
} |
} |
} |
- if (is_valid && |
- ((Utf::IsOutOfRange(*code_point) || |
- (Utf16::IsSurrogate(*code_point))))) { |
+ if (is_valid && (Utf::IsOutOfRange(*code_point))) { |
ErrorMsg("invalid code point"); |
} |
} |