diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-03-31 14:38:28 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-04-02 00:05:24 +0400 |
commit | 67e078094b53861a5aa7e9354e33487d0bd4f73b (patch) | |
tree | 09a706adee1ddb59c1507ee3320de9cb6896135b /deps/v8/samples | |
parent | f984555d47298cfb01b3e55c2861066379306fc3 (diff) | |
download | android-node-v8-67e078094b53861a5aa7e9354e33487d0bd4f73b.tar.gz android-node-v8-67e078094b53861a5aa7e9354e33487d0bd4f73b.tar.bz2 android-node-v8-67e078094b53861a5aa7e9354e33487d0bd4f73b.zip |
deps: upgrade v8 to 3.25.30
Diffstat (limited to 'deps/v8/samples')
-rw-r--r-- | deps/v8/samples/lineprocessor.cc | 3 | ||||
-rw-r--r-- | deps/v8/samples/shell.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/samples/lineprocessor.cc b/deps/v8/samples/lineprocessor.cc index 1d6a3bdba6..a8ad0318d8 100644 --- a/deps/v8/samples/lineprocessor.cc +++ b/deps/v8/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) diff --git a/deps/v8/samples/shell.cc b/deps/v8/samples/shell.cc index 92a473231b..f8d2c84594 100644 --- a/deps/v8/samples/shell.cc +++ b/deps/v8/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) |