Sign in
webkit
/
WebKit
/
6659f04ec3bbff1621ccf44eba2b60efe2e7781c
/
.
/
JSTests
/
es6
/
object_literal_extensions_computed_shorthand_methods.js
blob: e53ca15df4601614044174e6e759950a46629eb6 [
file
] [
log
] [
blame
]
function
test
()
{
var
x
=
'y'
;
return
({
[
x
](){
return
1
}
}).
y
()
===
1
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);