Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
define-property-accessor.js
blob: 3e71e6f8083eef19ea313234ab9a17e4a16ffef8 [
file
] [
edit
]
function
test
(
base
,
get
,
set
)
{
Object
.
defineProperty
(
base
,
"hey"
,
{
get
,
set
,
});
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
test
({
},
function
get
()
{
return
42
},
function
set
()
{
});