# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0134.md

# E0134: unclosed code block; expected '}' by end of file

```config-for-examples
{
  "globals": {
    "doWork": true,
    "work": true
  }
}
```

Every `{` introducing a code block must have a matching `}` ending a code block.
It is a syntax error to omit the `}`:

```javascript
function doAllWork() {
  while (work.length) {
    doWork(work.pop());
}
```

To fix this error, write a matching `}`:

```javascript
function doAllWork() {
  while (work.length) {
    doWork(work.pop());
  }
}
```

Alternatively, remove an unnecessary `{`:

```javascript
function doAllWork() {
  while (work.length)
    doWork(work.pop());
}
```

Introduced in quick-lint-js version 0.2.0.