Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index edb0ba0a1e62ab01f3e32528eebe6196e679ff52..faf94c94eb2c987bfc76e621b6570ef81883a41d 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -300,7 +300,7 @@ void ReportException(v8::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); |