| Index: test/cctest/heap/test-spaces.cc
|
| diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
|
| index 40c4d0648d7eff843282b713fd29f27c726a8058..f0cecdcfc8ca9304e765073ba596759bbda15e49 100644
|
| --- a/test/cctest/heap/test-spaces.cc
|
| +++ b/test/cctest/heap/test-spaces.cc
|
| @@ -485,7 +485,15 @@ TEST(SizeOfFirstPageIsLargeEnough) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| if (!isolate->snapshot_available()) return;
|
| - if (Snapshot::EmbedsScript(isolate)) return;
|
| + HandleScope scope(isolate);
|
| + v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext();
|
| + // Skip this test on the custom snapshot builder.
|
| + if (!CcTest::global()
|
| + ->Get(context, v8_str("assertEquals"))
|
| + .ToLocalChecked()
|
| + ->IsUndefined()) {
|
| + return;
|
| + }
|
|
|
| // If this test fails due to enabling experimental natives that are not part
|
| // of the snapshot, we may need to adjust CalculateFirstPageSizes.
|
| @@ -498,7 +506,6 @@ TEST(SizeOfFirstPageIsLargeEnough) {
|
| }
|
|
|
| // Executing the empty script gets by with one page per space.
|
| - HandleScope scope(isolate);
|
| CompileRun("/*empty*/");
|
| for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) {
|
| // Debug code can be very large, so skip CODE_SPACE if we are generating it.
|
|
|