David Rogers
02/01/2023, 9:41 PMDavid Rogers
02/01/2023, 9:42 PMvar isArray = (required any v) => {
return isArray(v);
^^^^^^^^^^ name lookup finds bif
}
x = [[],0,[]]
writedump(x.map(isArray)) // [true,false,true]
^^^^^^^ name lookup finds NON-bif
a call expression finds BIFs; non-call-expressions don't look into BIF table?bdw429s
02/01/2023, 9:51 PMbdw429s
02/01/2023, 9:51 PMDavid Rogers
02/01/2023, 9:51 PMbdw429s
02/01/2023, 9:51 PMbdw429s
02/01/2023, 9:51 PMDavid Rogers
02/01/2023, 9:51 PMbdw429s
02/01/2023, 9:52 PMx.map(isArray)
☝️ I'm fairly sure that would never find a BIF and would only reference a UDF of that nameDavid Rogers
02/01/2023, 9:52 PMbuiltinfunction vs builtinfunction() , that is the trigger to find BIF vs not find BIF
(ok that's what I'm trying to test)bdw429s
02/01/2023, 9:53 PMDavid Rogers
02/01/2023, 9:53 PMvar now = now(); // no problem
i guess it's the parensbdw429s
02/01/2023, 9:53 PMvar myFunc = ()=>{}
local.keyExists( 'myFunc' ) // true
local.keyExists( 'dateFormat' ) // falseDavid Rogers
02/01/2023, 9:54 PMbdw429s
02/01/2023, 9:54 PMDavid Rogers
02/01/2023, 9:54 PMvar now = () => { return 42; }
var foo = now(); // calls bifbdw429s
02/01/2023, 9:55 PMnow somehow being a reference to a BIF.bdw429s
02/01/2023, 9:56 PMlocal.now() ), BIFs are given precedence over a UDF of the same name in a searchable scope.bdw429s
02/01/2023, 9:56 PMthis.render() to still work inside the CFC.David Rogers
02/01/2023, 9:57 PMlocal.now would find "my" nowbdw429s
02/01/2023, 9:59 PM