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