| Index: test/webkit/sort-no-jit-code-crash.js
|
| diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/sort-no-jit-code-crash.js
|
| similarity index 86%
|
| copy from test/webkit/resources/standalone-post.js
|
| copy to test/webkit/sort-no-jit-code-crash.js
|
| index d157e78bfa084329e2ec1a9b7d6ad456e904c152..1b495acbd287f45e32c8fb3102ce45ea0dbcc56a 100644
|
| --- a/test/webkit/resources/standalone-post.js
|
| +++ b/test/webkit/sort-no-jit-code-crash.js
|
| @@ -21,6 +21,26 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -wasPostTestScriptParsed = true;
|
| +description(
|
| +"This test checks that non-numeric sort functions always have JIT code. This test passes if it does not crash."
|
| +);
|
|
|
| -finishJSTest();
|
| +function f()
|
| +{
|
| +}
|
| +
|
| +[].sort(f);
|
| +
|
| +function g()
|
| +{
|
| +}
|
| +
|
| +function h(x)
|
| +{
|
| + x();
|
| +}
|
| +
|
| +h(g);
|
| +h(g);
|
| +h(g);
|
| +h(f);
|
|
|