diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-08 01:27:18 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-07 12:27:18 -0400 |
commit | f12acdb50bd6afae21d8d033548c012d23ec2791 (patch) | |
tree | e61071f25a9dfe3ea853bcaea0ece7307a02bc73 /core/shared_queue.js | |
parent | a205e8a3c2bf5ba72fe18bd7f224303338956c62 (diff) |
Update @typescript-eslint/* to v2.1.0 (#2878)
Diffstat (limited to 'core/shared_queue.js')
-rw-r--r-- | core/shared_queue.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/shared_queue.js b/core/shared_queue.js index b69f1b422..22a64a312 100644 --- a/core/shared_queue.js +++ b/core/shared_queue.js @@ -48,7 +48,7 @@ SharedQueue Binary Layout } function init() { - let shared = Deno.core.shared; + const shared = Deno.core.shared; assert(shared.byteLength > 0); assert(sharedBytes == null); assert(shared32 == null); @@ -113,9 +113,9 @@ SharedQueue Binary Layout } function push(opId, buf) { - let off = head(); - let end = off + buf.byteLength; - let index = numRecords(); + const off = head(); + const end = off + buf.byteLength; + const index = numRecords(); if (end > shared32.byteLength || index >= MAX_RECORDS) { // console.log("shared_queue.js push fail"); return false; @@ -130,7 +130,7 @@ SharedQueue Binary Layout /// Returns null if empty. function shift() { - let i = shared32[INDEX_NUM_SHIFTED_OFF]; + const i = shared32[INDEX_NUM_SHIFTED_OFF]; if (size() == 0) { assert(i == 0); return null; @@ -164,7 +164,7 @@ SharedQueue Binary Layout asyncHandler(opId, buf); } else { while (true) { - let opIdBuf = shift(); + const opIdBuf = shift(); if (opIdBuf == null) { break; } |