0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-22 15:07:00 -05:00

Fix script_compile_and_run by adding context.exit() (#40)

This commit is contained in:
Ry Dahl 2019-12-05 12:55:46 -05:00 committed by GitHub
parent 91b8a70fd2
commit 1835207186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,7 @@ fn script_compile_and_run() {
let result: v8::Local<v8::String> =
unsafe { std::mem::transmute_copy(&result) };
assert_eq!(result.to_rust_string_lossy(s), "Hello 13th planet");
context.exit();
});
}