Sign in
webkit
/
WebKit
/
43434f0123239f1c895f0d0d9fd2199fb305218a
/
.
/
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
();
});