aboutsummaryrefslogtreecommitdiffstats
path: root/test/language/expressions/tagged-template/cache-identical-source.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/tagged-template/cache-identical-source.js')
-rw-r--r--test/language/expressions/tagged-template/cache-identical-source.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/language/expressions/tagged-template/cache-identical-source.js b/test/language/expressions/tagged-template/cache-identical-source.js
index c6a5644a0..436aea6bd 100644
--- a/test/language/expressions/tagged-template/cache-identical-source.js
+++ b/test/language/expressions/tagged-template/cache-identical-source.js
@@ -1,11 +1,12 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
-es6id: 12.2.8
-description: Template caching using identical expressions
-info: |
- Previously-created template objects should be retrieved from the internal
- template registry when their source is identical.
+esid: sec-gettemplateobject
+description: Templates are cached by site, even when using identical expressions
+info: >
+ 1. For each element _e_ of _templateRegistry_, do
+ 1. If _e_.[[Site]] is the same Parse Node as _templateLiteral_, then
+ 1. Return _e_.[[Array]].
---*/
function tag(templateObject) {
previousObject = templateObject;
@@ -20,8 +21,8 @@ assert(firstObject !== null);
previousObject = null;
tag`head${a}tail`;
-assert.sameValue(
+assert.notSameValue(
previousObject,
firstObject,
- 'The realm\'s template cache is used when tagged templates are executed in the source code directly'
+ 'The realm\'s template cache is by site, not string contents'
);