1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/primitiveProto.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 + 1.5 +function fna() {} 1.6 +fna.prototype = undefined; 1.7 +new fna; 1.8 + 1.9 +function fnb() {} 1.10 +fnb.prototype = null; 1.11 +new fnb; 1.12 + 1.13 +function fnc() {} 1.14 +fnc.prototype = 3; 1.15 +new fnc; 1.16 + 1.17 +function fnd() {} 1.18 +fnd.prototype = true; 1.19 +new fnd; 1.20 + 1.21 +function fne() {} 1.22 +fne.prototype = "foo"; 1.23 +new fne; 1.24 + 1.25 +function fnf() {} 1.26 +fnf.prototype = /foo/; 1.27 +new fnf;