Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b474021707deb024befa189b95490ad7723ba29e
      
https://github.com/WebKit/WebKit/commit/b474021707deb024befa189b95490ad7723ba29e
  Author: Richard Robinson <[email protected]>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    A Source/JavaScriptCore/API/tests/Modules/module.modulemap
    A Source/JavaScriptCore/API/tests/SwiftTestingHarness.h
    A Source/JavaScriptCore/API/tests/SwiftTestingHarness.swift
    M Source/JavaScriptCore/API/tests/testapi.c
    A Source/JavaScriptCore/API/tests/testapi.swift
    M Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig
    M Source/JavaScriptCore/Configurations/TestExecutable.xcconfig
    A Source/JavaScriptCore/JavaScriptCore.swift
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/JavaScriptCore_Private.modulemap

  Log Message:
  -----------
  [Swift in WebKit] Add
support for Swift to JavaScriptCore for non-Production builds
https://bugs.webkit.org/show_bug.cgi?id=316389
rdar://178797457

Reviewed by Keith Miller.

Enable the use of Swift in JSC. For now, this is only for non-Production 
builds, since several
blocking issues currently prevent this. Once those blockers are resolved, 
enabling Swift in JSC
for Production builds will be trivial.

Tests: Source/JavaScriptCore/API/tests/SwiftTestingHarness.h
       Source/JavaScriptCore/API/tests/testapi.c
       Source/JavaScriptCore/API/tests/testapi.swift

* Source/JavaScriptCore/API/tests/Modules/module.modulemap: Added.
* Source/JavaScriptCore/API/tests/SwiftTestingHarness.h: Added.
* Source/JavaScriptCore/API/tests/testapi.c:
(main):
* Source/JavaScriptCore/API/tests/testapi.swift: Added.
(TestCase.run):
(ExpectationError.description):
(TestCondition.evaluate):
(evaluateScriptProducesExpectedResult):
(testSwiftAPI(_:)):

Add a testapi testing harness to allow testing JSC
from Swift.

* Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig:
* Source/JavaScriptCore/Configurations/TestExecutable.xcconfig:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:

Update the xcconfigs for JSC and testapi to allow for Swift.

* Source/JavaScriptCore/JavaScriptCore_Private.modulemap:

Make a slight correctness fix to the JSC private module map.

Canonical link: 
https://flagged.apple.com:443/proxy?t2=dr8l7e2le9&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE1MDAyQG1haW4=&emid=9ed9edce-aa77-4ec0-ac12-e74cf6a27e6a&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to