Fix for #143: support CODE type for both JVM+JS