Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index a8ad0318d88efa151ca1a88c81817ea0d8f02732..1d6a3bdba699dd32260c4a5e9a54b59f1e17bb68 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -238,8 +238,7 @@ int RunMain(int argc, char* argv[]) { |
{ |
// Compile script in try/catch context. |
v8::TryCatch try_catch; |
- v8::ScriptOrigin origin(script_name); |
- script = v8::Script::Compile(script_source, &origin); |
+ script = v8::Script::Compile(script_source, script_name); |
if (script.IsEmpty()) { |
// Print errors that happened during compilation. |
if (report_exceptions) |