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