guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ECMAscript: Bind type names to constructor functions in the glob


From: Julian Graham
Subject: [PATCH] ECMAscript: Bind type names to constructor functions in the global env.
Date: Sat, 19 Nov 2016 10:44:48 -0500

Howdy!

Find attached a patch that makes it so that the following ECMAscript
expressions all have the same effect:

Object();
new Object;
new Object();

This lays a foundation for having certain constructor functions (like
`Error') behave differently when invoked outside of a `new'
expression.

Andy, I'd particularly like your feedback on this approach, as it
relies in part on the use of `*program-wrappers*' (in `(language
ecmascript function)') and I'm not 100% sure I understand the intent
behind that table.


Regards,
Julian

Attachment: 0001-ECMAscript-Bind-type-names-to-constructor-functions-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]