Commit cd9b1170 authored by wang's avatar wang

111

parent 130758a9
...@@ -364,7 +364,6 @@ while True: ...@@ -364,7 +364,6 @@ while True:
# session = requests.Session() # session = requests.Session()
# #
# if platform.uname().system == 'Darwin': # if platform.uname().system == 'Darwin':
total += 1
# response = session.post(url, headers=headers, data=data) # response = session.post(url, headers=headers, data=data)
# status_code = response.status_code # status_code = response.status_code
...@@ -402,6 +401,9 @@ while True: ...@@ -402,6 +401,9 @@ while True:
logger.success(f'添加成功 {success}') logger.success(f'添加成功 {success}')
# time.sleep(3) # time.sleep(3)
total += 1
except Exception as e: except Exception as e:
traceback.print_exc() traceback.print_exc()
print(e) print(e)
......
...@@ -85,7 +85,7 @@ var _random = Math.random ...@@ -85,7 +85,7 @@ var _random = Math.random
// Performance.prototype.now = function now() { // Performance.prototype.now = function now() {
// return Number('1727244753591'.slice(8)) // return Number('1727244753591'.slice(8))
// } // }
// times = 0 times = 0
// Math.random = function random() { // Math.random = function random() {
// return 0.08636862211354912 // return 0.08636862211354912
// }; // };
...@@ -6818,7 +6818,7 @@ Object.defineProperties(Navigator.prototype, { ...@@ -6818,7 +6818,7 @@ Object.defineProperties(Navigator.prototype, {
break; break;
case 'platformVersion': case 'platformVersion':
r = { r = {
"platformVersion": window.ENV.useragentdata.highvalue[e[0].toLowerCase()], "platformVersion": window.ENV.useragentdata.highvalue[e[0].toLowerCase()] ?? window.ENV.useragentdata.highvalue['platformVersion'] ,
"brands": window.ENV.useragentdata.brands, "brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile, "mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform "platform": window.ENV.useragentdata.platform
...@@ -6826,7 +6826,7 @@ Object.defineProperties(Navigator.prototype, { ...@@ -6826,7 +6826,7 @@ Object.defineProperties(Navigator.prototype, {
break; break;
case 'uaFullVersion': case 'uaFullVersion':
r = { r = {
"uaFullVersion": window.ENV.useragentdata.highvalue[e[0].toLowerCase()], "uaFullVersion": window.ENV.useragentdata.highvalue['uaFullVersion'] ?? window.ENV.useragentdata.highvalue['uafullversion'] ,
"brands": window.ENV.useragentdata.brands, "brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile, "mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform "platform": window.ENV.useragentdata.platform
...@@ -6842,7 +6842,7 @@ Object.defineProperties(Navigator.prototype, { ...@@ -6842,7 +6842,7 @@ Object.defineProperties(Navigator.prototype, {
break; break;
case 'fullVersionList': case 'fullVersionList':
r = { r = {
"fullVersionList": window.ENV.useragentdata.highvalue[e[0].toLowerCase()], "fullVersionList": window.ENV.useragentdata.highvalue[e[0].toLowerCase()] ??window.ENV.useragentdata.highvalue['fullVersionList'] ,
"brands": window.ENV.useragentdata.brands, "brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile, "mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform "platform": window.ENV.useragentdata.platform
...@@ -7041,10 +7041,11 @@ Object.defineProperties(TextMetrics.prototype, { ...@@ -7041,10 +7041,11 @@ Object.defineProperties(TextMetrics.prototype, {
}, },
[Symbol.toStringTag]: {value: "TextMetrics", writable: false, enumerable: false, configurable: true}, [Symbol.toStringTag]: {value: "TextMetrics", writable: false, enumerable: false, configurable: true},
}) })
Plugin = v_saf(function Plugin() { Plugin = v_saf(function Plugin(config) {
if (!v_new_toggle) { if (!v_new_toggle) {
throw TypeError("Illegal constructor") throw TypeError("Illegal constructor")
} }
mm.memory.private_data.set(this, config)
; ;
}) })
MimeType = v_saf(function MimeType() { MimeType = v_saf(function MimeType() {
...@@ -7053,29 +7054,83 @@ MimeType = v_saf(function MimeType() { ...@@ -7053,29 +7054,83 @@ MimeType = v_saf(function MimeType() {
} }
; ;
}) })
Object.defineProperties(Plugin.prototype, { Plugin.prototype = {
name: {value: '', writable: true}, get description() {
description: {value: '', writable: true}, if (!Plugin.prototype.isPrototypeOf(this)) {
filename: {value: '', writable: true}, throw new TypeError("Illegal constructor");
length: {value: '', writable: true}, }
}) ;
let result = mm.memory.private_data.get(this).description;
print('Get', 'Plugin', 'description', arguments, result);
return result;
},
get filename() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = mm.memory.private_data.get(this).filename;
print('Get', 'Plugin', 'filename', arguments, result);
return result;
},
item(index) {
// debugger;
let result = this[index];
print('Func', 'Plugin', 'item', arguments, result);
return result;
},
get length() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = 2;
print('Get', 'Plugin', 'length', arguments, result);
return result;
},
get name() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = mm.memory.private_data.get(this).name;
print('Get', 'Plugin', 'name', arguments, result);
return result;
},
namedItem(key) {
let result = this[key];
print('Func', 'Plugin', 'namedItem', result);
return result;
},
};
PluginArray = v_saf(function PluginArray() { PluginArray = v_saf(function PluginArray() {
if (!v_new_toggle) { if (!v_new_toggle) {
throw TypeError("Illegal constructor") throw TypeError("Illegal constructor")
} }
; ;
for (let i = 0; i < Object.keys(ENV.plugins).length; i++) { for (let i = 0; i < Object.keys(ENV.plugins).length; i++) {
this[i] = v_new(Plugin);
let plugin = ENV.plugins[i]; let plugin = ENV.plugins[i];
this[i].description = plugin.description; let config = {
this[i].filename = plugin.filename; description: plugin.description,
this[i].length = plugin.length; 'filename' : plugin.filename,
this[i].name = plugin.name; 'length' : plugin.length,
'name' : plugin.name,
}
this[i] = new Plugin(config);
// this[i].description = plugin.description;
// this[i].filename = plugin.filename;
// this[i].length = plugin.length;
// this[i].name = plugin.name;
this[i]['0'] = plugin['0'] || plugin['field1'] this[i]['0'] = plugin['0'] || plugin['field1']
this[i]['1'] = plugin['1'] || plugin['field2'] this[i]['1'] = plugin['1'] || plugin['field2']
this[i]['application/pdf'] = plugin['application/pdf'] || plugin['applicationpdf'] this[i]['application/pdf'] = plugin['application/pdf'] || plugin['applicationpdf']
this[i]['text/pdf'] = plugin['text/pdf'] || plugin['textpdf'] this[i]['text/pdf'] = plugin['text/pdf'] || plugin['textpdf']
let name = this[i].name
this[name] = this[i]
} }
// this[0] = v_new(Plugin); // this[0] = v_new(Plugin);
// this[0].description = "Portable Document Format"; // this[0].description = "Portable Document Format";
...@@ -7125,14 +7180,26 @@ Object.defineProperties(crypto, { ...@@ -7125,14 +7180,26 @@ Object.defineProperties(crypto, {
value: v_saf(function SubtleCrypto() { value: v_saf(function SubtleCrypto() {
}) })
}, },
// getRandomValues: { getRandomValues: {
// value: v_saf(function () { value: v_saf(function (e) {
// var e = arguments[0]; let MaxVal = 256;
// return e.map(function (x, i) { if (e instanceof Uint8Array){
// return e[i] = parseInt(2147193652) MaxVal = 256
// }); }
// }) else if (e instanceof Uint16Array){
// } MaxVal = 57435
}
else if (e instanceof Uint32Array){
MaxVal = 2147193652
}
let len = e.length;
for (let i = 0; i < len; i++) {
e[i] = MaxVal * Math.random();
}
print('getRandomValues.call', e)
return e;
})
}
}) })
window.crypto = crypto; window.crypto = crypto;
Image = v_saf(function Image() { Image = v_saf(function Image() {
...@@ -8069,14 +8136,15 @@ let emojis = { ...@@ -8069,14 +8136,15 @@ let emojis = {
"☕": {"40,51,1,1": "125,69,51,255", "52,57,1,1": "125,69,51,255"}, "☕": {"40,51,1,1": "125,69,51,255", "52,57,1,1": "125,69,51,255"},
"🌞": {"44,40,1,1": "157,125,63,255", "39,47,1,1": "252,213,63,255"}, "🌞": {"44,40,1,1": "157,125,63,255", "39,47,1,1": "252,213,63,255"},
"🐻‍❄️": {"52,57,1,1": "244,244,244,255", "40,51,1,1": "244,244,244,255"}, "🐻‍❄️": {"52,57,1,1": "244,244,244,255", "40,51,1,1": "244,244,244,255"},
"👰‍": {"58,39,1,1": "255,200,61,255", "42,52,1,1": "230,230,230,255"}, "👰‍": {"58,39,1,1": "232,172,28,255", "42,52,1,1": "255,204,49,255"},
"😎": {"18,90,1,1": "0,0,0,0"}, "😎": {"18,90,1,1": "0,0,0,0"},
"6️⃣": {"38,77,1,1": "0,166,237,255"}, "6️⃣": {"38,77,1,1": "0,166,237,255"},
"🍼": {"48,28,1,1": "227,157,137,255"}, "🍼": {"48,28,1,1": "227,157,137,255"},
"🏴󠁧󠁢󠁥󠁮󠁧󠁿": {"94,23,1,1": "155,155,155,255", "47,23,1,1": "0,0,0,0"}, "🏴󠁧󠁢󠁥󠁮󠁧󠁿": {"94,23,1,1": "155,155,155,255", "47,23,1,1": "0,0,0,0"},
"📊": {"26,46,1,1": "0,210,106,255"}, "📊": {"26,46,1,1": "0,210,106,255"},
"㊗️": {"37,17,1,1": "0,0,0,0"}, "㊗️": {"37,17,1,1": "0,0,0,0"},
"⛎": {"62,28,1,1": "141,101,197,255"} '⛎':{'68,28,1,1':'204,131,217,255'},
} }
class CanvasRenderingContext2D { class CanvasRenderingContext2D {
...@@ -9186,12 +9254,22 @@ MimeTypeArray = v_saf(function MimeTypeArray() { ...@@ -9186,12 +9254,22 @@ MimeTypeArray = v_saf(function MimeTypeArray() {
; ;
this[0] = v_new(Plugin); this[0] = v_new(Plugin);
this[0].description = "Portable Document Format"; this[0].description = "Portable Document Format";
this[0].enabledPlugin = {"0": {}, "1": {}}; this[0].enabledPlugin = new Plugin({
description: "Portable Document Format",
filename: "internal-pdf-viewer",
length: 2,
name: "PDF Viewer",
})
this[0].suffixes = "pdf"; this[0].suffixes = "pdf";
this[0].type = "application/pdf"; this[0].type = "application/pdf";
this[1] = v_new(Plugin); this[1] = v_new(Plugin);
this[1].description = "Portable Document Format"; this[1].description = "Portable Document Format";
this[1].enabledPlugin = {"0": {}, "1": {}}; this[1].enabledPlugin = new Plugin({
description: "Portable Document Format",
filename: "internal-pdf-viewer",
length: 2,
name: "PDF Viewer",
})
this[1].suffixes = "pdf"; this[1].suffixes = "pdf";
this[1].type = "text/pdf"; this[1].type = "text/pdf";
}) })
...@@ -9333,9 +9411,9 @@ r2.rangeMax = webGlRandom ? randint(27, 30) : 30 ...@@ -9333,9 +9411,9 @@ r2.rangeMax = webGlRandom ? randint(27, 30) : 30
r2.precision = 0 r2.precision = 0
class WebGLRenderingContext { class WebGLRenderingContext {
constructor(aaa) { // constructor(aaa) {
print('new WebGLRenderingContext', aaa) // print('new WebGLRenderingContext', aaa)
} // }
createBuffer() { createBuffer() {
print1(' [*] WebGLRenderingContext -> createBuffer[func]'); print1(' [*] WebGLRenderingContext -> createBuffer[func]');
...@@ -9457,13 +9535,41 @@ class WebGLRenderingContext { ...@@ -9457,13 +9535,41 @@ class WebGLRenderingContext {
return ['ANGLE_instanced_arrays', 'EXT_blend_minmax', 'EXT_color_buffer_half_float', 'EXT_disjoint_timer_query', 'EXT_float_blend', 'EXT_frag_depth', 'EXT_shader_texture_lod', 'EXT_texture_compression_rgtc', 'EXT_texture_filter_anisotropic', 'EXT_sRGB', 'KHR_parallel_shader_compile', 'OES_element_index_uint', 'OES_fbo_render_mipmap', 'OES_standard_derivatives', 'OES_texture_float', 'OES_texture_float_linear', 'OES_texture_half_float', 'OES_texture_half_float_linear', 'OES_vertex_array_object', 'WEBGL_color_buffer_float', 'WEBGL_compressed_texture_s3tc', 'WEBGL_compressed_texture_s3tc_srgb', 'WEBGL_debug_renderer_info', 'WEBGL_debug_shaders', 'WEBGL_depth_texture', 'WEBGL_draw_buffers', 'WEBGL_lose_context', 'WEBGL_multi_draw'] return ['ANGLE_instanced_arrays', 'EXT_blend_minmax', 'EXT_color_buffer_half_float', 'EXT_disjoint_timer_query', 'EXT_float_blend', 'EXT_frag_depth', 'EXT_shader_texture_lod', 'EXT_texture_compression_rgtc', 'EXT_texture_filter_anisotropic', 'EXT_sRGB', 'KHR_parallel_shader_compile', 'OES_element_index_uint', 'OES_fbo_render_mipmap', 'OES_standard_derivatives', 'OES_texture_float', 'OES_texture_float_linear', 'OES_texture_half_float', 'OES_texture_half_float_linear', 'OES_vertex_array_object', 'WEBGL_color_buffer_float', 'WEBGL_compressed_texture_s3tc', 'WEBGL_compressed_texture_s3tc_srgb', 'WEBGL_debug_renderer_info', 'WEBGL_debug_shaders', 'WEBGL_depth_texture', 'WEBGL_draw_buffers', 'WEBGL_lose_context', 'WEBGL_multi_draw']
} }
return [ return [
"ANGLE_instanced_arrays", "EXT_blend_minmax", "EXT_color_buffer_half_float", "EXT_disjoint_timer_query", "EXT_float_blend", "EXT_frag_depth", "ANGLE_instanced_arrays",
"EXT_shader_texture_lod", "EXT_texture_compression_bptc", "EXT_texture_compression_rgtc", "EXT_texture_filter_anisotropic", "WEBKIT_EXT_texture_filter_anisotropic", "EXT_sRGB", "EXT_blend_minmax",
"KHR_parallel_shader_compile", "OES_element_index_uint", "OES_fbo_render_mipmap", "OES_standard_derivatives", "OES_texture_float", "OES_texture_float_linear", "EXT_color_buffer_half_float",
"OES_texture_half_float", "OES_texture_half_float_linear", "OES_vertex_array_object", "WEBGL_color_buffer_float", "WEBGL_compressed_texture_s3tc", "EXT_disjoint_timer_query",
"WEBKIT_WEBGL_compressed_texture_s3tc", "WEBGL_compressed_texture_s3tc_srgb", "WEBGL_debug_renderer_info", "WEBGL_debug_shaders", "EXT_float_blend",
"WEBGL_depth_texture", "WEBKIT_WEBGL_depth_texture", "WEBGL_draw_buffers", "WEBGL_lose_context", "WEBKIT_WEBGL_lose_context", "WEBGL_multi_draw", "EXT_frag_depth",
] "EXT_shader_texture_lod",
"EXT_texture_compression_bptc",
"EXT_texture_compression_rgtc",
"EXT_texture_filter_anisotropic",
"EXT_sRGB",
"KHR_parallel_shader_compile",
"OES_element_index_uint",
"OES_fbo_render_mipmap",
"OES_standard_derivatives",
"OES_texture_float",
"OES_texture_float_linear",
"OES_texture_half_float",
"OES_texture_half_float_linear",
"OES_vertex_array_object",
"WEBGL_color_buffer_float",
"WEBGL_compressed_texture_astc",
"WEBGL_compressed_texture_etc",
"WEBGL_compressed_texture_etc1",
"WEBGL_compressed_texture_pvrtc",
"WEBGL_compressed_texture_s3tc",
"WEBGL_compressed_texture_s3tc_srgb",
"WEBGL_debug_renderer_info",
"WEBGL_debug_shaders",
"WEBGL_depth_texture",
"WEBGL_draw_buffers",
"WEBGL_lose_context",
"WEBGL_multi_draw"
]
} }
getExtension(key) { getExtension(key) {
...@@ -9553,7 +9659,7 @@ class WebGLRenderingContext { ...@@ -9553,7 +9659,7 @@ class WebGLRenderingContext {
res = new Float32Array([1, 1]) res = new Float32Array([1, 1])
} }
if (key == 33901) { if (key == 33901) {
res = new Float32Array([1, 64]) res = new Float32Array([15, 11])
} }
if (key == 3386) { if (key == 3386) {
res = new Int32Array([16384, 16384]) res = new Int32Array([16384, 16384])
...@@ -10178,7 +10284,6 @@ Object.defineProperties(WebGLRenderingContext.prototype, { ...@@ -10178,7 +10284,6 @@ Object.defineProperties(WebGLRenderingContext.prototype, {
vertexAttrib4fv: {writable: true, enumerable: true, configurable: true}, vertexAttrib4fv: {writable: true, enumerable: true, configurable: true},
vertexAttribPointer: {writable: true, enumerable: true, configurable: true}, vertexAttribPointer: {writable: true, enumerable: true, configurable: true},
viewport: {writable: true, enumerable: true, configurable: true}, viewport: {writable: true, enumerable: true, configurable: true},
constructor: {writable: true, enumerable: false, configurable: true},
makeXRCompatible: {writable: true, enumerable: true, configurable: true}, makeXRCompatible: {writable: true, enumerable: true, configurable: true},
[Symbol.toStringTag]: { [Symbol.toStringTag]: {
value: "WebGLRenderingContext", value: "WebGLRenderingContext",
...@@ -10187,6 +10292,8 @@ Object.defineProperties(WebGLRenderingContext.prototype, { ...@@ -10187,6 +10292,8 @@ Object.defineProperties(WebGLRenderingContext.prototype, {
configurable: true configurable: true
}, },
}) })
delete WebGLRenderingContext.prototype.constructor
WebGLRenderingContext = protectProp(WebGLRenderingContext) WebGLRenderingContext = protectProp(WebGLRenderingContext)
window.WebGLRenderingContext = WebGLRenderingContext window.WebGLRenderingContext = WebGLRenderingContext
...@@ -10206,8 +10313,12 @@ class OffscreenCanvas { ...@@ -10206,8 +10313,12 @@ class OffscreenCanvas {
let res = this._canvas.getContext(type) let res = this._canvas.getContext(type)
if (type === 'webgl') { if (type === 'webgl') {
let t = proxy(new window.WebGLRenderingContext(), 'offCanvas.webgl') let t =new window.WebGLRenderingContext()
t = new Proxy(t, {
ownKeys(target) {
return ENV.webglprops
}
})
return t return t
} }
// return proxy(res, 'newContext') // return proxy(res, 'newContext')
...@@ -11225,7 +11336,7 @@ Object.defineProperties(RTCIceCandidate.prototype, { ...@@ -11225,7 +11336,7 @@ Object.defineProperties(RTCIceCandidate.prototype, {
get() { get() {
let res = `candidate:${t1} 1 udp ${t2} ${ip} ${t3} typ host generation 0 ufrag ${randomStr} network-id ${t4}` let res = `candidate:${t1} 1 udp ${t2} ${ip} ${t3} typ host generation 0 ufrag ${randomStr} network-id ${t4}`
print(" [*] RTCIceCandidate -> candidate[get]", res); print(" [*] RTCIceCandidate -> candidate[get]", res);
return res; return null;
} }
...@@ -11236,7 +11347,7 @@ Object.defineProperties(RTCIceCandidate.prototype, { ...@@ -11236,7 +11347,7 @@ Object.defineProperties(RTCIceCandidate.prototype, {
Object.defineProperties(PluginArray.prototype, { Object.defineProperties(PluginArray.prototype, {
length: { length: {
get() { get() {
print1(" [*] PluginArray -> length[get]", 5); print1(" [*] PluginArray -> length[get]", Object.keys(ENV.plugins).length);
return Object.keys(ENV.plugins).length return Object.keys(ENV.plugins).length
}, },
enumerable: true enumerable: true
...@@ -13247,84 +13358,84 @@ Array.prototype.join = v_saf(function join(s) { ...@@ -13247,84 +13358,84 @@ Array.prototype.join = v_saf(function join(s) {
console.log('absresult', _join.call(window.ENV.mathprops, s)) console.log('absresult', _join.call(window.ENV.mathprops, s))
return _join.call(this, s) return _join.call(this, s)
} }
if (this.indexOf('canvas') > -1) { // if (this.indexOf('canvas') > -1) {
let res = [ // let res = [
"canvas", // "canvas",
"globalAlpha", // "globalAlpha",
"globalCompositeOperation", // "globalCompositeOperation",
"filter", // "filter",
"imageSmoothingEnabled", // "imageSmoothingEnabled",
"imageSmoothingQuality", // "imageSmoothingQuality",
"strokeStyle", // "strokeStyle",
"fillStyle", // "fillStyle",
"shadowOffsetX", // "shadowOffsetX",
"shadowOffsetY", // "shadowOffsetY",
"shadowBlur", // "shadowBlur",
"shadowColor", // "shadowColor",
"lineWidth", // "lineWidth",
"lineCap", // "lineCap",
"lineJoin", // "lineJoin",
"miterLimit", // "miterLimit",
"lineDashOffset", // "lineDashOffset",
"font", // "font",
"textAlign", // "textAlign",
"textBaseline", // "textBaseline",
"direction", // "direction",
"fontKerning", // "fontKerning",
"fontStretch", // "fontStretch",
"fontVariantCaps", // "fontVariantCaps",
"letterSpacing", // "letterSpacing",
"textRendering", // "textRendering",
"wordSpacing", // "wordSpacing",
"clip", // "clip",
"createConicGradient", // "createConicGradient",
"createImageData", // "createImageData",
"createLinearGradient", // "createLinearGradient",
"createPattern", // "createPattern",
"createRadialGradient", // "createRadialGradient",
"drawFocusIfNeeded", // "drawFocusIfNeeded",
"drawImage", // "drawImage",
"fill", // "fill",
"fillText", // "fillText",
"getContextAttributes", // "getContextAttributes",
"getImageData", // "getImageData",
"getLineDash", // "getLineDash",
"getTransform", // "getTransform",
"isContextLost", // "isContextLost",
"isPointInPath", // "isPointInPath",
"isPointInStroke", // "isPointInStroke",
"measureText", // "measureText",
"putImageData", // "putImageData",
"reset", // "reset",
"roundRect", // "roundRect",
"save", // "save",
"scale", // "scale",
"setLineDash", // "setLineDash",
"setTransform", // "setTransform",
"stroke", // "stroke",
"strokeText", // "strokeText",
"transform", // "transform",
"translate", // "translate",
"arc", // "arc",
"arcTo", // "arcTo",
"beginPath", // "beginPath",
"bezierCurveTo", // "bezierCurveTo",
"clearRect", // "clearRect",
"closePath", // "closePath",
"ellipse", // "ellipse",
"fillRect", // "fillRect",
"lineTo", // "lineTo",
"moveTo", // "moveTo",
"quadraticCurveTo", // "quadraticCurveTo",
"rect", // "rect",
"resetTransform", // "resetTransform",
"restore", // "restore",
"rotate", // "rotate",
"strokeRect" // "strokeRect"
]; // ];
// res = res.sort(sortRandom) // // res = res.sort(sortRandom)
return _join.call(res, s) // return _join.call(res, s)
} // }
if (this.indexOf('getDetails') > -1) { if (this.indexOf('getDetails') > -1) {
return _join.call([ return _join.call([
"isInstalled", "isInstalled",
...@@ -13443,8 +13554,9 @@ Array.prototype.join = v_saf(function join(s) { ...@@ -13443,8 +13554,9 @@ Array.prototype.join = v_saf(function join(s) {
"trace", "trace",
"warn" "warn"
]; ];
return _join.call(r, s)
// window.ENV.consoleprops = window.ENV.consoleprops.sort(sortRandom) // window.ENV.consoleprops = window.ENV.consoleprops.sort(sortRandom)
r = r.sort(sortRandom) // r = r.sort(sortRandom)
if (window.ENV.consoleprops && assertTimes === 0) { if (window.ENV.consoleprops && assertTimes === 0) {
assertTimes += 1; assertTimes += 1;
...@@ -16611,7 +16723,11 @@ Worker = newFunc('Worker', 2, function Worker(url, opt) { ...@@ -16611,7 +16723,11 @@ Worker = newFunc('Worker', 2, function Worker(url, opt) {
// 这里是异步脚本的 postMessage // 这里是异步脚本的 postMessage
print('inner worker get postMessage', that.postMessage) print('inner worker get postMessage', that.postMessage)
// debugger // debugger
return that.onmessage return function (data){
print('inner worker get postMessage.call', JSON.stringify(arguments))
that.onmessage({data})
}
} }
}, },
onmessage: { onmessage: {
...@@ -16750,14 +16866,6 @@ Object.defineProperties(Worker.prototype, { ...@@ -16750,14 +16866,6 @@ Object.defineProperties(Worker.prototype, {
; ;
;
;
;
;
;
\ No newline at end of file
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