Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/altmp/altv-js-module-v2 into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
xxshady committed Aug 15, 2024
2 parents 3aa2427 + bc54f5c commit 1f3fe98
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shared/src/helpers/Convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ alt::MValue js::JSToMValue(v8::Local<v8::Value> val, bool allowFunction)
else if(val->IsTypedArray())
{
v8::Local<v8::TypedArray> typedArray = val.As<v8::TypedArray>();
if(!typedArray->HasBuffer()) return core.CreateMValueNone();
v8::Local<v8::ArrayBuffer> v8Buffer = typedArray->Buffer();
return core.CreateMValueByteArray((uint8_t*)((uintptr_t)v8Buffer->GetBackingStore()->Data() + typedArray->ByteOffset()), typedArray->ByteLength());
}
Expand Down

0 comments on commit 1f3fe98

Please sign in to comment.