mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
property gets and puts implemented, yays
* module/language/ecmascript/compile-ghil.scm (@impl): Ok, don't recurse on args here. (comp): Implement property gets and puts and lexical assignment. (comp-body): Fix scanning of var forms. * module/language/ecmascript/impl.scm (prop-attrs): Allow for the prop attr array to be #f. * module/language/ecmascript/parse.scm (parse-ecmascript): Fix assignment parsing.
This commit is contained in:
parent
10e1bd278f
commit
7fb4230060
3 changed files with 18 additions and 9 deletions
|
@ -55,7 +55,8 @@
|
|||
*undefined*)))))
|
||||
|
||||
(define-method (prop-attrs (o <js-object>) p)
|
||||
(or (hashq-ref (js-prop-attrs o) p)
|
||||
(or (let ((attrs (js-prop-attrs o)))
|
||||
(and attrs (hashq-ref (js-prop-attrs o) p)))
|
||||
(let ((proto (js-prototype o)))
|
||||
(if proto
|
||||
(prop-attrs proto p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue