This commit is contained in:
Bobby Holley 2014-08-18 14:18:40 -07:00
Родитель a434cbc427
Коммит e3235822dd
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -367,6 +367,11 @@ function testTrickyObject(trickyObject) {
is(Object.getOwnPropertyNames(trickyObject).sort().toSource(),
expectedNames.sort().toSource(), "getOwnPropertyNames should be filtered correctly");
// Test that cloning uses the Xray view.
var cloned = Cu.cloneInto(trickyObject, this);
is(Object.getOwnPropertyNames(cloned).sort().toSource(),
expectedNames.sort().toSource(), "structured clone should use the Xray view");
// Test iteration and in-place modification. Beware of 'expando', which is the property
// we placed on the xray proto.
var propCount = 0;