use new test cases

This commit is contained in:
Jare Guo
2017-08-04 11:36:47 +08:00
parent e06c67a212
commit 7ed02e004d
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -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)
+3 -2
View File
@@ -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;
};