| 381 | val(val& v) : val(static_cast<const val&>(v)) {} |
| 382 | |
| 383 | ~val() { |
| 384 | if (uses_ref_count()) { |
| 385 | internal::_emval_decref(as_handle()); |
| 386 | handle = 0; |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | EM_VAL as_handle() const { |
| 391 | #ifdef __EMSCRIPTEN_PTHREADS__ |
nothing calls this directly
no test coverage detected