| OLD | NEW | 
|    1 // Copyright 2012 the V8 project authors. All rights reserved. |    1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|    2 // Redistribution and use in source and binary forms, with or without |    2 // Redistribution and use in source and binary forms, with or without | 
|    3 // modification, are permitted provided that the following conditions are |    3 // modification, are permitted provided that the following conditions are | 
|    4 // met: |    4 // met: | 
|    5 // |    5 // | 
|    6 //     * Redistributions of source code must retain the above copyright |    6 //     * Redistributions of source code must retain the above copyright | 
|    7 //       notice, this list of conditions and the following disclaimer. |    7 //       notice, this list of conditions and the following disclaimer. | 
|    8 //     * Redistributions in binary form must reproduce the above |    8 //     * Redistributions in binary form must reproduce the above | 
|    9 //       copyright notice, this list of conditions and the following |    9 //       copyright notice, this list of conditions and the following | 
|   10 //       disclaimer in the documentation and/or other materials provided |   10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|   40   {a: 5, b: 6}, |   40   {a: 5, b: 6}, | 
|   41   {a: 7, b: 8}, |   41   {a: 7, b: 8}, | 
|   42   {a: 9, b: 10} |   42   {a: 9, b: 10} | 
|   43 ]; |   43 ]; | 
|   44  |   44  | 
|   45 var expected = [ |   45 var expected = [ | 
|   46   { locals: {a0: 1.01, b0: 2.02}, args: { names: ["i", "x0", "y0"], values: [0, 
     3.03, 4.04] } }, |   46   { locals: {a0: 1.01, b0: 2.02}, args: { names: ["i", "x0", "y0"], values: [0, 
     3.03, 4.04] } }, | 
|   47   { locals: {a1: 3.03, b1: 4.04}, args: { names: ["i", "x1", "y1"], values: [1, 
     5.05, 6.06] } }, |   47   { locals: {a1: 3.03, b1: 4.04}, args: { names: ["i", "x1", "y1"], values: [1, 
     5.05, 6.06] } }, | 
|   48   { locals: {a2: 5.05, b2: 6.06}, args: { names: ["i"], values: [2] } }, |   48   { locals: {a2: 5.05, b2: 6.06}, args: { names: ["i"], values: [2] } }, | 
|   49   { locals: {a3: 7.07, b3: 8.08}, args: { names: ["i", "x3", "y3", "z3"], |   49   { locals: {a3: 7.07, b3: 8.08}, args: { names: ["i", "x3", "y3", "z3"], | 
|   50 »       »       »       »       »       values: [3, 9.09, 10.10, undefined] } }, |   50                                           values: [3, 9.09, 10.10, undefined] } | 
 |   51   }, | 
|   51   { locals: {a4: 9.09, b4: 10.10}, args: { names: ["i", "x4", "y4"], values: [4,
      11.11, 12.12] } } |   52   { locals: {a4: 9.09, b4: 10.10}, args: { names: ["i", "x4", "y4"], values: [4,
      11.11, 12.12] } } | 
|   52 ]; |   53 ]; | 
|   53  |   54  | 
|   54 function arraySum(arr) { |   55 function arraySum(arr) { | 
|   55   return arr.reduce(function (a, b) { return a + b; }, 0); |   56   return arr.reduce(function (a, b) { return a + b; }, 0); | 
|   56 } |   57 } | 
|   57  |   58  | 
|   58 function listener(event, exec_state, event_data, data) { |   59 function listener(event, exec_state, event_data, data) { | 
|   59   try { |   60   try { | 
|   60     if (event == Debug.DebugEvent.Break) |   61     if (event == Debug.DebugEvent.Break) | 
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  219 f(input.length - 1, 11.11, 12.12, ""); |  220 f(input.length - 1, 11.11, 12.12, ""); | 
|  220 testingConstructCall = true; |  221 testingConstructCall = true; | 
|  221 new f(input.length - 1, 11.11, 12.12); |  222 new f(input.length - 1, 11.11, 12.12); | 
|  222 new f(input.length - 1, 11.11, 12.12, ""); |  223 new f(input.length - 1, 11.11, 12.12, ""); | 
|  223  |  224  | 
|  224 // Make sure that the debug event listener vas invoked. |  225 // Make sure that the debug event listener vas invoked. | 
|  225 assertFalse(exception, "exception in listener " + exception) |  226 assertFalse(exception, "exception in listener " + exception) | 
|  226 assertTrue(listenerComplete); |  227 assertTrue(listenerComplete); | 
|  227  |  228  | 
|  228 Debug.setListener(null); |  229 Debug.setListener(null); | 
| OLD | NEW |