Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Unified Diff: sdk/lib/html/html_common/conversions_dartium.dart

Issue 1356653003: Operator precedence in isJavaScriptSimpleObject (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/conversions_dartium.dart
diff --git a/sdk/lib/html/html_common/conversions_dartium.dart b/sdk/lib/html/html_common/conversions_dartium.dart
index fc7ca61360b1dba6bef2d672ce93ffc795d0028b..2eb2b8803cde18674bf510ce359eaf72ceea58f6 100644
--- a/sdk/lib/html/html_common/conversions_dartium.dart
+++ b/sdk/lib/html/html_common/conversions_dartium.dart
@@ -44,7 +44,7 @@ _getProto(object) {
final _objectProto = js.context["Object"]["prototype"];
bool isJavaScriptSimpleObject(value) {
- if (!value is js.JsObject) return false;
+ if (value is! js.JsObject) return false;
var proto = _getProto(value);
return proto == _objectProto || proto == null;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698