This commit is contained in:
Kagami Hiiragi 2015-01-10 01:44:03 +03:00
parent c15b5a457b
commit e99d76e670

View File

@ -3,6 +3,8 @@
#include <stdlib.h>
#include "./pow.h"
#define MAX_SAFE_JS_INTEGER 9007199254740991
using node::Buffer;
using v8::Handle;
using v8::Local;
@ -13,8 +15,6 @@ using v8::Object;
using v8::String;
using v8::Integer;
#define MAX_SAFE_JS_INTEGER 9007199254740991
class PowWorker : public NanAsyncWorker {
public:
PowWorker(NanCallback* callback,
@ -81,8 +81,6 @@ NAN_METHOD(PowAsync) {
NanReturnUndefined();
}
// Expose synchronous and asynchronous access to our
// Estimate() function
void InitAll(Handle<Object> exports) {
exports->Set(
NanNew<String>("powAsync"),