Skip to content

Commit e6fb6a9

Browse files
committed
Remove references to symbol
1 parent 9224b4b commit e6fb6a9

5 files changed

Lines changed: 8 additions & 10 deletions

File tree

packages/@ember/-internals/meta/lib/meta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComputedProperty } from '@ember/-internals/metal';
2-
import { symbol, toString } from '@ember/-internals/utils';
2+
import { toString } from '@ember/-internals/utils';
33
import { assert } from '@ember/debug';
44
import { isDestroyed } from '@glimmer/destroyable';
55
import { DEBUG } from '@glimmer/env';
@@ -58,7 +58,7 @@ if (DEBUG) {
5858
@module ember
5959
*/
6060

61-
export const UNDEFINED = symbol('undefined');
61+
export const UNDEFINED = Symbol('undefined');
6262

6363
const enum ListenerKind {
6464
ADD = 0,

packages/@ember/-internals/metal/lib/property_get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
@module @ember/object
33
*/
44
import type { _ProxyMixin as ProxyMixin } from '@ember/-internals/runtime';
5-
import { setProxy, symbol } from '@ember/-internals/utils';
5+
import { setProxy } from '@ember/-internals/utils';
66
import { isEmberArray } from '@ember/array/-internals';
77
import { assert } from '@ember/debug';
88
import { DEBUG } from '@glimmer/env';
99
import { consumeTag, isTracking, tagFor, track } from '@glimmer/validator';
1010
import { isPath } from './path_cache';
1111

12-
export const PROXY_CONTENT = symbol('PROXY_CONTENT');
12+
export const PROXY_CONTENT = Symbol('PROXY_CONTENT');
1313

1414
export let getPossibleMandatoryProxyValue: (obj: object, keyName: string) => any;
1515

packages/@ember/-internals/metal/lib/tags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isObject, setupMandatorySetter, symbol, toString } from '@ember/-internals/utils';
1+
import { isObject, setupMandatorySetter, toString } from '@ember/-internals/utils';
22
import { assert } from '@ember/debug';
33
import { isDestroyed } from '@glimmer/destroyable';
44
import { DEBUG } from '@glimmer/env';
@@ -15,7 +15,7 @@ type CustomTagFnWithMandatorySetter = (
1515
) => Tag;
1616

1717
// This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.
18-
export const SELF_TAG: string | symbol = symbol('SELF_TAG');
18+
export const SELF_TAG: string | symbol = Symbol('SELF_TAG');
1919

2020
export function tagForProperty(
2121
obj: object,

packages/@ember/controller/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { DecoratorPropertyDescriptor, ElementDescriptor } from '@ember/-int
66
import Mixin from '@ember/object/mixin';
77
import type { RouteArgs } from '@ember/routing/-internals';
88
import { ActionHandler } from '@ember/-internals/runtime';
9-
import { symbol } from '@ember/-internals/utils';
109
import type { Transition } from 'router_js';
1110

1211
export type ControllerQueryParamType = 'boolean' | 'number' | 'array' | 'string';
@@ -15,7 +14,7 @@ export type ControllerQueryParam =
1514
| Record<string, { type: ControllerQueryParamType }>
1615
| Record<string, string>;
1716

18-
const MODEL = symbol('MODEL');
17+
const MODEL = Symbol('MODEL');
1918

2019
/**
2120
@module @ember/controller

packages/@ember/object/-internals.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export { guidFor } from '@ember/-internals/utils';
33

44
import { addListener } from '@ember/-internals/metal';
55
import { assert } from '@ember/debug';
6-
import { symbol } from '@ember/-internals/utils';
76
import { DEBUG } from '@glimmer/env';
87
import EmberObject from '.';
98

@@ -27,7 +26,7 @@ let FrameworkObject: typeof EmberObject = class FrameworkObject extends EmberObj
2726

2827
if (DEBUG) {
2928
const INIT_WAS_CALLED = Symbol('INIT_WAS_CALLED');
30-
let ASSERT_INIT_WAS_CALLED = symbol('ASSERT_INIT_WAS_CALLED');
29+
let ASSERT_INIT_WAS_CALLED = Symbol('ASSERT_INIT_WAS_CALLED');
3130

3231
FrameworkObject = class DebugFrameworkObject extends EmberObject {
3332
[INIT_WAS_CALLED] = false;

0 commit comments

Comments
 (0)