feb968e66d
Local declarations obtain names prefixed with outer function's name. Only simple name (i.e. without mangling) of outer function used in this case. This raises a problem in case of inline functions with object literals. Currently, they are not copied, but exported from module. Consider two inline functions foo with different signatures, both declare object literals. In this case both literals are exported as foo$f, so only one will be accessible from outside.
To run tests in node.js your need the following prerequisites installed:
- node.js itself (installation is platform-dependent);
- mocha (
npm install -g mocha).
Run nmp install from this directory to download all additional dependencies for tests.
First, you need to run box tests via JUnit. JUnit tests additionally generate mocha runners
(i.e. .node.js files).
Second, run mocha from this directory.
You can declare KOTLIN_JS_LOCATION environment variable to customize location of kotlin.js library,
../../../dist/js/kotlin.js used by default.