mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-02-02 04:37:35 -05:00
Format test_api.rs: break up overlong JS source string (#203)
This commit is contained in:
parent
2ad44ae0a3
commit
fe2a158fad
1 changed files with 5 additions and 2 deletions
|
@ -1759,9 +1759,12 @@ fn shared_array_buffer() {
|
|||
);
|
||||
let source = v8::String::new(
|
||||
s,
|
||||
"sharedBytes = new Uint8Array(shared); sharedBytes[2] = 16; sharedBytes[14] = 62; sharedBytes[5] + sharedBytes[12]",
|
||||
r"sharedBytes = new Uint8Array(shared);
|
||||
sharedBytes[2] = 16;
|
||||
sharedBytes[14] = 62;
|
||||
sharedBytes[5] + sharedBytes[12]",
|
||||
)
|
||||
.unwrap();
|
||||
.unwrap();
|
||||
let mut script = v8::Script::compile(s, context, source, None).unwrap();
|
||||
source.to_rust_string_lossy(s);
|
||||
let result: Local<v8::Integer> =
|
||||
|
|
Loading…
Add table
Reference in a new issue