tracker issue : CF-3120773

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

Invoke in CFC to call a function expression does not bind the this variable

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Tyler Clendenin / Tyler Clendenin (tylerc)

Created: 02/22/2012

Components: Language, Closures

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Public Beta /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Mac 10.7 64-bit

Vote Count: 0

Problem Description: If a CFC uses the invoke command to call a function expression, the this variable is not bound.

Steps to Reproduce: See http://tylerclendenin.com/2012/02/coldfusion-zeus-10-beta-function-expressions-and-closures-not-quite-there/ second part

Actual Result: Variable THIS is undefined

Expected Result: Returns the object

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3120773

External Customer Info:
External Company:  
External Customer Name: tylerc
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

This scope in cfm is not available and hence the error. I've checked if the same is called from a CFC then the this scope is available. Closing this as not a bug. (Comment added from ex-user id:sagarg)
Comment by Adobe D.
20648 | February 28, 2012 10:13:02 PM GMT