Skip to content

Commit

Permalink
Mark some constant fields with @const
Browse files Browse the repository at this point in the history
Closes #3249.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=238300836
  • Loading branch information
realityforge authored and tjgq committed Mar 14, 2019
1 parent 6144227 commit 910edd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions externs/browser/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2926,25 +2926,25 @@ function WebSocket(url, opt_protocol) {}

/**
* The connection has not yet been established.
* @type {number}
* @const {number}
*/
WebSocket.CONNECTING = 0;

/**
* The WebSocket connection is established and communication is possible.
* @type {number}
* @const {number}
*/
WebSocket.OPEN = 1;

/**
* The connection is going through the closing handshake, or the close() method has been invoked.
* @type {number}
* @const {number}
*/
WebSocket.CLOSING = 2;

/**
* The connection has been closed or could not be opened.
* @type {number}
* @const {number}
*/
WebSocket.CLOSED = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 910edd9

Please sign in to comment.