Skip to content

Commit

Permalink
Drop the idea of hinting function calls; doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
ox-harris committed Nov 12, 2023
1 parent ea6855f commit 7096f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/Compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export default class Compiler {
const hintArg = [];
if ( node.hint ) { hintArg.push( this.$obj( { [ node.hint ]: Node.identifier( true ) } ) ); }
else if ( this.currentEntry.mode === 'callee' ) {
hintArg.push( this.$obj( { funCall: Node.identifier( true ) } ) );
//hintArg.push( this.$obj( { funCall: Node.identifier( true ) } ) );
}
// Static mode?
if ( node.type === 'ThisExpression' || [ 'param', 'self' ].includes( ref?.type ) || [ 'arguments' ].includes( node.name ) ) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/Autorun.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default class Autorun extends EventTarget {
// Return bare value here?
if ( !depth || !signal.state || typeof signal.state !== 'object' ) {
let returnValue = signal.state;
if ( !depth && typeof signal.state === 'function' ) {
if ( typeof signal.state === 'function' ) {
// We're returning a proxy for functions instead of: signal.context.state[ signal.name ].bind( signal.context.state );
returnValue = Observer.proxy( signal.state, { membrane: signal } );
}
Expand Down

0 comments on commit 7096f28

Please sign in to comment.