Title: [270700] trunk/Source/_javascript_Core
- Revision
- 270700
- Author
- [email protected]
- Date
- 2020-12-11 12:10:12 -0800 (Fri, 11 Dec 2020)
Log Message
REGRESSION (r270665): testapi failing on CLoop bot
https://bugs.webkit.org/show_bug.cgi?id=219787
Reviewed by Mark Lam.
The API has to special case the empty JSValue as null.
* API/JSValueRef.cpp:
(JSValueGetType):
(JSValueIsNull):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/API/JSValueRef.cpp (270699 => 270700)
--- trunk/Source/_javascript_Core/API/JSValueRef.cpp 2020-12-11 20:09:38 UTC (rev 270699)
+++ trunk/Source/_javascript_Core/API/JSValueRef.cpp 2020-12-11 20:10:12 UTC (rev 270700)
@@ -64,7 +64,7 @@
if (jsValue.isUndefined())
return kJSTypeUndefined;
- if (jsValue.isNull())
+ if (!jsValue || jsValue.isNull())
return kJSTypeNull;
if (jsValue.isBoolean())
return kJSTypeBoolean;
@@ -105,7 +105,7 @@
JSLockHolder locker(globalObject);
return toJS(globalObject, value).isNull();
#else
- return toJS(value).isNull();
+ return !value || toJS(value).isNull();
#endif
}
Modified: trunk/Source/_javascript_Core/ChangeLog (270699 => 270700)
--- trunk/Source/_javascript_Core/ChangeLog 2020-12-11 20:09:38 UTC (rev 270699)
+++ trunk/Source/_javascript_Core/ChangeLog 2020-12-11 20:10:12 UTC (rev 270700)
@@ -1,3 +1,16 @@
+2020-12-11 Tadeu Zagallo <[email protected]>
+
+ REGRESSION (r270665): testapi failing on CLoop bot
+ https://bugs.webkit.org/show_bug.cgi?id=219787
+
+ Reviewed by Mark Lam.
+
+ The API has to special case the empty JSValue as null.
+
+ * API/JSValueRef.cpp:
+ (JSValueGetType):
+ (JSValueIsNull):
+
2020-12-11 Don Olmstead <[email protected]>
[CMake] Determine correct visibility for linked frameworks
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes