Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8132481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:21:39+00:00 2026-06-06T09:21:39+00:00

I saw % in many codes. Can you explain to me its purpose or

  • 0

I saw % in many codes. Can you explain to me its purpose or what it does?

Edit: I know the operand in math 13 % 10 = 3 but what I saw is like return %foo.

Encountered this while looking through v8 source files

Why are some of the function invocations preceded by a % sign?

%CheckIsBootstrapping();
//---
// Only used by async-await.js
function RejectPromise(promise, reason, debugEvent) {
  %PromiseReject(promise, reason, debugEvent);
}
//---
var callbacks = %create_resolving_functions(promise, debugEvent);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:21:41+00:00Added an answer on June 6, 2026 at 9:21 am

    Based on the link you provided in the comments, the % character appears to be used in some of the V8 JavaScript engine source code to indicate a method of the C++ runtime that will be executed while parsing the JavaScript source.

    For example, the line in string.js:

    return %StringBuilderConcat(parts, len + 1, "");
    

    When encountered by the parser, the StringBuilderConcat method will be executed. You can find a list of the runtime methods available to the V8 JavaScript files in runtime.h (note, I have no experience with C++, so for all I know this has nothing to do with the StringBuilderConcat method referenced in string.js, but I think it’s the same thing):

    #define RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \
      /* Property access */ \
      F(GetProperty, 2, 1) \
      F(KeyedGetProperty, 2, 1) \
      /* ... */
      F(StringBuilderConcat, 3, 1) \
      /* ... */
    

    As has already been stated, return %foo would throw a SyntaxError in JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw many threads with this tittle, but no one really speak about reuse
I saw in many application like Zara, Zara Home, D&G.. that instead of using
I've seen as many different parameters as many source codes I saw. Is there
i have this huge csv file, it's 4GB, don't know how many rows but
I look up a lot through this problem while i saw many post abt
Fastest way to uniqify a list in Python without preserving order? I saw many
I've read about many to many relationship in rails 3 and saw that HABTM
I have long cycles of GC. from checks I saw there are too many
I saw the docs on the Instagram developers page. http://instagram.com/developer/endpoints/ But I want to
I saw that even by writing separate commands, we can combine two different types

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.