JS-based execution context acquisition method and related device
An execution context and acquisition method technology, applied in the web front-end field, can solve problems such as inability to obtain the execution context
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0053] The core of the present invention is to provide a JS-based execution context acquisition method. In the prior art, since the JS engine is a single-threaded mechanism, when executing asynchronous code, after the previous part of the current asynchronous code is executed, the execution stack will be destroyed, and other codes will be executed. After the asynchronous event is triggered, when the latter part of the asynchronous code is executed, the correct execution context may not be obtained.
[0054] And a kind of execution context acquisition method based on JS provided by the present invention, comprises intercepting asynchronous code; After intercepting asynchronous code, calls wrapping function, preserves current execution context based on the internal variable in wrapping function, returns an internal function simultaneously; After calling the wrapped function, execute the asynchronous code; when an asynchronous event of the asynchronous code is triggered, push the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com