mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Renamed != to /= and lambda to function.
This commit is contained in:
parent
f019c1d787
commit
837f29ca05
@ -121,7 +121,7 @@
|
||||
(((undefined-value null-value)) false)
|
||||
((boolean-value b boolean) b)
|
||||
((double-value d double) (not (or (double-is-zero d) (double-is-nan d))))
|
||||
((string-value s string) (!= (length s) 0))
|
||||
((string-value s string) (/= (length s) 0))
|
||||
(object-value true)))
|
||||
|
||||
(define (coerce-boolean-to-double (b boolean)) double
|
||||
@ -772,7 +772,7 @@
|
||||
(%print-actions)
|
||||
|
||||
(define (binary-double-compound-operator (operator (-> (double double) double))) (-> (value value) value-or-exception)
|
||||
(lambda ((left-value value) (right-value value))
|
||||
(function ((left-value value) (right-value value))
|
||||
(letexc (left-number double (coerce-to-double left-value))
|
||||
(letexc (right-number double (coerce-to-double right-value))
|
||||
(oneof normal (oneof double-value (operator left-number right-number)))))))
|
||||
|
@ -121,7 +121,7 @@
|
||||
(((undefined-value null-value)) false)
|
||||
((boolean-value b boolean) b)
|
||||
((double-value d double) (not (or (double-is-zero d) (double-is-nan d))))
|
||||
((string-value s string) (!= (length s) 0))
|
||||
((string-value s string) (/= (length s) 0))
|
||||
(object-value true)))
|
||||
|
||||
(define (coerce-boolean-to-double (b boolean)) double
|
||||
@ -772,7 +772,7 @@
|
||||
(%print-actions)
|
||||
|
||||
(define (binary-double-compound-operator (operator (-> (double double) double))) (-> (value value) value-or-exception)
|
||||
(lambda ((left-value value) (right-value value))
|
||||
(function ((left-value value) (right-value value))
|
||||
(letexc (left-number double (coerce-to-double left-value))
|
||||
(letexc (right-number double (coerce-to-double right-value))
|
||||
(oneof normal (oneof double-value (operator left-number right-number)))))))
|
||||
|
Loading…
Reference in New Issue
Block a user