cloroutine
cloroutine copied to clipboard
method call on a global js object doesn't bind this
This interop syntax is incorrectly interpreted as a function call and throws #object[TypeError TypeError: PromiseResolve called on non-object]
due to unbound this
.
((cr {} (js/Promise.resolve "hi")))
Note : dot prefix notation is correctly interpreted as a method call.
((cr {} (.resolve js/Promise "hi")))