regress-396326.js (1381B)
1 /* -*- indent-tabs-mode: nil; js-indent-level: 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 7 //----------------------------------------------------------------------------- 8 var BUGNUMBER = 396326; 9 var summary = 'Do not assert trying to disassemble get(var|arg) prop'; 10 var actual = 'No Crash'; 11 var expect = 'No Crash'; 12 13 14 //----------------------------------------------------------------------------- 15 test(); 16 //----------------------------------------------------------------------------- 17 18 function test() 19 { 20 printBugNumber(BUGNUMBER); 21 printStatus (summary); 22 23 if (typeof dis == 'undefined') 24 { 25 print('disassembly not supported. test skipped.'); 26 reportCompare(expect, actual, summary); 27 } 28 else 29 { 30 function f1() { var v; return v.prop }; 31 dis(f1); 32 reportCompare(expect, actual, summary + 33 ': function f1() { var v; return v.prop };'); 34 35 function f2(arg) { return arg.prop }; 36 dis(f2); 37 reportCompare(expect, actual, summary + 38 ': function f2(arg) { return arg.prop };'); 39 40 function f3() { return this.prop }; 41 dis(f3); 42 reportCompare(expect, actual, summary + 43 ': function f3() { return this.prop };'); 44 } 45 }