Skip to content

Commit 32c2538

Browse files
committed
f
1 parent e549e2d commit 32c2538

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_api.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,6 +3350,9 @@ extern "C" fn heap_limit_callback(
33503350
current_heap_limit * 2 // Avoid V8 OOM.
33513351
}
33523352

3353+
// This test is disabled on MacOS because of a bug in V8. See
3354+
// https://bugs.chromium.org/p/v8/issues/detail?id=10843.
3355+
#[cfg(not(target_os = "macos"))]
33533356
#[test]
33543357
fn heap_limits() {
33553358
let _setup_guard = setup();
@@ -3366,14 +3369,14 @@ fn heap_limits() {
33663369
let scope = &mut v8::ContextScope::new(scope, context);
33673370

33683371
// Allocate JavaScript arrays until V8 calls the near-heap-limit callback.
3369-
// It takes about 100-200k iterations of this loop to get to that point.
3372+
// It takes about 50-200k iterations of this loop to get to that point.
33703373
for _ in 0..1_000_000 {
33713374
eval(
33723375
scope,
33733376
r#"
33743377
"hello 🦕 world"
3375-
.repeat(5)
3376-
.split("🦕", 2)
3378+
.repeat(10)
3379+
.split("🦕")
33773380
.map((s) => s.split(""))
33783381
.shift()
33793382
"#,

0 commit comments

Comments
 (0)