UNPKG

@swc/helpers

Version:

External helpers for the swc project.

10 lines (7 loc) 358 B
import { _assert_this_initialized } from "./_assert_this_initialized.js"; import { _type_of } from "./_type_of.js"; export function _possible_constructor_return(self, call) { if (call && (_type_of(call) === "object" || typeof call === "function")) return call; return _assert_this_initialized(self); } export { _possible_constructor_return as _ };