Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ampproject/amphtml
/ syncResolve
Function
syncResolve
test/unit/utils/test-log.js:674–674 ·
view source on GitHub ↗
(v)
Source
from the content-addressed store, hash-verified
672
673
// Promise.resolve would be nicer, but it won't resolve sync'ly.
674
const
syncResolve = (v) => ({then: (cb) => cb(v)});
675
676
function
mockExternalMessages(messageTemplates) {
677
win.fetch = () =>
Callers
1
mockExternalMessages
Function · 0.85
Calls
1
cb
Function · 0.50
Tested by
no test coverage detected