LearnBoost/mongoose — Issue #595: SyntaxError: Unexpected strict mode reserved word : enum
Author: secoif
Created: 2011-11-05 05:44:18+00:00
State: open

I've been starting to try convert all my JS to use strict mode, but it appears mongoose causes a stink when using enums keyword

```SyntaxError: Unexpected strict mode reserved word```
```javascript
type: {type: String, enum: ['image', 'other']}
^^^^
```

Workaround:

```javascript
type: {type: String, 'enum': ['image', 'other']}
```

The workaround is totally fine, just thought I'd make you guys aware there may be an issue going forward as more people start to use strict mode.