DEV: Don't use the Ember global (PR #13535)

GitHub

@eviltrout what shall we do with the remaining two: discourse/app/assets/javascripts/discourse/app/helpers/route-action.js at remaining-ember-globals · discourse/discourse · GitHub

Can you do this:

import { runInDebug, assert } from '@ember/debug';

see: ember-route-action-helper/route-action.js at master · DockYard/ember-route-action-helper · GitHub.

(it might have other fixes we want, too.)

Huh, I thought I didn’t see them in the ember api browser and assumed they’re private/deprecated. I was wrong! :sweat_smile:

Added the imports.

(it might have other fixes we want, too.)

I’ll do that in another PR.