Commit Graph

181 Commits

Author SHA1 Message Date
Jamie Kyle bad7c0487e
Add tests for Object.hasOwn (#2995)
* Add tests for Object.hasOwn

* Update test/built-ins/Object/hasOwn/length.js

Co-authored-by: Jordan Harband <ljharb@gmail.com>

* Update test/built-ins/Object/hasOwn/name.js

Co-authored-by: Jordan Harband <ljharb@gmail.com>

* Fixup comments for Object.hasOwn

* Add Object.hasOwn descriptor test

* use assert.sameValue with true instead of assert()

* remove extra semicolons

* Remove old $ERROR style tests from hasown

* Fix thrown error type in hasown tests

* Fix incorrect test cases

Co-authored-by: Jordan Harband <ljharb@gmail.com>
2021-06-16 17:35:06 -04:00
Alexey Shvayka 950d097516 Add Object.freeze test 2021-02-08 15:41:23 -05:00
Alexey Shvayka a4ca510b55 Add Object.seal test 2021-02-08 15:41:23 -05:00
Alexey Shvayka fd6bbbe581 Add Object.freeze tests 2021-02-08 15:40:48 -05:00
Alexey Shvayka 1fd4fb480c Add Object.seal tests 2021-02-08 15:40:48 -05:00
Alexey Shvayka 83ffa3d911 Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
ExE Boss 8f904d8cc8 Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
Oskari Noppa a840b0d093 Shorten a very long filename
A quite popular solution for encrypting files on Linux,
[eCryptfs](https://wiki.archlinux.org/index.php/ECryptfs), can't handle
filenames longer than 143 characters when filename encryption is enabled. It
just so happens that the name of this file was 144 characters long, which makes
pulling the repository to an encrypted folder fail.
2021-01-19 09:06:30 -05:00
Rick Waldron cef698c374 Rename long test file names 2020-10-29 13:49:25 -04:00
Rick Waldron 1af15d5199 Add missing features flags 2020-10-29 13:20:18 -04:00
devsnek 52cb1d0c98 Add missing feature 2020-10-08 20:13:18 -04:00
Gus Caplan 6aa8338d23 add feature tags 2020-10-08 18:05:00 -04:00
Gus Caplan 881c9e3ba5 move __proto__ tests 2020-10-08 18:05:00 -04:00
Gus Caplan 14788fee59 move define/lookup tests 2020-10-08 18:05:00 -04:00
Rick Waldron d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron 8aacff591c Standardize built-in constructor testing 2020-10-06 12:01:34 -04:00
Rick Waldron 12ed905003 Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
Rick Waldron c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Rick Waldron 8a65608dc2 Coverage: Object.seal instances of all built-in constructors, and other built-in values. Fixes gh-2845 2020-10-05 14:38:41 -04:00
Rick Waldron c0b18dfadf Cleanup 2020-10-05 14:38:41 -04:00
Rick Waldron 9d345b6a85 Coverage: Object.seal instances of all built-in constructors. Fixes gh-2845 2020-10-05 14:38:41 -04:00
Rick Waldron d6732b2e28 Object.seal: rename in modern form. 2020-10-05 14:38:41 -04:00
Rick Waldron 32334e52ac Object.seal: fix esids 2020-10-05 14:38:41 -04:00
Rick Waldron dcbc02b7fa Coverage: Object.getOwnPropertySymbols/Names called with non-object values. Fixes gh-2804 2020-09-24 14:53:26 -04:00
Rick Waldron b11c1607c0 Coverage: Object.assign, Assignment to readonly property of target must throw a TypeError exception. Fixes gh-2788 2020-09-17 16:21:26 -04:00
Rick Waldron 1cd7d87501 Object.defineProperty: Property description must be an object. Fixes gh-1754 2020-09-17 09:59:31 -04:00
Rick Waldron db5b9c1dd9 Object.defineProperties: Property description must be an object. Fixes gh-1754 2020-09-17 09:59:31 -04:00
Rick Waldron 896994413c
Missing coverage for Object.defineProperty method. Fixes gh-2660 (#2738) 2020-08-31 12:59:07 -07:00
Meir Blachman f7322cca7a use $ERROR instead of throwing in 15.2.3.7-2-18.js 2020-06-24 12:25:30 -04:00
Alexey Shvayka 0fcc51c9e2 Update copyright for "length" test 2020-06-03 14:03:21 -04:00
Alexey Shvayka 3a4bd7d050 Add symbol primitive test 2020-06-03 14:03:21 -04:00
Alexey Shvayka 38050f0cdd Add string primitive test 2020-06-03 14:03:21 -04:00
Alexey Shvayka f4b30daf12 Rename & improve "length" test 2020-06-03 14:03:21 -04:00
Alexey Shvayka 1fccea4471 Object.prototype.hasOwnProperty: Test coercion order 2020-05-06 11:56:49 -04:00
Alexey Shvayka 8a3fe5318d Merge "length" tests & refactor using propertyHelper.js harness 2020-05-06 11:56:49 -04:00
Alexey Shvayka 1c3d1e3026 Object.prototype.toString: Improve revoked Proxy coverage 2020-05-06 11:51:46 -04:00
Alexey Shvayka c9ce3be95d Add Object.seal test 2020-04-25 18:45:48 -04:00
Alexey Shvayka feaa555fc3 Add Object.isSealed test 2020-04-25 18:45:48 -04:00
Alexey Shvayka a65d0bfb42 Add Object.isFrozen test 2020-04-25 18:45:48 -04:00
Alexey Shvayka 521446b36b Add Object.freeze test 2020-04-25 18:45:48 -04:00
Alexey Shvayka 07ff2ffa4a Add Object.defineProperties test 2020-04-25 18:45:48 -04:00
Alexey Shvayka 56cbc61e42 Add Object.getOwnPropertyDescriptors test 2020-04-25 18:45:48 -04:00
Alexey Shvayka 2183fa7e4e Add Object.assign test 2020-04-25 18:45:48 -04:00
Alexey Shvayka eca34edd7e Drop "the" and align license headers 2020-04-23 10:48:16 -04:00
Alexey Shvayka b273affa2c Add Object.values test 2020-03-23 14:50:33 -04:00
Alexey Shvayka 5874ca46fc Add Object.keys test 2020-03-23 14:50:33 -04:00
Alexey Shvayka c370276c65 Add Object.getOwnPropertySymbols test 2020-03-23 14:50:33 -04:00
Alexey Shvayka 62c9541be4 Add Object.getOwnPropertyNames test 2020-03-23 14:50:33 -04:00
Alexey Shvayka 021b8f2b33 Add Object.getOwnPropertyDescriptors test 2020-03-23 14:50:33 -04:00
Alexey Shvayka b94190e387 Add Object.entries test 2020-03-23 14:50:33 -04:00