Executing following code : ----------------------------------------- var a = new Array(1); for (var i in a){ print("BT_FLAG"); function v9() { } } print(typeof v9); ----------------------------------------- Output of JavaScriptCore : function However, output of other js engines(v8, ch, spm) is : undefined BT group 2018.08.26