Skip to content

Commit 6fc38ec

Browse files
andycallwssgcg1213
authored andcommitted
fix: return value of Event.stopPropagation() should be undefined
1 parent 67e799a commit 6fc38ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bridge/bindings/jsc/DOM/event.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ JSValueRef JSEvent::stopPropagation(JSContextRef ctx, JSObjectRef function, JSOb
176176
JSValueRef *exception) {
177177
auto eventInstance = static_cast<EventInstance *>(JSObjectGetPrivate(thisObject));
178178
eventInstance->_propagationStopped = true;
179-
return nullptr;
179+
return JSValueMakeUndefined(ctx);
180180
}
181181

182182
JSValueRef JSEvent::stopImmediatePropagation(JSContextRef ctx, JSObjectRef function,

0 commit comments

Comments
 (0)