Mercurial > malikania
diff tests/libclient/js-animation/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 | ed63752a8720 |
children | a1e80d991968 |
line wrap: on
line diff
--- a/tests/libclient/js-animation/main.cpp Fri Apr 08 14:16:47 2016 +0200 +++ b/tests/libclient/js-animation/main.cpp Tue Apr 12 13:53:11 2016 +0200 @@ -51,7 +51,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); } }; @@ -65,7 +65,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ElapsedTimer timer; @@ -80,7 +80,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } }