Ignore:
Timestamp:
Sep 23, 2015, 5:19:03 PM (10 years ago)
Author:
[email protected]
Message:

Fix broken inspector tests.

Reviewed by Joseph Pecoraro and Brian Burg.

We can't redeclare a "let" variable and "var" variable using the same
identifier at the top-level of a function.

  • UserInterface/Test/InspectorProtocol.js:

(InspectorProtocol.sendCommand):
(InspectorProtocol.addEventListener):
(InspectorProtocol.dispatchMessageFromBackend):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/UserInterface/Test/InspectorProtocol.js

    r188897 r190191  
    3636    let method = methodOrObject;
    3737    if (typeof methodOrObject === "object")
    38         var {method, params, handler} = methodOrObject;
     38        ({method, params, handler} = methodOrObject);
    3939
    4040    this._dispatchTable[++this._requestId] = handler;
     
    9999    let event = eventTypeOrObject;
    100100    if (typeof eventTypeOrObject === "object")
    101         var {event, listener} = eventTypeOrObject;
     101        ({event, listener} = eventTypeOrObject);
    102102
    103103    if (typeof event !== "string")
Note: See TracChangeset for help on using the changeset viewer.