Some bug fixes in extensions

This commit is contained in:
Zaid Abdulla committed 2016-09-13 13:51:45 -07:00
1 parent f6ad84c885
commit b9e17c9add
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ Object.defineProperty(sandbox.context, 'ext', {value: () ->
extCall = (String(a) for a in arguments)
key = JSON.stringify(extCall)
if not sandbox.extensionsCache[sandbox.revision]?[key]?
if not sandbox.extensionsCache[sandbox.revision]? or key not of sandbox.extensionsCache[sandbox.revision]
sandbox.extensions = [extCall]
throw new Exit()