https://bugs.webkit.org/show_bug.cgi?id=75452
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jan 2012 06:56:22 +0000 (06:56 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jan 2012 06:56:22 +0000 (06:56 +0000)
commit0086c792d7f354c04c4965fb136d3ee90a71098e
treeadba473ee729a632cecc872e0fcc492e0604fa67
parentf1d3ad40e7ea3dd0ea2605214c60afab21bda458
https://bugs.webkit.org/show_bug.cgi?id=75452
If argument to Error is undefined, message is not set

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Per section 15.11.1.1 of the spec.

* runtime/ErrorInstance.h:
(JSC::ErrorInstance::create):
(JSC::ErrorInstance::finishCreation):

LayoutTests:

Added test case.

* fast/js/native-error-prototype-expected.txt:
* fast/js/script-tests/native-error-prototype.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/js/native-error-prototype-expected.txt
LayoutTests/fast/js/script-tests/native-error-prototype.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ErrorInstance.h