The exported values change, and any bindings created by import statements now 
reference the new values.
________________________________
From: Guy Bedford<mailto:[email protected]>
Sent: ‎2014-‎06-‎23 17:30
To: es-discuss<mailto:[email protected]>
Subject: Understanding module bindings

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';
counter++;
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.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to