Skip to content

Commit

Permalink
resolve nil
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Oct 19, 2023
1 parent 3987e82 commit 6577400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void reset(String handle, Promise promise) {

Rhino rhino = rhinoPool.get(handle);
rhino.reset();
promise.resolve();
promise.resolve(null);
} catch (RhinoException e) {
promise.reject(e.getClass().getSimpleName(), e.getMessage());
}
Expand Down
2 changes: 1 addition & 1 deletion binding/react-native/ios/Rhino.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PvRhino: NSObject {
do {
if let rhino = rhinoPool[handle] {
try rhino.reset()
resolve()
resolve(nil)
} else {
let (code, message) = errorToCodeAndMessage(
RhinoInvalidStateError("Invalid handle provided to Rhino 'process'"))
Expand Down

0 comments on commit 6577400

Please sign in to comment.