Mercurial > malikania
diff tests/libclient/js-image/main.cpp @ 27:0a1adf7dcca0
Common: update libjs and adapt code
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 12 Apr 2016 13:53:11 +0200 |
parents | 7f7c2607ace3 |
children | a1e80d991968 |
line wrap: on
line diff
--- a/tests/libclient/js-image/main.cpp Fri Apr 08 14:16:47 2016 +0200 +++ b/tests/libclient/js-image/main.cpp Tue Apr 12 13:53:11 2016 +0200 @@ -48,7 +48,7 @@ loadMalikaniaWindow(m_ctx); /* Store the loader */ - duk::putGlobal(m_ctx, "\xff""\xff""loader", duk::RawPointer<ClientResourcesLoader>{&m_loader}); + duk::putGlobal(m_ctx, "\xff""\xff""loader", &m_loader); } }; @@ -62,7 +62,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(32, duk::getGlobal<int>(m_ctx, "w")); @@ -85,7 +85,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } std::this_thread::sleep_for(3s); @@ -107,7 +107,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } std::this_thread::sleep_for(3s);