Sign in
webkit
/
WebKit
/
5468f35da245f80e437bc940e8e93d2448407d0d
/
.
/
JSTests
/
es6
/
String.prototype_methods_String.prototype.endsWith.js
blob: c2cdf3fda141de065c09c565f36ba4984af6f46d [
file
] [
log
] [
blame
]
function
test
()
{
return
typeof
String
.
prototype
.
endsWith
===
'function'
&&
"foobar"
.
endsWith
(
"bar"
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);