Example #1
0
 public Instance SetMethod(object name, NativeCodeCallback nativeCode)
 {
     return SetField(name, new Instance
                               {
                                   Prototype = new Instance { Code = new FunctionCode(nativeCode) }
                               });
 }
Example #2
0
 public FunctionCode(NativeCodeCallback native)
 {
     this.NativeCode = native;
 }