Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
76f67d10
Commit
76f67d10
authored
Aug 08, 2023
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7777
parent
b1dd4adf
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4610 additions
and
2260 deletions
+4610
-2260
js_dom_run.js
js_dom_run.js
+3161
-27
Window.js
jsdom/lib/jsdom/browser/Window.js
+3
-1
Navigator.js
jsdom/lib/jsdom/living/generated/Navigator.js
+31
-2
2.log
logs/2.log
+1412
-2211
sss.js
sss.js
+3
-19
No files found.
js_dom_run.js
View file @
76f67d10
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/browser/Window.js
View file @
76f67d10
...
@@ -274,7 +274,9 @@ function Window(options) {
...
@@ -274,7 +274,9 @@ function Window(options) {
// }
// }
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'debug'
,
'_eventListenerss'
,
'top'
,
'JSON'
,
'Math'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'debug'
,
'_eventListenerss'
,
'JSON'
,
'Math'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
return
proxy
(
res
,
p
)
return
proxy
(
res
,
p
)
}
}
return
res
;
return
res
;
...
...
jsdom/lib/jsdom/living/generated/Navigator.js
View file @
76f67d10
"use strict"
;
"use strict"
;
const
conversions
=
require
(
"webidl-conversions"
);
const
conversions
=
require
(
"webidl-conversions"
);
const
utils
=
require
(
"./utils.js"
);
const
utils
=
require
(
"./utils.js"
);
const
{
proxy
}
=
require
(
"./utils"
);
const
implSymbol
=
utils
.
implSymbol
;
const
implSymbol
=
utils
.
implSymbol
;
const
ctorRegistrySymbol
=
utils
.
ctorRegistrySymbol
;
const
ctorRegistrySymbol
=
utils
.
ctorRegistrySymbol
;
...
@@ -101,7 +103,28 @@ exports.install = (globalObject, globalNames) => {
...
@@ -101,7 +103,28 @@ exports.install = (globalObject, globalNames) => {
if
(
!
globalNames
.
some
(
globalName
=>
exposed
.
has
(
globalName
)))
{
if
(
!
globalNames
.
some
(
globalName
=>
exposed
.
has
(
globalName
)))
{
return
;
return
;
}
}
class
MimeTypeArray
{
get
length
()
{
return
2
;
}
item
()
{
return
mims
[
arguments
[
0
]]
return
null
;
}
namedItem
()
{
return
null
;
}
get
[
idlUtils
.
supportedPropertyIndices
]()
{
return
[];
}
};
Object
.
defineProperties
(
MimeTypeArray
.
prototype
,
{
[
Symbol
.
toStringTag
]:
{
value
:
"MimeTypeArray"
,
writable
:
false
,
enumerable
:
false
,
configurable
:
true
},
})
class
Navigator
{
class
Navigator
{
constructor
()
{
constructor
()
{
throw
new
TypeError
(
"Illegal constructor"
);
throw
new
TypeError
(
"Illegal constructor"
);
...
@@ -652,9 +675,11 @@ exports.install = (globalObject, globalNames) => {
...
@@ -652,9 +675,11 @@ exports.install = (globalObject, globalNames) => {
throw
new
TypeError
(
"'get mimeTypes' called on an object that is not a valid instance of Navigator."
);
throw
new
TypeError
(
"'get mimeTypes' called on an object that is not a valid instance of Navigator."
);
}
}
return
utils
.
getSameObject
(
this
,
"mimeTypes"
,
()
=>
{
let
res
=
utils
.
getSameObject
(
this
,
"mimeTypes"
,
()
=>
{
return
utils
.
tryWrapperForImpl
(
esValue
[
implSymbol
][
"mimeTypes"
]);
return
utils
.
tryWrapperForImpl
(
esValue
[
implSymbol
][
"mimeTypes"
]);
});
});
res
=
new
MimeTypeArray
();
return
proxy
(
res
,
'mimeTypes'
)
}
}
}
}
...
@@ -665,7 +690,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -665,7 +690,7 @@ exports.install = (globalObject, globalNames) => {
var
n
=
Function
.
toString
,
t
=
[],
i
=
[],
o
=
[].
indexOf
.
bind
(
t
),
e
=
[].
push
.
bind
(
t
),
r
=
[].
push
.
bind
(
i
);
var
n
=
Function
.
toString
,
t
=
[],
i
=
[],
o
=
[].
indexOf
.
bind
(
t
),
e
=
[].
push
.
bind
(
t
),
r
=
[].
push
.
bind
(
i
);
function
u
(
n
,
t
,
tag
)
{
function
u
(
n
,
t
,
tag
)
{
return
-
1
==
o
(
n
)
&&
(
e
(
n
),
r
(
`function
${
tag
?
tag
:
""
}${
t
||
n
.
name
||
""
}
() { [native code] }`
.
replaceAll
(
'get get'
,
'get'
))),
n
return
-
1
==
o
(
n
)
&&
(
e
(
n
),
r
(
`function
${
tag
?
tag
:
""
}${
t
||
n
.
name
||
""
}
() { [native code] }`
.
replaceAll
(
'get get'
,
'get'
)
.
replaceAll
(
'set set'
,
'set'
)
)),
n
}
}
Object
.
defineProperty
(
Function
.
prototype
,
"toString"
,
{
Object
.
defineProperty
(
Function
.
prototype
,
"toString"
,
{
...
@@ -687,6 +712,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -687,6 +712,9 @@ exports.install = (globalObject, globalNames) => {
if
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'get'
])
{
if
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'get'
])
{
r
[
e
][
'get'
]
=
v_saf
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'get'
],
undefined
,
'get '
)
r
[
e
][
'get'
]
=
v_saf
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'get'
],
undefined
,
'get '
)
}
}
if
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'set'
])
{
r
[
e
][
'set'
]
=
v_saf
(
Object
.
getOwnPropertyDescriptor
(
Navigator
.
prototype
,
e
)[
'set'
],
undefined
,
'set '
)
}
r
[
e
][
'enumerable'
]
=
true
r
[
e
][
'enumerable'
]
=
true
})
})
Object
.
defineProperties
(
Navigator
.
prototype
,
r
)
Object
.
defineProperties
(
Navigator
.
prototype
,
r
)
...
@@ -786,3 +814,4 @@ exports.install = (globalObject, globalNames) => {
...
@@ -786,3 +814,4 @@ exports.install = (globalObject, globalNames) => {
};
};
const
Impl
=
require
(
"../navigator/Navigator-impl.js"
);
const
Impl
=
require
(
"../navigator/Navigator-impl.js"
);
const
idlUtils
=
require
(
"./utils"
);
logs/2.log
View file @
76f67d10
This diff is collapsed.
Click to expand it.
sss.js
View file @
76f67d10
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment