Implement dynamic-import for WebCore
[WebKit-https.git] / LayoutTests / js / dom / modules / resources / module-src-simple.js
1 import Cocoa from "./module-src-simple-cocoa.js";
2 var cocoa = new Cocoa();
3
4 debug("Module execution is confined in the module environment.");
5 shouldBeEqualToString("typeof cocoa", "undefined");
6
7 window.exportedCocoa = cocoa;
8 shouldBeEqualToString("typeof exportedCocoa", "object");
9 shouldBeEqualToString("exportedCocoa.taste()", "nice");
10 finishJSTest();