diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js b/js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js new file mode 100644 index 0000000000..79b7fb7b0b --- /dev/null +++ b/js/src/tests/test262/built-ins/Function/prototype/toString/unicode.js @@ -0,0 +1,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); |