File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
IntegrationTests/TestSuites/Sources/PrimaryTests
Sources/JavaScriptKit/FundamentalObjects Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ try test("Closure Lifetime") {
216216 return . boolean( true )
217217 }
218218 try expectEqual ( c1 ( ) , . boolean( true ) )
219- // second call will cause fatalError that can be catched as a JavaScript exception
219+ // second call will cause ` fatalError` that can be caught as a JavaScript exception
220220 _ = try expectThrow ( try c1. throws ( ) )
221221 // OneshotClosure won't call fatalError even if it's deallocated before `release`
222222 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import _CJavaScriptKit
22
33fileprivate var sharedFunctions : [ JavaScriptHostFuncRef : ( [ JSValue ] ) -> JSValue ] = [ : ]
44
5- /// `JSOneshotClosure` is a JavaScript function that can be called at once.
5+ /// `JSOneshotClosure` is a JavaScript function that can be called only once.
66public class JSOneshotClosure : JSFunction {
77 private var hostFuncRef : JavaScriptHostFuncRef = 0
88
You can’t perform that action at this time.
0 commit comments