Skip to content
Browse files

Ensures we return *something* in the binding's offset function. Also …

…removed extra `}`
  • Loading branch information...
1 parent d2200d8 commit 2a2418fb7f7bf8862d02f9c7f519384becfcca3a Sean Ouimet committed Aug 15, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/bindings.js
  2. +2 −1 src/init.cc
View
2 lib/bindings.js
@@ -2,4 +2,4 @@ try {
module.exports = require('../build/Release/clipper');
} catch (e) {
throw e;
-}}
+}
View
3 src/init.cc
@@ -14,6 +14,7 @@ v8::Handle<Value> Method(const Arguments& args) {
// if (args[0]->IsArray()) {
v8::Local<v8::Array> points = v8::Array::Cast(*args[0]);
+
Polygons polyshape(1);
Polygon polyout;
@@ -49,7 +50,7 @@ v8::Handle<Value> Method(const Arguments& args) {
}
// }
- // return scope.Close(v8::Undefined());
+ return scope.Close(v8::Undefined());
}
extern "C" {

0 comments on commit 2a2418f

Please sign in to comment.
Something went wrong with that request. Please try again.