As explained in the documentation https://www.graalvm.org/reference-manual/js/Options/#to-the-launcher
--js.foreign-object-prototype: provide JavaScript’s default prototype to foreign objects that mimic JavaScript’s own types (foreign Arrays, Objects and Functions). Boolean value, default is false.
So, for example, List could extend Array and so on.