Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function awaitEvaluate()
- {
- var callback;
- var promise = new Promise(fulfill => callback = fulfill);
- Runtime.evaluate(
- { expression: ".. smthg returns Promise.."},
- (objectid) => Runtime.awaitPromise({ promiseObjectId: objectId }, callback)
- );
- return promise;
- }
Advertisement
Add Comment
Please, Sign In to add comment