summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/repl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/repl.ts b/js/repl.ts
index 806a3e142..4fae31eab 100644
--- a/js/repl.ts
+++ b/js/repl.ts
@@ -124,7 +124,7 @@ function parenthesesAreOpen(code: string): boolean {
if (bracePosition % 2 === 0) {
stack.push(bracePosition + 1); // push next expected brace position
} else {
- if (stack.length === 0 || stack.pop() !== bracePosition) {
+ if (stack.pop() !== bracePosition) {
return false;
}
}