From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/tests/test262/built-ins/parseInt/name.js | 11 ++++++----- js/src/tests/test262/built-ins/parseInt/not-a-constructor.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'js/src/tests/test262/built-ins/parseInt') diff --git a/js/src/tests/test262/built-ins/parseInt/name.js b/js/src/tests/test262/built-ins/parseInt/name.js index 973b0707da..3d0fc3e513 100644 --- a/js/src/tests/test262/built-ins/parseInt/name.js +++ b/js/src/tests/test262/built-ins/parseInt/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(parseInt.name, "parseInt", 'The value of parseInt.name is "parseInt"'); - -verifyNotEnumerable(parseInt, "name"); -verifyNotWritable(parseInt, "name"); -verifyConfigurable(parseInt, "name"); +verifyProperty(parseInt, "name", { + value: "parseInt", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js b/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js index db318e6a34..9bb720d6c0 100644 --- a/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(parseInt), false, 'isConstructor(parseInt) must r assert.throws(TypeError, () => { new parseInt(1); -}, '`new parseInt(1)` throws TypeError'); +}); reportCompare(0, 0); -- cgit v1.2.3