runtime.js 865 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict';
  2. (function () {
  3. '<constants>';
  4. '<include> msg.js';
  5. '<include> assertion.js';
  6. '<include> toolkit.js';
  7. '<include> error.js';
  8. '<include> type.js';
  9. '<include> function.js';
  10. '<include> oo.js';
  11. '<include> generics.js';
  12. '<include> module.js';
  13. '<include> built-in/built-in.js';
  14. '<include> modules/ES.js';
  15. '<include> modules/Math.js';
  16. let export_object = {
  17. CustomError, RuntimeError, AssertionFailed,
  18. Global, call_by_js, inject_desc,
  19. [R_VOID]: Void,
  20. [R_EVAL_SCOPE]: Eval,
  21. [R_NEW_SCOPE]: new_scope,
  22. [R_REG_MODULE]: register_module,
  23. [R_GET_HELPERS]: get_helpers,
  24. }
  25. Object.freeze(export_object)
  26. if (typeof window != 'undefined') {
  27. window[RUNTIME] = export_object
  28. } else {
  29. module.exports = export_object
  30. }
  31. })()