jsweet
jsweet copied to clipboard
Single argument insertBefore is invalid
For example
public class ThingA {
public static void m() {
HTMLDivElement e = null;
e.insertBefore(null);
}
}
produces the error expected 2 arguments, but got 1
FYI core API is also fully open source and you can PR an improvment anytime of those definitions: https://github.com/cincheo/jsweet/blob/develop/core-lib/es6/src/main/java/def/dom/Node.java#L26
It seems indeed that this insertBefore method definition could benefit an overload.
Please feel free to PR, I will review/merge it in no time