mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
use new test cases
This commit is contained in:
@@ -33,10 +33,10 @@ var JS = require('./js');
|
||||
* @private
|
||||
*/
|
||||
var CallbacksHandler = (function () {
|
||||
this._callbackTable = {};
|
||||
this._invoking = {};
|
||||
this._toRemove = {};
|
||||
this._toRemoveAll = null;
|
||||
this._callbackTable = JS.createMap(true);
|
||||
this._invoking = JS.createMap(true);
|
||||
this._toRemove = JS.createMap(true);
|
||||
this._toRemoveAll = '';
|
||||
});
|
||||
|
||||
// Avoid to equal to user set target (null for example)
|
||||
|
||||
@@ -631,8 +631,9 @@ js.shiftArguments = function () {
|
||||
js.createMap = function (forceDictMode) {
|
||||
var map = Object.create(null);
|
||||
if (forceDictMode) {
|
||||
map["__"] = undefined;
|
||||
delete map["__"];
|
||||
const INVALID_IDENTIFIER = '.';
|
||||
map[INVALID_IDENTIFIER] = true;
|
||||
delete map[INVALID_IDENTIFIER];
|
||||
}
|
||||
return map;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user