Bug 821340 - Add test (r=test)
authorBill McCloskey <wmccloskey@mozilla.com>
Tue, 18 Dec 2012 17:02:57 -0800
changeset 125574 3c4d09f70c69
parent 125573 966b04dba626
child 125575 b6e9ba8a6a20
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [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();