diff tests/libclient/js-window/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-window/main.cpp	Fri Dec 16 15:38:45 2016 +0100
+++ b/tests/libclient/js-window/main.cpp	Fri Dec 16 16:11:24 2016 +0100
@@ -29,7 +29,7 @@
 
 class test_window {
 protected:
-    UniqueContext m_ctx;
+    dukx_context m_ctx;
 
 public:
     test_window()
@@ -53,7 +53,7 @@
         );
 
         if (ret != 0) {
-            throw dukx_exception(m_ctx, -1);
+            throw dukx_get_exception(m_ctx, -1);
         }
 
         std::this_thread::sleep_for(3s);
@@ -75,7 +75,7 @@
         );
 
         if (ret != 0) {
-            throw dukx_exception(m_ctx, -1);
+            throw dukx_get_exception(m_ctx, -1);
         }
 
         std::this_thread::sleep_for(3s);