Index: test/codegen/expect/constructors.js |
diff --git a/test/codegen/expect/constructors.js b/test/codegen/expect/constructors.js |
index 7807d13574b117f0cf1482a4d064cdf886f4bf89..2b1df9b0cf0c4029029b412484b2388445c2b727 100644 |
--- a/test/codegen/expect/constructors.js |
+++ b/test/codegen/expect/constructors.js |
@@ -43,7 +43,7 @@ var constructors; |
} |
class H extends core.Object { |
H(opt$) { |
- let p1 = opt$.p1 === void 0 ? null : opt$.p1; |
+ let p1 = opt$ && 'p1' in opt$ ? opt$.p1 : null; |
} |
} |
class I extends core.Object { |