Revert "Merge branch 'master' into 0.58-stable"

This reverts commit 696bd89013, reversing
changes made to a525941ab6.
This commit is contained in:
Mike Grabowski
2018-11-22 17:53:44 +01:00
parent 696bd89013
commit b864e7e63e
135 changed files with 1214 additions and 2522 deletions
-19
View File
@@ -114,25 +114,6 @@ auto SampleCxxModule::getMethods() -> std::vector<Method> {
sample_->hello();
return nullptr;
}, SyncTag),
Method("addIfPositiveAsPromise", [](dynamic args, Callback cb, Callback cbError) {
auto a = jsArgAsDouble(args, 0);
auto b = jsArgAsDouble(args, 1);
if (a < 0 || b < 0) {
cbError({"Negative number!"});
} else {
cb({a + b});
}
}),
Method("addIfPositiveAsAsync", [](dynamic args, Callback cb, Callback cbError) {
auto a = jsArgAsDouble(args, 0);
auto b = jsArgAsDouble(args, 1);
if (a < 0 || b < 0) {
cbError({"Negative number!"});
} else {
cb({a + b});
}
}, AsyncTag),
};
}