fieldcopyprop_primitive.js 796 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. function a(o)
  6. {
  7. o.x = 1;
  8. WScript.Echo(o.x);
  9. }
  10. function b(o)
  11. {
  12. o.x = 1;
  13. WScript.Echo(o.x);
  14. }
  15. function c(o)
  16. {
  17. o.x = 1;
  18. WScript.Echo(o.x);
  19. }
  20. function d(o)
  21. {
  22. o.x = 1;
  23. WScript.Echo(o.x);
  24. }
  25. function e(o)
  26. {
  27. o.x = 1;
  28. WScript.Echo(o.x);
  29. }
  30. function f(o)
  31. {
  32. o.x = 1;
  33. WScript.Echo(o.x);
  34. }
  35. a(1);
  36. b(1.1);
  37. c(true);
  38. d(false);
  39. e("blah");
  40. f(new Object());