test262/test/language/expressions/template/template-values/zwnbsp.js

16 lines
456 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 11.1
description: >
The zero width no-break space format-control character may be used within
template literals.
---*/
assert.sameValue(
`\uFEFFtest`, 'test', 'Specified via unicode escape sequence'
);
assert.sameValue(
`test`, 'test', 'Specified via literal character'
);