jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
2.6k stars 438 forks source link

Modified the exports of the event module. #1843

Closed LaszloLango closed 5 years ago

LaszloLango commented 5 years ago

Both require('events') and require('events').EventEmitter should return with the EventEmitter like in NodeJS. This improves the compatibility with existing third-party NodeJS modules.

IoT.js-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com

LaszloLango commented 5 years ago

@galpeter I've updated the documentation, please check.