| Index: src/harmony-templates.js
|
| diff --git a/src/harmony-templates.js b/src/harmony-templates.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd122cce85f28ae5e478af25fb9a1a8c8bbb2c9c
|
| --- /dev/null
|
| +++ b/src/harmony-templates.js
|
| @@ -0,0 +1,14 @@
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +'use strict';
|
| +
|
| +function GetTemplateCallSite(siteObj, rawStrings) {
|
| + // TODO(caitp): ensure same template callsite is used for subsequent tag calls
|
| +
|
| + %AddNamedProperty(siteObj, "raw", %ObjectFreeze(rawStrings),
|
| + READ_ONLY | DONT_ENUM | DONT_DELETE);
|
| +
|
| + return %ObjectFreeze(siteObj);
|
| +}
|
|
|