projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f752a8e
)
Fix MAP-FOR-IN access.
author
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Aug 2013 23:30:21 +0000
(
01:30
+0200)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Aug 2013 23:30:21 +0000
(
01:30
+0200)
Which should iterate over properties of a Javascript object.
src/compiler/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler/compiler.lisp
b/src/compiler/compiler.lisp
index
a2e5dee
..
73223aa
100644
(file)
--- a/
src/compiler/compiler.lisp
+++ b/
src/compiler/compiler.lisp
@@
-1252,7
+1252,7
@@
(g (if (=== (typeof f) "function") f (get f "fvalue")))
(o ,object))
(for-in (key o)
- (call g ,(if *multiple-value-p* '|values| '|pv|) 1 (get o "key")))
+ (call g ,(if *multiple-value-p* '|values| '|pv|) 1 (property o key)))
(return ,(convert nil))))
(define-compilation %js-vref (var)