summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/hasOwn/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/test262/built-ins/Object/hasOwn/prototype.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/hasOwn/prototype.js b/js/src/tests/test262/built-ins/Object/hasOwn/prototype.js
new file mode 100644
index 0000000000..1eb3676ddc
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Object/hasOwn/prototype.js
@@ -0,0 +1,15 @@
+// Copyright 2021 Jamie Kyle. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-object.hasown
+info: Object.hasOwn has not prototype property
+description: >
+ Checking if obtaining the prototype property of Object.hasOwn fails
+author: Jamie Kyle
+features: [Object.hasOwn]
+---*/
+
+assert.sameValue(Object.hasOwn.prototype, undefined);
+
+reportCompare(0, 0);