public byte[] Compile(string filename, byte[] bytes)
 {
     try
     {
         // return _vm.DumpBytecode(filename, bytes);
         return(DuktapeAux.DumpBytecode(_ctx, filename, bytes));
     }
     catch (Exception exception)
     {
         Debug.LogError(exception);
         return(null);
     }
 }
Exemple #2
0
 public byte[] DumpBytecode(string filename, byte[] source)
 {
     return(_ctx != null?DuktapeAux.DumpBytecode(_ctx.rawValue, filename, source) : null);
 }