diff --git a/lib/src/fnc/script/from.rs b/lib/src/fnc/script/from.rs index f4d962a4..df06dbb5 100644 --- a/lib/src/fnc/script/from.rs +++ b/lib/src/fnc/script/from.rs @@ -76,6 +76,10 @@ impl<'js> FromJs<'js> for Value { } return Ok(x.into()); } + // Check to see if this object is a function + if v.as_function().is_some() { + return Ok(Value::None); + } // This object is a normal object let mut x = Object::default(); for i in v.props() {