зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #8605 - Rename a confusing argument (from Ms2ger:rename-argument); r=jdm
Source-Repo: https://github.com/servo/servo Source-Revision: 7526ed72d7c7533cf758c85b98cd61952c0578d9
This commit is contained in:
Родитель
d5d4fc96cd
Коммит
0de53168f0
|
@ -358,12 +358,12 @@ fn define_constants(cx: *mut JSContext, obj: HandleObject, constants: &'static [
|
|||
/// Creates the *interface prototype object*.
|
||||
/// Fails on JSAPI failure.
|
||||
fn create_interface_prototype_object(cx: *mut JSContext,
|
||||
global: HandleObject,
|
||||
parent_proto: HandleObject,
|
||||
proto_class: &'static JSClass,
|
||||
members: &'static NativeProperties,
|
||||
rval: MutableHandleObject) {
|
||||
unsafe {
|
||||
rval.set(JS_NewObjectWithUniqueType(cx, proto_class, global));
|
||||
rval.set(JS_NewObjectWithUniqueType(cx, proto_class, parent_proto));
|
||||
assert!(!rval.get().is_null());
|
||||
|
||||
if let Some(methods) = members.methods {
|
||||
|
|
Загрузка…
Ссылка в новой задаче