| 322 | } |
| 323 | |
| 324 | inline double as_double() const { |
| 325 | if (mType != NUMBER) |
| 326 | throw DukException() << "Expected number, got " << type_name(); |
| 327 | return mPOD.number; |
| 328 | } |
| 329 | |
| 330 | inline float as_float() const { |
| 331 | if (mType != NUMBER) |
nothing calls this directly
no test coverage detected