Skip to content

Commit 39bfc7d

Browse files
author
Dummy
committed
fix for bug where arg.is was called twice.
1 parent d9613cf commit 39bfc7d

16 files changed

+130
-24
lines changed

dist/spec/issues/11.test.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

dist/spec/issues/11.test.js

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/spec/issues/11.test.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/spec/issues/8.test.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/spec/issues/8.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/states/ContextState.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Context } from "src/Context";
1+
import { Context } from "../Context";
2+
import { FunctionState } from "./FunctionState";
23
export declare type PropertyKey = string | number | symbol;
34
export interface ContextState {
45
onSwitchedTo?(context: Context): void;
5-
apply(context: Context, args: any[]): any;
6+
apply(context: Context, args: any[], matchingFunctionStates?: FunctionState[]): any;
67
set(context: Context, property: PropertyKey, value: any): void;
78
get(context: Context, property: PropertyKey): any;
89
}

dist/src/states/ContextState.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/states/FunctionState.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export declare class FunctionState implements ContextState {
1111
readonly callCount: number;
1212
readonly property: string | number | symbol;
1313
constructor(_getPropertyState: GetPropertyState, ...args: any[]);
14-
apply(context: Context, args: any[]): any;
14+
apply(context: Context, args: any[], matchingFunctionStates: FunctionState[]): any;
1515
set(context: Context, property: PropertyKey, value: any): void;
1616
get(context: Context, property: PropertyKey): any;
1717
}

dist/src/states/FunctionState.js

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)