0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-03-10 05:56:52 -04:00

Uncomment broken test, use #[ignore] instead (#388)

This commit is contained in:
Bert Belder 2020-05-31 18:46:24 +02:00
parent cfbfb9524f
commit af9ac3c4b9
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -76,22 +76,20 @@ fn handle_scope_numbers() {
// `Local<Integer>` created at the end of the test is created in HandleScope // `Local<Integer>` created at the end of the test is created in HandleScope
// `hs2` and not in `hs1` as specified. When this local is accessed, which is // `hs2` and not in `hs1` as specified. When this local is accessed, which is
// after `hs2` is destroyed, a crash happens. // after `hs2` is destroyed, a crash happens.
// #[test] #[test]
// fn handle_scope_early_drop() { #[ignore]
// let _setup_guard = setup(); fn handle_scope_early_drop() {
// let _setup_guard = setup();
// let mut isolate = v8::Isolate::new(Default::default()); let mut isolate = v8::Isolate::new(Default::default());
// let mut hs1 = v8::HandleScope::new(&mut isolate); let mut hs1 = v8::HandleScope::new(&mut isolate);
// let hs1 = hs1.enter(); let hs1 = hs1.enter();
// let local = {
// let local = { let mut hs2 = v8::HandleScope::new(hs1);
// let mut hs2 = v8::HandleScope::new(hs1); let _hs2 = hs2.enter();
// let _hs2 = hs2.enter(); v8::Integer::new(hs1, 123)
// };
// v8::Integer::new(hs1, 123) assert_eq!(local.value(), 123);
// }; }
// assert_eq!(local.value(), 123);
// }
#[test] #[test]
fn global_handles() { fn global_handles() {