summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/toString/unicode.js
blob: fa176fac297bc11822a7dd8164f4ad3bd0dd468c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2016 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-function.prototype.tostring
description: Function.prototype.toString on a function with Unicode escape sequences
info: |
  Function.prototype.toString returns a slice of the source text before
  any potential Unicode escape sequence substitution in identifiers
---*/

function \u0061(\u{62}, \u0063) { \u0062 = \u{00063}; return b; }

assert.sameValue(a.toString(), "function \\u0061(\\u{62}, \\u0063) { \\u0062 = \\u{00063}; return b; }");