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