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:
parent
e80ce73d20
commit
785fb107ef
4 changed files with 27 additions and 4 deletions
|
@ -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*))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue