зеркало из https://github.com/mozilla/gecko-dev.git
Bug 903772: Part 9 - Use a different class in the weakmap test now that the implementation of TextDecoder has changed. r=peterv
This commit is contained in:
Родитель
4c7a770de0
Коммит
5b32f16814
|
@ -45,11 +45,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=777385
|
|||
|
||||
make_live_map();
|
||||
|
||||
|
||||
// TextDecoder is a non-nsISupports refCounted class using WebIDL bindings.
|
||||
// RGBColor is a non-nsISupports refCounted class using WebIDL bindings.
|
||||
|
||||
// non-nsISupports cycle-collected classes should fail as weak map keys.
|
||||
let context = new TextDecoder();
|
||||
let context = window.getComputedStyle(document.documentElement, null).getPropertyCSSValue("color").getRGBColorValue();
|
||||
let contextFail = false;
|
||||
try {
|
||||
live_map.set(context, 2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче