Index: samples/shell.cc |
diff --git a/samples/shell.cc b/samples/shell.cc |
index 92a473231b88769eb40b19d63a97dde57b035de1..f8d2c84594bde007892b8bc4b657a3b343f731b4 100644 |
--- a/samples/shell.cc |
+++ b/samples/shell.cc |
@@ -304,7 +304,8 @@ bool ExecuteString(v8::Isolate* isolate, |
bool report_exceptions) { |
v8::HandleScope handle_scope(isolate); |
v8::TryCatch try_catch; |
- v8::Handle<v8::Script> script = v8::Script::Compile(source, name); |
+ v8::ScriptOrigin origin(name); |
+ v8::Handle<v8::Script> script = v8::Script::Compile(source, &origin); |
if (script.IsEmpty()) { |
// Print errors that happened during compilation. |
if (report_exceptions) |