|
|
@ -737,7 +737,7 @@ NAN_METHOD(Context2d::GetImageData) { |
|
|
|
|
|
|
|
Local<Int32> sizeHandle = Nan::New(size); |
|
|
|
Local<Value> caargv[] = { sizeHandle }; |
|
|
|
Local<Object> clampedArray = global->Get(Nan::New("Uint8ClampedArray").ToLocalChecked()).As<Function>()->NewInstance(3, caargv); |
|
|
|
Local<Object> clampedArray = global->Get(Nan::New("Uint8ClampedArray").ToLocalChecked()).As<Function>()->NewInstance(1, caargv); |
|
|
|
#else |
|
|
|
Local<ArrayBuffer> buffer = ArrayBuffer::New(Isolate::GetCurrent(), size); |
|
|
|
Local<Uint8ClampedArray> clampedArray = Uint8ClampedArray::New(buffer, 0, size); |
|
|
|