[CCode (cname = "JSObjectHasProperty", instance_pos = 1.1)]
public bool has_property (JS.Context ctx, JS.String property_name);
[CCode (cname = "JSObjectMakeFunction")]
- public Object.make_function (JS.String? name, [CCode (array_length_pos = 1.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
+ public Object.make_function (JS.Context ctx, JS.String? name, [CCode (array_length_pos = 2.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
}
[CCode (cheader_filename = "JavaScriptCore/JavaScript.h", cname = "struct OpaqueJSString", free_function = "JSStringRelease", has_type_id = false)]
[Compact]
[CCode (cname = "JSValueGetType", instance_pos = 1.1)]
public JS.Type get_type (JS.Context ctx);
[CCode (cname = "JSValueGetTypedArrayType", instance_pos = 1.1)]
- public JS.TypedArrayType get_typed_array_type (JS.Context ctx);
+ public JS.TypedArrayType get_typed_array_type (JS.Context ctx, out JS.Value? exception = null);
[CCode (cname = "JSValueIsArray", instance_pos = 1.1)]
public bool is_array (JS.Context ctx);
[CCode (cname = "JSValueIsBoolean", instance_pos = 1.1)]
[CCode (cname = "JSObjectHasProperty", instance_pos = 1.1)]
public bool has_property (JS.Context ctx, JS.String property_name);
[CCode (cname = "JSObjectMakeFunction")]
- public Object.make_function (JS.String? name, [CCode (array_length_pos = 1.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
+ public Object.make_function (JS.Context ctx, JS.String? name, [CCode (array_length_pos = 2.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
}
[CCode (cheader_filename = "JavaScriptCore/JavaScript.h", cname = "struct OpaqueJSString", free_function = "JSStringRelease", has_type_id = false)]
[Compact]
public JS.Type get_type (JS.Context ctx);
[CCode (cname = "JSValueGetTypedArrayType", instance_pos = 1.1)]
- public JS.TypedArrayType get_typed_array_type (JS.Context ctx);
+ public JS.TypedArrayType get_typed_array_type (JS.Context ctx, out JS.Value? exception = null);
[CCode (cname = "JSValueIsArray", instance_pos = 1.1)]
public bool is_array (JS.Context ctx);
namespace WebKit {
namespace DOM {
+ [CCode (has_typedef = false)]
public delegate void EventTargetFunc (WebKit.DOM.EventTarget target, WebKit.DOM.Event event);
}
}
[Version (deprecated = true, deprecated_since = "2.22")]
public abstract string lookup_namespace_uri (string prefix);
}
- [CCode (cheader_filename = "webkit2/webkit-web-extension.h")]
+ [CCode (cheader_filename = "webkit2/webkit-web-extension.h", has_typedef = false)]
public delegate void EventTargetFunc (WebKit.DOM.EventTarget target, WebKit.DOM.Event event);
[CCode (cheader_filename = "webkit2/webkit-web-extension.h", cname = "WEBKIT_DOM_CSS_RULE_CHARSET_RULE")]
[Version (deprecated = true, deprecated_since = "2.22")]