Subject: [bug#68941] [PATCH v2 07/44] gnu: Add node-has-tostringtag.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 Feb 2024 01:24:30 +0100

* gnu/packages/node-xyz.scm (node-has-tostringtag): New variable.

Change-Id: Ifd2f0a13b76195ad9482501b02cec779df40a848
---
 gnu/packages/node-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index eda32f8118..5d0b5a3e80 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -538,6 +538,15 @@ (define-public node-has-symbols
 symbols."
    #:mozilla-doclink "Global_Objects/Symbol"))
 
+(define-public node-has-tostringtag
+  (trivial-node-package
+   "has-tostringtag" 0
+   "() => typeof Symbol.toStringTag === 'symbol';"
+   "This package provides a Javascript function that checks if the
+@code{@@toStringTag} symbol is available."
+   #:mozilla-doclink "Global_Objects/Symbol/toStringTag"
+   #:shams #t))
+
 (define-public node-ieee754
   (package
     (name "node-ieee754")
-- 
2.41.0