Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use different symbol for Stack.isStack versus CfnReference.isCfnReference #2305

Merged
merged 2 commits into from
Apr 16, 2019

Conversation

RomainMuller
Copy link
Contributor

This was an artifact of copy-and-paste, whoopsie.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

@RomainMuller RomainMuller requested a review from a team as a code owner April 16, 2019 07:05
@@ -42,7 +42,7 @@ export interface StackProps {
readonly autoDeploy?: boolean;
}

const STACK_SYMBOL = Symbol('@aws-cdk/cdk.CfnReference');
const STACK_SYMBOL = Symbol('@aws-cdk/cdk.Stack');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC we should use Symbol.for. Otherwise, two versions of the library will have two different symbols, no?

Copy link
Contributor Author

@RomainMuller RomainMuller Apr 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exact problem is how I got to discover this inconsistency... I didn't know how to fix this properly... so thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants