hacer objeto Readonly JavaScript

var obj = {};
Object.defineProperty(obj, "prop", {
    value: "test",
    writable: false
});
Naughty Nightingale