mirror of
https://github.com/Big1moster/catvm.git
synced 2025-04-12 11:37:13 +08:00
25 lines
545 B
JavaScript
25 lines
545 B
JavaScript
var Location = function Location() { // 构造函数
|
|
throw new TypeError("Illegal constructor");
|
|
};
|
|
catvm.safefunction(Location);
|
|
|
|
Object.defineProperties(Location.prototype, {
|
|
[Symbol.toStringTag]: {
|
|
value: "Location",
|
|
configurable: true
|
|
}
|
|
});
|
|
location = {};
|
|
location.__proto__ = Location.prototype;
|
|
|
|
////////// 浏览器代码自动生成部分
|
|
location.href = "https://www.baidu.com";
|
|
location.port = "";
|
|
location.protocol = 'https:';
|
|
location.host = 'www.baidu.com';
|
|
////////
|
|
|
|
|
|
location = catvm.proxy(location);
|
|
|