Skip to content

Commit

Permalink
LDEV-5095 test case for missing property exception on string
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Sep 27, 2024
1 parent a7e14dd commit 3f56437
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/tickets/LDEV5095.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
component extends="org.lucee.cfml.test.LuceeTestCase" skip="true" {

function run( testResults , testBox ) {
describe( title='LDEV-5095', body=function(){

it( title='missing property on string throws missing method?', body=function() {
var str="lucee";
try {
var test = str.lucee;
} catch ( e ) {
// throw lucee.runtime.exp.NativeException: No matching method for String.isLUCEE() found. there are no methods with this name.
expect( e.type ).toBe( "expression", e.stacktrace );
}
});

});
}

}

0 comments on commit 3f56437

Please sign in to comment.