GNU bug report logs - #68941
[PATCH 00/44] Node : a solution for tiny packages.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Mon, 5 Feb 2024 23:17:02 UTC

Severity: normal

Tags: patch

Full log


Message #26 received at 68941 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 68941 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH 07/44] gnu: Add node-has-tostringtag.
Date: Tue,  6 Feb 2024 00:18:55 +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 af49151e73..d2ef624082 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
+  (node-trivial-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





This bug report was last modified 1 year and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.