mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Avoid generating literal nulls in DOM bindings.
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user