Examples in the "Events" section of the documentation relating to newly introduced ES6 functionality, like classes, don't work unless strict mode is specified, but 'use strict'doesn't appear in the example.
My suggestion is to include 'use strict' in these examples so that the code can simply be copied and pasted as-is and run as working examples.
Examples in the "Events" section of the documentation relating to newly introduced ES6 functionality, like classes, don't work unless strict mode is specified, but
'use strict'doesn't appear in the example.My suggestion is to include
'use strict'in these examples so that the code can simply be copied and pasted as-is and run as working examples.