Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Feb 12, 2024
1 parent 827c292 commit c9e2895
Show file tree
Hide file tree
Showing 20 changed files with 233 additions and 690 deletions.
4 changes: 2 additions & 2 deletions ember_debug/adapters/web-extension.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BasicAdapter from './basic';
import { typeOf } from 'ember-debug/utils/type-check';

import Ember from 'ember-debug/utils/ember';
import Ember, { ENV } from 'ember-debug/utils/ember';

Check failure on line 4 in ember_debug/adapters/web-extension.js

View workflow job for this annotation

GitHub Actions / Test

'Ember' is defined but never used
import { run } from 'ember-debug/utils/ember/runloop';

const { isArray } = Array;
Expand Down Expand Up @@ -101,7 +101,7 @@ export default class extends BasicAdapter {
// adapter later. See GH #1114.
const HAS_ARRAY_PROTOTYPE_EXTENSIONS = (() => {
try {
return Ember.ENV.EXTEND_PROTOTYPES.Array === true;
return ENV.EXTEND_PROTOTYPES.Array === true;
} catch (e) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions ember_debug/deprecation-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DebugPort from './debug-port';
import SourceMap from 'ember-debug/libs/source-map';

import { registerDeprecationHandler } from 'ember-debug/utils/ember/debug';
import { debug } from 'ember-debug/utils/ember';
import { guidFor } from 'ember-debug/utils/ember/object/internals';
import { cancel, debounce } from 'ember-debug/utils/ember/runloop';

Expand Down Expand Up @@ -194,7 +194,7 @@ export default class extends DebugPort {
}

handleDeprecations() {
registerDeprecationHandler((message, options, next) => {
debug.registerDeprecationHandler((message, options, next) => {
if (!this.adapter) {
next(message, options);
return;
Expand Down
4 changes: 2 additions & 2 deletions ember_debug/general-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint no-empty:0 */
import DebugPort from './debug-port';

import Ember from 'ember-debug/utils/ember';
import { utils } from 'ember-debug/utils/ember';

/**
* Class that handles gathering general information of the inspected app.
Expand Down Expand Up @@ -87,7 +87,7 @@ export default class extends DebugPort {
* the info tab.
*/
getLibraries() {
this.sendMessage('libraries', { libraries: Ember.libraries._registry });
this.sendMessage('libraries', { libraries: utils.libraries._registry });
},

getEmberCliConfig() {
Expand Down
Loading

0 comments on commit c9e2895

Please sign in to comment.