aa2a4f0794
* Make it an inheritor of JS Error. Otherwise, Chakra engine doesn't fill stack trace of exception; In other engines inheritance has some good effects too. * Copy all properties from internally created instance of JS Error #KT-6985 Fixed #KT-2328 Fixed #KT-8019 Fixed #KT-10911 Fixed
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.