Index: test/codegen/expect/temps.js |
diff --git a/test/codegen/expect/temps.js b/test/codegen/expect/temps.js |
index 743b0d4503e7b44787723fd489b9e1802a1d2a95..7467a2eaf8944091a7144d52643994b196be4cd7 100644 |
--- a/test/codegen/expect/temps.js |
+++ b/test/codegen/expect/temps.js |
@@ -24,17 +24,19 @@ dart_library.library('temps', null, /* Imports */[ |
if (opt === void 0) |
opt = 123; |
this[_opt] = opt; |
+ this.opt = null; |
} |
named(opts) { |
- let opt = opts && '_opt' in opts ? opts._opt : 456; |
- this[_opt] = opt; |
+ let opt = opts && 'opt' in opts ? opts.opt : 456; |
+ this.opt = opt; |
+ this[_opt] = null; |
} |
} |
dart.defineNamedConstructor(OptionalArg, 'named'); |
dart.setSignature(OptionalArg, { |
constructors: () => ({ |
OptionalArg: [OptionalArg, [], [core.int]], |
- named: [OptionalArg, [], {_opt: core.int}] |
+ named: [OptionalArg, [], {opt: core.int}] |
}) |
}); |
function main() { |