mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
script: Correctly convert a jsval to a Promise
(#36403)
Fixes an oversight of #36097, in which converting to a Promise would fail if the value passed wasn't actually a Promise, while in binding code we actually call `Promise::new_resolved` on the value. Testing: There are wpt tests that should pass now --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
3b41a16fcf
commit
64b401696a
2 changed files with 6 additions and 7 deletions
|
@ -2,9 +2,6 @@
|
|||
[ClipboardItem({string, Blob}) succeeds with different types]
|
||||
expected: FAIL
|
||||
|
||||
[ClipboardItem() succeeds with empty options]
|
||||
expected: FAIL
|
||||
|
||||
[types() returns correct values]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue