| 34 | } |
| 35 | |
| 36 | void HandleProgressCallback(const char *data, size_t count) { |
| 37 | HandleScope scope; |
| 38 | |
| 39 | v8::Local<v8::Value> argv[] = { |
| 40 | New<v8::Integer>(*reinterpret_cast<int*>(const_cast<char*>(data))) |
| 41 | }; |
| 42 | progress->Call(1, argv, async_resource); |
| 43 | } |
| 44 | |
| 45 | private: |
| 46 | Callback *progress; |
no test coverage detected