Commit 08324aea authored by wang's avatar wang

111

parent 15f7ba25
......@@ -6908,7 +6908,6 @@ PluginArray = v_saf(function PluginArray() {
this[i]['text/pdf'] = plugin['text/pdf'] || plugin['textpdf']
}
print()
// this[0] = v_new(Plugin);
// this[0].description = "Portable Document Format";
// this[0].filename = "internal-pdf-viewer";
......@@ -10961,7 +10960,7 @@ Object.defineProperties(PluginArray.prototype, {
length: {
get() {
print1(" [*] PluginArray -> length[get]", 5);
return 5
return Object.keys(ENV.plugins)
},
enumerable: true
},
......@@ -11721,7 +11720,7 @@ DOMTokenList = v_saf(function DOMTokenList() {
})
window.addEventListener = v_saf(function (type, callback) {
_console2('addEventListener111', type, callback)
print('addEventListener111', type, callback)
events[type] = callback;
v_events[type] = callback;
if (type === 'addEventListener11') {
......@@ -12046,7 +12045,7 @@ Object.defineProperty(document, Symbol.iterator, {
// value: 'HTMLDocument'
// })
document.addEventListener = function (type, callback) {
_console2('addEventListener11', type, callback)
print('addEventListener11', type, callback)
events[type] = callback;
v_events[type] = callback;
......@@ -12062,7 +12061,7 @@ document.addEventListener = function (type, callback) {
return true
}
window.addEventListener = function (type, callback) {
_console2('addEventListener12', type, callback)
print('addEventListener12', type, callback)
events[type] = callback;
// if (type === 'DOMContentLoaded' || type == 'visibilitychange') {
// callback({
......@@ -12177,8 +12176,9 @@ let storage = {
// storage.setItem('FTzyeq12rr', _process.argv[4])
// }
function dispatchEvent(event) {
_console2('dispatchEvent', event)
print('dispatchEvent', event, event && event.type in events)
if (event && event.type in events) {
events[event.type](event)
}
try {
......@@ -12557,8 +12557,9 @@ window.TextDecoder = v_saf(function TextDecoder(){
window.AbortSignal = v_saf(function AbortSignal(){
return AbortSignal(...arguments)
});
let _TextEncoderStream = TextEncoderStream;
window.TextEncoderStream = v_saf(function TextEncoderStream(){
return new TextEncoderStream(...arguments)
return new _TextEncoderStream(...arguments)
});;
window.TransformStream = TransformStream;
window.URLSearchParams = URLSearchParams;
......@@ -14650,7 +14651,6 @@ let params = {
"TextTrackCue": {"value": {"type": "function"}},
"TextTrack": {"value": {"type": "function"}},
"TextEvent": {"value": {"type": "function"}},
"TextEncoderStream": {"value": {"type": "function"}},
"TextEncoder": {"value": {"type": "function"}},
"TextDecoderStream": {"value": {"type": "function"}},
"TextDecoder": {"value": {"type": "function"}},
......@@ -17336,6 +17336,7 @@ Object.defineProperties(Worker.prototype, {
try {
b(O)
} catch (a) {
print('error', a)
Oo(a, O)
}
}
......@@ -17966,7 +17967,7 @@ Object.defineProperties(Worker.prototype, {
a.X += 2;
let res = Ot(O);
print('new Re', O)
res = reProxy(res, O)
// res = reProxy(res, O)
a.L[a.L.length] = res
}, function (a) {
var v = r[a.X];
......@@ -19623,6 +19624,6 @@ setTimeout(r => {
//xhr.setRequestHeader('xhr_res', xhr_res)
print22(JSON.stringify(xhr.headers))
_process.exit(0)
}, 1000)
}, 2000)
\ 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