Description* Warn when WeakMap is called as a function rather than a constructor.
Doing so is an error in ES6 spec drafts and Chrome Canary, so we
should not be more lenient when using emulated maps.
Fixes <https://code.google.com/p/google-caja/issues/detail?id=1832>.
* Use log-to-console.js in ES5/3 taming and guest frames; previously,
cajaVM.log would go nowhere in ES5/3 mode.
* Update log-to-console.js to pass linter.
@r5595
Patch Set 1 #
Total comments: 4
Patch Set 2 : Warn on calling WeakMap as a function; ES5/3 log to console by default. #
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||||||||||||||||||||