summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js
blob: 79b7fb7b0bbc69131c1f032047d7a9a39e5105f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
includes: [nativeFunctionMatcher.js]
---*/

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

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

reportCompare(0, 0);