mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-01-11 08:34:01 -05:00
Rename set_common_data to set_common_data_69 (#702)
This commit is contained in:
parent
3c22821499
commit
fca78fb0c1
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ extern "C" {
|
||||||
/// This function has no effect on application (non ICU) data. See udata_setAppData() for similar
|
/// This function has no effect on application (non ICU) data. See udata_setAppData() for similar
|
||||||
/// functionality for application data.
|
/// functionality for application data.
|
||||||
// TODO(ry) Map error code to something useful.
|
// TODO(ry) Map error code to something useful.
|
||||||
pub fn set_common_data(data: &'static [u8]) -> Result<(), i32> {
|
pub fn set_common_data_69(data: &'static [u8]) -> Result<(), i32> {
|
||||||
let mut error_code = 0i32;
|
let mut error_code = 0i32;
|
||||||
unsafe {
|
unsafe {
|
||||||
udata_setCommonData_69(data.as_ptr(), &mut error_code);
|
udata_setCommonData_69(data.as_ptr(), &mut error_code);
|
||||||
|
|
|
@ -25,7 +25,7 @@ impl Drop for SetupGuard {
|
||||||
fn setup() -> SetupGuard {
|
fn setup() -> SetupGuard {
|
||||||
static START: std::sync::Once = std::sync::Once::new();
|
static START: std::sync::Once = std::sync::Once::new();
|
||||||
START.call_once(|| {
|
START.call_once(|| {
|
||||||
assert!(v8::icu::set_common_data(align_data::include_aligned!(
|
assert!(v8::icu::set_common_data_69(align_data::include_aligned!(
|
||||||
align_data::Align16,
|
align_data::Align16,
|
||||||
"../third_party/icu/common/icudtl.dat"
|
"../third_party/icu/common/icudtl.dat"
|
||||||
))
|
))
|
||||||
|
@ -4882,7 +4882,7 @@ fn icu_date() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn icu_set_common_data_fail() {
|
fn icu_set_common_data_fail() {
|
||||||
assert!(v8::icu::set_common_data(&[1, 2, 3]).is_err());
|
assert!(v8::icu::set_common_data_69(&[1, 2, 3]).is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue