Title: [272539] branches/safari-611-branch/Source/_javascript_Core
- Revision
- 272539
- Author
- [email protected]
- Date
- 2021-02-08 13:24:13 -0800 (Mon, 08 Feb 2021)
Log Message
Cherry-pick r271767. rdar://problem/74105427
Obj-C API should do correct type checks when using a 32-bit address space
https://bugs.webkit.org/show_bug.cgi?id=220880
<rdar://72370334>
Reviewed by Tadeu Zagallo.
* API/JSValue.mm:
(-[JSValue isNull]):
(-[JSValue isBoolean]):
(-[JSValue isNumber]):
(-[JSValue isString]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-611-branch/Source/_javascript_Core/API/JSValue.mm (272538 => 272539)
--- branches/safari-611-branch/Source/_javascript_Core/API/JSValue.mm 2021-02-08 21:24:09 UTC (rev 272538)
+++ branches/safari-611-branch/Source/_javascript_Core/API/JSValue.mm 2021-02-08 21:24:13 UTC (rev 272539)
@@ -408,7 +408,7 @@
- (BOOL)isNull
{
#if !CPU(ADDRESS64)
- return JSValueIsUndefined([_context JSGlobalContextRef], m_value);
+ return JSValueIsNull([_context JSGlobalContextRef], m_value);
#else
return toJS(m_value).isNull();
#endif
@@ -417,7 +417,7 @@
- (BOOL)isBoolean
{
#if !CPU(ADDRESS64)
- return JSValueIsUndefined([_context JSGlobalContextRef], m_value);
+ return JSValueIsBoolean([_context JSGlobalContextRef], m_value);
#else
return toJS(m_value).isBoolean();
#endif
@@ -426,7 +426,7 @@
- (BOOL)isNumber
{
#if !CPU(ADDRESS64)
- return JSValueIsUndefined([_context JSGlobalContextRef], m_value);
+ return JSValueIsNumber([_context JSGlobalContextRef], m_value);
#else
return toJS(m_value).isNumber();
#endif
@@ -435,7 +435,7 @@
- (BOOL)isString
{
#if !CPU(ADDRESS64)
- return JSValueIsUndefined([_context JSGlobalContextRef], m_value);
+ return JSValueIsString([_context JSGlobalContextRef], m_value);
#else
return toJS(m_value).isString();
#endif
Modified: branches/safari-611-branch/Source/_javascript_Core/ChangeLog (272538 => 272539)
--- branches/safari-611-branch/Source/_javascript_Core/ChangeLog 2021-02-08 21:24:09 UTC (rev 272538)
+++ branches/safari-611-branch/Source/_javascript_Core/ChangeLog 2021-02-08 21:24:13 UTC (rev 272539)
@@ -1,5 +1,38 @@
2021-02-08 Russell Epstein <[email protected]>
+ Cherry-pick r271767. rdar://problem/74105427
+
+ Obj-C API should do correct type checks when using a 32-bit address space
+ https://bugs.webkit.org/show_bug.cgi?id=220880
+ <rdar://72370334>
+
+ Reviewed by Tadeu Zagallo.
+
+ * API/JSValue.mm:
+ (-[JSValue isNull]):
+ (-[JSValue isBoolean]):
+ (-[JSValue isNumber]):
+ (-[JSValue isString]):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2021-01-22 Keith Miller <[email protected]>
+
+ Obj-C API should do correct type checks when using a 32-bit address space
+ https://bugs.webkit.org/show_bug.cgi?id=220880
+ <rdar://72370334>
+
+ Reviewed by Tadeu Zagallo.
+
+ * API/JSValue.mm:
+ (-[JSValue isNull]):
+ (-[JSValue isBoolean]):
+ (-[JSValue isNumber]):
+ (-[JSValue isString]):
+
+2021-02-08 Russell Epstein <[email protected]>
+
Cherry-pick r270665. rdar://problem/74105427
Removing unnecessary locking from JSValue API functions
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes