hi all,
there are two maps used in this example, one for 'options', one for 'output'. My question is, why is that in the script, the brackets [] works for 'output', but not for 'options'?
For example, if change the line:
options.verbose ===> options[verbose]
it returns error: verbose is not defined
However, 'output[request.host]' is perfectly fine.
The two maps are installed with the same code, the wrap/unwrap are the same, what's the difference?
I guess my confusion is what exactly does bracket mean here? Does it invoke the named property interceptor?