Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow passing arguments to setTimeout/setInterval callbacks #3941
Conversation
hoppipolla-critic-bot
commented
Nov 8, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/3123 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
Woah, I didn't expect to see this. Exciting! |
|
Hey, How does it relate to #3936? I was looking at this issue but I'm not sure if the codegen changes of this pull request magically fix it already? Otherwise how could the argument of |
|
@guillaumebort : This PR does not implement the SetTimeout(DOMString,...) overload. If you look at the changes in Window.webidl file, you'll see that setTimeout(DOMString, long, any) is commented out. To fix #3936 , we need to uncomment this line. The binding generator will notice that setTimeout has 2 overloads and generate the JS -> Rust binding function (extern fn setTimeout in WindowBinding.rs) such that if the first parameter (i.e |
|
(Actually, whenever it's not a callable object, the value is converted to a string.) |
|
@Ms2ger : My bad. I think it is about time I read the overload resolution algorithm ;-) |
|
Ok great, thanks for the info! I will see if I can apply my pending change on top of your work then. |
This comment has been minimized.
This comment has been minimized.
Ms2ger
commented on 4b2b0d0
Nov 15, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
Ms2ger
replied
Nov 15, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
Ms2ger
replied
Nov 15, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
jdm
replied
Nov 15, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Ms2ger |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/timeout-arguments = 4b2b0d0 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
saw approval from Ms2ger |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/timeout-arguments = 4b2b0d0 into auto |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Ms2ger |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/timeout-arguments = 4b2b0d0 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 43b452f |
4b2b0d0
into
servo:master
mukilan commentedNov 8, 2014
No description provided.