You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses luxon, which uses Intl.DateTimeFormat, so it doesn't get along with Hardened JS:
$ endo run ./index.js (TypeError#1)TypeError#1: Cannot read properties of undefined (reading 'DateTimeFormat') at systemLocale (.../luxon/src/impl/locale.js:59:25) at Locale.create (.../luxon/src/impl/locale.js:344:53) at Locale.fromObject (.../luxon/src/impl/locale.js:359:15) at quickDT (.../luxon/src/datetime.js:377:12) at DateTime.local (.../luxon/src/datetime.js:569:8) at new CronDate (eval at <anonymous> (eval at makeEvaluate (packages/ses/src/make-evaluate.js:92:27)), <anonymous>:228:33) at parse (eval at <anonymous> (eval at makeEvaluate (packages/ses/src/make-evaluate.js:92:27)), <anonymous>:853:29) at Function.parse (eval at <anonymous> (eval at makeEvaluate (packages/ses/src/make-evaluate.js:92:27)), <anonymous>:938:10) at Function.parseExpression (eval at <anonymous> (eval at makeEvaluate (packages/ses/src/make-evaluate.js:92:27)), <anonymous>:41:25) at Proxy.main (.../intl-problem/index.js:4:14) at packages/cli/src/run.js:94:40 at async packages/cli/src/context.js:72:7 at async packages/cli/src/context.js:55:7 at async packages/cli/src/context.js:43:5 at async withInterrupt (packages/cli/src/context.js:14:5) at async run (packages/cli/src/run.js:37:3) at async Promise.all (index 0) at async main (packages/cli/src/endo.js:623:5) at async packages/cli/bin/endo.cjs:4:3
I looked for a quick hack to hard-code it to use the C locale or some such, but gave up after 10 or 15 min.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to use cron-parser in a Compartment.
It uses luxon, which uses
Intl.DateTimeFormat
, so it doesn't get along with Hardened JS:I looked for a quick hack to hard-code it to use the C locale or some such, but gave up after 10 or 15 min.
Suggestions?
cc @kriskowal @gibson042 @kbennett2000
Beta Was this translation helpful? Give feedback.
All reactions