properly freeze tagged template literal object #328

This commit is contained in:
Sebastian McKenzie
2014-12-22 22:07:45 +11:00
parent 6c7cdc9b7c
commit 2df1ca3971
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
(function (strings, raw) {
return Object.freeze(Object.defineProperties(strings, { raw: { value: raw } }));
return Object.freeze(Object.defineProperties(strings, {
raw: { value: Object.freeze(raw) }
}));
});