summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/arrow-function/name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/expressions/arrow-function/name.js')
-rw-r--r--js/src/tests/test262/language/expressions/arrow-function/name.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/arrow-function/name.js b/js/src/tests/test262/language/expressions/arrow-function/name.js
new file mode 100644
index 0000000000..f4cbc8d41f
--- /dev/null
+++ b/js/src/tests/test262/language/expressions/arrow-function/name.js
@@ -0,0 +1,26 @@
+// Copyright (C) 2019 André Bargull. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-arrow-function-definitions-runtime-semantics-evaluation
+description: Assignment of function `name` attribute
+info: |
+ ArrowFunction : ArrowParameters => ConciseBody
+
+ 1. Let scope be the LexicalEnvironment of the running execution context.
+ 2. Let parameters be CoveredFormalsList of ArrowParameters.
+ 3. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, "").
+ ...
+ 5. Return closure.
+includes: [propertyHelper.js]
+---*/
+
+verifyProperty(x => {}, "name", {
+ value: "", writable: false, enumerable: false, configurable: true
+});
+
+verifyProperty(() => {}, "name", {
+ value: "", writable: false, enumerable: false, configurable: true
+});
+
+reportCompare(0, 0);