diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js b/js/src/tests/test262/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js new file mode 100644 index 0000000000..e74d77d0b3 --- /dev/null +++ b/js/src/tests/test262/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js @@ -0,0 +1,14 @@ +// Copyright (C) 2016 Michael Ficarra. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-runtime-semantics-bindingclassdeclarationevaluation +description: Function.prototype.toString on a class declaration (with complex heritage) +includes: [nativeFunctionMatcher.js] +---*/ + +/* before */class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }/* after */ + +assertToStringOrNativeFunction(A, "class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }"); + +reportCompare(0, 0); |