Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4429d88

Browse files
committed
Merge branch 'master' into webidl
2 parents 29a30e7 + 8cdc2d1 commit 4429d88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/JavaScriptKit/JSValue.swift

+6
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ extension JSValue: ExpressibleByFloatLiteral {
124124
}
125125
}
126126

127+
extension JSValue: ExpressibleByNilLiteral {
128+
public init(nilLiteral: ()) {
129+
self = .null
130+
}
131+
}
132+
127133
public func getJSValue(this: JSObject, name: String) -> JSValue {
128134
var rawValue = RawJSValue()
129135
_get_prop(this.id, name, Int32(name.count),

0 commit comments

Comments
 (0)