修复 events.defaultMaxListeners的问题
清理代码 更换 promise的实现
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
module.exports = function (__runtime__, scope) {
|
||||
var rtConsole = __runtime__.console;
|
||||
module.exports = function (runtime, scope) {
|
||||
var rtConsole = runtime.console;
|
||||
var console = {};
|
||||
|
||||
console.assert = function (value, message) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -40,7 +40,7 @@ public class EventEmitter {
|
||||
}
|
||||
|
||||
private void ensureListenersNotAtLimit() {
|
||||
if (mMaxListeners != 0 && mListenersMap.size() >= mMaxListeners) {
|
||||
if (mMaxListeners != 0 && mListenerWrappers.size() >= mMaxListeners) {
|
||||
throw new ScriptException(new TooManyListenersException("max = " + mMaxListeners));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user