Skip to content

Commit

Permalink
🎨 Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEEs committed Jun 21, 2021
1 parent 756632d commit c1fba71
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/jsc_function.cr
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# JSCFunction represents a JavaScript's native function(a function that run native code instead of javascript).
class JSCFunction

FUNCTIONS = [] of JSCFunction
FUNCTIONS = [] of JSCFunction

include JSObjectUtils
include Invokable
@this : JSC::JSValue = JSC::JSValue.null
@name : String? = nil
@@global_context : LibWebKit2Extension::WebKitJSContext = Pointer(Void).null
@box : Pointer(Void) = Pointer(Void).null

alias CallBack = Array(JSCPrimative | JSCFunction | JSCObject) -> JSCFunction | JSCPrimative | JSCObject

# #@@box_of_fun = Array(Void*).new
Expand Down Expand Up @@ -104,6 +103,4 @@ class JSCFunction
def finalize
puts "JSCFunction #{self.object_id} is garbage collected"
end


end

0 comments on commit c1fba71

Please sign in to comment.