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