mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Avoid generating literal nulls in DOM bindings.
This commit is contained in:
parent
7f9fd0ec1f
commit
baf4e17232
1 changed files with 2 additions and 2 deletions
|
@ -2883,10 +2883,10 @@ assert!((*cache)[PrototypeList::Constructor::%(id)s as usize].is_null());
|
|||
CGGeneric(fill(
|
||||
"""
|
||||
assert!(JS_GetProperty(cx, prototype.handle(),
|
||||
b\"${prop}\0\" as *const u8 as *const _,
|
||||
${prop} as *const u8 as *const _,
|
||||
aliasedVal.handle_mut()));
|
||||
""",
|
||||
prop=m.identifier.name))
|
||||
prop=str_to_const_array(m.identifier.name)))
|
||||
] + [defineAlias(alias) for alias in sorted(m.aliases)])
|
||||
|
||||
defineAliases = CGList([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue