Skip to content

feat: Add scope inheritance#1343

Merged
HazAT merged 3 commits into
nextfrom
feature/inherit-scope
Jun 1, 2018
Merged

feat: Add scope inheritance#1343
HazAT merged 3 commits into
nextfrom
feature/inherit-scope

Conversation

@HazAT
Copy link
Copy Markdown
Member

@HazAT HazAT commented May 31, 2018

No description provided.

@HazAT HazAT self-assigned this May 31, 2018
@HazAT HazAT requested review from jan-auer and kamilogorek May 31, 2018 19:57
Comment thread packages/core/src/scope.ts Outdated
*/
public setFingerprint(fingerprint: string[]): void {
this.fingerprint = fingerprint;
this.fingerprint = [...fingerprint];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: That is not necessary.

Comment thread packages/shim/src/shim.ts Outdated
const usedClient = client || this.getCurrentClient();
// We want to clone the last scope and not create a new one
const stack = this.getStack();
const parentScope = stack[stack.length - 1].scope;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we add an assertion here or even a fallback so we don't blow up in case stack is empty?

Comment thread packages/core/src/scope.ts Outdated
this.user = user;
this.user = {
...this.user,
...user,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should replace instead of merge.

@HazAT HazAT merged commit f8bb04f into next Jun 1, 2018
@HazAT HazAT deleted the feature/inherit-scope branch June 1, 2018 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants