-
Notifications
You must be signed in to change notification settings - Fork 29
Fix passing variables across compilations #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
c708151
to
62c3e8a
Compare
32bce7d
to
ffda07a
Compare
ffda07a
to
9970cd2
Compare
9970cd2
to
b216d0a
Compare
b216d0a
to
0c35faf
Compare
0c35faf
to
fd2febc
Compare
@@ -18,6 +18,7 @@ import {Value} from './value'; | |||
* execute them. | |||
*/ | |||
export class FunctionRegistry<sync extends 'sync' | 'async'> { | |||
public readonly compileContext = Symbol(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document this.
@@ -19,7 +19,18 @@ export class SassArgumentList extends SassList { | |||
* part of the package's public API and should not be accessed by user code. | |||
* It may be renamed or removed without warning in the future. | |||
*/ | |||
readonly id: number; | |||
readonly id: number | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document what it means for this to be undefined
.
@@ -44,7 +44,7 @@ export class Protofier { | |||
get accessedArgumentLists(): number[] { | |||
return this.argumentLists | |||
.filter(list => list.keywordsAccessed) | |||
.map(list => list.id); | |||
.map(list => list.id as number); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.map(list => list.id as number); | |
.map(list => list.id!); |
const list = create(proto.Value_ArgumentListSchema, { | ||
id: value.id, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const list = create(proto.Value_ArgumentListSchema, { | |
id: value.id, | |
}); | |
const list = create(proto.Value_ArgumentListSchema, {id: value.id}); |
@@ -1,7 +1,7 @@ | |||
{ | |||
"name": "sass-embedded", | |||
"version": "1.87.0", | |||
"protocol-version": "3.1.0", | |||
"protocol-version": "3.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the repo is currently in a broken state because sass/sass#4073 was submitted bumping the protocol version, and the repo expects this to match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix: #372
This PR addresses sass/dart-sass#2542 for the embedded host side by porting sass-contrib/sass-embedded-host-ruby@c05a8f5...0378284.
sass/dart-sass#2544
sass/sass-spec#2053