KT-3008 Change the way how modules are referenced in JS

This commit is contained in:
Alexey Andreev
2016-04-11 16:20:25 +03:00
parent 2909533522
commit 95b78e18df
24 changed files with 169 additions and 136 deletions
+1
View File
@@ -14,6 +14,7 @@
* limitations under the License.
*/
var Kotlin = Kotlin || {};
(function (Kotlin) {
"use strict";
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
var Kotlin = {};
var Kotlin = Kotlin || {};
(function (Kotlin) {
'use strict';
+2
View File
@@ -26,6 +26,8 @@
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
var Kotlin = Kotlin || {};
(function (Kotlin) {
"use strict";
+2
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
var Kotlin = Kotlin || {};
(function (Kotlin) {
"use strict";
@@ -0,0 +1,2 @@
module1->
main->module1
@@ -0,0 +1,6 @@
fun box(): String {
var module1 = bar()
assertEquals("bar", module1)
return "OK"
}
@@ -0,0 +1 @@
fun bar() = "bar"