mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
1333045 - Update Location object properties to current spec.
Specifically, three changes: 1) valueOf should be non-enumerable. 2) valueOf should be === to Object.prototype.valueOf. 3) There should be no toJSON.
This commit is contained in:
parent
337cdbd0ce
commit
1af9026a89
9 changed files with 72 additions and 24 deletions
|
|
@ -28,9 +28,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1041626
|
|||
|
||||
ok(Cu.isXrayWrapper(window[0].location), "Location is Xrayed");
|
||||
let xrayOwnProperties = Object.getOwnPropertyNames(window[0].location);
|
||||
todo(xrayOwnProperties.indexOf('toJSON') != -1,
|
||||
"dummy toJSON on Location should show up in Xrayable properties");
|
||||
xrayOwnProperties.push('toJSON');
|
||||
|
||||
let realOwnProperties = Object.getOwnPropertyNames(window[0].wrappedJSObject.location);
|
||||
ok(realOwnProperties.length > 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue