Skip to content
Snippets Groups Projects
Unverified Commit 9388d6ad authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1581 from WebReflection/master

GetTemplateObject with a unique template object
parents f578b875 7c946911
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,17 @@ info: |
defined by the GetTemplateObject abstract operation.
includes: [propertyHelper.js]
---*/
var templateObject;
var templateObject, sameObject;
(function(parameter) {
function sameSite() {
tag`${Math.random()}`;
}
function tag(parameter) {
templateObject = parameter;
})`${1}`;
}
tag`${1}`;
assert(Array.isArray(templateObject.raw), 'The template object is an array');
......@@ -38,3 +44,13 @@ verifyNotConfigurable(templateObject.raw, '0');
verifyNotEnumerable(templateObject.raw, 'length');
verifyNotWritable(templateObject.raw, 'length')
verifyNotConfigurable(templateObject.raw, 'length');
sameSite();
sameObject = templateObject;
sameSite();
assert(
templateObject === sameObject,
'Normative: Cache templates per site, rather than by contents'
// https://github.com/tc39/ecma262/pull/890
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment