微信小游戏中的Texture2D的一个类似bug

Cocos Creator 版本 2.0.5
如题,当打包成微信小游戏的时候,如果不包含开放域,那么如下代码没有任何问题
this._tempTexture = new cc.Texture2D();
this._tempTexture.initWithData(data, format, width, height);
但是如果包含开放域代码,在微信开发者工具中,上述代码会报如下错误
Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: No function was found that matched the signature provided.
TypeError: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: No function was found that matched the signature provided.
at WebGLRenderingContext.o.(anonymous function) (http://127.0.0.1:39745/game/dev/WAGame.js:1:351260)
at WebGLRenderingContext.e.(anonymous function) [as texImage2D] (http://127.0.0.1:39745/game/dev/WAGame.js:1:352400)
at Texture2D._setImage (http://127.0.0.1:39745/game/cocos2d-js.js:34086:14)
at Texture2D._setMipmap (http://127.0.0.1:39745/game/cocos2d-js.js:34109:18)
at Texture2D.update (http://127.0.0.1:39745/game/cocos2d-js.js:34039:72)
at new Texture2D (http://127.0.0.1:39745/game/cocos2d-js.js:34004:14)
at Object.initWithData (http://127.0.0.1:39745/game/cocos2d-js.js:10338:61)
at superCallBounded._super._updateUI (http://127.0.0.1:39745/game/src/project.dev.js:1862:27)
at superCallBounded._super.onLoad (http://127.0.0.1:39745/game/src/project.dev.js:1851:14)
at callOnLoad (http://127.0.0.1:39745/game/cocos2d-js.js:22108:9)

这段代码是在主域还是子域中?

主域,我刚才又用微信开发者工具的真机调试试了一下,该段代码没问题……
我估摸着是不是微信开发者工具抽风了

习惯就好,微信那个工具确实蛋疼:joy::joy::joy: