| Index: test/cctest/test-modules.cc
|
| diff --git a/test/cctest/test-modules.cc b/test/cctest/test-modules.cc
|
| index c33a5a124b94e817e3c9ab816bb0b5934e2fd465..e086a407f9e669bf9dabef6ddc8396aef1349524 100644
|
| --- a/test/cctest/test-modules.cc
|
| +++ b/test/cctest/test-modules.cc
|
| @@ -21,16 +21,14 @@ using v8::Value;
|
|
|
| MaybeLocal<Module> AlwaysEmptyResolveCallback(Local<Context> context,
|
| Local<String> specifier,
|
| - Local<Module> referrer,
|
| - Local<Value> data) {
|
| + Local<Module> referrer) {
|
| return MaybeLocal<Module>();
|
| }
|
|
|
| static int g_count = 0;
|
| MaybeLocal<Module> FailOnSecondCallResolveCallback(Local<Context> context,
|
| Local<String> specifier,
|
| - Local<Module> referrer,
|
| - Local<Value> data) {
|
| + Local<Module> referrer) {
|
| if (g_count++ > 0) return MaybeLocal<Module>();
|
| Local<String> source_text = v8_str("");
|
| ScriptOrigin origin(v8_str("module.js"));
|
| @@ -67,8 +65,7 @@ TEST(ModuleInstantiationFailures) {
|
| }
|
|
|
| static MaybeLocal<Module> CompileSpecifierAsModuleResolveCallback(
|
| - Local<Context> context, Local<String> specifier, Local<Module> referrer,
|
| - Local<Value> data) {
|
| + Local<Context> context, Local<String> specifier, Local<Module> referrer) {
|
| ScriptOrigin origin(v8_str("module.js"));
|
| ScriptCompiler::Source source(specifier, origin);
|
| return ScriptCompiler::CompileModule(CcTest::isolate(), &source)
|
| @@ -93,19 +90,4 @@ TEST(ModuleEvaluation) {
|
| ExpectInt32("Object.expando", 10);
|
| }
|
|
|
| -TEST(EmbedderData) {
|
| - Isolate* isolate = CcTest::isolate();
|
| - HandleScope scope(isolate);
|
| - LocalContext env;
|
| -
|
| - Local<String> source_text = v8_str("");
|
| - ScriptOrigin origin(v8_str("file.js"));
|
| - ScriptCompiler::Source source(source_text, origin);
|
| - Local<Module> module =
|
| - ScriptCompiler::CompileModule(isolate, &source).ToLocalChecked();
|
| - CHECK(module->GetEmbedderData()->IsUndefined());
|
| - module->SetEmbedderData(v8_num(42));
|
| - CHECK_EQ(42, Local<v8::Int32>::Cast(module->GetEmbedderData())->Value());
|
| -}
|
| -
|
| } // anonymous namespace
|
|
|