diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 12:47:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 12:47:01 -0800 |
commit | 939740e739df9ac24b31b68f11ac477a17c73353 (patch) | |
tree | ee2197b033ea31d487b121216741effb25ea8626 /src | |
parent | 5f35f00af365bb890cf80fc7694a65e55645dbf5 (diff) | |
parent | 51ed6bf49f1f4186de7c07fab50bab5c1f70c643 (diff) |
Merge pull request #897 from lptr/unregister_functions
Add Runtime.removeFunction()
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js index 7f97da35..dc604a8d 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -365,6 +365,11 @@ var Runtime = { return ret; }, + removeFunction: function(index) { + var table = FUNCTION_TABLE; // TODO: support asm + table[index] = null; + }, + warnOnce: function(text) { if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {}; if (!Runtime.warnOnce.shown[text]) { |