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

Commit

Permalink
chakrashim: add missing shim API
Browse files Browse the repository at this point in the history
Added `kMaxLength` to `TypedArray`
  • Loading branch information
kfarnung committed Apr 5, 2018
1 parent 46bf174 commit f63ed7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ class V8_EXPORT ArrayBufferView : public Object {

class V8_EXPORT TypedArray : public ArrayBufferView {
public:
static constexpr size_t kMaxLength =
sizeof(void*) == 4 ? (1u << 30) - 1 : (1u << 31) - 1;
size_t Length();
static TypedArray* Cast(Value* obj);
private:
Expand Down

0 comments on commit f63ed7c

Please sign in to comment.