Commit 017c3f5e authored by wangmingming's avatar wangmingming

7777

parent 2e2c8da8
...@@ -651,31 +651,40 @@ PluginArray = v_saf(function PluginArray() { ...@@ -651,31 +651,40 @@ PluginArray = v_saf(function PluginArray() {
throw TypeError("Illegal constructor") throw TypeError("Illegal constructor")
} }
; ;
this[0] = v_new(Plugin); for (let i = 0; i <Object.keys(ENV.plugins).length; i++) {
this[0].description = "Portable Document Format"; this[i] = v_new(Plugin);
this[0].filename = "internal-pdf-viewer"; let plugin = ENV.plugins[i];
this[0].length = 2; this[i].description = plugin.description;
this[0].name = "PDF Viewer"; this[i].filename = plugin.filename;
this[1] = v_new(Plugin); this[i].length = plugin.length;
this[1].description = "Portable Document Format"; this[i].name = plugin.name;
this[1].filename = "internal-pdf-viewer"; }
this[1].length = 2; console.log()
this[1].name = "Chrome PDF Viewer"; // this[0] = v_new(Plugin);
this[2] = v_new(Plugin); // this[0].description = "Portable Document Format";
this[2].description = "Portable Document Format"; // this[0].filename = "internal-pdf-viewer";
this[2].filename = "internal-pdf-viewer"; // this[0].length = 2;
this[2].length = 2; // this[0].name = "PDF Viewer";
this[2].name = "Chromium PDF Viewer"; // this[1] = v_new(Plugin);
this[3] = v_new(Plugin); // this[1].description = "Portable Document Format";
this[3].description = "Portable Document Format"; // this[1].filename = "internal-pdf-viewer";
this[3].filename = "internal-pdf-viewer"; // this[1].length = 2;
this[3].length = 2; // this[1].name = "Chrome PDF Viewer";
this[3].name = "Microsoft Edge PDF Viewer"; // this[2] = v_new(Plugin);
this[4] = v_new(Plugin); // this[2].description = "Portable Document Format";
this[4].description = "Portable Document Format"; // this[2].filename = "internal-pdf-viewer";
this[4].filename = "internal-pdf-viewer"; // this[2].length = 2;
this[4].length = 2; // this[2].name = "Chromium PDF Viewer";
this[4].name = "WebKit built-in PDF"; // this[3] = v_new(Plugin);
// this[3].description = "Portable Document Format";
// this[3].filename = "internal-pdf-viewer";
// this[3].length = 2;
// this[3].name = "Microsoft Edge PDF Viewer";
// this[4] = v_new(Plugin);
// this[4].description = "Portable Document Format";
// this[4].filename = "internal-pdf-viewer";
// this[4].length = 2;
// this[4].name = "WebKit built-in PDF";
}) })
PluginArray = new Proxy(PluginArray, { PluginArray = new Proxy(PluginArray, {
get(target, p, receiver) { get(target, p, receiver) {
...@@ -757,7 +766,7 @@ WebSocket = v_saf(function WebSocket() { ...@@ -757,7 +766,7 @@ WebSocket = v_saf(function WebSocket() {
; ;
}); });
_inherits(WebSocket, EventTarget) _inherits(WebSocket, EventTarget)
RTCPeerConnectionIceEvent = v_saf(function RTCPeerConnectionIceEvent() { let RTCPeerConnectionIceEvent = v_saf(function RTCPeerConnectionIceEvent() {
if (!v_new_toggle) { if (!v_new_toggle) {
throw TypeError("Illegal constructor") throw TypeError("Illegal constructor")
} }
......
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