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