Permalink
Browse files

Allow no args to be passed to rejection callback

Reviewed By: davidaurelio

Differential Revision:
D5301417

Tags: accept2ship

fbshipit-source-id: a4fb74dd50eb63579e7b69a6d48d4020f718b81c
  • Loading branch information...
javache authored and facebook-github-bot committed Jun 22, 2017
1 parent d795fa1 commit b6cfad27f8953a1142c1eee61b68da0f7637d1d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/BatchedBridge/NativeModules.js
@@ -119,7 +119,7 @@ function createErrorFromErrorData(errorData: {message: string}): ExtendedError {
const {
message,
...extraErrorInfo
} = errorData;
} = errorData || {};
const error : ExtendedError = new Error(message);
error.framesToPop = 1;
return Object.assign(error, extraErrorInfo);

0 comments on commit b6cfad2

Please sign in to comment.