Closed
Bug 1318907
Opened 8 years ago
Closed 8 years ago
var a=new Array();typeof(a) should not be 'object', should be 'array'
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jmichae3, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:50.0) Gecko/20100101 Firefox/50.0 Build ID: 20161104212021 Steps to reproduce: <div id="o"></div> <script> var a=new Array();document.getElementById('o').innerHTML=typeof(a); </script> should not be 'object', should be 'array'. Actual results: object Expected results: array
Comment 1•8 years ago
|
||
https://tc39.github.io/ecma262/#table-35 |typeof new Array()| should return "object".
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Component: DOM: Core & HTML → JavaScript Engine
You need to log in
before you can comment on or make changes to this bug.
Description
•