tracker issue : CF-4204401

select a category, or use search below
(searches all categories and all time range)

structCopy cannot be used on exception object

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

Reporter/Name(from Bugbase): Bradley W. / ()

Created: 05/20/2019

Components: Language

Versions: 2018

Failure Type: Crash

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem Description:
structCopy cannot be used on exception object

Steps to Reproduce:
var getNull = function(){};
try {
	foo = createObject( 'java', '' ).init( getNull() );
} catch( any e ) {
	e = structCopy( e );

Actual Result:
The StructCopy ColdFusion function is not supported on this object.

Expected Result:
A struct to be created with the same top level keys

Lucee Server works as expected.