diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wabt.post.js | 16 | ||||
-rw-r--r-- | src/wabt.pre.js | 18 |
2 files changed, 2 insertions, 32 deletions
diff --git a/src/wabt.post.js b/src/wabt.post.js index ba0d81c3..74a46f21 100644 --- a/src/wabt.post.js +++ b/src/wabt.post.js @@ -325,17 +325,5 @@ WasmModule.prototype.destroy = function() { } }; -var exports = { - ready: Promise.resolve(), - parseWat: parseWat, - readWasm: readWasm, -}; - -if (typeof module !== "undefined" && module && module.exports) - module.exports = exports; -else if (typeof define === "function" && define.amd) - define(function() { return exports; }); -else - (typeof global !== "undefined" && global || typeof window !== "undefined" && window || this).wabt = exports; - -})(); // Call IIFE from wabt.pre.js. +Module['parseWat'] = parseWat; +Module['readWasm'] = readWasm; diff --git a/src/wabt.pre.js b/src/wabt.pre.js deleted file mode 100644 index 5cc41d0b..00000000 --- a/src/wabt.pre.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2017 WebAssembly Community Group participants - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -(function() { - "use strict"; |