From 27cbbf09c08648f5b8790c2e15ee3a539eee3a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 3 Jul 2021 12:43:00 +0200 Subject: [PATCH] test: adapt test-util-inspect to V8 9.3 Classes' "name" property is now installed between "length" and "prototype". Refs: https://github.com/v8/v8/commit/224b659cd40b6e11c71262b8a938c0c66cd9bba6 PR-URL: https://github.com/nodejs/node/pull/39469 Reviewed-By: Jiawen Geng Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-util-inspect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 37d669c540eb52..10f187f9d1aa07 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -2855,8 +2855,8 @@ assert.strictEqual( ' Foo [Map] {\n' + ' [constructor]: [class Bar extends Foo] {\n' + ' [length]: 0,\n' + - ' [prototype]: [Circular *1],\n' + " [name]: 'Bar',\n" + + ' [prototype]: [Circular *1],\n' + ' [Symbol(Symbol.species)]: [Getter: ]\n" + ' },\n' +