Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
class_string-keyed_methods.js
blob: 49dec9a908eda00fbb5d348721415646931cc70c [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{
"foo bar"
()
{
return
2
;
}
}
return
typeof
C
.
prototype
[
"foo bar"
]
===
"function"
&&
new
C
()[
"foo bar"
]()
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);