mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
docs: stop labelling current behaviour as legacy
Three of the five comments the audit found. always() accepts a predicate or a formula and both are live: the shipped default properties pass a predicate, the six example-spec properties pass a formula. String selectors are documented first-class beside object selectors in spec-language.md. "all" is the --platform flag's default value, not an older calling convention.
This commit is contained in:
1 parent
61bf82e43c
commit
4619eb8bfb
3 files changed
+8
-6
No files matched your search
@@ -214,9 +214,10 @@ func (v *Verifier) checkNotExtracting(slot string) {
|
||||
}
|
||||
}
|
||||
|
||||
// bindAlways accepts either a predicate function (legacy shape) or a formula
|
||||
// handle (new shape). Both produce a formula handle tagged with
|
||||
// __sanderlingFormulaSpec.
|
||||
// bindAlways accepts either a predicate function or a formula handle, both
|
||||
// current: the shipped default properties pass a predicate, and every property
|
||||
// in the example specs passes a formula. Both produce a formula handle tagged
|
||||
// with __sanderlingFormulaSpec.
|
||||
func (v *Verifier) bindAlways(call goja.FunctionCall) goja.Value {
|
||||
if len(call.Arguments) != 1 {
|
||||
panic(v.runtime.NewTypeError("always requires exactly one argument"))
|
||||
|
||||
Reference in new issue
Block a user