Skip to content

fix: add curly braces to arrow function in WebSocketSTOMP for Adobe CF2023 compatibility#7

Open
akashtig wants to merge 1 commit into
coldbox-modules:masterfrom
akashtig:fix/arrow-function-curly-braces
Open

fix: add curly braces to arrow function in WebSocketSTOMP for Adobe CF2023 compatibility#7
akashtig wants to merge 1 commit into
coldbox-modules:masterfrom
akashtig:fix/arrow-function-curly-braces

Conversation

@akashtig

Copy link
Copy Markdown

Problem:
Arrow function without curly braces on line 153 of WebSocketSTOMP.cfc causes an
"Invalid CFML construct" error on Adobe ColdFusion.
and a dangling ',' on line 482

Fix:
Added curly braces to the arrow function body:

before:
connectionMetadata.each( (k,v)=> headers[ 'connectionMetadata-' & k ] = v );

after:
connectionMetadata.each( (k,v)=> { headers[ 'connectionMetadata-' & k ] = v } );

Tested on:
Adobe ColdFusion 2023

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.

1 participant