Example #1
0
 public static JsValue *JsObjectMakeConstructor(JsContext *ctx, JsClass *jsClass, FnPtr <ObjectCallAsConstructorCallback> callAsConstructor)
 => JsObjectMakeConstructor(ctx, jsClass, (IntPtr)callAsConstructor);
Example #2
0
 public static JsValue *JsObjectMakeTypedArrayWithBytesNoCopy(JsContext *ctx, JsTypedArrayType arrayType, void *bytes, UIntPtr byteLength, FnPtr <TypedArrayBytesDeallocatorCallback> bytesDeallocator, void *deallocatorContext,
                                                              JsValue **exception)
 => JsObjectMakeTypedArrayWithBytesNoCopy(ctx, arrayType, bytes, byteLength, (IntPtr)bytesDeallocator, deallocatorContext, exception);
Example #3
0
 public static JsValue *JsObjectMakeFunctionWithCallback(JsContext *ctx, JsString *name, FnPtr <ObjectCallAsFunctionCallback> callAsFunction)
 => JsObjectMakeFunctionWithCallback(ctx, name, (IntPtr)callAsFunction);