2
0

isEnumerable.js 633 B

12345678910111213
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var x= { f: function() { return "hello"; } }
  6. WScript.Echo(x.propertyIsEnumerable("f"));
  7. WScript.Echo(x.propertyIsEnumerable("g"));
  8. var e=new Array();
  9. WScript.Echo(Array.propertyIsEnumerable("length"));
  10. WScript.Echo(e.propertyIsEnumerable("length"));