| 6 | |
| 7 | #ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER |
| 8 | Value TestIsSharedArrayBuffer(const CallbackInfo& info) { |
| 9 | if (info.Length() < 1) { |
| 10 | Error::New(info.Env(), "Wrong number of arguments") |
| 11 | .ThrowAsJavaScriptException(); |
| 12 | return Value(); |
| 13 | } |
| 14 | |
| 15 | return Boolean::New(info.Env(), info[0].IsSharedArrayBuffer()); |
| 16 | } |
| 17 | |
| 18 | Value TestCreateSharedArrayBuffer(const CallbackInfo& info) { |
| 19 | if (info.Length() < 1) { |
nothing calls this directly
no test coverage detected