Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Brad WoodBrad WoodReporter
Samuel W. KnowltonSamuel W. KnowltonFix versions
Affects versions
Priority
Major
Details
Details
Assignee
Brad Wood
Brad WoodReporter
Samuel W. Knowlton
Samuel W. KnowltonFix versions
Affects versions
Priority
Sentry
Sentry
Sentry
Created January 23, 2025 at 5:06 PM
Updated January 23, 2025 at 7:34 PM
Resolved January 23, 2025 at 7:34 PM
Boxlang is recognizing the following code block as an attempt to access the variables scope in the static context. This is a minimal repro:
component { static { zzz = ( () => { var pattern = 42; // uncomment for breakage return 42; } )( ); } writedump(static.zzz) }
And here’s the code that is throwing in our app:
Cannot access variables scope in a static context File Method /app/modules_app/invoices/models/qInvoiceLineItem.cfc:98 96: stripeRefundMetadataKey = ( 97: () => { 98: pattern = createObject( "java", "java.util.regex.Pattern" ).compile( 99: "(?i)^qInvoiceLineItem_(\d+)_(\d+)$" 100: );