Skip to content

ZNTC0800: 'with' is not allowed in strict mode

‘with’ is not allowed in strict mode

Category: Parser: Strict Mode

"use strict"; with(obj) {}

Reproduce in Playground →

See the error message for cause and resolution.