File tree 3 files changed +31
-5
lines changed
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
2
2
class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) that
3
3
exposes its properties in a type-safe way.
4
4
*/
@@ -24,7 +24,7 @@ public final class JSError: Error {
24
24
jsObject. name. string!
25
25
}
26
26
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.
28
28
public var stack : String ? {
29
29
jsObject. stack. string
30
30
}
Original file line number Diff line number Diff line change @@ -105,18 +105,18 @@ public class JSClosure: JSFunction {
105
105
}
106
106
107
107
@_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 {
109
109
let argumentSize = MemoryLayout< RawJSValue> . size * Int( argc)
110
110
return malloc ( Int ( argumentSize) ) !
111
111
}
112
112
113
113
@_cdecl ( " swjs_cleanup_host_function_call " )
114
- public func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
114
+ func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
115
115
free ( pointer)
116
116
}
117
117
118
118
@_cdecl ( " swjs_call_host_function " )
119
- public func _call_host_function(
119
+ func _call_host_function(
120
120
_ hostFuncRef: JavaScriptHostFuncRef ,
121
121
_ argv: UnsafePointer < RawJSValue > , _ argc: Int32 ,
122
122
_ callbackFuncRef: JavaScriptObjectRef
You can’t perform that action at this time.
0 commit comments