* bug#10623: [PATCH] Fixed unbound variables and unbound values
[not found] <Bugs in ecmascript/base.scm>
@ 2012-05-15 18:48 ` Sjoerd van Leent
2012-05-19 14:24 ` Noah Lavine
0 siblings, 1 reply; 3+ messages in thread
From: Sjoerd van Leent @ 2012-05-15 18:48 UTC (permalink / raw)
To: 10623; +Cc: Sjoerd van Leent
---
module/language/ecmascript/base.scm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/module/language/ecmascript/base.scm b/module/language/ecmascript/base.scm
index b244bec..6f5c65b 100644
--- a/module/language/ecmascript/base.scm
+++ b/module/language/ecmascript/base.scm
@@ -92,7 +92,7 @@
(pdel o (string->symbol p)))
(define-method (has-property? (o <js-object>) p)
- (if (hashq-get-handle (js-props o) v)
+ (if (hashq-get-handle (js-props o) p)
#t
(let ((proto (js-prototype o)))
(if proto
@@ -176,9 +176,9 @@
((boolean? x) (if x 1 0))
((null? x) 0)
((eq? x *undefined*) +nan.0)
- ((is-a? x <js-object>) (object->number x))
+ ((is-a? x <js-object>) (object->number x #t))
((string? x) (string->number x))
- (else (throw 'TypeError o '->number))))
+ (else (throw 'TypeError x '->number))))
(define (->integer x)
(let ((n (->number x)))
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#10623: [PATCH] Fixed unbound variables and unbound values
2012-05-15 18:48 ` bug#10623: [PATCH] Fixed unbound variables and unbound values Sjoerd van Leent
@ 2012-05-19 14:24 ` Noah Lavine
0 siblings, 0 replies; 3+ messages in thread
From: Noah Lavine @ 2012-05-19 14:24 UTC (permalink / raw)
To: Sjoerd van Leent; +Cc: 10623
Hello,
This looks correct to me. It would be ideal if you could make the
patch with "git format-patch". That will let you write the log entry
for the change.
If you plan to make bigger changes to Guile, you'll need to assign
copyright for your changes to the FSF. Please see
http://www.gnu.org/licenses/why-assign.html for the reason why, but in
summary, that gives them more power to defend the license on the code.
If you're willing to, email assign@gnu.org and tell them you'd like to
assign copyright for Guile.
Thanks,
Noah
On Tue, May 15, 2012 at 2:48 PM, Sjoerd van Leent <svanleent@gmail.com> wrote:
> ---
> module/language/ecmascript/base.scm | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/module/language/ecmascript/base.scm b/module/language/ecmascript/base.scm
> index b244bec..6f5c65b 100644
> --- a/module/language/ecmascript/base.scm
> +++ b/module/language/ecmascript/base.scm
> @@ -92,7 +92,7 @@
> (pdel o (string->symbol p)))
>
> (define-method (has-property? (o <js-object>) p)
> - (if (hashq-get-handle (js-props o) v)
> + (if (hashq-get-handle (js-props o) p)
> #t
> (let ((proto (js-prototype o)))
> (if proto
> @@ -176,9 +176,9 @@
> ((boolean? x) (if x 1 0))
> ((null? x) 0)
> ((eq? x *undefined*) +nan.0)
> - ((is-a? x <js-object>) (object->number x))
> + ((is-a? x <js-object>) (object->number x #t))
> ((string? x) (string->number x))
> - (else (throw 'TypeError o '->number))))
> + (else (throw 'TypeError x '->number))))
>
> (define (->integer x)
> (let ((n (->number x)))
> --
> 1.7.5.4
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10623: [PATCH] Fixed unbound variables and unbound values
2012-01-27 8:31 bug#10623: Bugs in ecmascript/base.scm Mark H Weaver
@ 2012-05-21 18:50 ` Sjoerd van Leent
0 siblings, 0 replies; 3+ messages in thread
From: Sjoerd van Leent @ 2012-05-21 18:50 UTC (permalink / raw)
To: 10623; +Cc: Sjoerd van Leent
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
Fixed unbound variables and unbound values for the ecmascript base Guile scheme file.
Afftected are:
module/langyage/ecmascript/base.scm:
- has-property? should check against the value p instead of v when
handling hashq-get-handle
- When x is of type <js-object> on line 179, it should be appending #t to
the call to object->number, as object->number requires it
- Within the same bit, a few lines later, A TypeError should be thrown
using the value x instead of the non-existant value o
Sjoerd van Leent (1):
Fixed unbound variables and unbound values for the ecmascript base
Guile scheme file.
module/language/ecmascript/base.scm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-21 18:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Bugs in ecmascript/base.scm>
2012-05-15 18:48 ` bug#10623: [PATCH] Fixed unbound variables and unbound values Sjoerd van Leent
2012-05-19 14:24 ` Noah Lavine
2012-01-27 8:31 bug#10623: Bugs in ecmascript/base.scm Mark H Weaver
2012-05-21 18:50 ` bug#10623: [PATCH] Fixed unbound variables and unbound values Sjoerd van Leent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).