Don't wrap literals on get_literal_value()
get_literal_value should always return the value of the literal, never the wrapped literal object itself.
This commit is contained in:
Родитель
2a9cc1bf13
Коммит
a97f347d17
|
@ -194,8 +194,8 @@ class JSGlobal(JSObject):
|
||||||
def get_literal_value(self, traverser=None):
|
def get_literal_value(self, traverser=None):
|
||||||
traverser = traverser or self.traverser
|
traverser = traverser or self.traverser
|
||||||
if "literal" in self.global_data:
|
if "literal" in self.global_data:
|
||||||
lit = utils.evaluate_lambdas(traverser, self.global_data["literal"])
|
return utils.evaluate_lambdas(
|
||||||
return JSLiteral(lit, traverser=traverser)
|
traverser, self.global_data["literal"])
|
||||||
|
|
||||||
directory = self._get_contents(traverser)
|
directory = self._get_contents(traverser)
|
||||||
if directory and not isinstance(directory, dict):
|
if directory and not isinstance(directory, dict):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче