| 232 | } |
| 233 | } |
| 234 | em::val NativeTestHelpers::id_binary(const em::val& w_b) { |
| 235 | try { |
| 236 | auto r = ::testsuite::TestHelpers::id_binary(::djinni::Binary::toCpp(w_b)); |
| 237 | return ::djinni::Binary::fromCpp(r); |
| 238 | } |
| 239 | catch(const std::exception& e) { |
| 240 | return ::djinni::ExceptionHandlingTraits<::djinni::Binary>::handleNativeException(e); |
| 241 | } |
| 242 | } |
| 243 | em::val NativeTestHelpers::get_async_result() { |
| 244 | try { |
| 245 | auto r = ::testsuite::TestHelpers::get_async_result(); |