(windowSize)
| 1441 | // Returns 0 if success or throw an exception if NGHTTP2_ERR_NOMEM |
| 1442 | // if the window allocation fails |
| 1443 | setLocalWindowSize(windowSize) { |
| 1444 | if (this.destroyed) |
| 1445 | throw new ERR_HTTP2_INVALID_SESSION(); |
| 1446 | |
| 1447 | validateInt32(windowSize, 'windowSize', 0); |
| 1448 | const ret = this[kHandle].setLocalWindowSize(windowSize); |
| 1449 | |
| 1450 | if (ret === NGHTTP2_ERR_NOMEM) { |
| 1451 | this.destroy(new ERR_HTTP2_NO_MEM()); |
| 1452 | } |
| 1453 | } |
| 1454 | |
| 1455 | // If ping is called while we are still connecting, or after close() has |
| 1456 | // been called, the ping callback will be invoked immediately with a ping |
no test coverage detected