-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1649 from glimmerjs/feature/error-recovery-redux-pt3
Continue on with error-recovery infra refresh
- Loading branch information
Showing
112 changed files
with
3,851 additions
and
2,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
|
||
node_modules/ | ||
|
||
# output directories | ||
dist/ | ||
ts-dist/ | ||
|
||
|
||
# We don't need prettier here | ||
*.md | ||
!packages/**/*.md | ||
*.yaml | ||
*.yml | ||
guides/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
packages/@glimmer-workspace/integration-tests/lib/helpers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import type { CapturedArguments, Dict } from '@glimmer/interfaces'; | ||
import type { Reference } from '@glimmer/reference'; | ||
import { setLocalDebugType } from '@glimmer/debug-util'; | ||
import { LOCAL_DEBUG } from '@glimmer/local-debug-flags'; | ||
import { createComputeRef } from '@glimmer/reference'; | ||
import { reifyNamed, reifyPositional } from '@glimmer/runtime'; | ||
|
||
export type UserHelper = (args: ReadonlyArray<unknown>, named: Dict<unknown>) => unknown; | ||
|
||
export function createHelperRef(helper: UserHelper, args: CapturedArguments): Reference { | ||
return createComputeRef(() => helper(reifyPositional(args.positional), reifyNamed(args.named))); | ||
return createComputeRef( | ||
() => helper(reifyPositional(args.positional), reifyNamed(args.named)), | ||
undefined | ||
); | ||
} | ||
|
||
if (LOCAL_DEBUG) { | ||
setLocalDebugType('factory:helper', createHelperRef, { name: 'createHelper' }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.