sergeyksv / tingodb

Embedded Node.js database upward compatible with MongoDB
www.tingodb.com
1.16k stars 105 forks source link

Compatiblility with --use-strict #154

Closed n8duff closed 7 years ago

n8duff commented 7 years ago

My server.js was already built using strict javascript, workaround needed for --use-strict

nodejs --use-strict server.js

Error output:

.../node_modules/tingodb/lib/tcoll.js:1138
                with (value.scope) {
                ^^^^
SyntaxError: Strict mode code may not include a with statement