[K/JS] Move ES modules logic to a new transformer with IC
This commit is contained in:
@@ -24,7 +24,7 @@ open class B {
|
||||
// FILE: entry.mjs
|
||||
// ENTRY_ES_MODULE
|
||||
|
||||
import { A, B } from "./main/index.js";
|
||||
import { A, B } from "./inheritanceInNativeClass_v5.mjs";
|
||||
|
||||
function createA() {
|
||||
function ADerived() {
|
||||
@@ -46,7 +46,7 @@ function createB() {
|
||||
return new BDerived();
|
||||
}
|
||||
|
||||
function box() {
|
||||
export function box() {
|
||||
let a = createA();
|
||||
if (a.bar(0) != 124) return "fail1";
|
||||
|
||||
@@ -54,6 +54,4 @@ function box() {
|
||||
if (b.bar(0) != 42) return "fail2";
|
||||
|
||||
return "OK";
|
||||
}
|
||||
|
||||
console.assert(box() == "OK");
|
||||
}
|
||||
Reference in New Issue
Block a user