| Index: test/codegen/expect/closure.js
|
| diff --git a/test/codegen/expect/closure.js b/test/codegen/expect/closure.js
|
| index f8084ab244953329ef1201a7876ba50af255d0b2..5449e698cc2497eb2354c260be9535485e7ebc99 100644
|
| --- a/test/codegen/expect/closure.js
|
| +++ b/test/codegen/expect/closure.js
|
| @@ -55,18 +55,12 @@ dart_library.library('closure', null, /* Imports */[
|
| * @param {?=} b
|
| * @param {?=} c
|
| */
|
| - optional_params(a, b, c) {
|
| - if (b === void 0) b = null;
|
| - if (c === void 0) c = null;
|
| - }
|
| + optional_params(a, b = null, c = null) {}
|
| /**
|
| * @param {?} a
|
| * @param {{b: (?|undefined), c: (?|undefined)}=} opts
|
| */
|
| - static named_params(a, opts) {
|
| - let b = opts && 'b' in opts ? opts.b : null;
|
| - let c = opts && 'c' in opts ? opts.c : null;
|
| - }
|
| + static named_params(a, {b = null, c = null} = {}) {}
|
| nullary_method() {}
|
| /**
|
| * @param {function(?, ?=):?number} f
|
|
|