File tree 2 files changed +2
-2
lines changed
IntegrationTests/TestSuites/Sources/PrimaryTests
Sources/JavaScriptKit/FundamentalObjects
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") {
216
216
return . boolean( true )
217
217
}
218
218
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
220
220
_ = try expectThrow ( try c1. throws ( ) )
221
221
// OneshotClosure won't call fatalError even if it's deallocated before `release`
222
222
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import _CJavaScriptKit
2
2
3
3
fileprivate var sharedFunctions : [ JavaScriptHostFuncRef : ( [ JSValue ] ) -> JSValue ] = [ : ]
4
4
5
- /// `JSOneshotClosure` is a JavaScript function that can be called at once.
5
+ /// `JSOneshotClosure` is a JavaScript function that can be called only once.
6
6
public class JSOneshotClosure : JSFunction {
7
7
private var hostFuncRef : JavaScriptHostFuncRef = 0
8
8
You can’t perform that action at this time.
0 commit comments