diff --git a/js/src/tests/js1_8_5/regress/jstests.list b/js/src/tests/js1_8_5/regress/jstests.list index cd74078d48ed..09ca2da49cd0 100644 --- a/js/src/tests/js1_8_5/regress/jstests.list +++ b/js/src/tests/js1_8_5/regress/jstests.list @@ -21,3 +21,4 @@ script regress-563210.js script regress-563221.js script regress-566549.js script regress-566914.js +script regress-569306.js \ No newline at end of file diff --git a/js/src/tests/js1_8_5/regress/regress-569306.js b/js/src/tests/js1_8_5/regress/regress-569306.js new file mode 100644 index 000000000000..221782186945 --- /dev/null +++ b/js/src/tests/js1_8_5/regress/regress-569306.js @@ -0,0 +1,10 @@ +function f() {} +var g = new Function(); +delete Function; +function h() {} + +assertEq(f.__proto__, g.__proto__); +assertEq(g.__proto__, h.__proto__); +assertEq(false, "Function" in this); + +reportCompare("ok", "ok", "bug 569306");