diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-11-02 13:25:49 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-11-02 13:25:49 +0100 |
commit | 558afe17863078c25b36b63255ae3bb7dc437a94 (patch) | |
tree | 36f12fcfacdca4b96f2feb9387c89b68d767a3e9 /components/script/dom/bindings/codegen | |
parent | ba2fb4e2e29125e66ed1d6a129735858604709fc (diff) | |
download | servo-558afe17863078c25b36b63255ae3bb7dc437a94.tar.gz servo-558afe17863078c25b36b63255ae3bb7dc437a94.zip |
Update js.
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index b65d2e65cdb..37d4eb0f892 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -2936,7 +2936,7 @@ assert!(!unforgeable_holder.is_null()); code.append(InitUnforgeablePropertiesOnHolder(self.descriptor, self.properties)) code.append(CGGeneric("""\ JS_SetReservedSlot(prototype.get(), DOM_PROTO_UNFORGEABLE_HOLDER_SLOT, - ObjectValue(&*unforgeable_holder.get()))""")) + ObjectValue(unforgeable_holder.get()))""")) return CGList(code, "\n") @@ -6607,7 +6607,7 @@ class CallCallback(CallbackMethod): return "aThisObj.get()" def getCallableDecl(self): - return "rooted!(in(cx) let callable = ObjectValue(&*self.parent.callback()));\n" + return "rooted!(in(cx) let callable = ObjectValue(self.parent.callback()));\n" def getCallGuard(self): if self.callback._treatNonObjectAsNull: @@ -6646,7 +6646,7 @@ class CallbackOperationBase(CallbackMethod): 'rooted!(in(cx) let callable =\n' + CGIndenter( CGIfElseWrapper('isCallable', - CGGeneric('ObjectValue(&*self.parent.callback())'), + CGGeneric('ObjectValue(self.parent.callback())'), CGGeneric(getCallableFromProp))).define() + ');\n') def getCallGuard(self): @@ -6734,10 +6734,10 @@ class CGIterableMethodGenerator(CGGeneric): throw_type_error(cx, "Argument 1 of ${ifaceName}.forEach is not callable."); return false; } - rooted!(in(cx) let arg0 = ObjectValue(&*arg0)); + rooted!(in(cx) let arg0 = ObjectValue(arg0)); rooted!(in(cx) let mut call_arg1 = UndefinedValue()); rooted!(in(cx) let mut call_arg2 = UndefinedValue()); - let mut call_args = vec![UndefinedValue(), UndefinedValue(), ObjectValue(&**_obj)]; + let mut call_args = vec![UndefinedValue(), UndefinedValue(), ObjectValue(*_obj)]; rooted!(in(cx) let mut ignoredReturnVal = UndefinedValue()); for i in 0..(*this).get_iterable_length() { (*this).get_value_at_index(i).to_jsval(cx, call_arg1.handle_mut()); |