diff options
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(){}'; } }; |