Sign in
webkit
/
WebKit
/
1e0780ad9f2be7f928011e2877f842746cb25b2d
/
.
/
JSTests
/
es6
/
object_literal_extensions_shorthand_methods.js
blob: d90f5380decbd63198bf4f2c9e56cd388b8b2b4c [
file
] [
log
] [
blame
]
function
test
()
{
return
({
y
()
{
return
2
;
}
}).
y
()
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);