Permalink
Browse files

updated exceptions to new nan reqs.

  • Loading branch information...
mikeseven committed Nov 26, 2015
1 parent 04858f2 commit c6759a9b1a44f1cf78b893a3a766e3b3a576d309
Showing with 5 additions and 5 deletions.
  1. +1 −1 binding.gyp
  2. +1 −1 package.json
  3. +3 −3 src/atb.cc
View
@@ -14,7 +14,7 @@
{
'target_name': 'glfw',
'defines': [
'VERSION=0.4.1',
'VERSION=0.4.2',
],
'sources': [
'src/atb.cc',
View
@@ -1,6 +1,6 @@
{
"name": "node-glfw",
"version": "0.4.1",
"version": "0.4.2",
"description": "A NodeJS wrapper around GLFW 3.x library",
"main": "index.js",
"author": "Mikael Bourges-Sevenier <mikeseven@gmail.com>",
View
@@ -265,7 +265,7 @@ void TW_CALL SetCallback(const void *value, void *clientData) {
constructorHandle->Call(v8::Isolate::GetCurrent()->GetCurrentContext()->Global(), 1, argv);
if (try_catch.HasCaught())
FatalException(try_catch);
FatalException(v8::Isolate::GetCurrent(),try_catch);
}
@@ -294,7 +294,7 @@ void TW_CALL GetCallback(void *value, void *clientData) {
Local<Value> val=fct->Call(v8::Isolate::GetCurrent()->GetCurrentContext()->Global(), 1, argv);
if (try_catch.HasCaught())
FatalException(try_catch);
FatalException(v8::Isolate::GetCurrent(),try_catch);
switch(cb->type) {
case TW_TYPE_INT8:
@@ -398,7 +398,7 @@ void TW_CALL SetButtonCallback(void *clientData) {
constructorHandle->Call(v8::Isolate::GetCurrent()->GetCurrentContext()->Global(), 1, argv);
if (try_catch.HasCaught())
FatalException(try_catch);
FatalException(v8::Isolate::GetCurrent(),try_catch);
}

0 comments on commit c6759a9

Please sign in to comment.