-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Discussed in #165
Originally posted by scally February 14, 2023
How do you call new
on Javascript objects? I haven't found a workaround yet that will let me do this. I can call the object constructor but it will then tell me that I need to call the new
operator:
for example:
observer = JS.global.MutationObserver do
puts 'here'
end
results in
TypeError: Constructor requires 'new' operator (JS::Error)
```</div>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request