Bug 821340 - Add test (r=test)
authorBill McCloskey <wmccloskey@mozilla.com>
Tue, 18 Dec 2012 17:02:57 -0800
changeset 116472 3c4d09f70c69ffc5f9acb3c227b860abab5c645a
parent 116471 966b04dba626e31576000cdfe027bc618ab7ad54
child 116473 b6e9ba8a6a207522c39c539af5453d2db8ad2644
push id24052
push useremorley@mozilla.com
push dateWed, 19 Dec 2012 19:30:46 +0000
treeherdermozilla-central@27a1c1839d42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest
bugs821340
milestone20.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
Bug 821340 - Add test (r=test)
js/src/jit-test/tests/basic/bug821340.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug821340.js
@@ -0,0 +1,10 @@
+var g = newGlobal('new-compartment');
+var dbg = Debugger(g);
+function test(code, expected) {
+    var actual = '';
+    g.h = function () { actual += dbg.getNewestFrame().environment.type; }
+    g.eval(code);
+}
+test("h();", 'object');
+gczeal(4);
+var count2 = countHeap();