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