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:
Matt Basta 2013-12-10 11:52:52 -08:00
Родитель 2a9cc1bf13
Коммит a97f347d17
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -194,8 +194,8 @@ class JSGlobal(JSObject):
def get_literal_value(self, traverser=None):
traverser = traverser or self.traverser
if "literal" in self.global_data:
lit = utils.evaluate_lambdas(traverser, self.global_data["literal"])
return JSLiteral(lit, traverser=traverser)
return utils.evaluate_lambdas(
traverser, self.global_data["literal"])
directory = self._get_contents(traverser)
if directory and not isinstance(directory, dict):