|
@@ -276,9 +276,6 @@ namespace Jint.Native
|
|
|
/// <summary>
|
|
|
/// Creates a valid <see cref="JsValue"/> instance from any <see cref="Object"/> instance
|
|
|
/// </summary>
|
|
|
- /// <param name="engine"></param>
|
|
|
- /// <param name="value"></param>
|
|
|
- /// <returns></returns>
|
|
|
public static JsValue FromObject(Engine engine, object value)
|
|
|
{
|
|
|
if (value == null)
|
|
@@ -311,13 +308,6 @@ namespace Jint.Native
|
|
|
return typeMapper(engine, value);
|
|
|
}
|
|
|
|
|
|
- var type = value as Type;
|
|
|
- if (type != null)
|
|
|
- {
|
|
|
- var typeReference = TypeReference.CreateTypeReference(engine, type);
|
|
|
- return typeReference;
|
|
|
- }
|
|
|
-
|
|
|
if (value is System.Array a)
|
|
|
{
|
|
|
// racy, we don't care, worst case we'll catch up later
|