Пример #1
0
 static void CheckError(JSRuntimeError err)
 {
     if (err != JSRuntimeError.NoError)
     {
         throw new Exception("V8.Simple runtime error: " + err.ToString());
     }
 }
Пример #2
0
 public static extern IntPtr GetArrayBufferData(JSContext context, JSObject obj, out JSRuntimeError outError);
Пример #3
0
 public static extern JSString CreateString(JSContext context, [MarshalAs(UnmanagedType.LPWStr, SizeParamIndex = 2)] string buffer, int length, out JSRuntimeError error);
Пример #4
0
 public static extern JSExternal AsExternal(JSValue value, out JSRuntimeError error);
Пример #5
0
 public static extern JSFunction AsFunction(JSValue value, out JSRuntimeError error);
Пример #6
0
 public static extern JSArray AsArray(JSValue value, out JSRuntimeError error);
Пример #7
0
 public static extern JSObject AsObject(JSValue value, out JSRuntimeError error);
Пример #8
0
 public static extern bool AsBool(JSValue value, out JSRuntimeError error);
Пример #9
0
 public static extern JSString AsString(JSValue value, out JSRuntimeError error);
Пример #10
0
 public static extern double AsDouble(JSValue value, out JSRuntimeError error);
Пример #11
0
 public static extern int AsInt(JSValue value, out JSRuntimeError error);