Commit 08324aea authored by wang's avatar wang

111

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