Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ak 18468 #18546

Closed
wants to merge 5 commits into from
Closed

Ak 18468 #18546

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

debugging and exploring the repo.

  • Loading branch information
toidiu
toidiu committed Sep 16, 2017
commit 2cc4f87e6c05c9d5e145106ea47ffdcb96496ef5
@@ -4750,7 +4750,9 @@ def __init__(self, descriptor, name):
def define(self):
# Our first argument is the id we're getting.
argName = self.arguments[0].identifier.name
return ("let %s = string_jsid_to_string(cx, id);\n"
return ("println!(\"==========-o-o-o1 {:?}\", id);\n"
"match "
"let %s = string_jsid_to_string(cx, id);\n"
"let this = UnwrapProxy(proxy);\n"
"let this = &*this;\n" % argName +
CGProxySpecialOperation.define(self))
@@ -141,6 +141,7 @@ impl <T: FromJSValConvertible + JSTraceable> FromJSValConvertible for RootedTrac
/// Panics if `id` is not string-valued.
pub fn string_jsid_to_string(cx: *mut JSContext, id: HandleId) -> DOMString {
unsafe {
println!("{:?}", id);
assert!(RUST_JSID_IS_STRING(id));
jsstring_to_str(cx, RUST_JSID_TO_STRING(id))
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.