Skip to content

Commit 38c7fb1

Browse files
fixup! src: support import() and import.meta in embedder-run modules
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
1 parent 6d557b8 commit 38c7fb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/cctest/test_environment.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ TEST_F(EnvironmentTest, LoadEnvironmentWithESModuleDynamicImport) {
879879
// Finish the await.
880880
context->GetMicrotaskQueue()->PerformCheckpoint(isolate_);
881881

882+
EXPECT_EQ(result.As<v8::Promise>()->State(), v8::Promise::kFulfilled);
882883
v8::Local<v8::Value> imported_value =
883884
imported_promise.As<v8::Promise>()->Result();
884885
EXPECT_TRUE(imported_value->IsObject());
@@ -974,6 +975,7 @@ TEST_F(EnvironmentTest, LoadEnvironmentWithCommonJSDynamicImport) {
974975
v8::Local<v8::Context> context = isolate_->GetCurrentContext();
975976
// Finish the await.
976977
context->GetMicrotaskQueue()->PerformCheckpoint(isolate_);
978+
EXPECT_EQ(result.As<v8::Promise>()->State(), v8::Promise::kFulfilled);
977979
v8::Local<v8::Value> imported_value = result.As<v8::Promise>()->Result();
978980
EXPECT_TRUE(imported_value->IsObject());
979981
v8::Local<v8::Value> dynamic_process =

0 commit comments

Comments
 (0)