Fix for callstack.
This commit is contained in:
parent
9f61e7f90d
commit
b909dce5d1
@ -348,7 +348,7 @@ do
|
|||||||
local _list_0 = self.callstack
|
local _list_0 = self.callstack
|
||||||
for _index_0 = 1, #_list_0 do
|
for _index_0 = 1, #_list_0 do
|
||||||
local caller = _list_0[_index_0]
|
local caller = _list_0[_index_0]
|
||||||
if whiteset[caller[1]] then
|
if caller ~= "#macro" and whiteset[caller[1]] then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -369,7 +369,7 @@ do
|
|||||||
local _list_0 = self.callstack
|
local _list_0 = self.callstack
|
||||||
for _index_0 = 1, #_list_0 do
|
for _index_0 = 1, #_list_0 do
|
||||||
local caller = _list_0[_index_0]
|
local caller = _list_0[_index_0]
|
||||||
if whiteset[caller[1]] then
|
if caller ~= "#macro" and whiteset[caller[1]] then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -274,7 +274,7 @@ class NomsuCompiler
|
|||||||
-- TODO: maybe optimize this by making the callstack a Counter and using a
|
-- TODO: maybe optimize this by making the callstack a Counter and using a
|
||||||
-- move-to-front optimization on the whitelist to check most likely candidates sooner
|
-- move-to-front optimization on the whitelist to check most likely candidates sooner
|
||||||
for caller in *@callstack
|
for caller in *@callstack
|
||||||
if whiteset[caller[1]] then return true
|
if caller != "#macro" and whiteset[caller[1]] then return true
|
||||||
@error "You do not have the authority to call: #{stub}"
|
@error "You do not have the authority to call: #{stub}"
|
||||||
|
|
||||||
check_permission: (fn_def)=>
|
check_permission: (fn_def)=>
|
||||||
@ -288,7 +288,7 @@ class NomsuCompiler
|
|||||||
-- TODO: maybe optimize this by making the callstack a Counter and using a
|
-- TODO: maybe optimize this by making the callstack a Counter and using a
|
||||||
-- move-to-front optimization on the whitelist to check most likely candidates sooner
|
-- move-to-front optimization on the whitelist to check most likely candidates sooner
|
||||||
for caller in *@callstack
|
for caller in *@callstack
|
||||||
if whiteset[caller[1]] then return true
|
if caller != "#macro" and whiteset[caller[1]] then return true
|
||||||
return false
|
return false
|
||||||
|
|
||||||
parse: (str, filename)=>
|
parse: (str, filename)=>
|
||||||
|
Loading…
Reference in New Issue
Block a user