修复 events.defaultMaxListeners的问题

清理代码
更换 promise的实现
This commit is contained in:
hyb1996
2018-12-09 14:18:19 +08:00
parent 8d052d2b6f
commit 941cdccf31
6 changed files with 7 additions and 221 deletions

Binary file not shown.

View File

@@ -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

View File

@@ -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));
}
}

View File

@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":451,"versionName":"4.1.0 Alpha","enabled":true,"outputFile":"commonRelease-4.1.0 Alpha.apk","fullName":"commonRelease","baseName":"common-release"},"path":"commonRelease-4.1.0 Alpha.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":452,"versionName":"4.1.0 Alpha2","enabled":true,"outputFile":"commonRelease-4.1.0 Alpha2.apk","fullName":"commonRelease","baseName":"common-release"},"path":"commonRelease-4.1.0 Alpha2.apk","properties":{}}]

View File

@@ -1,6 +1,6 @@
{
"appVersionCode": 451,
"appVersionName": "4.1.0 Alpha",
"appVersionCode": 452,
"appVersionName": "4.1.0 Alpha2",
"target": 28,
"mini": 17,
"compile": 28,