Ok turns out it’s a problem with the beta branch of Discourse. I update using the beta branch (not the default of tests-passed). I noticed this recent change to update mini_racer:
https://github.com/discourse/discourse/commit/55e33414bbea88d0ba8a3d11fbebccba65e76336
So that tipped me off to switching back over to tests-passed, and it worked for me then. Maybe time to update the beta branch to a new beta version?