mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #28416 - servo:jdm-patch-49, r=jdm
Don't hardcode string types. Fixes an error reported in #28413.
This commit is contained in:
commit
56d12d8a86
1 changed files with 2 additions and 2 deletions
|
@ -1464,7 +1464,7 @@ unsafe extern "C" fn HostPopulateImportMeta(
|
||||||
|
|
||||||
rooted!(in(cx) let url_string = JS_NewStringCopyN(
|
rooted!(in(cx) let url_string = JS_NewStringCopyN(
|
||||||
cx,
|
cx,
|
||||||
base_url.as_str().as_ptr() as *const i8,
|
base_url.as_str().as_ptr() as *const _,
|
||||||
base_url.as_str().len()
|
base_url.as_str().len()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -1472,7 +1472,7 @@ unsafe extern "C" fn HostPopulateImportMeta(
|
||||||
JS_DefineProperty4(
|
JS_DefineProperty4(
|
||||||
cx,
|
cx,
|
||||||
meta_object,
|
meta_object,
|
||||||
"url\0".as_ptr() as *const i8,
|
"url\0".as_ptr() as *const _,
|
||||||
url_string.handle().into_handle(),
|
url_string.handle().into_handle(),
|
||||||
JSPROP_ENUMERATE.into(),
|
JSPROP_ENUMERATE.into(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue