[JSC] Remove loadModule function in jsc.cpp
authoryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Sep 2018 20:51:22 +0000 (20:51 +0000)
committeryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Sep 2018 20:51:22 +0000 (20:51 +0000)
commitdef5b2914dda1245b96ae27c3b32ffa7f20b718e
tree6342d0c95587d3e260d3f9758b1b7f5be48b3996
parentc38a753cc706b7ce282126f734d249a23b70a5ca
[JSC] Remove loadModule function in jsc.cpp
https://bugs.webkit.org/show_bug.cgi?id=184808

Patch by Yusuke Suzuki <utatane.tea@gmail.com> on 2018-09-08
Reviewed by Darin Adler.

JSTests:

Use `import` expression instead.

* modules/different-view.js:
(from.string_appeared_here.shouldThrow): Deleted.
* modules/fallback-ambiguous.js:
(from.string_appeared_here.shouldThrow): Deleted.
* modules/import-error.js:
(from.string_appeared_here.shouldThrow): Deleted.
(shouldThrow): Deleted.
* modules/indirect-export-error.js:
(from.string_appeared_here.shouldThrow): Deleted.
(shouldThrow): Deleted.
* modules/namespace-error.js:
(from.string_appeared_here.shouldThrow): Deleted.

Source/JavaScriptCore:

Since we have `import`, we do not need to have `loadModule` function for testing purpose.

* jsc.cpp:
(GlobalObject::finishCreation):
(functionLoadModule): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/modules/different-view.js
JSTests/modules/fallback-ambiguous.js
JSTests/modules/import-error.js
JSTests/modules/indirect-export-error.js
JSTests/modules/namespace-error.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp