normalizeProp.js 592 B

1234567891011121314151617
  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 o = { blah: "abc" }
  6. Object.defineProperty(o, 'hello', {
  7. get: function() { return 42; },
  8. set: function() { },
  9. enumerable: true
  10. })
  11. for (var p in o) {
  12. print(p.normalize())
  13. }
  14. print("PASS")