Index: test/codegen/expect/methods.js |
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js |
index 8d6dcf6e3c1bf7255beb9abc5aa6fab4e90c09a2..c91bd01c78568197900e508479a5f36ccbabd09c 100644 |
--- a/test/codegen/expect/methods.js |
+++ b/test/codegen/expect/methods.js |
@@ -26,13 +26,15 @@ 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; |
- return dart.notNull(a) + dart.notNull(b); |
+ clashWithObjectProperty({constructor = null} = Object.create(null)) { |
+ return constructor; |
+ } |
+ clashWithJsReservedName(opts) { |
+ let func = opts && 'function' in opts ? opts.function : null; |
+ return func; |
} |
get a() { |
return this.x(); |
@@ -52,7 +54,8 @@ dart_library.library('methods', null, /* Imports */[ |
z: [core.int, [], [core.num]], |
zz: [core.int, [], [core.int]], |
w: [core.int, [core.int], {b: core.num}], |
- ww: [core.int, [core.int], {b: core.int}] |
+ clashWithObjectProperty: [dart.dynamic, [], {constructor: dart.dynamic}], |
+ clashWithJsReservedName: [dart.dynamic, [], {function: dart.dynamic}] |
}) |
}); |
class Bar extends core.Object { |