Skip to content

Commit 75e096b

Browse files
committed
Erase varTop buildState
1 parent d1a3b4a commit 75e096b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

defaultMethods.js

-3
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ defaultMethods.get.compile = function (data, buildState) {
918918
defaultMethods.var.compile = function (data, buildState) {
919919
let key = data
920920
let defaultValue = null
921-
buildState.varTop = buildState.varTop || new Set()
922921
if (
923922
!key ||
924923
typeof data === 'string' ||
@@ -941,8 +940,6 @@ defaultMethods.var.compile = function (data, buildState) {
941940
if (key.includes('../')) return false
942941

943942
const pieces = splitPathMemoized(key)
944-
const [top] = pieces
945-
buildState.varTop.add(top)
946943

947944
if (!buildState.engine.allowFunctions) buildState.methods.preventFunctions = a => typeof a === 'function' ? null : a
948945
else buildState.methods.preventFunctions = a => a

0 commit comments

Comments
 (0)