From 9a271e220c8ca5cb17260314f065539045c4ea47 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 21 Apr 2017 18:47:18 +0300 Subject: [PATCH] Add missing 'return' to C++ exception example --- examples/cpp-exceptions/cpp_exceptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cpp-exceptions/cpp_exceptions.cpp b/examples/cpp-exceptions/cpp_exceptions.cpp index 63c68d20..67faf90b 100644 --- a/examples/cpp-exceptions/cpp_exceptions.cpp +++ b/examples/cpp-exceptions/cpp_exceptions.cpp @@ -93,7 +93,7 @@ duk_ret_t test2(duk_context *ctx) { } duk_ret_t test2_safecall(duk_context *ctx, void *udata) { (void) udata; - test2(ctx); + return test2(ctx); } /*