Sign in
webkit
/
WebKit
/
cd096af6c6240b3ceab5d977df03c24b8d5fa8d7
/
.
/
JSTests
/
es6
/
class_class_name_is_lexically_scoped.js
blob: 8e6702c17b487a24ad02c29ca6d466fcd4c1973e [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{
method
()
{
return
typeof
C
===
"function"
;
}
}
var
M
=
C
.
prototype
.
method
;
C
=
undefined
;
return
C
===
undefined
&&
M
();
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);