[JSC] Make return types of construction functions tight
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 May 2018 04:38:56 +0000 (04:38 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 May 2018 04:38:56 +0000 (04:38 +0000)
commit6bdd6a89a0e9afd073b9395b5932e46362209cf9
tree191ede6fbe281b66dceb0f6ebbe2fb6688297531
parent98e4e3eebb8ab15c4429959b3dd9deb40e6d8066
[JSC] Make return types of construction functions tight
https://bugs.webkit.org/show_bug.cgi?id=185509

Reviewed by Saam Barati.

Array and Object construction functions should return strict types instead of returning JSObject*/JSValue.

* runtime/ArrayConstructor.cpp:
(JSC::constructArrayWithSizeQuirk):
* runtime/ArrayConstructor.h:
* runtime/ObjectConstructor.h:
(JSC::constructEmptyObject):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ArrayConstructor.cpp
Source/JavaScriptCore/runtime/ArrayConstructor.h
Source/JavaScriptCore/runtime/ObjectConstructor.h