Skip to content

Defend unparsed literal defaults#8711

Open
sovdeeth wants to merge 1 commit into
SkriptLang:dev/patchfrom
sovdeeth:patch/literal-defaults
Open

Defend unparsed literal defaults#8711
sovdeeth wants to merge 1 commit into
SkriptLang:dev/patchfrom
sovdeeth:patch/literal-defaults

Conversation

@sovdeeth

Copy link
Copy Markdown
Member

Problem

function f(object = true) was not parsing correctly, since true was an UnparsedLiteral.

Solution

Adds defendExpression call to the default value parsing path to avoid unnecessary UnparsedLiterals.

Testing Completed

Supporting Information


Completes: none
Related: none
AI assistance: none

@sovdeeth sovdeeth requested a review from a team as a code owner June 18, 2026 01:52
@sovdeeth sovdeeth requested review from Burbulinis and erenkarakal and removed request for a team June 18, 2026 01:52
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Jun 18, 2026
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. and removed needs triage An issue that hasn't been classified or verified yet labels Jun 18, 2026
@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.15 Releases Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. needs reviews A PR that needs additional reviews

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants