From 3f56437620650fcf9d826bc0bde70d2ef5ac902d Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 27 Sep 2024 21:04:14 +0200 Subject: [PATCH] LDEV-5095 test case for missing property exception on string --- test/tickets/LDEV5095.cfc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/tickets/LDEV5095.cfc diff --git a/test/tickets/LDEV5095.cfc b/test/tickets/LDEV5095.cfc new file mode 100644 index 0000000000..9895ca2644 --- /dev/null +++ b/test/tickets/LDEV5095.cfc @@ -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 ); + } + }); + + }); + } + +} \ No newline at end of file