Viewing the output of a function returning an array of arrays shows []
Reported by
r...@blevy.co.uk,
Oct 7 2016
|
|||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Steps to reproduce the problem:
function test(){
var a = new Array();
a[b] = new Array(1);
return a;
}
What is the expected behavior?
a[b]=1
What went wrong?
Output was []
Did this work before? N/A
Chrome version: 53.0.2785.116 Channel: n/a
OS Version:
Flash Version: Shockwave Flash 23.0 r0
Putting console.log(a); on the line before seems to have worked
,
Oct 10 2016
Basically the issue is about console.log and evaluate in console show different results for arrays with extra properties.
,
Oct 31
Bulk closing low-priority issues with no activity. Please re-file and refer to the closed issue if it's essential to fix. |
|||
►
Sign in to add a comment |
|||
Comment 1 by r...@blevy.co.uk
, Oct 7 2016My bad 1.Open dev tools console 2. function test(){ var a = new Array(); a['b'] = new Array(1); console.log(a); return a; } 3. Put the following line in the console: test();