Index: test/cctest/interpreter/bytecode-expectations-printer.cc |
diff --git a/test/cctest/interpreter/bytecode-expectations-printer.cc b/test/cctest/interpreter/bytecode-expectations-printer.cc |
index 8f34308ee0e839ead35ce31ec9d5726a47f77924..4013c205a2d6decb3b235200e5b2e0a5853a9875 100644 |
--- a/test/cctest/interpreter/bytecode-expectations-printer.cc |
+++ b/test/cctest/interpreter/bytecode-expectations-printer.cc |
@@ -70,7 +70,9 @@ v8::Local<v8::Script> BytecodeExpectationsPrinter::CompileScript( |
v8::Local<v8::Module> BytecodeExpectationsPrinter::CompileModule( |
const char* program) const { |
- v8::ScriptCompiler::Source source(V8StringFromUTF8(program)); |
+ ScriptOrigin origin = |
+ ScriptOrigin::ModuleOrigin(Local<v8::Value>(), isolate_); |
+ v8::ScriptCompiler::Source source(V8StringFromUTF8(program), origin); |
return v8::ScriptCompiler::CompileModule(isolate_, &source).ToLocalChecked(); |
} |