Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 03356e15a0001819b0865b6854d51d933eb51457..54a3e203a1fb54d61236f4107658002cfe26097a 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -552,7 +552,7 @@ void Shell::ReportException(Isolate* isolate, v8::TryCatch* try_catch) { |
printf("%s\n", exception_string); |
} else { |
// Print (filename):(line number): (message). |
- v8::String::Utf8Value filename(message->GetScriptResourceName()); |
+ v8::String::Utf8Value filename(message->GetScriptOrigin().ResourceName()); |
const char* filename_string = ToCString(filename); |
int linenum = message->GetLineNumber(); |
printf("%s:%i: %s\n", filename_string, linenum, exception_string); |