Sign in
webkit
/
WebKit
/
a3ec32cdaf68785e730ab71a9ee15622c1106ae6
/
.
/
JSTests
/
stress
/
constructing-builtin-functions-with-getter-prototype-should-only-call-getter-once-per-new-2.js
blob: b4c51affa80be9301d10ebd22e6ffb0985f84594 [
file
] [
log
] [
blame
]
new
Promise
(
resolve
=>
{
var
invokeCount
=
0
;
Object
.
defineProperty
(
resolve
,
'prototype'
,
{
get
:
function
()
{
invokeCount
++;
}
});
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
new
resolve
();
if
(
invokeCount
!=
10000
)
$vm
.
crash
();
});