防止小游戏函数丢失console.assert
This commit is contained in:
@@ -356,6 +356,8 @@ var es;
|
||||
for (var _i = 1; _i < arguments.length; _i++) {
|
||||
args[_i - 1] = arguments[_i];
|
||||
}
|
||||
if (!console.assert)
|
||||
return;
|
||||
if (message == null) {
|
||||
console.assert(false);
|
||||
}
|
||||
|
||||
2
source/bin/framework.min.js
vendored
2
source/bin/framework.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,9 @@
|
||||
module es {
|
||||
export class Insist {
|
||||
public static fail(message: string = null, ...args: any[]) {
|
||||
if (!console.assert)
|
||||
return;
|
||||
|
||||
if (message == null) {
|
||||
console.assert(false);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user