mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 13:20:41 -07:00
refactor: simplify scope-security MR
Drop null-prototype passthrough in push(), inline blocked-key checks, remove redundant createScope at include tag, trim verbose docs, and drop implementation-detail unit tests. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -95,11 +95,7 @@ export class Context {
|
||||
return scope
|
||||
}
|
||||
public push (ctx: Scope): Scope {
|
||||
const scope = ctx instanceof Drop
|
||||
? ctx
|
||||
: Object.getPrototypeOf(ctx) === null
|
||||
? ctx
|
||||
: createScope(ctx)
|
||||
const scope = ctx instanceof Drop ? ctx : createScope(ctx)
|
||||
this.scopes.push(scope)
|
||||
return scope
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user