diff options
Diffstat (limited to 'js/src/tests/test262/language/function-code/10.4.3-1-5-s.js')
-rw-r--r-- | js/src/tests/test262/language/function-code/10.4.3-1-5-s.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/function-code/10.4.3-1-5-s.js b/js/src/tests/test262/language/function-code/10.4.3-1-5-s.js new file mode 100644 index 0000000000..90af298e5e --- /dev/null +++ b/js/src/tests/test262/language/function-code/10.4.3-1-5-s.js @@ -0,0 +1,27 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 10.4.3-1-5-s +description: this is not coerced to an object (function) +---*/ + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + + function foobar() + { + } + +assert.sameValue(foo.call(foobar), 'function', 'foo.call(foobar)'); +assert.sameValue(bar.call(foobar), 'function', 'bar.call(foobar)'); + +reportCompare(0, 0); |