diff tests/libclient/js-image/main.cpp @ 63:96ba0c5cf893

Misc: update duktape.hpp to new style
author David Demelier <markand@malikania.fr>
date Fri, 16 Dec 2016 16:11:24 +0100
parents f30c84b4b9ed
children
line wrap: on
line diff
--- a/tests/libclient/js-image/main.cpp	Fri Dec 16 15:38:45 2016 +0100
+++ b/tests/libclient/js-image/main.cpp	Fri Dec 16 16:11:24 2016 +0100
@@ -33,7 +33,7 @@
 protected:
     mlk::directory_resources_locator m_locator;
     mlk::client_resources_loader m_loader;
-    UniqueContext m_ctx;
+    dukx_context m_ctx;
 
 public:
     test_image()
@@ -60,7 +60,7 @@
         );
 
         if (ret != 0) {
-            throw dukx_exception(m_ctx, -1);
+            throw dukx_get_exception(m_ctx, -1);
         }
 
         duk_get_global_string(m_ctx, "w");
@@ -87,7 +87,7 @@
         );
 
         if (ret != 0) {
-            throw dukx_exception(m_ctx, -1);
+            throw dukx_get_exception(m_ctx, -1);
         }
 
         std::this_thread::sleep_for(3s);
@@ -109,7 +109,7 @@
         );
 
         if (ret != 0) {
-            throw dukx_exception(m_ctx, -1);
+            throw dukx_get_exception(m_ctx, -1);
         }
 
         std::this_thread::sleep_for(3s);