Changeset 270700 in webkit
- Timestamp:
- Dec 11, 2020 12:10:12 PM (3 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSValueRef.cpp
r270665 r270700 65 65 if (jsValue.isUndefined()) 66 66 return kJSTypeUndefined; 67 if ( jsValue.isNull())67 if (!jsValue || jsValue.isNull()) 68 68 return kJSTypeNull; 69 69 if (jsValue.isBoolean()) … … 106 106 return toJS(globalObject, value).isNull(); 107 107 #else 108 return toJS(value).isNull();108 return !value || toJS(value).isNull(); 109 109 #endif 110 110 } -
trunk/Source/JavaScriptCore/ChangeLog
r270690 r270700 1 2020-12-11 Tadeu Zagallo <tzagallo@apple.com> 2 3 REGRESSION (r270665): testapi failing on CLoop bot 4 https://bugs.webkit.org/show_bug.cgi?id=219787 5 6 Reviewed by Mark Lam. 7 8 The API has to special case the empty JSValue as null. 9 10 * API/JSValueRef.cpp: 11 (JSValueGetType): 12 (JSValueIsNull): 13 1 14 2020-12-11 Don Olmstead <don.olmstead@sony.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.