Sign in
webkit
/
WebKit
/
ac6f99830016c7bf481617249819af59429a05a4
/
.
/
JSTests
/
es6
/
Proxy_constructor_requires_new.js
blob: d4aa3efb9564e0af2ae2ebfc057755a6cb81e3b8 [
file
] [
log
] [
blame
]
function
test
()
{
new
Proxy
({},
{});
try
{
Proxy
({},
{});
return
false
;
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);