mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Rename a confusing argument.
This commit is contained in:
parent
4f1feb3925
commit
b7117893af
1 changed files with 2 additions and 2 deletions
|
@ -358,12 +358,12 @@ fn define_constants(cx: *mut JSContext, obj: HandleObject, constants: &'static [
|
||||||
/// Creates the *interface prototype object*.
|
/// Creates the *interface prototype object*.
|
||||||
/// Fails on JSAPI failure.
|
/// Fails on JSAPI failure.
|
||||||
fn create_interface_prototype_object(cx: *mut JSContext,
|
fn create_interface_prototype_object(cx: *mut JSContext,
|
||||||
global: HandleObject,
|
parent_proto: HandleObject,
|
||||||
proto_class: &'static JSClass,
|
proto_class: &'static JSClass,
|
||||||
members: &'static NativeProperties,
|
members: &'static NativeProperties,
|
||||||
rval: MutableHandleObject) {
|
rval: MutableHandleObject) {
|
||||||
unsafe {
|
unsafe {
|
||||||
rval.set(JS_NewObjectWithUniqueType(cx, proto_class, global));
|
rval.set(JS_NewObjectWithUniqueType(cx, proto_class, parent_proto));
|
||||||
assert!(!rval.get().is_null());
|
assert!(!rval.get().is_null());
|
||||||
|
|
||||||
if let Some(methods) = members.methods {
|
if let Some(methods) = members.methods {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue