| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0e35d01 commit 301a4f8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -381,7 +381,7 @@ function REPLServer(prompt, | |||
| 381 | 381 | paused = false; | |
| 382 | 382 | let entry; | |
| 383 | 383 | const tmpCompletionEnabled = self.isCompletionEnabled; | |
| 384 | - while (entry = ArrayPrototypeShift(pausedBuffer)) { | ||
| 384 | + while ((entry = ArrayPrototypeShift(pausedBuffer)) !== undefined) { | ||
| 385 | 385 | const { 0: type, 1: payload, 2: isCompletionEnabled } = entry; | |
| 386 | 386 | switch (type) { | |
| 387 | 387 | case 'key': { | |
@@ -1450,7 +1450,7 @@ function complete(line, callback) { | |||
| 1450 | 1450 | ArrayPrototypePush(completionGroups, | |
| 1451 | 1451 | getGlobalLexicalScopeNames(this[kContextId])); | |
| 1452 | 1452 | let contextProto = this.context; | |
| 1453 | - while (contextProto = ObjectGetPrototypeOf(contextProto)) { | ||
| 1453 | + while ((contextProto = ObjectGetPrototypeOf(contextProto)) !== null) { | ||
| 1454 | 1454 | ArrayPrototypePush(completionGroups, | |
| 1455 | 1455 | filteredOwnPropertyNames(contextProto)); | |
| 1456 | 1456 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments