pub fn from_func(f: NativeFunction) -> JSObject {
        JSObject {
            proto: Heap::FUNCTION_PROTO,
            value: ObjectValue::from_func(f),
            properties: HashMap::new(),
        }
    }
/// Wrap the given native call into a Function.
Wrap the given native call into a Function.
Wrap the given native call into a Function .
pub fn from_func(f: NativeFunction) -> JSObject {
        JSObject {
            proto: Heap::FUNCTION_PROTO,
            value: ObjectValue::from_func(f),
            properties: HashMap::new(),
        }
    }
pub fn from_func ( f : NativeFunction ) -> JSObject { JSObject { proto : Heap :: FUNCTION_PROTO , value : ObjectValue :: from_func ( f ) , properties : HashMap :: new ( ) , } }
Wrap the given native call into a Function.
Wrap the given native call into a Function .
f
NativeFunction
f
NativeFunction