Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
napi: updating chakra napi implementation to match new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana authored and kfarnung committed Jan 9, 2018
1 parent 4a3b72f commit b26e183
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/chakrashim/src/v8typedarray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ size_t ArrayBufferView::ByteLength() {

bool ArrayBufferView::HasBuffer() const {
JsValueRef result;
if (JsGetTypedArrayInfo((JsValueRef)this, nullptr, &result, nullptr, nullptr) != JsNoError
&& JsGetDataViewInfo((JsValueRef)this, &result, nullptr, nullptr) != JsNoError) {
if (JsGetTypedArrayInfo((JsValueRef)this, nullptr, &result,
nullptr, nullptr) != JsNoError
&& JsGetDataViewInfo((JsValueRef)this, &result,
nullptr, nullptr) != JsNoError) {
return false;
}
return result != nullptr;
Expand Down

0 comments on commit b26e183

Please sign in to comment.