Pass VM instead of JSGlobalObject to ArrayPrototype constructor.