| 328 | } |
| 329 | |
| 330 | inline float as_float() const { |
| 331 | if (mType != NUMBER) |
| 332 | throw DukException() << "Expected number, got " << type_name(); |
| 333 | return static_cast<float>(mPOD.number); |
| 334 | } |
| 335 | |
| 336 | inline duk_int_t as_int() const { |
| 337 | if (mType != NUMBER) |
nothing calls this directly
no test coverage detected