Index: samples/shell.cc |
diff --git a/samples/shell.cc b/samples/shell.cc |
index aebe49d49e7763038bb840e93bc3d5a290a43de8..f14b62704b710ce4c9ca8e98e1c8988ce7be9653 100644 |
--- a/samples/shell.cc |
+++ b/samples/shell.cc |
@@ -358,7 +358,7 @@ void ReportException(v8::Isolate* isolate, v8::TryCatch* try_catch) { |
fprintf(stderr, "%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(); |
fprintf(stderr, "%s:%i: %s\n", filename_string, linenum, exception_string); |