Sign in
webkit
/
WebKit
/
8de09782621a8d8b47ef684da5e0e163b556e859
/
.
/
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"
);