Prechádzať zdrojové kódy

Add function prototype to DelegateWrapper (#334)

* Add function prototype to DelegateWrapper so it has standard function properties such as Call, Apply, and Bind

* Replace spacing characters

I keep forgetting to do this before comitting...
briman0094 8 rokov pred
rodič
commit
b0628d1917
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      Jint/Runtime/Interop/DelegateWrapper.cs

+ 1 - 0
Jint/Runtime/Interop/DelegateWrapper.cs

@@ -17,6 +17,7 @@ namespace Jint.Runtime.Interop
         public DelegateWrapper(Engine engine, Delegate d) : base(engine, null, null, false)
         {
             _d = d;
+            Prototype = engine.Function.PrototypeObject;
         }
 
         public override JsValue Call(JsValue thisObject, JsValue[] jsArguments)