OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 'use strict'; | |
6 | |
7 function GetTemplateCallSite(siteObj, rawStrings) { | |
8 // TODO(caitp): ensure same template callsite is used for subsequent tag calls | |
9 | |
10 %AddNamedProperty(siteObj, "raw", %ObjectFreeze(rawStrings), | |
11 READ_ONLY | DONT_ENUM | DONT_DELETE); | |
12 | |
13 return %ObjectFreeze(siteObj); | |
14 } | |
OLD | NEW |