Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
string-instanceof.js
blob: daaf9e02ce10e10ed840c5875035ea6f9f26fde0 [
file
] [
log
] [
blame
] [
edit
]
function
foo
(
value
,
proto
)
{
return
value instanceof proto
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
{
var
result
=
foo
(
"hello"
,
String
);
if
(
result
)
throw
"Error: bad result: "
+
result
;
}