Bug 1400256 - Drop unused arguments to evaluate.toJSON/fromJSON. r=whimboo

MozReview-Commit-ID: 8q0PK3M4rif

--HG--
extra : rebase_source : a7d7c4885eaa1a5a707d6cbb805b0e3b76a733be
This commit is contained in:
Andreas Tolfsen 2017-10-05 17:53:25 +01:00
Родитель 936135f0ac
Коммит 8153637695
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -188,16 +188,17 @@ evaluate.sandbox = function(sb, script, args = [],
*
* @param {Object} obj
* Arbitrary object containing web elements.
* @param {element.Store} seenEls
* Element store to use for lookup of web element references.
* @param {WindowProxy} window
* Current browsing context.
* @param {element.Store=} seenEls
* Known element store to look up web elements from. If undefined,
* the web element references are returned instead.
* @param {WindowProxy=} window
* Current browsing context, if <var>seenEls</var> is provided.
*
* @return {Object}
* Same object as provided by <var>obj</var> with the web elements
* replaced by DOM elements.
*/
evaluate.fromJSON = function(obj, seenEls, window) {
evaluate.fromJSON = function(obj, seenEls = undefined, window = undefined) {
switch (typeof obj) {
case "boolean":
case "number":