1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-14 15:40:19 +02:00

handle "this" in ecmascript

* module/language/ecmascript/base.scm:
* module/language/ecmascript/compile-ghil.scm:
* module/language/ecmascript/impl.scm:
* module/language/ecmascript/parse.scm: Compile "method calls" in such a
  way that "this" gets propagated correctly.
This commit is contained in:
Andy Wingo 2009-02-20 13:21:09 +01:00
parent e80ce73d20
commit 785fb107ef
4 changed files with 27 additions and 4 deletions

View file

@ -24,9 +24,12 @@
#:use-module (language ecmascript base)
#:use-module (language ecmascript function)
#:use-module (language ecmascript array)
#:re-export (*undefined* *this*
#:export (get-this)
#:re-export (*undefined* *this* call/this*
pget pput pdel
new-object
new
new-array))
(define (get-this)
(fluid-ref *this*))