GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — `enable-experimental-regexp-engine` v8 flag doesn't work with promises · Issue #55400 · nodejs/node Closed as not planned Closed as not planned Copy link Labels replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem. DescriptionVersionv22.9.0 PlatformSubsystemNo response What steps will reproduce the bug?❯ node --enable-experimental-regexp-engine Welcome to Node.js v22.9.0. Type ".help" for more information. > /foo/l /foo/l > (() => /foo/l)() /foo/l > await /foo/l Uncaught SyntaxError: await /foo/l ^ Invalid regular expression flag > await (async () => /foo/l)() Uncaught SyntaxError: await (async () => /foo/l)() ^ Invalid regular expression flag > await (function() { return /foo/l })() Uncaught SyntaxError: await (function() { return /foo/l })() ^ Invalid regular expression flag > await new Promise(resolve => resolve(/foo/l)) Uncaught SyntaxError: await new Promise(resolve => resolve(/foo/l)) ^ Invalid regular expression flag > await Promise.resolve(/foo/l) Uncaught SyntaxError: await Promise.resolve(/foo/l) ^ Invalid regular expression flag How often does it reproduce? Is there a required condition?The linear regex must be created, and wrapped in a Promise, closures experience no such issues. What is the expected behavior? Why is that the expected behavior?The linear flag should be parsed and executed as expected. What do you see instead?
Additional informationNo response Activity
MetadataMetadataAssigneesLabelsreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |