cloroutine icon indicating copy to clipboard operation
cloroutine copied to clipboard

method call on a global js object doesn't bind this

Open leonoel opened this issue 2 years ago • 0 comments

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")))

leonoel avatar Nov 03 '22 09:11 leonoel