New issue
Advanced search Search tips

Issue 653831 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Oct 31
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

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
 

Comment 1 by r...@blevy.co.uk, Oct 7 2016

My 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();

Comment 2 by alph@chromium.org, Oct 10 2016

Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)
Basically the issue is about console.log and evaluate in console show different results for arrays with extra properties.
Status: Archived (was: Assigned)
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