Sign in
webkit
/
WebKit
/
e0dc16a522ef373cb01a123d3af713236760799b
/
.
/
LayoutTests
/
js
/
script-tests
/
exception-function-apply.js
blob: 7c4f3540de4539f769150002198b5db57e9963f2 [
file
] [
log
] [
blame
]
description
(
"Test for error messages on function.apply"
);
shouldThrow
(
"function foo(){}; foo.apply(null, 20)"
);
shouldThrow
(
"function foo(){}; foo.apply(null, 'hello')"
);
shouldThrow
(
"function foo(){}; foo.apply(null, true)"
);