| Index: src/wasm/wasm-js.cc
|
| diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc
|
| index 7944a621e677e65796d9a50100913e783be1b5d1..b40959219b0af256e0c0aa5117e822824cf6cdc1 100644
|
| --- a/src/wasm/wasm-js.cc
|
| +++ b/src/wasm/wasm-js.cc
|
| @@ -37,6 +37,7 @@ struct RawBuffer {
|
|
|
| RawBuffer GetRawBufferArgument(
|
| ErrorThrower& thrower, const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| + // TODO(titzer): allow typed array views.
|
| if (args.Length() < 1 || !args[0]->IsArrayBuffer()) {
|
| thrower.Error("Argument 0 must be an array buffer");
|
| return {nullptr, nullptr};
|
| @@ -44,8 +45,6 @@ RawBuffer GetRawBufferArgument(
|
| Local<ArrayBuffer> buffer = Local<ArrayBuffer>::Cast(args[0]);
|
| ArrayBuffer::Contents contents = buffer->GetContents();
|
|
|
| - // TODO(titzer): allow offsets into buffers, views, etc.
|
| -
|
| const byte* start = reinterpret_cast<const byte*>(contents.Data());
|
| const byte* end = start + contents.ByteLength();
|
|
|
|
|