Skip to content

Commit

Permalink
refactor(agents): Replace "refId" with ReservedAgentProperty.REF_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowman2 committed Sep 2, 2019
1 parent 43e35dc commit 59ce4ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/agents/agent-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ export enum ReservedAgentProperty {
/** `AgentManager.game` */
GAME = "game",
/** Used by `InactiveAgentProxy` */
TEMP_VALUES = "tempValues"
TEMP_VALUES = "tempValues",
/** Used by `AgentReference` */
REF_ID = "refId"
}
2 changes: 1 addition & 1 deletion src/agents/impl/inactive-agent-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const buildInactiveAgentProxy = (agent: Agent): Agent => {

if (
property !== ReservedAgentProperty.META &&
property !== "refId" && // TODO - Remove refId
property !== ReservedAgentProperty.REF_ID &&
!ContextManager.isContextStatic()
) {
throw new RegalError(
Expand Down

0 comments on commit 59ce4ed

Please sign in to comment.