Fix function name evaluation order (#4830)

JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz daniel.batiz@h-lab.eu
This commit is contained in:
batizdaniel
2021-11-23 11:58:12 +01:00
committed by GitHub
parent 4592143400
commit 6b9e24aa51
5 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -78,6 +78,6 @@ let C3 = class C4 {
static yy = this
}
assert(Reflect.ownKeys(C3).toString() === "length,prototype,f,name,xx,yy")
assert(Reflect.ownKeys(C3).toString() === "length,name,prototype,f,xx,yy")
check_property(C3, "xx", C3)
check_property(C3, "yy", C3)
+3
View File
@@ -335,4 +335,7 @@
<test id="language/expressions/assignment/fn-name-lhs-member.js"><reason>Outdated test, anonymous functions should now have a name property</reason></test>
<test id="language/expressions/function/name.js"><reason>Outdated test, anonymous functions should now have a name property</reason></test>
<test id="language/expressions/generators/name.js"><reason>Outdated test, anonymous functions should now have a name property</reason></test>
<test id="language/computed-property-names/class/static/method-number.js"><reason>ES12 15.7.14.15.d: The evaluation order has been changed</reason></test>
<test id="language/computed-property-names/class/static/method-string.js"><reason>ES12 15.7.14.15.d: The evaluation order has been changed</reason></test>
<test id="language/computed-property-names/class/static/method-symbol.js"><reason>ES12 15.7.14.15.d: The evaluation order has been changed</reason></test>
</excludeList>
-3
View File
@@ -61,9 +61,6 @@
<test id="language/block-scope/syntax/redeclaration/generator-name-redeclaration-attempt-with-async-function.js"><reason></reason></test>
<test id="language/block-scope/syntax/redeclaration/generator-name-redeclaration-attempt-with-function.js"><reason></reason></test>
<test id="language/block-scope/syntax/redeclaration/generator-name-redeclaration-attempt-with-generator.js"><reason></reason></test>
<test id="language/computed-property-names/class/static/method-number.js"><reason></reason></test>
<test id="language/computed-property-names/class/static/method-string.js"><reason></reason></test>
<test id="language/computed-property-names/class/static/method-symbol.js"><reason></reason></test>
<test id="language/eval-code/direct/non-definable-function-with-function.js"><reason></reason></test>
<test id="language/eval-code/direct/non-definable-function-with-variable.js"><reason></reason></test>
<test id="language/eval-code/direct/non-definable-global-function.js"><reason></reason></test>