aboutsummaryrefslogtreecommitdiff
path: root/tests/cmake/target_js/jslibrary.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cmake/target_js/jslibrary.js')
-rw-r--r--tests/cmake/target_js/jslibrary.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cmake/target_js/jslibrary.js b/tests/cmake/target_js/jslibrary.js
new file mode 100644
index 00000000..63375d8f
--- /dev/null
+++ b/tests/cmake/target_js/jslibrary.js
@@ -0,0 +1,7 @@
+var mylib = {};
+
+mylib.lib_function = function() {
+ console.log('lib_function');
+}
+
+mergeInto(LibraryManager.library, mylib);