Sign in
webkit
/
WebKit
/
50cb9c4b14c811b31384dda73676cfb466c0b704
/
.
/
JSTests
/
es6
/
__proto___in_object_literals_not_a_shorthand_method.js
blob: ffa3598d424880df85d9c9671233b351faa0b1b6 [
file
] [
log
] [
blame
]
function
test
()
{
if
(!({
__proto__
:
[]
}
instanceof
Array
))
{
return
false
;
}
return
!({
__proto__
(){}
}
instanceof
Function
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);