Closed
Bug 1136473
Opened 10 years ago
Closed 10 years ago
Harmony Proxy object with array as target always returns length of 0
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1111604
People
(Reporter: thorne, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150222232811
Steps to reproduce:
Run the following:
var ar = [1, 2, 3];
var prox = new Proxy(ar, {});
console.debug('original.length: ', ar.length);
console.debug('proxy.length: ', prox.length);
Actual results:
console output:
original.length: 3
proxy.length: 0
Expected results:
Since the handler has no "get" property, getting a property from the proxy should return the same result as getting it from the target. Instead, proxies with arrays as targets always return 0 for the length property.
Updated•10 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
QA Whiteboard: [bugday-20150302]
Component: Untriaged → JavaScript Engine
OS: Windows 7 → All
Product: Firefox → Core
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•