getOwnPropertyDescriptor side effects

Boris Zbarsky bzbarsky at mit.edu
Tue Jan 10 19:36:11 UTC 2017


On 1/10/17 2:31 PM, Michał Wadas wrote:
> Implementations are allowed to extend objects. Otherwise presence of
> global/console/// would violate spec...

http://www.ecma-international.org/ecma-262/6.0/#sec-global-object 
explicitly says that the global object may have additional properties, 
so global .console is clearly not a spec violation.

-Boris


More information about the es-discuss mailing list