Steps to reproduce ``` Java // Class1.java public class Class1 { public Object field1; } ``` ``` JavaScript // test.js var c1 = new Class1(); c1.field1 = undefined; ``` Maybe we can provide automatic conversion from `undefined` to `null` or throw an exception.