forked from LeenkxTeam/Kmake
25 lines
638 B
Plaintext
25 lines
638 B
Plaintext
Tests that Runtime.evaluate's REPL mode correctly interacts with the compliation cache (crbug.com/1108021)
|
|
Prefill the cache with non-REPL mode script
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 8
|
|
type : number
|
|
value : 8
|
|
}
|
|
}
|
|
}
|
|
REPL mode scripts always return a Promise.
|
|
The first script only returns "8" instead. When the inspector doesn't find a promise (due to a cache hit), it would respond with "undefined".
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 8
|
|
type : number
|
|
value : 8
|
|
}
|
|
}
|
|
}
|