Index: test/cctest/asmjs/test-asm-typer.cc |
diff --git a/test/cctest/asmjs/test-asm-typer.cc b/test/cctest/asmjs/test-asm-typer.cc |
index d345774dbf0efa5a856d20863f1ccce99a52f11f..e5ea893cb28601bbdeb8b1bd75e1740d6e27dfdd 100644 |
--- a/test/cctest/asmjs/test-asm-typer.cc |
+++ b/test/cctest/asmjs/test-asm-typer.cc |
@@ -260,12 +260,14 @@ class AsmTyperHarnessBuilder { |
return false; |
} |
- if (std::strstr(typer_->error_message(), error_message) == nullptr) { |
+ std::unique_ptr<char[]> msg = i::MessageHandler::GetLocalizedMessage( |
+ isolate_, typer_->error_message()); |
+ if (std::strstr(msg.get(), error_message) == nullptr) { |
std::cerr << "Asm validation failed with the wrong error message:\n" |
"Expected to contain '" |
<< error_message << "'\n" |
" Actually is '" |
- << typer_->error_message() << "'\n"; |
+ << msg.get() << "'\n"; |
return false; |
} |