| 514 | const JSValue& arrayBuffer, |
| 515 | JSExceptionTracker& exceptionTracker) { |
| 516 | v8::HandleScope handleScope(_isolate); |
| 517 | |
| 518 | v8::Local<v8::TypedArray> retval; |
| 519 | auto local = fromValdiJSValue(_isolate, arrayBuffer, exceptionTracker); |
| 520 | if (!exceptionTracker) { |
| 521 | return JSValueRef(); |
| 522 | } |
| 523 | |
| 524 | if (!local->IsArrayBuffer() && !local->IsSharedArrayBuffer()) { |
| 525 | exceptionTracker.onError("Cannot create typed array since provided object is not arraybuffer"); |
| 526 | return JSValueRef(); |
| 527 | } |
no test coverage detected