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

@@ -3,7 +3,7 @@
var _taggedTemplateLiteral = function (strings, raw) {
return Object.freeze(Object.defineProperties(strings, {
raw: {
value: raw
value: Object.freeze(raw)
}
}));
};