Closed
Bug 641274
Opened 14 years ago
Closed 14 years ago
Object.defineProperties second argument misunderstood
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bruant.d, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier:
Test case:
---------------------
var props = {a: {va1ue:1, enumerable:true}};
var o = {};
Object.defineProperties(o, props);
console.log(o)
---------------------
For a, the WebConsole prints "void (0)".
If props is {a: {va1ue:1, enumerable:true}, b:{value:false, enumerable:true}}, then the WebConsole prints 'false' for b (expected)
Reproducible: Always
Not sure if it's my font on the ipdo, but the L in value looks like a 1(one).
Reporter | ||
Comment 2•14 years ago
|
||
Fuck! I'm sorry :-) Damn! So tricky! Why would I even write "va1ue"?
Sorry !
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•