Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Illegal invocation #130

Open
amao12580 opened this issue Dec 18, 2023 · 6 comments
Open

Uncaught TypeError: Illegal invocation #130

amao12580 opened this issue Dec 18, 2023 · 6 comments

Comments

@amao12580
Copy link

版本:
https://unpkg.com/[email protected]/dist/ajaxhook.min.js

报错代码位置:

xhr-hook.js:46:14

this[attr] = hookFunction(attr);

堆栈

Uncaught TypeError: Illegal invocation
at new h (xhr-hook.js:46:14)
at n.ajax (signup?sru=https://login.live.com/oauth20_authorize.srf%3flc%3d2052%26client_id%3d0000000048170EF2%26mkt%3dZH-CN%26opid%3dD1332CFD16CBC4C5%26opidt%3d1702890355%26uaid%3dd7c14c115940410eb9beaf3fa55447e7%26contextid%3dE4421A3B5768AAFD%26opignore%3d1&mkt=ZH-CN&uiflavor=host&fl=wld&client_id=0000000048170EF2&noauthcancel=1&uaid=d7c14c115940410eb9beaf3fa55447e7&suc=0000000048170EF2:33:213)
at r.exec (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:10:113)
at m (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:2:178)
at g (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:1:566)

@DAHUIAAAAA
Copy link
Collaborator

可以给一个 codeSandBox 的复现 demo 看看吗

@amao12580
Copy link
Author

@DAHUIAAAAA
Copy link
Collaborator

试了一下,没法复现

@kotot
Copy link

kotot commented Apr 1, 2024

我可以复现,必须在Safari下面才行

@kotot
Copy link

kotot commented Apr 1, 2024

应该是proxy了2次

@DAHUIAAAAA
Copy link
Collaborator

我看了下得用 CDP 协议,这个有你完整的使用例子吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants