GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: V8: cherry-pick ea996ad04a68 · nodejs/node@c13969e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/v8/src/parsing
    • parser.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/v8/src/parsing/parser.cc‎

Copy file name to clipboardExpand all lines: deps/v8/src/parsing/parser.cc
+2-10Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,16 +1378,8 @@ ImportAssertions* Parser::ParseImportAssertClause() {
13781378
Expect(Token::LBRACE);
13791379

13801380
while (peek() != Token::RBRACE) {
1381-
const AstRawString* attribute_key = nullptr;
1382-
if (Check(Token::STRING) || Check(Token::SMI)) {
1383-
attribute_key = GetSymbol();
1384-
} else if (Check(Token::NUMBER)) {
1385-
attribute_key = GetNumberAsSymbol();
1386-
} else if (Check(Token::BIGINT)) {
1387-
attribute_key = GetBigIntAsSymbol();
1388-
} else {
1389-
attribute_key = ParsePropertyName();
1390-
}
1381+
const AstRawString* attribute_key =
1382+
Check(Token::STRING) ? GetSymbol() : ParsePropertyName();
13911383

13921384
Scanner::Location location = scanner()->location();
13931385

0 commit comments

Comments
0 (0)
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.