Sign in
webkit
/
WebKit
/
4607ef70b24b852e8d4bdab2b8233fa12bf018e4
/
.
/
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"
);