We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Required Amber version: >= 0.12.0
>= 0.12.0
To wrap JS constructors, you can do the following:
MyClass class >> initialize self javascriptConstructor: aJavaScriptFunction
More details can be found in Behavior >> javascriptConstructor: and smalltalk.setClassConstructor in the file boot.js.
Behavior >> javascriptConstructor:
smalltalk.setClassConstructor
boot.js
See also Call-javascript-constructors-with-arguments