File tree Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Documentation
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ swift-doc :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v1
13+ - name : Generate Documentation
14+ uses : MaxDesiatov/swift-doc@prebuilt-image
15+ with :
16+ inputs : " Sources"
17+ module-name : JavaScriptKit
18+ format : html
19+ base-url : " /JavaScriptKit"
20+ output : ./.build/documentation
21+ - run : sudo chmod o+r -R ./.build/documentation
22+ - name : Deploy
23+ uses : peaceiris/actions-gh-pages@v3
24+ with :
25+ github_token : ${{ secrets.GITHUB_TOKEN }}
26+ publish_dir : ./.build/documentation
Original file line number Diff line number Diff line change 1- /** A wrapper around the [ JavaScript Error
1+ /** A wrapper around [ the JavaScript Error
22class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) that
33exposes its properties in a type-safe way.
44*/
@@ -24,7 +24,7 @@ public final class JSError: Error {
2424 jsObject. name. string!
2525 }
2626
27- /// The JavaScript call trace that led to the creation of this error object.
27+ /// The JavaScript call stack that led to the creation of this error object.
2828 public var stack : String ? {
2929 jsObject. stack. string
3030 }
Original file line number Diff line number Diff line change @@ -105,18 +105,18 @@ public class JSClosure: JSFunction {
105105}
106106
107107@_cdecl ( " swjs_prepare_host_function_call " )
108- public func _prepare_host_function_call( _ argc: Int32 ) -> UnsafeMutableRawPointer {
108+ func _prepare_host_function_call( _ argc: Int32 ) -> UnsafeMutableRawPointer {
109109 let argumentSize = MemoryLayout< RawJSValue> . size * Int( argc)
110110 return malloc ( Int ( argumentSize) ) !
111111}
112112
113113@_cdecl ( " swjs_cleanup_host_function_call " )
114- public func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
114+ func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
115115 free ( pointer)
116116}
117117
118118@_cdecl ( " swjs_call_host_function " )
119- public func _call_host_function(
119+ func _call_host_function(
120120 _ hostFuncRef: JavaScriptHostFuncRef ,
121121 _ argv: UnsafePointer < RawJSValue > , _ argc: Int32 ,
122122 _ callbackFuncRef: JavaScriptObjectRef
You can’t perform that action at this time.
0 commit comments