Commit 83650b1b authored by wang's avatar wang

ws 测试

parent b1305b0d
This diff is collapsed.
...@@ -3674,7 +3674,7 @@ class CanvasRenderingContext2D { ...@@ -3674,7 +3674,7 @@ class CanvasRenderingContext2D {
drawImage() { drawImage() {
print1('CanvasRenderingContext2D.drawImage', arguments) print1('CanvasRenderingContext2D.drawImage', arguments)
// this._context.drawImage(...arguments) // this._context.drawImage(...arguments)
this._onload(); // this._onload();
} }
...@@ -3938,7 +3938,6 @@ Object.defineProperties(CanvasRenderingContext2D.prototype, { ...@@ -3938,7 +3938,6 @@ Object.defineProperties(CanvasRenderingContext2D.prototype, {
createPattern: {enumerable: true}, createPattern: {enumerable: true},
createRadialGradient: {enumerable: true}, createRadialGradient: {enumerable: true},
drawFocusIfNeeded: {enumerable: true}, drawFocusIfNeeded: {enumerable: true},
drawImage: {enumerable: true},
fill: {enumerable: true}, fill: {enumerable: true},
fillText: {enumerable: true}, fillText: {enumerable: true},
getContextAttributes: {enumerable: true}, getContextAttributes: {enumerable: true},
...@@ -4184,6 +4183,7 @@ Object.defineProperties(HTMLImageElement.prototype, { ...@@ -4184,6 +4183,7 @@ Object.defineProperties(HTMLImageElement.prototype, {
onload: { onload: {
set(args) { set(args) {
this._onload = args this._onload = args
args();
} }
} }
}) })
...@@ -7752,11 +7752,11 @@ Object.defineProperties(MediaQueryList.prototype, { ...@@ -7752,11 +7752,11 @@ Object.defineProperties(MediaQueryList.prototype, {
get() { get() {
medias.push(this.type[0]); medias.push(this.type[0]);
// return _random() > 0.5 ? true: false // return _random() > 0.5 ? true: false
let t = window.ENV.matchmedias[this.type[0]]; let t = window.ENV.matchmedias[this.type];
if (t === undefined) { if (t === undefined) {
t = false; t = false;
} }
v_console_log(" [*] MediaQueryList -> matches[get]", this.type[0], t); print(" [*] MediaQueryList -> matches[get]", this.type, t);
return t; return t;
} }
...@@ -8293,7 +8293,6 @@ Array.prototype.join = v_saf(function join(s) { ...@@ -8293,7 +8293,6 @@ Array.prototype.join = v_saf(function join(s) {
"createPattern", "createPattern",
"createRadialGradient", "createRadialGradient",
"drawFocusIfNeeded", "drawFocusIfNeeded",
"drawImage",
"fill", "fill",
"fillText", "fillText",
"getContextAttributes", "getContextAttributes",
...@@ -12447,7 +12446,9 @@ Object.defineProperties(Worker.prototype, { ...@@ -12447,7 +12446,9 @@ Object.defineProperties(Worker.prototype, {
O.u[O.u.length - 1] = !O.u[O.u.length - 1] O.u[O.u.length - 1] = !O.u[O.u.length - 1]
}, function (O) { }, function (O) {
let res = O.u[O.u.length - 2][O.u[O.u.length - 1]]; let res = O.u[O.u.length - 2][O.u[O.u.length - 1]];
if (O.u[O.u.length - 1] === 'length' && res === 44 && O.u[O.u.length - 2][0]+'' === '0,0,0,0'){ if (O.u[O.u.length - 1] === 'length' && res === 4
&& O.u[O.u.length - 2][0]
&& O.u[O.u.length - 2][0].hash!== undefined){
debugger debugger
} }
con3(O.u[O.u.length - 2], 'get', O.u[O.u.length - 1], '=', res) con3(O.u[O.u.length - 2], 'get', O.u[O.u.length - 1], '=', res)
...@@ -12955,6 +12956,9 @@ Object.defineProperties(Worker.prototype, { ...@@ -12955,6 +12956,9 @@ Object.defineProperties(Worker.prototype, {
} }
}, function (O) { }, function (O) {
"use strict"; "use strict";
if (O.u[O.u.length - 2]===5 && O.u[O.u.length - 1] === 232){
debugger;
}
con3(O.u[O.u.length - 3], 'set', O.u[O.u.length - 2], '=', O.u[O.u.length - 1]) con3(O.u[O.u.length - 3], 'set', O.u[O.u.length - 2], '=', O.u[O.u.length - 1])
O.u[O.u.length - 3][O.u[O.u.length - 2]] = O.u[O.u.length - 1]; O.u[O.u.length - 3][O.u[O.u.length - 2]] = O.u[O.u.length - 1];
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