Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: gin/runner.cc

Issue 68323004: Port Mojo's sample_service.cc to JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/bindings/js/codec.js » ('j') | mojo/public/bindings/js/codec.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/runner.cc
diff --git a/gin/runner.cc b/gin/runner.cc
index a3c9544872954967a3dd99197cb554a2574b0544..46671c592a1e7caf4c98b285c14e97dc112ab8b4 100644
--- a/gin/runner.cc
+++ b/gin/runner.cc
@@ -57,14 +57,12 @@ void Runner::Run(const std::string& script) {
}
void Runner::Run(v8::Handle<Script> script) {
+ TryCatch try_catch;
delegate_->WillRunScript(this, script);
- {
- TryCatch try_catch;
- script->Run();
- if (try_catch.HasCaught())
- delegate_->UnhandledException(this, try_catch);
- }
+ script->Run();
delegate_->DidRunScript(this, script);
+ if (try_catch.HasCaught())
+ delegate_->UnhandledException(this, try_catch);
}
Runner::Scope::Scope(Runner* runner)
« no previous file with comments | « no previous file | mojo/public/bindings/js/codec.js » ('j') | mojo/public/bindings/js/codec.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698