| 340 | } |
| 341 | |
| 342 | inline duk_uint_t as_uint() const { |
| 343 | if (mType != NUMBER) |
| 344 | throw DukException() << "Expected number, got " << type_name(); |
| 345 | return static_cast<uint32_t>(mPOD.number); |
| 346 | } |
| 347 | |
| 348 | inline void* as_pointer() const { |
| 349 | if (mType != POINTER && mType != NULLREF) |
nothing calls this directly
no test coverage detected