mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
c0260ef7cc
This patch allows a JS module to import another one with a relative path. For instance, if you have a set of modules you want to drop-in in any extension, and these modules depend on each other, you can import XPCOMUtils and then do XPCOMUtils.importRelative(this, "otherfile.jsm").
7 lines
157 B
JavaScript
7 lines
157 B
JavaScript
// Module used by import_module.jsm
|
|
|
|
var EXPORTED_SYMBOLS = [ "SUBMODULE_IMPORTED", "test_obj" ];
|
|
|
|
const SUBMODULE_IMPORTED = true;
|
|
var test_obj = { i: 0 };
|