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

proceed with debugging

  • Loading branch information
toidiu
toidiu committed Sep 17, 2017
commit 6f7bdee132de0a113a60379ce8ef3d7add667850
@@ -4750,13 +4750,22 @@ def __init__(self, descriptor, name):
def define(self):
# Our first argument is the id we're getting.
argName = self.arguments[0].identifier.name
return ("println!(\"==========-o-o-o1 {:?}\", id);\n"
"match "
return ("println!(\"===DEBUG-o-o-o-7 {:?}\", jsid_to_string(cx, id) );\n"
"if jsid_to_string(cx, id).is_none() {\n"
" return false\n"
"}\n"
"let %s = string_jsid_to_string(cx, id);\n"
"let this = UnwrapProxy(proxy);\n"
"let this = &*this;\n" % argName +
CGProxySpecialOperation.define(self))

# "//let mut this;\n"
# "//let mut %s;\n"
# "//match jsid_to_string(cx, id) {\n"
# "// None => return false,\n"
# "// Some(str_name) => {\n"
# " },\n"
# "//}\n" % argName +

class CGProxyNamedGetter(CGProxyNamedOperation):
"""
@@ -5724,6 +5733,7 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries
'dom::bindings::conversions::root_from_handlevalue',
'dom::bindings::conversions::root_from_object',
'dom::bindings::conversions::string_jsid_to_string',
'dom::bindings::conversions::jsid_to_string',
'dom::bindings::codegen::PrototypeList',
'dom::bindings::codegen::RegisterBindings',
'dom::bindings::codegen::UnionTypes',
@@ -141,6 +141,8 @@ 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!("===DEBUG-o-o-o-1 {:?}", jsid_to_string(cx, id) );
println!("===DEBUG-o-o-o-2 {:?}", jsid_to_string(cx, id).is_some() );
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.