Assertion failure for super() call in arrow function default parameters
https://bugs.webkit.org/show_bug.cgi?id=157079
Reviewed by Saam Barati.
Source/JavaScriptCore:
Root of the issue that in arrow function we load bounded variables this/super/new.target just after
input parameters were initialized, and did not covered case of default values for function parameters.
Current patch tried to fix issue and allow to load bounded variables earlier, before the input
parameters are assigned by default values.
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::BytecodeGenerator):
* tests/stress/arrowfunction-lexical-bind-this-2.js:
LayoutTests:
* js/arrowfunction-lexical-bind-arguments-non-strict-expected.txt:
* js/arrowfunction-lexical-bind-this-expected.txt:
* js/arrowfunction-supercall-expected.txt:
* js/arrowfunction-superproperty-expected.txt:
* js/script-tests/arrowfunction-lexical-bind-arguments-non-strict.js:
* js/script-tests/arrowfunction-lexical-bind-this.js:
* js/script-tests/arrowfunction-supercall.js:
* js/script-tests/arrowfunction-superproperty.js:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed