PythonMonkey   v0.9.1 (dev)
Loading...
Searching...
No Matches
internal-binding.d.ts File Reference

Functions

function declare internalBinding (namespace:"utils")
 

Variables

declare type TimerDebugInfo = object
 
 export = internalBinding
 

Detailed Description

Author
Tom Tang xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work
Date
June 2023

Function Documentation

◆ internalBinding()

function declare internalBinding (   namespace:"utils")

Note: internalBinding APIs are generally unsafe as they do not perform argument type checking, etc. Argument checking should be done on the JavaScript side.

Get the promise state (fulfilled/rejected/pending) and result (either fulfilled resolution or rejection reason)

Get the proxy target object and handler

Returns
undefined if it's not a proxy

internal binding helper for the setTimeout/setInterval global functions

UNSAFE, does not perform argument type checks

Parameters
repeatThe call is to setInterval if true
Returns
timeoutId

internal binding helper for the clearTimeout global function

internal binding helper for if a timer object has been ref'ed

internal binding helper for ref'ing the timer

internal binding helper for unref'ing the timer

Retrieve debug info inside the timer for the WTFPythonMonkey tool

Retrieve the debug info for all timers that are still ref'ed

Variable Documentation

◆ export

export = internalBinding

◆ TimerDebugInfo

declare type TimerDebugInfo = object