diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/S15.3.4.2_A12.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/S15.3.4.2_A12.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A12.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A12.js new file mode 100644 index 000000000..b477b441e --- /dev/null +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A12.js @@ -0,0 +1,12 @@ +// Copyright 2011 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 15.3.4.2_A12 +description: > + The Function.prototype.toString function is not generic; it throws + a TypeError exception if its this value is not a Function object. +negative: TypeError +---*/ + +Function.prototype.toString.call(undefined); |