Update object -> prototype GC edge names in findReferences tests. Bug 685372, r=jorendorff.
authorJim Blandy <jimb@mozilla.com>
Thu, 08 Sep 2011 16:19:13 -0500
changeset 78152 70dc8862965e946d621306e195f958bd30d37585
parent 78151 a739df5e7bc0b74880944fab3e2202fa11bce435
child 78153 c1afecb67d8f2c8678fbf99ea176488ccc69f3c9
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs685372
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Update object -> prototype GC edge names in findReferences tests. Bug 685372, r=jorendorff.
js/src/tests/js1_8_5/extensions/findReferences-01.js
js/src/tests/js1_8_5/extensions/findReferences-02.js
--- a/js/src/tests/js1_8_5/extensions/findReferences-01.js
+++ b/js/src/tests/js1_8_5/extensions/findReferences-01.js
@@ -5,17 +5,17 @@
 if (typeof findReferences == "function") {
     function C() {}
     var o = new C;
     o.x = {};               // via ordinary property
     o[42] = {};             // via numeric property
     o.myself = o;           // self-references should be reported
     o.alsoMyself = o;       // multiple self-references should all be reported
 
-    assertEq(referencesVia(o, 'type_proto', C.prototype), true);
+    assertEq(referencesVia(o, 'type; type_proto', C.prototype), true);
     assertEq(referencesVia(o, 'parent', this), true);
     assertEq(referencesVia(o, 'x', o.x), true);
     assertEq(referencesVia(o, '42', o[42]), true);
     assertEq(referencesVia(o, 'myself', o), true);
     assertEq(referencesVia(o, 'alsoMyself', o), true);
 
     function g() { return 42; }
     function s(v) { }
--- a/js/src/tests/js1_8_5/extensions/findReferences-02.js
+++ b/js/src/tests/js1_8_5/extensions/findReferences-02.js
@@ -15,14 +15,14 @@ if (typeof findReferences == "function")
     function returnHeavy(y) { eval(''); return function heavy() { return y; }; }
     assertEq(referencesVia(returnHeavy(o), 'parent; y', o), true);
     assertEq(referencesVia(returnHeavy(o), 'parent; parent', this), true);
 
     function returnBlock(z) { eval(''); let(w = z) { return function block() { return w; }; }; }
     assertEq(referencesVia(returnBlock(o), 'parent; w', o), true);
 
     function returnWithObj(v) { with(v) return function withObj() { return u; }; }
-    assertEq(referencesVia(returnWithObj(o), 'parent; type_proto', o), true);
+    assertEq(referencesVia(returnWithObj(o), 'parent; type; type_proto', o), true);
 
     reportCompare(true, true);
 } else {
     reportCompare(true, true, "test skipped: findReferences is not a function");
 }