0
0
Fork 0
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:
Bert Belder 2020-01-13 05:29:53 +01:00
parent 2ad44ae0a3
commit fe2a158fad
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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> =