| 248 | class JSFunction : public SimpleRefCountable { |
| 249 | public: |
| 250 | virtual const ReferenceInfo& getReferenceInfo() const; |
| 251 | virtual JSValueRef operator()(JSFunctionNativeCallContext& callContext) noexcept = 0; |
| 252 | }; |
| 253 | |
| 254 | struct JSTypedArray { |
| 255 | TypedArrayType type = TypedArrayType::ArrayBuffer; |
| 256 | void* data = nullptr; |
| 257 | size_t length = 0; |
| 258 | JSValueRef arrayBuffer = JSValueRef(); |
| 259 | |
| 260 | inline JSTypedArray() = default; |
| 261 | inline JSTypedArray(TypedArrayType type, void* data, size_t length, JSValueRef&& arrayBuffer) |
| 262 | : type(type), data(data), length(length), arrayBuffer(std::move(arrayBuffer)) {} |
no outgoing calls