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 81be1c0028c7c4d82a412f85236610e047c845a2..7b0fd37e99655651069cdaf161b8ebbc0b1dc70f 100644 |
--- a/test/cctest/interpreter/bytecode-expectations-printer.cc |
+++ b/test/cctest/interpreter/bytecode-expectations-printer.cc |
@@ -83,7 +83,9 @@ i::Handle<i::BytecodeArray> |
BytecodeExpectationsPrinter::GetBytecodeArrayForModule( |
v8::Local<v8::Module> module) const { |
i::Handle<i::Module> i_module = v8::Utils::OpenHandle(*module); |
- return i::handle(i_module->shared()->bytecode_array(), i_isolate()); |
+ CHECK(!i_module->instantiated()); |
+ return i::handle(SharedFunctionInfo::cast(i_module->code())->bytecode_array(), |
+ i_isolate()); |
} |
i::Handle<i::BytecodeArray> |