Understanding module bindings

Guy Bedford guybedford at gmail.com
Mon Jun 23 14:30:27 PDT 2014

I was just looking to clarify how module bindings behave.

What happens in the following example:

export var template = '...template string...';
export var counter = 0;
export var obj = {};

template += 'post-script';
obj = { new: 'obj' };

Do these throw an error? Does the exported value change, or does the
internal value change only?

It would be good to make sure we're implementing this right.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140623/823ea9ff/attachment.html>

More information about the es-discuss mailing list