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

Commit

Permalink
test,build: fix merge test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton authored and kfarnung committed Jan 9, 2018
1 parent c1ba6d6 commit 4a3b72f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deps/chakrashim/src/v8module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace v8 {

Maybe<bool> Module::InstantiateModule(Local<Context> context,
ResolveCallback callback) {
return Just(false);
return Just(false);
}

MaybeLocal<Value> Module::Evaluate(Local<Context> context) {
Expand Down
18 changes: 9 additions & 9 deletions deps/chakrashim/src/v8typedarray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,36 @@ using jsrt::ContextShim;
using jsrt::CachedPropertyIdRef;

Local<ArrayBuffer> ArrayBufferView::Buffer() {
JsValueRef result;
if (JsGetTypedArrayInfo(this,
nullptr, &result, nullptr, nullptr) != JsNoError) {
JsValueRef result = JS_INVALID_REFERENCE;
if (JsGetTypedArrayInfo(this, nullptr, &result, nullptr, nullptr) != JsNoError
&& JsGetDataViewInfo(this, &result, nullptr, nullptr) != JsNoError) {
return Local<ArrayBuffer>();
}
return static_cast<ArrayBuffer*>(result);
}

size_t ArrayBufferView::ByteOffset() {
unsigned int result;
if (JsGetTypedArrayInfo(this,
nullptr, nullptr, &result, nullptr) != JsNoError) {
if (JsGetTypedArrayInfo(this, nullptr, nullptr, &result, nullptr) != JsNoError
&& JsGetDataViewInfo(this, nullptr, &result, nullptr) != JsNoError) {
return 0;
}
return result;
}

size_t ArrayBufferView::ByteLength() {
unsigned int result;
if (JsGetTypedArrayInfo(this,
nullptr, nullptr, nullptr, &result) != JsNoError) {
if (JsGetTypedArrayInfo(this, nullptr, nullptr, nullptr, &result) != JsNoError
&& JsGetDataViewInfo(this, nullptr, nullptr, &result) != JsNoError) {
return 0;
}
return result;
}

bool ArrayBufferView::HasBuffer() const {
JsValueRef result;
if (JsGetTypedArrayInfo((JsValueRef)this,
nullptr, &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 4a3b72f

Please sign in to comment.