diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-04 00:15:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-04 00:15:13 -0700 |
commit | 30cc97c85c1579de20d682d830349504230356bb (patch) | |
tree | 724847d3543ffbaa7b3c5e72fbae3b594c693e18 /src/modules.js | |
parent | 7a7ab766e560b812de639c772e1d1d43ad847157 (diff) |
stubs for lifecycle intrinsics, and do not generate calls to stubs
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index f83e3ce3..70499bcc 100644 --- a/src/modules.js +++ b/src/modules.js @@ -269,6 +269,11 @@ var LibraryManager = { ret = LibraryManager.library[ret]; } return last; + }, + + isStubFunction: function(ident) { + var libCall = LibraryManager.library[ident.substr(1)]; + return typeof libCall === 'function' && libCall.toString().replace(/\s/g, '') === 'function(){}'; } }; |