concat5.js 587 B

1234567891011121314
  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. //implicit calls
  6. var a = 1;
  7. var b = 2;
  8. var obj = {toString: function(){ a=3; return "Hello World";}};
  9. a = b;
  10. Object.prototype.concat = String.prototype.concat;
  11. var f = obj.concat("abc");
  12. WScript.Echo (a);