Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7541492
test_wrapped_this.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
578 B
Referenced Files
None
Subscribers
None
test_wrapped_this.js
View Options
class
Foo
{
constructor
()
{
this
.
x
=
42
;
}
bar
()
{
return
this
.
x
;
}
}
const
foo
=
new
Foo
();
console
.
log
(
"A:"
,
foo
.
bar
());
const
f
=
foo
;
console
.
log
(
"B:"
,
f
.
bar
());
function
test1
(
obj
)
{
return
obj
.
bar
();
}
console
.
log
(
"C:"
,
test1
(
foo
));
function
test2
(
obj
)
{
const
o
=
obj
;
return
o
.
bar
();
}
console
.
log
(
"D:"
,
test2
(
foo
));
function
test3
(
z
)
{
return
z
.
bar
();
}
console
.
log
(
"E:"
,
test3
(
foo
));
function
test4
(
obj
)
{
return
obj
.
x
;
}
console
.
log
(
"F:"
,
test4
(
foo
));
function
test5
(
obj
)
{
return
obj
.
bar
();
}
console
.
log
(
"G:"
,
test5
({
x
:
99
,
bar
()
{
return
this
.
x
;
}}));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 17, 2:26 PM (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
559635
Default Alt Text
test_wrapped_this.js (578 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment