Skip to content

Instantly share code, notes, and snippets.

@ariya
Created Jan 4, 2012
Embed
What would you like to do?
Module example transpiled by Traceur
// What you write
module universe {
export var answer = 42;
}
// What Traceur produces
var universe =(function() {
"use strict";
Object.defineProperty(this, "answer", {
get: function() {
return answer;
},
enumerable: true
});
Object.freeze(this);
var answer = 42;
return this;
}).call(Object.create(null));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment