X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=LayoutTests%2Ffast%2Fjs%2Fscript-tests%2Fnative-error-prototype.js;h=4da02ec580e85ac709e010fc981df8d872be18b6;hp=fb004765358389c6d5a87178adc2dfe7d70e4b6b;hb=0086c792d7f354c04c4965fb136d3ee90a71098e;hpb=f1d3ad40e7ea3dd0ea2605214c60afab21bda458 diff --git a/LayoutTests/fast/js/script-tests/native-error-prototype.js b/LayoutTests/fast/js/script-tests/native-error-prototype.js index fb0047653583..4da02ec580e8 100644 --- a/LayoutTests/fast/js/script-tests/native-error-prototype.js +++ b/LayoutTests/fast/js/script-tests/native-error-prototype.js @@ -1,5 +1,5 @@ description( -'This is a test case for bug 55346 and bug 70889.' +'This is a test case for bugs 55346, 70889, and 75452.' ); shouldBe("({}).toString.call(Error.prototype)", '"[object Error]"'); @@ -8,3 +8,9 @@ shouldBe("({}).toString.call(RangeError.prototype)", '"[object Error]"'); var err = new Error("message"); err.name = ""; shouldBe("err.toString()", '"message"'); + +var err = new Error(); +shouldBeFalse("err.hasOwnProperty('message')"); + +var err = new Error(undefined); +shouldBeFalse("err.hasOwnProperty('message')");