KT-3008 Change the way how modules are referenced in JS
This commit is contained in:
+1
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var Kotlin = Kotlin || {};
|
||||
(function (Kotlin) {
|
||||
"use strict";
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var Kotlin = {};
|
||||
var Kotlin = Kotlin || {};
|
||||
|
||||
(function (Kotlin) {
|
||||
'use strict';
|
||||
|
||||
Vendored
+2
@@ -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";
|
||||
|
||||
|
||||
Vendored
+2
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var Kotlin = Kotlin || {};
|
||||
|
||||
(function (Kotlin) {
|
||||
"use strict";
|
||||
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
module1->
|
||||
main->module1
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun box(): String {
|
||||
var module1 = bar()
|
||||
assertEquals("bar", module1)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun bar() = "bar"
|
||||
Reference in New Issue
Block a user