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

Unified Diff: Source/bindings/dart/DartScriptValue.h

Issue 360803002: Interpret Dart null as both null and undefined. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: Created 6 years, 6 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: Source/bindings/dart/DartScriptValue.h
diff --git a/Source/bindings/dart/DartScriptValue.h b/Source/bindings/dart/DartScriptValue.h
index f099e2a3930da699fca9e9bf3c22325638d3a37b..6c8db56691b2d0d5ccd2f2b35d898e63681ffe68 100644
--- a/Source/bindings/dart/DartScriptValue.h
+++ b/Source/bindings/dart/DartScriptValue.h
@@ -103,7 +103,7 @@ public:
bool isUndefined() const
{
ASSERT(!isEmpty());
- return false;
+ return Dart_IsNull(m_value);
}
bool isObject() const
« 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