static void CheckError(JSRuntimeError err) { if (err != JSRuntimeError.NoError) { throw new Exception("V8.Simple runtime error: " + err.ToString()); } }
public static extern IntPtr GetArrayBufferData(JSContext context, JSObject obj, out JSRuntimeError outError);
public static extern JSString CreateString(JSContext context, [MarshalAs(UnmanagedType.LPWStr, SizeParamIndex = 2)] string buffer, int length, out JSRuntimeError error);
public static extern JSExternal AsExternal(JSValue value, out JSRuntimeError error);
public static extern JSFunction AsFunction(JSValue value, out JSRuntimeError error);
public static extern JSArray AsArray(JSValue value, out JSRuntimeError error);
public static extern JSObject AsObject(JSValue value, out JSRuntimeError error);
public static extern bool AsBool(JSValue value, out JSRuntimeError error);
public static extern JSString AsString(JSValue value, out JSRuntimeError error);
public static extern double AsDouble(JSValue value, out JSRuntimeError error);
public static extern int AsInt(JSValue value, out JSRuntimeError error);