cachescope.js 1.2 KB

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 test0(){
  6. var obj0 = {};
  7. var obj1 = {};
  8. var obj2 = {};
  9. var func2 = function(argFunc1,argFunc2){
  10. // Iterate through an array of arrays.
  11. function _array2iterate(_array2tmp) {
  12. for(var _array2i in _array2tmp) {
  13. if(_array2i.indexOf("method") == 0)
  14. continue;
  15. //Code Snippet: NegativeArgumentBug.ecs (Blue15423)
  16. for (var _i in arguments[1]) {
  17. };
  18. if(_array2tmp[_array2i] instanceof Array) {
  19. _array2iterate(_array2tmp[_array2i]);
  20. }
  21. else {
  22. obj2.prop5 += _array2tmp[_array2i];
  23. }
  24. }
  25. }
  26. _array2iterate([ [1], [1], [1, 1, [1, 1, 1, [obj1.prop6, 1, [obj0.prop1]]]]]);
  27. 1 }
  28. obj1.method0 = func2;
  29. obj1.method0(1, 1);
  30. };
  31. // generate profile
  32. test0();
  33. test0();