mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-25 08:39:15 -05:00
Move v8::string::NewStringType to v8::NewStringType
This commit is contained in:
parent
d91f0269fa
commit
3925b8122c
2 changed files with 3 additions and 3 deletions
|
@ -17,13 +17,13 @@ mod isolate;
|
|||
mod local;
|
||||
mod locker;
|
||||
mod number;
|
||||
mod string;
|
||||
mod string_buffer;
|
||||
mod string_view;
|
||||
mod support;
|
||||
|
||||
pub mod array_buffer;
|
||||
pub mod platform;
|
||||
pub mod string;
|
||||
// This module is intentionally named "V8" rather than "v8" to match the
|
||||
// C++ namespace "v8::V8".
|
||||
#[allow(non_snake_case)]
|
||||
|
@ -34,6 +34,7 @@ pub use isolate::Isolate;
|
|||
pub use local::Local;
|
||||
pub use locker::Locker;
|
||||
pub use number::{Integer, Number};
|
||||
pub use string::NewStringType;
|
||||
pub use string::String;
|
||||
pub use string_buffer::StringBuffer;
|
||||
pub use string_view::StringView;
|
||||
|
|
|
@ -88,8 +88,7 @@ fn test_string() {
|
|||
v8::HandleScope::enter(&mut locker, |scope| {
|
||||
let reference = "Hello 🦕 world!";
|
||||
let local =
|
||||
v8::String::new(scope, reference, v8::string::NewStringType::Normal)
|
||||
.unwrap();
|
||||
v8::String::new(scope, reference, v8::NewStringType::Normal).unwrap();
|
||||
assert_eq!(reference, local.to_rust_string_lossy(scope));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue