REGRESSION(216914): testCFStrings encounters an invalid ExecState callee pointer.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2017 18:45:43 +0000 (18:45 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2017 18:45:43 +0000 (18:45 +0000)
commit5cadd5f20590a4e8f32e8905bc0aa97aa472e76f
treec13225b6f164c979fd4d61bdf69680ca8bae5127
parentdabbc423eb0b8762500aba9b8327d8ac49d08491
REGRESSION(216914): testCFStrings encounters an invalid ExecState callee pointer.
https://bugs.webkit.org/show_bug.cgi?id=172651

Reviewed by Saam Barati.

This is because the assertion utility functions used in testCFStrings() expects
to get the JSGlobalContextRef from the global context variable.  However,
testCFStrings() creates its own JSGlobalContextRef but does not set the global
context variable to it.

The fix is to make testCFStrings() initialize the global context variable properly.

* API/tests/testapi.c:
(testCFStrings):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/API/tests/testapi.c
Source/JavaScriptCore/ChangeLog