Debian Codegraph @

rhino/testsrc/tests/js1_5/GC/regress-316885-01.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var gTestfile = 'regress-316885-01.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 316885;
9 var summary = 'Unrooted access in jsinterp.c';
10 var actual = '';
11 var expect = '';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 var str_with_num = "0.1";
17
18 var obj = {
19 elem getter: function() {
20 return str_with_num;
21 },
22 elem setter: function(value) {
23 gc();
24 }
25
26 };
27
28 expect = Number(str_with_num);
29 actual = obj.elem++;
30
31 gc();
32
33
34 reportCompare(expect, actual, summary);