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

Unified Diff: mojo/public/js/connector.js

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 6 years 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 | « mojo/public/js/connection.js ('k') | mojo/public/js/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/connector.js
diff --git a/mojo/public/js/connector.js b/mojo/public/js/connector.js
index badd12a9f3e9811eaeabd373c28f5e921d339ee9..6578a0e1ce5460b6d44e8f924f0de73fed454222 100644
--- a/mojo/public/js/connector.js
+++ b/mojo/public/js/connector.js
@@ -10,6 +10,8 @@ define("mojo/public/js/connector", [
], function(buffer, codec, core, support) {
function Connector(handle) {
+ if (!core.isHandle(handle))
+ throw new Error("Connector: not a handle " + handle);
this.handle_ = handle;
this.dropWrites_ = false;
this.error_ = false;
« no previous file with comments | « mojo/public/js/connection.js ('k') | mojo/public/js/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698