Commit 28697cfd authored by wang's avatar wang

详细对比

parent 024cf9ec
......@@ -43,33 +43,10 @@ Object.defineProperty = function (p, v, d) {
}
_join = Array.prototype.join;
Array.prototype.join = function (s){
if (this[0] === '{"foo\\u0000bar":42}'){
console.log('join', this, s, _join.call(this, s))
return `{"foo\\u0000bar":42}INVALID:SyntaxError: Expected ',' or ']' after array element in JSON at position 3INVALID:SyntaxError: Unexpected token '�', "�{}" is not valid JSONINVALID:SyntaxError: Unexpected token '�', "��[\x00\x00�\x00\x00]\x00" is not valid JSON`
}
if (this.includes('groupCollapsed')){
let res = _join.call([
'assert', 'clear',
'context', 'count',
'countReset', 'createTask',
'debug', 'dir',
'dirxml', 'error',
'group', 'groupCollapsed',
'groupEnd', 'info',
'log', 'memory',
'profile', 'profileEnd',
'table', 'time',
'timeEnd', 'timeLog',
'timeStamp', 'trace',
'warn'
], s);
let res = _join.call(this, s);
console.log('join', this, s, res)
return res;
}
return _join.call(this, s)
return res;
}
Date.now = function now() {
return 1693903208580
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment