diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5_A1_T2.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/15_Native/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5_A1_T2.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5_A1_T2.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5_A1_T2.js new file mode 100644 index 000000000..893dbc3ae --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5_A1_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** +* @name: S15.3.5_A1_T2; +* @section: 15.3.5; +* @assertion: The value of the [[Class]] property is "Function" ; +* @description: For testing use variable f = Function(); +*/ + +var f = Function(); + +if (Object.prototype.toString.call(f) !== "[object Function]") { + $ERROR('#1: The value of the [[Class]] property is "Function"'); +} + |