Lines Matching refs:with
1 # with chapter
3 Compile time `with` for strict mode JavaScript
5 [](http://travis-ci.org/pugjs/with)
6 [](https://david-dm.org/pugjs/with)
7 [](https://www.npmjs.com/package/with)
11 $ npm install with
16 var addWith = require('with')
40 with (obj) {
45 …though. For starters, assignments to variables will always remain contained within the with block.
51 with ({}) {
54 assert(foo === 'bar')// => This fails for compile time with but passes for native with
57 with ({}) {
60 assert(obj.foo === 'bar')// => This fails for compile time with but passes for native with
77 It is also safe to use in strict mode (unlike `with`) and it minifies properly (`with` disables vir…