怎么在creator里面获取文件MD5

assetsManager.setVerifyCallback(function (filePath, asset) {
var md5 = calculateMD5(filePath);
if (md5 === asset.md5)
return true;
else
return false;
});

热更新的文件效验回调里面的calculateMD5 怎么在js里实现,

百度了下,有个nodejs里的 var crypto = require(‘crypto’); 可以实现

读取文件 jsb.fileUtils.getDataFromFile 后,可以用 crypto 获取MD5

creator模拟器上能运行,ios模拟器上也能运行,但是安卓黑屏

creator模拟器虽然能运行,但是有提示:Simulator: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
at a (/Users/wangsheng/Desktop/tutorial-hot-update-master/library/bundle.project.js?009:7266:0)

@panda
@jare

安卓黑屏调试
这里错误
04-18 17:08:12.641: E/cocos js error:(19583): assets/src/project.dev.js line:7247 msg:mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create

bundle.project.js?009:7266:0 和 project.dev.js line:7247 对应的代码[ arr.proto = {proto: Uint8Array.prototype, foo: function () { return 42 }} ]

function typedArraySupport () {
try {
var arr = new Uint8Array(1)
arr.proto = {proto: Uint8Array.prototype, foo: function () { return 42 }}
return arr.foo() === 42 && // typed array instances can be augmented
typeof arr.subarray === ‘function’ && // chrome 9-10 lack subarray
arr.subarray(1, 1).byteLength === 0 // ie10 has broken subarray
} catch (e) {
return false
}
}

你后来怎么处理的,解决了嘛?