summaryrefslogtreecommitdiff
path: root/gnu/packages/javascript.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/javascript.scm')
-rw-r--r--gnu/packages/javascript.scm29
1 files changed, 21 insertions, 8 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 418db050363..d3ba133f54e 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -1088,9 +1088,9 @@ wrappers.")
1088 (origin 1088 (origin
1089 (method git-fetch) 1089 (method git-fetch)
1090 (uri (git-reference (url "https://github.com/tc39/test262") 1090 (uri (git-reference (url "https://github.com/tc39/test262")
1091 (commit "a5e69a1534de88d1eb29b76657d84c8541b72df7"))) 1091 (commit "a6f387de323eb9ae56448bdb71c5d315df631ce4")))
1092 (file-name "test262") 1092 (file-name "test262")
1093 (sha256 (base32 "078a7nim0n9x36q7q8yvjwhk4ig29p25b03rr4l7g2b545cky66l")) 1093 (sha256 (base32 "09avg4f75rzbmh3hcybdvjij7hbl2m79x6xp1hgl6h8ihfbn33l0"))
1094 (modules '((guix build utils))) 1094 (modules '((guix build utils)))
1095 (snippet #~(begin 1095 (snippet #~(begin
1096 (for-each delete-file 1096 (for-each delete-file
@@ -1100,7 +1100,7 @@ wrappers.")
1100(define-public quickjs-ng 1100(define-public quickjs-ng
1101 (package 1101 (package
1102 (name "quickjs-ng") 1102 (name "quickjs-ng")
1103 (version "0.11.0") 1103 (version "0.14.0")
1104 (source 1104 (source
1105 (origin 1105 (origin
1106 (method git-fetch) 1106 (method git-fetch)
@@ -1109,11 +1109,7 @@ wrappers.")
1109 (commit (string-append "v" version)))) 1109 (commit (string-append "v" version))))
1110 (file-name (git-file-name name version)) 1110 (file-name (git-file-name name version))
1111 (sha256 1111 (sha256
1112 (base32 "0mfk32zvvh6c9a9plp6ad07888g795lhdmal3jyaclyn2k5iig9i")) 1112 (base32 "05k8niswh0ly5sx0129jdhiinqs84s86b7sv29ff68v3546dl04i"))))
1113 ;; Remove these patches on next release as they will be included.
1114 (patches (search-patches
1115 "quickjs-ng-64-bits-precision-on-i686.patch"
1116 "quickjs-ng-fix-atomics.pause-on-32-bit.patch"))))
1117 (arguments 1113 (arguments
1118 (list 1114 (list
1119 #:configure-flags 1115 #:configure-flags
@@ -1146,6 +1142,23 @@ wrappers.")
1146 "") 1142 "")
1147 (("BUILD_DIR=build") 1143 (("BUILD_DIR=build")
1148 "BUILD_DIR=../build")))) 1144 "BUILD_DIR=../build"))))
1145 ;; XXX: Unknown test failures in quickjs-ng 1.4.0.
1146 ;; Remove for future versions.
1147 (add-before 'configure 'skip-failing-tests
1148 (lambda* (#:key inputs #:allow-other-keys)
1149 (let* ((test262 (assoc-ref inputs "test262"))
1150 (lang-path (in-vicinity test262 "test/language")))
1151 (substitute* "test262.conf"
1152 (("# list excluded tests and directories here" all)
1153 (string-join
1154 (cons* all
1155 (map (lambda (f)
1156 (in-vicinity lang-path f))
1157 '(;; export 'foo' in module /gnu/store is ambiguous
1158 "module-code/ambiguous-export-bindings/"
1159 ;; Could not find export 'default'
1160 "import/import-attributes/text-self.js")))
1161 "\n"))))))
1149 (replace 'check 1162 (replace 'check
1150 (lambda* (#:key tests? #:allow-other-keys) 1163 (lambda* (#:key tests? #:allow-other-keys)
1151 (when tests? 1164 (when tests?