Index: test/codegen/expect/methods.js |
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js |
index 0448e9abb6ba513793f3cad7ea0223780beb5082..e87853a71f8318733cc95127a6a4eef91df9cba0 100644 |
--- a/test/codegen/expect/methods.js |
+++ b/test/codegen/expect/methods.js |
@@ -26,12 +26,10 @@ dart_library.library('methods', null, /* Imports */[ |
b = 0; |
return b; |
} |
- w(a, opts) { |
- let b = opts && 'b' in opts ? opts.b : null; |
+ w(a, {b = null} = {}) { |
return dart.asInt(dart.notNull(a) + dart.notNull(b)); |
} |
- ww(a, opts) { |
- let b = opts && 'b' in opts ? opts.b : 0; |
+ ww(a, {b = 0} = {}) { |
return dart.notNull(a) + dart.notNull(b); |
} |
get a() { |